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

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #0a0a0a; /* Body background from shared.css */
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --register-login-font-color: #FFFF00;
}

.page-index-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for the page content on dark body background */
    background-color: var(--background-color);
}

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

/* Hero Section */
.page-index-latest-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

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

.page-index-latest-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-index-latest-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-index-latest-promotions__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-latest-promotions__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-index-latest-promotions__btn-primary {
    background-color: var(--register-button-color); /* #C30808 */
    color: var(--register-login-font-color); /* #FFFF00 */
    border: 2px solid var(--register-button-color);
}

.page-index-latest-promotions__btn-primary:hover {
    background-color: darken(var(--register-button-color), 10%);
    border-color: darken(var(--register-button-color), 10%);
}

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

.page-index-latest-promotions__btn-secondary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* General Section Styles */
.page-index-latest-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
}

.page-index-latest-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-on-dark-bg);
}

.page-index-latest-promotions__why-section,
.page-index-latest-promotions__how-to-claim-section,
.page-index-latest-promotions__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-index-latest-promotions__promotions-grid-section,
.page-index-latest-promotions__terms-section,
.page-index-latest-promotions__faq-section,
.page-index-latest-promotions__cta-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: var(--text-on-dark-bg);
}

.page-index-latest-promotions__dark-bg {
    background-color: #1a1a1a;
    color: var(--text-on-dark-bg);
}

.page-index-latest-promotions__card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    color: var(--text-on-dark-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index-latest-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index-latest-promotions__feature-item {
    text-align: center;
}

.page-index-latest-promotions__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Promotions Grid */
.page-index-latest-promotions__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-promotions__promotion-card {
    overflow: hidden;
    text-align: left;
}

.page-index-latest-promotions__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index-latest-promotions__promotion-content {
    padding: 0 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index-latest-promotions__promotion-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-index-latest-promotions__promotion-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index-latest-promotions__promotion-title a:hover {
    text-decoration: underline;
}

.page-index-latest-promotions__promotion-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-latest-promotions__promotion-card .page-index-latest-promotions__btn-primary {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto; /* Push button to bottom */
}

/* How to Claim Section */
.page-index-latest-promotions__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-promotions__step-item {
    text-align: center;
}

.page-index-latest-promotions__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index-latest-promotions__step-item p a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index-latest-promotions__step-item p a:hover {
    text-decoration: underline;
}

/* Terms Section */
.page-index-latest-promotions__terms-list {
    list-style: disc inside;
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 20px;
}

.page-index-latest-promotions__terms-list li {
    margin-bottom: 10px;
}

.page-index-latest-promotions__terms-section .page-index-latest-promotions__btn-secondary {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

/* Responsible Gaming Section */
.page-index-latest-promotions__responsible-gaming-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index-latest-promotions__responsible-gaming-section p a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index-latest-promotions__responsible-gaming-section p a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-index-latest-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-latest-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

.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: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-index-latest-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-index-latest-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-on-dark-bg);
}

.page-index-latest-promotions__faq-answer p a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index-latest-promotions__faq-answer p a:hover {
    text-decoration: underline;
}

/* CTA Section (bottom) */
.page-index-latest-promotions__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-latest-promotions__main-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-index-latest-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-index-latest-promotions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
    }

    .page-index-latest-promotions__main-title {
        font-size: 2.2em;
    }

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

    .page-index-latest-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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: 2em;
    }

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

    .page-index-latest-promotions__container,
    .page-index-latest-promotions__section,
    .page-index-latest-promotions__card,
    .page-index-latest-promotions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-index-latest-promotions__promotion-image {
        height: auto;
    }

    .page-index-latest-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-index-latest-promotions__faq-answer {
        padding: 15px 20px;
    }

    .page-index-latest-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Video section padding top for mobile */
    }
}

@media (max-width: 480px) {
    .page-index-latest-promotions__main-title {
        font-size: 1.8em;
    }
    .page-index-latest-promotions__section-title {
        font-size: 1.8em;
    }
    .page-index-latest-promotions__feature-title,
    .page-index-latest-promotions__promotion-title,
    .page-index-latest-promotions__step-title {
        font-size: 1.3em;
    }
}