/* style/promo.css */

/* Custom CSS Variables for colors */
:root {
    --main-color: #F2C14E;
    --aux-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg-color: #111111;
    --bg-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

/* Base styles for the page content, ensuring text color aligns with dark body background */
.page-promo {
    background-color: var(--bg-color); /* Fallback to custom dark background */
    color: var(--text-main-color); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Section titles */
.page-promo__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--main-color); /* Gold color for titles */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* General text blocks */
.page-promo__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    box-sizing: border-box;
    background-color: var(--bg-color);
}

.page-promo__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Adjust based on common hero image aspect ratio */
    margin-bottom: 30px; /* Space between image and content */
}

.page-promo__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any pseudo-elements */
}

.page-promo__main-title {
    font-size: 3.2em;
    font-weight: 800;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-promo__subtitle {
    font-size: 1.3em;
    color: var(--aux-color); /* Auxiliary gold for subtitle */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo__btn-claim,
.page-promo__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box;
}

.page-promo__btn-primary {
    background: var(--button-gradient); /* Custom button gradient */
    color: #ffffff; /* White text on gold button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
    background: transparent;
    color: var(--main-color); /* Gold text */
    border: 2px solid var(--main-color); /* Gold border */
}

.page-promo__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
}

.page-promo__btn-claim {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    margin-top: 15px;
}

.page-promo__btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-inline {
    background: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.page-promo__btn-inline:hover {
    background: rgba(242, 193, 78, 0.1);
}

/* Intro Section */
.page-promo__intro-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

/* Types Section */
.page-promo__types-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Card BG for this section */
}

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

.page-promo__promo-item {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-promo__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promo__promo-icon {
    width: 100px; /* Display size, actual image is larger */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promo__promo-item-title {
    font-size: 1.5em;
    color: var(--main-color);
    margin-bottom: 10px;
}

.page-promo__promo-item-desc {
    font-size: 1em;
    color: var(--text-main-color);
}

/* How to Claim Section */
.page-promo__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-promo__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promo__step-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-promo__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 2em;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.page-promo__step-title {
    font-size: 1.6em;
    color: var(--main-color);
    margin-bottom: 15px;
}

.page-promo__step-desc {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

/* Featured Promotions Section */
.page-promo__featured-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

.page-promo__promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promo__promo-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-promo__promo-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-promo__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promo__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promo__card-title {
    font-size: 1.4em;
    color: var(--main-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promo__card-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Games Section */
.page-promo__games-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-promo__game-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.page-promo__game-category-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-promo__game-category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(242, 193, 78, 0.1);
}

.page-promo__category-icon {
    width: 30px; /* Allowed small size for category icons */
    height: 30px;
    object-fit: contain;
    margin-bottom: 10px;
}

.page-promo__category-name {
    font-size: 1em;
    font-weight: 600;
}

/* Responsible Gaming Section */
.page-promo__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

/* FAQ Section */
.page-promo__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-promo__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promo__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-promo__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-main-color);
}

.page-promo__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-promo__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--main-color);
}

.page-promo__faq-item.active .page-promo__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-promo__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-main-color);
    background-color: var(--bg-color);
}

.page-promo__faq-item.active .page-promo__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px;
}

.page-promo__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-main-color);
}

.page-promo__btn-faq-more {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
    padding: 10px 25px;
}

/* Final CTA Section */
.page-promo__cta-final-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promo__section-title {
        font-size: 2em;
    }
    .page-promo__main-title {
        font-size: 2.8em;
    }
    .page-promo__subtitle {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-promo__hero-section {
        padding-bottom: 40px;
    }
    .page-promo__hero-image {
        margin-bottom: 20px;
        max-height: 400px;
    }
    .page-promo__hero-content {
        padding: 0 15px;
    }
    .page-promo__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promo__subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-promo__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 90%; /* Allow buttons to stretch more on mobile */
    }
    .page-promo__btn-primary,
    .page-promo__btn-secondary,
    .page-promo a[class*="button"],
    .page-promo a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promo__cta-buttons,
.page-promo__button-group,
.page-promo__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-promo__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-promo__text-block {
        font-size: 1em;
    }
    .page-promo__intro-section,
    .page-promo__types-section,
    .page-promo__how-to-claim-section,
    .page-promo__featured-section,
    .page-promo__games-section,
    .page-promo__responsible-gaming-section,
    .page-promo__faq-section,
    .page-promo__cta-final-section {
        padding: 40px 0;
    }
    .page-promo__promo-grid,
    .page-promo__steps-grid,
    .page-promo__promo-cards-grid,
    .page-promo__game-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
}