/* style/promo.css */
/* Base styles for the promotions page content */
.page-promo {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

.page-promo__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #8B0000; /* Auxiliary color for a rich background */
    color: #ffffff; /* Light text on dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-promo__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
}

.page-promo__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-promo__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promo__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Deep red text on gold */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-promo__hero-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #6a0000;
}

.page-promo__overview-section,
.page-promo__promo-list-section,
.page-promo__why-choose-section,
.page-promo__faq-section,
.page-promo__cta-section,
.page-promo__terms-section,
.page-promo__responsible-gambling-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-promo__overview-title,
.page-promo__list-title,
.page-promo__why-choose-title,
.page-promo__faq-title,
.page-promo__cta-title,
.page-promo__terms-title,
.page-promo__responsible-gambling-title {
    font-size: 2.5em;
    color: #8B0000; /* Deep red for main headings */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-promo__overview-title::after,
.page-promo__list-title::after,
.page-promo__why-choose-title::after,
.page-promo__faq-title::after,
.page-promo__cta-title::after,
.page-promo__terms-title::after,
.page-promo__responsible-gambling-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-promo__overview-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

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

.page-promo__promo-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-promo__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-promo__card-title {
    font-size: 1.5em;
    color: #8B0000;
    padding: 15px 20px 10px;
    margin: 0;
}

.page-promo__card-title a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promo__card-title a:hover {
    color: #FFD700;
}

.page-promo__card-description {
    padding: 0 20px 15px;
    font-size: 0.95em;
    flex-grow: 1; /* Allows description to take available space */
}

.page-promo__card-actions {
    padding: 15px 20px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto; /* Push actions to the bottom */
}

.page-promo__card-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    flex: 1;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.page-promo__card-button--details {
    background-color: #f0f0f0;
    color: #8B0000;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-promo__card-button--details:hover {
    background-color: #e0e0e0;
    color: #6a0000;
    border-color: #a0a0a0;
}

.page-promo__card-button--claim {
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Deep red text */
    border: 1px solid #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-promo__card-button--claim:hover {
    background-color: #e6c200;
    color: #6a0000;
    border-color: #e6c200;
}

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

.page-promo__why-choose-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-promo__why-choose-item-title {
    font-size: 1.6em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-promo__why-choose-item-text {
    font-size: 1em;
    color: #555;
}

.page-promo__faq-accordion {
    margin-top: 40px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.page-promo__faq-item {
    border-bottom: 1px solid #eee;
}

.page-promo__faq-item:last-child {
    border-bottom: none;
}

.page-promo__faq-question {
    width: 100%;
    background-color: #FFD700; /* Gold background for questions */
    color: #8B0000; /* Deep red text */
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-promo__faq-question::after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promo__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-promo__faq-question:hover {
    background-color: #e6c200;
}

.page-promo__faq-answer {
    padding: 0 25px;
    background-color: #fdfdfd;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-promo__faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #555;
}

.page-promo__cta-section {
    position: relative;
    background-color: #8B0000; /* Deep red background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-promo__cta-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Dim background image */
    z-index: 0;
}

.page-promo__cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-promo__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promo__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-promo__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #8B0000;
    padding: 18px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-promo__cta-button:hover {
    background-color: #e6c200;
    color: #6a0000;
}

.page-promo__terms-text,
.page-promo__responsible-gambling-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-promo__terms-link,
.page-promo__responsible-gambling-link {
    display: block;
    text-align: center;
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-promo__terms-link:hover,
.page-promo__responsible-gambling-link:hover {
    color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promo__hero-title {
        font-size: 3em;
    }
    .page-promo__hero-description {
        font-size: 1.1em;
    }
    .page-promo__overview-title,
    .page-promo__list-title,
    .page-promo__why-choose-title,
    .page-promo__faq-title,
    .page-promo__cta-title,
    .page-promo__terms-title,
    .page-promo__responsible-gambling-title {
        font-size: 2em;
    }
    .page-promo__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-promo {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-promo__hero-section {
        padding: 60px 15px;
    }
    .page-promo__hero-title {
        font-size: 2.2em;
    }
    .page-promo__hero-description {
        font-size: 1em;
    }
    .page-promo__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-promo__overview-section,
    .page-promo__promo-list-section,
    .page-promo__why-choose-section,
    .page-promo__faq-section,
    .page-promo__cta-section,
    .page-promo__terms-section,
    .page-promo__responsible-gambling-section {
        margin: 30px auto;
        padding: 15px;
    }
    .page-promo__overview-title,
    .page-promo__list-title,
    .page-promo__why-choose-title,
    .page-promo__faq-title,
    .page-promo__cta-title,
    .page-promo__terms-title,
    .page-promo__responsible-gambling-title {
        font-size: 1.8em;
    }
    .page-promo__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promo__promo-card img {
        height: 200px;
    }
    .page-promo__card-title {
        font-size: 1.3em;
    }
    .page-promo__card-description {
        font-size: 0.9em;
    }
    .page-promo__card-actions {
        flex-direction: column;
        gap: 8px;
    }
    .page-promo__card-button {
        padding: 10px;
        font-size: 0.85em;
    }
    .page-promo__why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promo__why-choose-item {
        padding: 20px;
    }
    .page-promo__why-choose-item-title {
        font-size: 1.4em;
    }
    .page-promo__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promo__faq-answer p {
        padding: 10px 0;
    }
    .page-promo__cta-section {
        padding: 60px 15px;
    }
    .page-promo__cta-title {
        font-size: 2em;
    }
    .page-promo__cta-description {
        font-size: 1em;
    }
    .page-promo__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Enforce image sizing for content area on mobile to prevent overflow */
    .page-promo img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images in content sections are not smaller than 200px */
.page-promo__promo-card img,
.page-promo__cta-section img {
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}

/* Specific overrides for HTML width/height to ensure responsiveness without shrinking */
.page-promo__hero-image img[width][height],
.page-promo__promo-card img[width][height],
.page-promo__cta-section img[width][height] {
    /* These CSS rules ensure the image fills its container while maintaining aspect ratio,
       and the HTML width/height prevent layout shifts. */
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure it doesn't overflow parent */
}