/* style/promo.css */

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

/* Base styles for the page content, ensuring light text on dark body background */
.page-promo {
    background-color: var(--background-color);
    color: var(--text-main); /* Ensure light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-promo__dark-bg {
    background-color: var(--background-color);
    color: var(--text-main);
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    text-align: center;
    min-height: 500px; /* Minimum height for hero */
}

.page-promo__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-promo__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-promo__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background-color: rgba(17, 17, 17, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-promo__main-title {
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__tagline {
    color: var(--text-main);
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promo__btn-primary,
.page-promo__card-button {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-promo__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promo__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(242, 193, 78, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles & Descriptions */
.page-promo__section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
}

.page-promo__section-description {
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
}

/* Featured Promos */
.page-promo__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promo__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main);
}

.page-promo__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promo__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-promo__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Game Categories */
.page-promo__game-categories {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promo__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

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

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

.page-promo__category-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    object-fit: contain;
}

.page-promo__category-name {
    font-weight: bold;
    text-align: center;
}

/* About Promos Section (Expandable Content) */
.page-promo__about-promos {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promo__content-block {
    max-height: none;
    overflow: hidden;
    transition: max-height 0.7s ease-out, opacity 0.7s ease-out;
    opacity: 1;
    padding: 0 15px;
}

.page-promo__content-block.collapsed {
    max-height: 300px; /* Initial collapsed height */
    opacity: 0.8;
}

.page-promo__content-block h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.page-promo__content-block p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-promo__load-less-btn {
    display: block;
    margin: 30px auto 0 auto;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__load-less-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

/* FAQ Section */
.page-promo__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promo__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promo__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-promo__faq-item.active .page-promo__faq-toggle {
    transform: rotate(45deg);
}

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

.page-promo__faq-item.active .page-promo__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides other styles */
    padding: 15px 20px 20px 20px;
}

/* Partners Section */
.page-promo__partners-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promo__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(167px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.page-promo__partner-logo {
    width: 167px;
    height: 127px;
    object-fit: contain;
    filter: brightness(0.8) grayscale(0.2);
    transition: filter 0.3s ease;
}

.page-promo__partner-logo:hover {
    filter: brightness(1) grayscale(0);
}

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

    .page-promo__main-title {
        font-size: 2.2em;
    }

    .page-promo__section-title {
        font-size: 2em;
    }
}

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

    .page-promo__hero-section {
        min-height: 400px;
    }

    .page-promo__hero-content {
        margin-top: -30px;
        padding: 20px;
    }

    .page-promo__main-title {
        font-size: 1.8em;
        max-width: 90%;
    }

    .page-promo__tagline {
        font-size: 1em;
    }

    .page-promo__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-promo__btn-primary,
    .page-promo__btn-secondary,
    .page-promo__card-button {
        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__section {
        padding: 40px 15px;
    }

    .page-promo__section-title {
        font-size: 1.8em;
    }

    .page-promo__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promo__promo-cards {
        grid-template-columns: 1fr;
    }

    .page-promo__card-image {
        height: 180px;
    }

    .page-promo__categories-grid,
    .page-promo__partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .page-promo__category-item {
        padding: 15px;
    }

    .page-promo__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-promo__faq-answer {
        padding: 0 15px;
    }

    .page-promo__faq-item.active .page-promo__faq-answer {
        padding: 15px 15px 15px 15px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-promo img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-promo__hero-image,
    .page-promo__card-image,
    .page-promo__category-icon,
    .page-promo__partner-logo {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-promo__hero-image-wrapper,
    .page-promo__promo-cards,
    .page-promo__categories-grid,
    .page-promo__partners-grid,
    .page-promo__card,
    .page-promo__category-item,
    .page-promo__faq-item,
    .page-promo__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .page-promo__video-section {
        padding-top: 10px !important; /* Specific override for video section */
    }
}

@media (max-width: 480px) {
    .page-promo__main-title {
        font-size: 1.5em;
    }

    .page-promo__section-title {
        font-size: 1.6em;
    }

    .page-promo__category-name {
        font-size: 0.9em;
    }

    .page-promo__categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-promo__partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}