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

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-dark: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --button-text-dark: #000000; /* Adjusted for contrast on gradient buttons */
}

/* Base styles for the page content */
.page-index-latest-promotions {
    color: var(--text-main);
    background-color: var(--bg-dark);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

/* Hero Section */
.page-index-latest-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-dark);
    text-align: center;
    overflow: hidden;
}

.page-index-latest-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-index-latest-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
}

.page-index-latest-promotions__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 40px 20px;
    background-color: rgba(17, 39, 27, 0.9); /* Semi-transparent background for readability */
    border-radius: 10px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-index-latest-promotions__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-index-latest-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-index-latest-promotions__btn-custom-gradient,
.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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-index-latest-promotions__btn-custom-gradient {
    background: var(--button-gradient);
    color: var(--button-text-dark); /* Adjusted for contrast */
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

.page-index-latest-promotions__btn-custom-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.8);
}

.page-index-latest-promotions__btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-index-latest-promotions__btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.page-index-latest-promotions__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index-latest-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Section Titles */
.page-index-latest-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index-latest-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--glow-color);
    border-radius: 2px;
}

/* Promotions Overview Section */
.page-index-latest-promotions__promotions-overview-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-index-latest-promotions__text-block {
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    font-size: 1.05em;
}

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

.page-index-latest-promotions__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-index-latest-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-index-latest-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-index-latest-promotions__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin: 0 20px 15px 20px;
    min-height: 60px; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-index-latest-promotions__card-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px;
    margin-bottom: 25px;
    min-height: 120px; /* Ensure consistent height */
}

/* How to Claim Section */
.page-index-latest-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

.page-index-latest-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.page-index-latest-promotions__list-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
}

.page-index-latest-promotions__list-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glow-color);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--bg-dark);
}

.page-index-latest-promotions__list-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-index-latest-promotions__list-description {
    color: var(--text-secondary);
    font-size: 1em;
}

/* FAQ Section */
.page-index-latest-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-index-latest-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-index-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--deep-green);
    color: var(--text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-index-latest-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-index-latest-promotions__faq-question:hover {
    background-color: var(--primary-color);
}

.page-index-latest-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--gold-color);
}

.page-index-latest-promotions__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

/* Final CTA Section */
.page-index-latest-promotions__final-cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-index-latest-promotions__final-cta-section .page-index-latest-promotions__section-title {
    color: #ffffff;
}

.page-index-latest-promotions__final-cta-section .page-index-latest-promotions__section-title::after {
    background: #ffffff;
}

.page-index-latest-promotions__final-cta-section .page-index-latest-promotions__text-block {
    color: #ffffff;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-latest-promotions__hero-content {
        margin-top: -50px;
        padding: 30px;
    }
    .page-index-latest-promotions__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-index-latest-promotions__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-index-latest-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index-latest-promotions__hero-content {
        margin-top: -30px;
        padding: 25px 15px;
    }
    .page-index-latest-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-index-latest-promotions__hero-description {
        font-size: 1em;
    }
    .page-index-latest-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-index-latest-promotions__btn-custom-gradient,
    .page-index-latest-promotions__btn-primary,
    .page-index-latest-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index-latest-promotions__promotions-overview-section,
    .page-index-latest-promotions__how-to-claim-section,
    .page-index-latest-promotions__faq-section,
    .page-index-latest-promotions__final-cta-section {
        padding: 40px 0;
    }
    .page-index-latest-promotions__container {
        padding: 0 15px;
    }
    .page-index-latest-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index-latest-promotions__card-image {
        height: 180px;
    }
    .page-index-latest-promotions__card-title {
        font-size: 1.3em;
    }
    .page-index-latest-promotions__card-description {
        min-height: 100px;
    }
    .page-index-latest-promotions__steps-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-index-latest-promotions__list-item {
        padding: 25px;
    }
    .page-index-latest-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-index-latest-promotions__faq-answer {
        padding: 10px 20px 15px 20px;
    }
    /* Ensure all images are responsive */
    .page-index-latest-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all image containers are responsive */
    .page-index-latest-promotions__hero-image-wrapper,
    .page-index-latest-promotions__card,
    .page-index-latest-promotions__container,
    .page-index-latest-promotions__grid,
    .page-index-latest-promotions__steps-list,
    .page-index-latest-promotions__faq-list,
    .page-index-latest-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Specific padding for content sections on mobile */
    .page-index-latest-promotions__promotions-overview-section .page-index-latest-promotions__container,
    .page-index-latest-promotions__how-to-claim-section .page-index-latest-promotions__container,
    .page-index-latest-promotions__faq-section .page-index-latest-promotions__container,
    .page-index-latest-promotions__final-cta-section .page-index-latest-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-index-latest-promotions__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-index-latest-promotions__hero-content {
        margin-top: -10px;
        padding: 20px 10px;
    }
    .page-index-latest-promotions__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-index-latest-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-index-latest-promotions__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }
    .page-index-latest-promotions__card-title {
        font-size: 1.2em;
    }
    .page-index-latest-promotions__card-description {
        min-height: auto;
    }
    .page-index-latest-promotions__faq-question {
        font-size: 1em;
    }
    .page-index-latest-promotions__list-title {
        font-size: 1.4em;
    }
}