* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0d0c1d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
.site-header {
    background-color: #15142a;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2842;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    position: relative;
}
.site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    margin: 0 auto;
}
.site-logo-link:hover { transform: scale(1.02); }
.site-logo-img { max-height: 40px; width: auto; border-radius: 4px; }
.site-logo-text { font-size: 1.2rem; font-weight: 600; color: #7a1be2; }

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    color: #fafaff;
}
.brand-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #1b1a32, #100f24);
    border-radius: 15px;
    border: 1px solid #2a2842;
    color: #fff;
}
.brand-name {
    color: #7a1be2;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.page-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    display: block;
    transition: transform 0.3s ease;
}
.featured-image:hover { transform: scale(1.02); }
.content {
    font-size: 1.13rem;
    line-height: 1.8;
    margin: 2rem 0;
    color: #fff;
    background: linear-gradient(145deg, #1b1a32, #100f24);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #2a2842;
}
.content p { margin-bottom: 1rem; }

.info-section {
    background: linear-gradient(145deg, #1b1a32 80%, #191833 100%);
    border-radius: 15px;
    border: 1px solid #2a2842;
    box-shadow: 0 4px 24px rgba(40,40,60,0.08);
    margin-bottom: 2.5rem;
    padding: 2rem;
    color: #fff;
}

.section-title {
    font-size: 1.4rem;
    color: #ffe156;    /* Yellow high contrast */
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(30,20,0,0.20);
}
.subheading {
    font-size: 1.13rem;
    color: #ffd84a;
    margin: 1.2rem 0 0.7rem 0;
    font-weight: 600;
}
.detail-heading {
    font-size: 1.05rem;
    color: #50fa7b;
    margin: 1rem 0 0.6rem 0;
    font-weight: 600;
}
ul, ol {
    margin-left: 1.8em;
    margin-bottom: 1rem;
    color: #fafcff;
}
ul li, ol li {
    margin-bottom: 0.35em;
    color: #fafaff;
    font-size: 1.04rem;
    line-height: 1.7;
}
a, a:visited {
    color: #21aaff;
    text-decoration: underline dotted;
    transition: color 0.2s;
}
a:hover {
    color: #7a1be2;
    text-decoration: underline;
}
p, h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* --- FAQ --- */
.faq-section {
    margin: 3rem 0 0 0;
    background: linear-gradient(145deg, #18172b 80%, #100f24 100%);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border: 1px solid #26244a;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffe156;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    border-radius: 10px;
    overflow: hidden;
    background: #15142a;
    border: 1px solid #292749;
    transition: box-shadow 0.2s;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    box-shadow: 0 4px 24px rgba(122,27,226,0.12);
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.08rem;
    color: #fff;
    padding: 1rem 1.2rem;
    cursor: pointer;
    outline: none;
    position: relative;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.18s;
}
.faq-question:hover, .faq-question[aria-expanded="true"] {
    background: #211f3c;
    color: #7a1be2;
}
.faq-arrow {
    font-size: 1.1rem;
    margin-left: 1rem;
    transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.2rem 1rem 1.2rem;
    font-size: 1rem;
    color: #ededf9;
    display: none;
    animation: fadeInFaq 0.33s;
}
.faq-question[aria-expanded="true"] + .faq-answer {
    display: block;
}
@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* --- FOOTER --- */
.footer {
    background-color: #15142a;
    color: #b0a8d9;
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid #2a2842;
    flex-shrink: 0;
}

/* --- FIXED FOOTER --- */
.fixed-footer {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .site-logo-link { gap: 8px; }
    .site-logo-img { max-height: 35px; }
    .site-logo-text { font-size: 1rem; }
    .main-content { padding: 20px 15px 70px 15px; }
    .page-title { font-size: 1.8rem; }
    .content { font-size: 1rem; padding: 1.5rem; }
    .brand-header { padding: 1.5rem; }
    .info-section { padding: 1.3rem 0.7rem; }
    .fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        height: 70px;
        background-color: #15142a;
        border-top: 1px solid #2a2842;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
        z-index: 1002;
        align-items: center;
        justify-content: space-around;
    }
    .footer { display: none; }
    .footer-nav {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        padding: 0;
    }
    .footer-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #ffe156;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        transition: color 0.18s;
    }
    .footer-button svg {
        width: 24px;
        height: 24px;
        color: #ffe156;
        stroke: #ffe156;
        transition: color 0.18s, stroke 0.18s;
    }
    .footer-button:active,
    .footer-button:focus,
    .footer-button:hover {
        color: #fff;
    }
    .footer-button:hover svg {
        color: #fff;
        stroke: #fff;
    }
    .promotion-cards-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .animated-icon {
        animation: wiggle 1.5s ease-in-out infinite;
    }
    }
    .faq-section {
        padding: 1.2rem 0.5rem;
        margin-top: 2rem;
    }
    .faq-title {
        font-size: 1.13rem;
        margin-bottom: 1.2rem;
    }
    .faq-answer {
        font-size: 0.97rem;
    }
    @keyframes wiggle {
        0%,100% { transform: rotate(0deg);}
        25% { transform: rotate(-8deg);}
        75% { transform: rotate(8deg);}
    }
    .animated-icon {
        animation: wiggle 1.5s ease-in-out infinite;
    }

/* Loading Animation (not used here, but included for completeness) */
.loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(224,224,240,0.3);
    border-radius: 50%;
    border-top-color: #7a1be2;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Supaya content tidak ketutupan footer mobile */
    }
}
/* Pastikan keyframes tidak di dalam media query */
@keyframes wiggle {
    0%,100% { transform: rotate(0deg);}
    25% { transform: rotate(-8deg);}
    75% { transform: rotate(8deg);}
}
.animated-icon {
    animation: wiggle 1.5s ease-in-out infinite;
}

