:root {
    --primary-navy: #001D5F;
    --white: #FFFFFF;
    --light-navy: #002B8F;
    --lighter-navy: #E8EBF3;
    --gold: #D4AF37;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --success: #10B981;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: kenBurns 20s ease-in-out infinite alternate;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 29, 95, 0.70);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.breadcrumb-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.breadcrumb-custom a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb-custom a:hover { 
    opacity: 0.8; 
}

.breadcrumb-custom span {
    color: rgba(255,255,255,0.8);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Lora', serif;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero h1 .word {
    display: inline-block;
    animation: fadeInUp 0.8s ease backwards;
}

.hero h1 .word:nth-child(1) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.5s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.7s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.9s; }



.hero p {
    font-size: 1.25rem;
    color: white;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease 1.1s backwards;
}



/* ===== FILTER SECTION ===== */
.filter-section {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 29, 95, 0.08);
    padding: 20px 0;
    position: sticky;
    top: 76px;
    z-index: 999;
}

.filter-btn {
    border: 2px solid var(--lighter-navy);
    background: var(--white);
    color: var(--text-gray);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-navy);
    background: var(--lighter-navy);
    color: var(--primary-navy);
}

.filter-btn.active {
    border-color: var(--primary-navy);
    background: var(--primary-navy);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 29, 95, 0.25);
}

/* ===== PACKAGE ITEM TRANSITION ===== */
.package-item {
    transition: opacity 0.3s, transform 0.3s;
}


/* ===== UPDATED FLYER CARD - MATCH REFERENCE ===== */
.flyer-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 29, 95, 0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 29, 95, 0.15);
}

/* Flyer Image Container - Smaller Height */
.flyer-image-container, .flyer-image-wrapper {
    position: relative;
    height: 350px; /* tinggi tetap */
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.flyer-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* UBAH dari cover ke contain */
    object-position: center;
    transition: transform 0.4s ease;
    background: white; /* tambahkan background putih */
}
.flyer-card:hover .flyer-image {
    transform: scale(1.05);
}

/* Badge - Top Right */
.flyer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold), #F4D03F);
    color: var(--primary-navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hover Hint - Bottom Center */
.flyer-click-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 2; /* TAMBAHKAN - lebih rendah dari flyer-info */
}

.flyer-card:hover .flyer-click-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

/* Card Info Section */
.flyer-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative; /* TAMBAHKAN */
    z-index: 5; /* TAMBAHKAN - agar di atas flyer-click-hint */
}

.flyer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
    line-height: 1.3;
}

/* Meta Items - Horizontal Pills */
.flyer-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--lighter-navy);
    color: var(--primary-navy);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.meta-item i {
    font-size: 0.9rem;
}

.meta-item.price {
    background: var(--gold);
    color: white;
}

/* ===== BUTTON ACTIONS - COMPLETE SECTION ===== */

/* ========== CARD BUTTONS (2 Horizontal Buttons) ========== */
.flyer-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* Button Daftar - Blue Primary */
.btn-register-direct {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-navy);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 2px solid var(--primary-navy);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-register-direct:hover:not(:disabled) {
    background: transparent;
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 29, 95, 0.15);
}

.btn-register-direct:disabled {
    background: #9E9E9E;
    border-color: #9E9E9E;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button Detail - White base, Blue on hover */
.btn-view-detail {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: var(--primary-navy);
    padding: 16px 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 2px solid var(--primary-navy);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-detail:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 29, 95, 0.15);
}

/* ========== MODAL STYLES ========== */

.detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-drawer {
    position: relative;
    background: white;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.3s ease;
    z-index: 10;
}

@keyframes modalZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header-custom {
    background: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--lighter-navy);
    color: var(--primary-navy);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: var(--primary-navy);
    color: white;
    transform: rotate(90deg);
}

.modal-header-custom h4 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* Modal Body */
.modal-body-custom {
    padding: 0;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
}

/* Flyer Image - High Quality Display */
.modal-flyer-section {
    margin: 0;
    padding: 0;
    background: white;
}

.modal-flyer-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Detail Items */
.modal-details-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 12px;
    transition: all 0.2s;
}

.detail-group:hover {
    background: #E8EBF3;
    transform: translateX(3px);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 1.2rem;
    color: white;
}

.detail-content {
    flex: 1;
}

.detail-content small {
    display: block;
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.detail-content strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Price Highlight */
.price-highlight {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid var(--gold);
}

.price-highlight .detail-icon {
    background: var(--gold);
}

.text-gold {
    color: var(--gold) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Modal Footer - Sticky */
.modal-footer-custom {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #E5E7EB;
}

/* Modal Register Button - Blue Primary (Match button story) */
.btn-modal-register-main {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-navy);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 2px solid var(--primary-navy);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-modal-register-main:hover {
    background: transparent;
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 29, 95, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .flyer-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-register-direct,
    .btn-view-detail {
        width: 100%;
        padding: 14px 32px;
        font-size: 14px;
    }
    
    .modal-drawer {
        width: 95%;
        max-width: none;
    }
    
    .modal-flyer-img {
        max-height: 300px;
    }
    
    .detail-group {
        padding: 10px;
    }
    
    .btn-modal-register-main {
        padding: 14px 32px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .btn-register-direct,
    .btn-view-detail {
        padding: 12px 28px;
        font-size: 13px;
    }
    
    .btn-modal-register-main {
        padding: 12px 28px;
        font-size: 13px;
    }
}