/* style/index-latest-promotions.css */

/* Base Styles */
.page-index-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background is transparent to show body background */
}

.page-index-latest-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Color Contrast Utility Classes */
.page-index-latest-promotions__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-index-latest-promotions__light-bg {
    background-color: #ffffff; /* Auxiliary brand color or white for light sections */
    color: #333333; /* Dark text for light backgrounds */
}

/* Hero Section */
.page-index-latest-promotions__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #017439; /* Explicit background for hero */
}

.page-index-latest-promotions__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.6)); /* Subtle overlay */
    z-index: 1;
}

.page-index-latest-promotions__hero-section .page-index-latest-promotions__container {
    position: relative;
    z-index: 2;
}

.page-index-latest-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-index-latest-promotions__main-title {
    font-size: 3.2em;
    color: #FFFF00; /* Register/Login font color for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-latest-promotions__description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-index-latest-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index-latest-promotions__cta-buttons--center {
    margin-top: 40px;
}

.page-index-latest-promotions__btn-primary,
.page-index-latest-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-index-latest-promotions__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-index-latest-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-index-latest-promotions__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Login font color */
    border: 2px solid #FFFF00;
}

.page-index-latest-promotions__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-index-latest-promotions__btn-text {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-index-latest-promotions__btn-text:hover {
    color: #005f2e;
}

.page-index-latest-promotions__arrow {
    margin-left: 8px;
    font-size: 1.2em;
}


/* Section Titles */
.page-index-latest-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #017439; /* Default for light backgrounds */
}

.page-index-latest-promotions__section-title--white {
    color: #ffffff; /* For dark backgrounds */
}

/* Introduction Section */
.page-index-latest-promotions__introduction {
    padding: 60px 0;
}

.page-index-latest-promotions__introduction p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    text-align: justify;
}

/* Promotion Categories Grid */
.page-index-latest-promotions__promotion-categories {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color */
}

.page-index-latest-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-latest-promotions__card {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white on green */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333; /* Dark text on light card background */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-latest-promotions__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-index-latest-promotions__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    min-height: 3em; /* Ensure consistent height for titles */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-index-latest-promotions__card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

/* Event Promotions Section */
.page-index-latest-promotions__event-promotions {
    padding: 60px 0;
}

.page-index-latest-promotions__event-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

/* Video Section */
.page-index-latest-promotions__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: #017439;
}

.page-index-latest-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* Indicates clickability for video */
}

/* Terms and Conditions Section */
.page-index-latest-promotions__terms {
    padding: 60px 0;
}

.page-index-latest-promotions__terms p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    text-align: justify;
}

.page-index-latest-promotions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-index-latest-promotions__list li {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: #333333;
}

.page-index-latest-promotions__list-icon {
    color: #017439;
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: bold;
}

/* Why Choose Section */
.page-index-latest-promotions__why-choose {
    padding: 60px 0;
    text-align: center;
    background-color: #017439;
}

.page-index-latest-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on green */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-latest-promotions__feature-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-index-latest-promotions__feature-item p {
    font-size: 1em;
    color: #f0f0f0;
    text-align: center;
}

.page-index-latest-promotions__final-cta {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-top: 50px;
    font-weight: bold;
}

/* FAQ Section */
.page-index-latest-promotions__faq-section {
    padding: 60px 0;
}

.page-index-latest-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-index-latest-promotions__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-index-latest-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-index-latest-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-index-latest-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-index-latest-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-index-latest-promotions__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-latest-promotions__main-title {
        font-size: 2.8em;
    }
    .page-index-latest-promotions__section-title {
        font-size: 2em;
    }
    .page-index-latest-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile content area padding */
    .page-index-latest-promotions__container {
        padding: 0 15px;
    }

    /* Fixed header spacing for mobile */
    .page-index-latest-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

    .page-index-latest-promotions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-index-latest-promotions__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-index-latest-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container width for buttons */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to button container */
        overflow: hidden;
    }

    .page-index-latest-promotions__btn-primary,
    .page-index-latest-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-latest-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-index-latest-promotions__introduction,
    .page-index-latest-promotions__promotion-categories,
    .page-index-latest-promotions__event-promotions,
    .page-index-latest-promotions__video-section,
    .page-index-latest-promotions__terms,
    .page-index-latest-promotions__why-choose,
    .page-index-latest-promotions__faq-section {
        padding: 40px 0;
    }

    .page-index-latest-promotions__grid {
        grid-template-columns: 1fr;
    }

    .page-index-latest-promotions__card-image {
        height: auto; /* Allow height to adjust for mobile */
        max-height: 250px;
    }

    .page-index-latest-promotions__card-title {
        font-size: 1.3em;
    }

    /* Images responsiveness */
    .page-index-latest-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Video responsiveness */
    .page-index-latest-promotions video,
    .page-index-latest-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-latest-promotions__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensure all content containers are responsive */
    .page-index-latest-promotions__section,
    .page-index-latest-promotions__card,
    .page-index-latest-promotions__container,
    .page-index-latest-promotions__video-section,
    .page-index-latest-promotions__video-container,
    .page-index-latest-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-index-latest-promotions__features-grid {
        grid-template-columns: 1fr;
    }

    .page-index-latest-promotions__list li {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-index-latest-promotions__main-title {
        font-size: 1.8em;
    }
    .page-index-latest-promotions__section-title {
        font-size: 1.5em;
    }
    .page-index-latest-promotions__card-title {
        font-size: 1.2em;
    }
}