/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default page background */
}

/* Ensure padding-top for fixed header offset */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    color: #FFFFFF;
    text-align: center;
    background-color: #26A9E0; /* Fallback background color */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
    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;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

.page-promotions__btn-tertiary {
    background-color: #EA7C07; /* Login color for action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-promotions__btn-tertiary:hover {
    background-color: #c96706;
    border-color: #c96706;
}

/* Promo Grid */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333;
}

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

.page-promotions__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure images are block elements for max-width */
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-promotions__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

/* Featured Promo Video Section */
.page-promotions__featured-promo {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
    text-align: center;
}

.page-promotions__featured-promo .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__featured-promo .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto 40px;
    max-width: 960px; /* Constrain max width for desktop */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.page-promotions__video-cta {
    margin-top: 20px;
    background-color: #EA7C07; /* Login color for strong CTA */
    border-color: #EA7C07;
}

.page-promotions__video-cta:hover {
    background-color: #c96706;
    border-color: #c96706;
}

/* How to Participate Section */
.page-promotions__how-to-participate {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-promotions__step-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-promotions__step-text {
    font-size: 1em;
    color: #555555;
}

.page-promotions__step-text a {
    color: #EA7C07; /* Login color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-text a:hover {
    text-decoration: underline;
}

.page-promotions__important-note {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    margin-top: 40px;
    border-radius: 5px;
    color: #664d03;
    font-size: 0.95em;
}

/* Why Choose Section */
.page-promotions__why-choose {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

.page-promotions__why-choose .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__why-choose .page-promotions__section-description {
    color: #f0f0f0;
}

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

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-promotions__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
    text-align: center;
}

.page-promotions__faq-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 40px;
    display: block;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #e9ecef;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #dee2e6;
}

.page-promotions__faq-question::marker, /* Hide default marker for details */
.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for questions */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

.page-promotions__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-answer a {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__cta-bottom .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__cta-bottom-button {
    margin-top: 30px;
    background-color: #EA7C07;
    border-color: #EA7C07;
}

.page-promotions__cta-bottom-button:hover {
    background-color: #c96706;
    border-color: #c96706;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific image and container rules */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    /* Video specific mobile rules */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-promotions__featured-promo {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Button specific mobile rules */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary,
    .page-promotions a[class*="button"],
    .page-promotions 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-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__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-promotions__hero-section {
        min-height: 400px;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__faq-image {
        margin-bottom: 20px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 100px); /* Adjust padding for smaller mobile headers */
    }
}

/* Ensure content area images are not smaller than 200px */
.page-promotions__promo-card img,
.page-promotions__faq-image {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure no CSS filter is used for images */
.page-promotions img {
  filter: none;
}