/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-text: #FFFF00;
    --button-login-text: #FFFF00;
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for dark body background */
    background-color: #121212; /* Body background from shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

.page-promotions__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-promotions__video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    cursor: pointer;
}

.page-promotions__hero-section > .page-promotions__container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark-bg);
}

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

/* General Section Styles */
.page-promotions__intro-section, 
.page-promotions__guide-section, 
.page-promotions__tips-section, 
.page-promotions__cta-final-section {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
    padding: 60px 0;
}

.page-promotions__promo-types-section, 
.page-promotions__terms-section, 
.page-promotions__faq-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: var(--text-on-dark-bg);
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-promotions__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.7;
}

.page-promotions__paragraph strong {
    color: var(--primary-color);
}

/* Grid Layout for Promo Cards and Tips */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card, .page-promotions__tip-card {
    background-color: #2a2a2a; /* Card background for dark sections */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--text-on-dark-bg);
}

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

.page-promotions__card-title, .page-promotions__tip-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__card-title a, .page-promotions__tip-title a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-promotions__card-text, .page-promotions__tip-description {
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-promotions__card-list {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-promotions__card-list li {
    margin-bottom: 8px;
}

/* Step List for Guide Section */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
}

.page-promotions__step-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-promotions__step-description {
    font-size: 1.05em;
    color: var(--text-on-light-bg);
}

.page-promotions__cta-buttons--inline {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: disc outside;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1.05em;
    color: var(--text-on-dark-bg);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

.page-promotions__terms-list li strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: #2a2a2a; /* FAQ item background for dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-dark-bg);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #3a3a3a; /* Slightly darker for question header */
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 1px solid #4a4a4a;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid #4a4a4a;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-on-dark-bg);
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: var(--text-on-dark-bg);
    background-color: #2a2a2a;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 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-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: var(--button-register-bg); /* #C30808 */
    color: var(--button-register-text); /* #FFFF00 */
    border: 2px solid var(--button-register-bg);
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #fff;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Final CTA Section */
.page-promotions__cta-final-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__cta-final-section .page-promotions__paragraph {
    color: var(--text-on-light-bg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promo-card, .page-promotions__tip-card {
        padding: 20px;
    }
    .page-promotions__promo-card .page-promotions__card-image, .page-promotions__tip-card .page-promotions__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 450px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__container {
        padding: 15px;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card, .page-promotions__tip-card {
        padding: 15px;
    }
    .page-promotions__promo-card .page-promotions__card-image, .page-promotions__tip-card .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title, .page-promotions__tip-title {
        font-size: 1.4em;
    }
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__step-title {
        font-size: 1.5em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Mobile image and video responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section, .page-promotions__card, .page-promotions__container, .page-promotions__video-section, .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;
    }
    .page-promotions video, .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__cta-buttons {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__promo-card .page-promotions__card-image, .page-promotions__tip-card .page-promotions__card-image {
        height: 150px;
    }
    .page-promotions__card-title, .page-promotions__tip-title {
        font-size: 1.2em;
    }
}