/* --- General Setup & Fonts --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #0d0c1d; /* Very dark blue for body background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ======================= HEADER STYLING ======================= */
.site-header {
    background-color: #15142a; /* Header background color */
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* Logo centered on desktop */
    align-items: center;
    border-bottom: 1px solid #2a2842; /* Adjusted border */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    color: #e0e0f0; /* Font color for header */
}

.site-logo {
    max-height: 40px;
}

/* ======================= FOOTER STYLING ======================= */
.fixed-footer {
    display: none; /* Hide fixed mobile footer on desktop */
}

/* Desktop Footer */
.desktop-footer {
    display: block;
    background-color: #15142a; /* Footer background color */
    color: #b0a8d9; /* Font color for desktop footer */
    text-align: center;
    padding: 20px;
    border-top: 1px solid #2a2842; /* Adjusted border */
    flex-shrink: 0;
}

/* ======================= MAIN CONTENT ======================= */
.main-content {
    padding-top: 70px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ======================= CONTENT SECTION ======================= */
.content-section {
    background-color: #0d0c1d; /* Changed to match body background */
    padding: 60px 20px; /* Adjusted padding for better spacing */
    border-radius: 8px; /* Consider if this border-radius is still desired with matching background */
    margin-bottom: 20px;
    text-align: center; /* Center align content within this section */
}

.content-section .section-title {
    color: #e0e0f0; /* Light title color */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.content-section .section-subtitle {
    color: #b0a8d9; /* Slightly darker subtitle color */
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.content-text p {
    color: #c0c0d0; /* Lighter text color for readability */
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Align paragraphs to the left within their max-width container */
}

.hidden {
    display: none !important;
}

/* ======================= 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;
}

/* ======================= RESPONSIVE (MOBILE VIEW) ======================= */
@media (max-width: 768px) {
    /* Site-header is now fixed at all sizes */

    .fixed-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #15142a; /* Mobile footer background color, same as header */
        border-top: 1px solid #2a2842; /* Adjusted border */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .desktop-footer {
        display: none;
    }

    .footer-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .footer-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #b0a8d9; /* Font color for mobile footer buttons */
        text-decoration: none;
        font-size: 0.75rem;
    }

    .footer-button svg {
        width: 24px;
        height: 24px;
        color: #b0a8d9; /* Icon color for mobile footer */
    }

    .main-content {
        padding-bottom: 70px;
    }

    .promotion-cards-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    @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;
    }
}
