/* style/promotions.css */

/* General styles for the page-promotions scope */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    background-color: var(--background-color, #08160F); /* Page background color */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__sub-title {
    font-size: 1.8em;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions a {
    color: var(--glow, #57E38D);
    text-decoration: none;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--background-color, #08160F);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: 3em; /* Adjusted to be large but not excessively */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-promotions__description {
    font-size: 1.3em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-gold,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 180px;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--glow, #57E38D);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--glow, #57E38D);
    color: var(--background-color, #08160F);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

.page-promotions__btn-gold {
    background-color: var(--gold, #F2C14E);
    color: var(--deep-green, #0A4B2C);
    border: none;
}

.page-promotions__btn-gold:hover {
    background-color: #e0b040;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Introduction Section */
.page-promotions__section--introduction .page-promotions__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__image-text-block {
    display: flex;
    flex-direction: row; /* Default desktop layout */
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__image-text-block .page-promotions__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-promotions__image-text-block .page-promotions__text-content {
    flex: 2;
}

.page-promotions__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Types Section */
.page-promotions__section--types {
    background-color: var(--card-bg, #11271B); /* Darker background for card section */
}

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

.page-promotions__card {
    background-color: var(--card-bg, #11271B);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider, #1E3A2A);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card-title {
    font-size: 1.7em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-sub-title {
    font-size: 1.3em;
    color: var(--glow, #57E38D);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-promotions__card-text {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

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

.page-promotions__step-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider, #1E3A2A);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-promotions__step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(42, 209, 111, 0.5);
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Terms Section */
.page-promotions__section--terms {
    background-color: var(--background-color, #08160F);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__list-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__list-title {
    font-size: 1.4em;
    color: var(--glow, #57E38D);
    margin-bottom: 10px;
}

.page-promotions__list-text {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-promotions__section--faq {
    background-color: var(--card-bg, #11271B);
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
    background-color: var(--border, #2E7A4E);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--border, #2E7A4E);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-promotions__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    background-color: var(--card-bg, #11271B);
    border-top: 1px solid var(--divider, #1E3A2A);
}

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

.page-promotions__faq-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--glow, #57E38D);
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-promotions__section--cta-bottom .page-promotions__container {
    background-color: var(--card-bg, #11271B);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__section-title--cta {
    font-size: 2.2em;
    margin-bottom: 25px;
}

/* Image specific styles - ensure no filter */
.page-promotions img {
  filter: none; /* Ensure no CSS filter is applied */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions__main-title {
        font-size: 2.5em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__sub-title {
        font-size: 1.5em;
    }
    .page-promotions__image-text-block {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

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

    .page-promotions__description {
        font-size: 1.1em;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-gold,
    .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: 12px 20px; /* Adjust padding for smaller screens */
    }
    
    .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;
    }
    
    /* Ensure all images are responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all video elements are responsive */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video containers mobile adaptation */
    .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: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Video section top padding on mobile */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-promotions__container,
    .page-promotions__section--cta-bottom .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right already applied to container */
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__sub-title {
        font-size: 1.3em;
    }
    .page-promotions__hero-content {
        padding: 0 10px;
    }
    .page-promotions__card-title {
        font-size: 1.5em;
    }
    .page-promotions__step-title {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 20px;
    }
}