/* 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 background */
    background-color: var(--color-background, #FFFFFF); /* Use shared background variable */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.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.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

.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;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-promotions__section {
    padding: 60px 20px;
    background-color: var(--color-background, #FFFFFF);
    box-sizing: border-box;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box;
}

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

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

/* Featured Promotions Section */
.page-promotions__featured-promos {
    background-color: #f8f8f8;
}

.page-promotions__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 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;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
}

.page-promotions__promo-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-promotions__promo-card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

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

.page-promotions__promo-card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures text takes available space */
}

/* VIP Program Section */
.page-promotions__dark-bg {
    background-color: #26A9E0; /* Main brand color for dark background */
    color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__section-description {
    color: #FFFFFF;
}

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

.page-promotions__vip-feature-item {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
    border-radius: 10px;
    color: #FFFFFF;
}

.page-promotions__vip-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.page-promotions__vip-feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-promotions__vip-feature-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-promotions__vip-cta {
    text-align: center;
    margin-top: 50px;
}

/* How to Join Section */
.page-promotions__how-to-join {
    background-color: #FFFFFF;
}

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

.page-promotions__step-item {
    text-align: center;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fcfcfc;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
    background: #e0f2f7;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-promotions__step-title {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Terms and Conditions Section */
.page-promotions__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-promotions__terms-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__terms-image {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-promotions__terms-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions__terms-list li {
    background-color: #FFFFFF;
    border-left: 4px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-promotions__terms-list li strong {
    color: #26A9E0;
}

.page-promotions__read-more {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
}

.page-promotions__read-more a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* FAQ Section */
.page-promotions__faq {
    background-color: #FFFFFF;
}

.page-promotions__faq-list {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: flex-start; /* Align image to top */
}

.page-promotions__faq-image {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-promotions__faq-items-wrapper {
    flex: 2;
    min-width: 300px;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7fc;
    border-bottom: 1px solid #d0eaf5;
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an 'x' */
}

.page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #eee;
}

.page-promotions__faq-answer p {
    margin: 0;
}

.page-promotions__faq-item summary { /* For native details element */
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker { /* Hide default marker for Chrome/Safari */
    display: none;
}


/* Final CTA Section */
.page-promotions__cta-final {
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__section-description {
    color: #FFFFFF;
}

.page-promotions__cta-final .page-promotions__cta-buttons {
    margin-top: 40px;
}

/* Button Styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-large {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.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-small {
    padding: 8px 18px;
    font-size: 0.9em;
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 1px solid #26A9E0;
}

.page-promotions__btn-small:hover {
    background-color: #1e87b8;
    border-color: #1e87b8;
}

.page-promotions__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Specific button for login/register from custom colors */
.page-promotions a[href="login.html"] { /* Targeting specific internal link for login button */
  background-color: #EA7C07; /* Login color */
  border-color: #EA7C07;
  color: #FFFFFF;
}

.page-promotions a[href="login.html"]:hover {
  background-color: #c06305;
  border-color: #c06305;
}


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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small,
    .page-promotions__btn-large {
        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__section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px !important; /* Force padding for all containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-promotions__promo-cards,
    .page-promotions__vip-features,
    .page-promotions__steps {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-promotions__terms-content,
    .page-promotions__faq-list {
        flex-direction: column;
        gap: 30px;
    }

    .page-promotions__terms-image,
    .page-promotions__faq-image {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
    }

    /* Images and Videos Responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containers with images/videos */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-section {
        height: 400px;
    }
}