/* style/promotions-latest-offers.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-promotions-latest-offers {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Body background is dark, so use light text */
    background-color: var(--background-color);
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions-latest-offers__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-promotions-latest-offers__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

.page-promotions-latest-offers__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions-latest-offers__hero-content {
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual appeal, but text is below image in DOM */
    position: relative;
    z-index: 1;
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-promotions-latest-offers__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions-latest-offers__subtitle {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-latest-offers__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-promotions-latest-offers__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions-latest-offers__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

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

.page-promotions-latest-offers__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.2);
}

/* Section Titles */
.page-promotions-latest-offers__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-promotions-latest-offers__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Card Styling */
.page-promotions-latest-offers__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-promotions-latest-offers__card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px;
}

.page-promotions-latest-offers__card h3 {
    color: var(--text-main);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-promotions-latest-offers__card p {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Overview Section */
.page-promotions-latest-offers__overview-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

.page-promotions-latest-offers__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Categories Section */
.page-promotions-latest-offers__categories-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-promotions-latest-offers__promo-card {
    padding: 20px;
}

.page-promotions-latest-offers__promo-card .page-promotions-latest-offers__cta-button {
    margin-top: auto; /* Push button to bottom */
}

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

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

.page-promotions-latest-offers__step-card {
    padding: 30px;
    text-align: left;
}

.page-promotions-latest-offers__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--glow-color);
}

.page-promotions-latest-offers__step-title {
    color: var(--gold-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-promotions-latest-offers__step-description {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Terms & Conditions Section */
.page-promotions-latest-offers__terms-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-promotions-latest-offers__terms-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.page-promotions-latest-offers__terms-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1.05em;
    position: relative;
    padding-left: 40px;
}

.page-promotions-latest-offers__terms-list li::before {
    content: '✅';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

/* FAQ Section */
.page-promotions-latest-offers__faq-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

.page-promotions-latest-offers__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions-latest-offers__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-promotions-latest-offers__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-promotions-latest-offers__faq-question .page-promotions-latest-offers__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions-latest-offers__faq-item[open] .page-promotions-latest-offers__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions-latest-offers__faq-answer {
    padding: 15px 25px 20px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    background-color: var(--card-bg);
}

/* CTA Banner */
.page-promotions-latest-offers__cta-banner {
    padding: 60px 0;
    background-image: linear-gradient(rgba(17,168,78,0.8), rgba(34,199,104,0.8)), url('[GALLERY:bg:1920x400:cwin111 promotion background,money,chips,cards,dynamic,green gold]');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #ffffff;
}

.page-promotions-latest-offers__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions-latest-offers__cta-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions-latest-offers__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-latest-offers__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-promotions-latest-offers {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions-latest-offers__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions-latest-offers__hero-section {
        padding-top: 10px !important;
    }

    .page-promotions-latest-offers__hero-content {
        margin-top: -30px;
        padding: 25px 15px;
        margin-bottom: 20px;
    }

    .page-promotions-latest-offers__main-title {
        font-size: 2em;
    }

    .page-promotions-latest-offers__subtitle {
        font-size: 1em;
    }

    .page-promotions-latest-offers__cta-button {
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions-latest-offers__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-promotions-latest-offers__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions-latest-offers__features-grid,
    .page-promotions-latest-offers__promo-grid,
    .page-promotions-latest-offers__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-latest-offers__card {
        padding: 20px;
    }

    .page-promotions-latest-offers__card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions-latest-offers__promo-card .page-promotions-latest-offers__cta-button {
        margin-top: 20px;
    }

    .page-promotions-latest-offers__terms-list {
        padding: 0;
    }

    .page-promotions-latest-offers__terms-list li {
        font-size: 0.95em;
        padding: 15px 15px 15px 40px;
    }

    .page-promotions-latest-offers__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-promotions-latest-offers__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-promotions-latest-offers__cta-banner {
        padding: 40px 0;
    }

    .page-promotions-latest-offers__cta-title {
        font-size: 1.8em;
    }

    .page-promotions-latest-offers__cta-description {
        font-size: 1em;
    }
    
    /* Ensure all images are responsive */
    .page-promotions-latest-offers img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images/videos/buttons */
    .page-promotions-latest-offers__section,
    .page-promotions-latest-offers__card,
    .page-promotions-latest-offers__container,
    .page-promotions-latest-offers__hero-section,
    .page-promotions-latest-offers__overview-section,
    .page-promotions-latest-offers__categories-section,
    .page-promotions-latest-offers__how-to-claim-section,
    .page-promotions-latest-offers__terms-section,
    .page-promotions-latest-offers__faq-section,
    .page-promotions-latest-offers__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Specific video and button container adjustments */
    .page-promotions-latest-offers__video-section,
    .page-promotions-latest-offers__video-container,
    .page-promotions-latest-offers__video-wrapper,
    .page-promotions-latest-offers__cta-buttons,
    .page-promotions-latest-offers__button-group,
    .page-promotions-latest-offers__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions-latest-offers__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions-latest-offers__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }

    .page-promotions-latest-offers__main-title {
        font-size: 1.8em;
    }

    .page-promotions-latest-offers__subtitle {
        font-size: 0.9em;
    }

    .page-promotions-latest-offers__section-title {
        font-size: 1.5em;
    }

    .page-promotions-latest-offers__card h3 {
        font-size: 1.2em;
    }

    .page-promotions-latest-offers__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .page-promotions-latest-offers__step-title {
        font-size: 1.3em;
    }

    .page-promotions-latest-offers__faq-question {
        font-size: 0.9em;
        padding: 12px 15px;
    }

    .page-promotions-latest-offers__faq-answer {
        padding: 8px 15px 12px;
    }

    .page-promotions-latest-offers__cta-title {
        font-size: 1.5em;
    }

    .page-promotions-latest-offers__cta-description {
        font-size: 0.9em;
    }
}