/* ======================= PROMOTIONS SECTION ======================= */
.promotions-section {
    background-color: #0d0c1d; /* Use body color for this section */
    padding: 60px 20px;
    color: #ffffff;
    text-align: center;
    flex-grow: 1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e0e0f0; /* Light title color */
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0a8d9; /* Slightly darker subtitle color */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promotion-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    justify-content: center;
    align-items: stretch;
    flex-grow: 1;
}

.promo-card {
    background: linear-gradient(145deg, #1b1a32, #100f24); /* Darker card gradient */
    border-radius: 12px;
    border: 1px solid #2a2842; /* Adjusted card border */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    background-color: #2a2842;
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* Pastikan tetap center */
    align-items: center; /* Pastikan item di tengah secara vertikal */
}

.brand-logo {
    max-height: 35px;
    /* margin-right: 0; Pastikan tidak ada margin kanan yang tersisa */
    flex-shrink: 0;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex; /* Jadikan flex container */
    flex-direction: column; /* Susun item secara vertikal */
    justify-content: space-between;
    align-items: center; /* Pusatkan item secara horizontal */
    text-align: center; /* Tetap pertahankan untuk fallback atau elemen inline */
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0f0; /* Light card title color */
    margin-bottom: 10px;
}

.promo-description {
    font-size: 0.95rem;
    color: #c0c0d0; /* Lighter card description color */
    line-height: 1.6;
    margin-bottom: 15px;
}

.countdown-timer {
    font-size: 1rem;
    font-weight: 600;
    color: #a0f0a0;
    background-color: #202c20;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-shadow: 0 0 5px rgba(160, 240, 160, 0.5);
    /* text-align: center; Hapus ini karena kita memusatkan di parent */
    width: fit-content; /* Agar lebar timer sesuai kontennya saat dipusatkan */
    margin-left: auto; /* Tambahkan auto margin kiri dan kanan untuk pemusatan block-level jika perlu */
    margin-right: auto;
}

.card-footer {
    padding: 15px 20px;
    background-color: #100f24;
    border-top: 1px solid #1b1a32;
    display: flex;
    justify-content: center; /* Pastikan tetap center */
    align-items: center; /* Tambahkan align-items center untuk pemusatan vertikal jika ada elemen lain */
    margin-top: auto;
}

.cta-button {
    background-color: #7a1be2; /* Adjusted CTA color */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #5a0ad0; /* Adjusted CTA hover color */
    transform: scale(1.03);
}

/* Hide promotion card */
.promo-card.hidden {
    display: none;
}

/* ======================= LOAD MORE BUTTON ======================= */
.load-more-button {
    background-color: #2a2842; /* Darker button background */
    color: #e0e0f0; /* Light font color */
    border: 1px solid #3a3852; /* Adjusted border */
    border-radius: 8px;
    padding: 15px 30px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.load-more-button:hover {
    background-color: #3b3a5a; /* Adjusted hover color */
    transform: scale(1.05);
}

.load-more-button.hidden {
    display: none;
}