/* style/promotions.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-light: #ffffff;
    --background-dark: var(--black-color, #000000); /* Fallback to black if --black-color is not defined */
}

.page-promotions {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark); /* Ensure it matches body background */
}

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

.page-promotions__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__section {
    padding: 80px 0;
}

.page-promotions__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-promotions__link-title {
    color: inherit; /* Ensure link in title inherits color */
    text-decoration: none;
}

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

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

.page-promotions__paragraph strong {
    color: var(--primary-color); /* Highlight keywords with brand color */
}

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

.page-promotions__card {
    background-color: var(--background-light);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 0 20px 15px 20px;
    line-height: 1.3;
}

.page-promotions__card-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-promotions__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 20px 25px 20px;
    flex-grow: 1;
}

.page-promotions__card-btn {
    margin: 0 20px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

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

.page-promotions__btn-primary:hover {
    background-color: #1e87b6; /* Darken primary color */
    border-color: #1e87b6;
    transform: translateY(-2px);
}

.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(--text-light);
    transform: translateY(-2px);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--background-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

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

.page-promotions__link-text {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__link-text:hover {
    text-decoration: underline;
}

.page-promotions__step-description {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-promotions__conditions-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 30px;
    color: var(--text-light);
}

.page-promotions__conditions-item {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-promotions__conditions-item strong {
    color: var(--secondary-color);
}

.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__advantages-item {
    background-color: var(--background-light);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
}

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

.page-promotions__advantages-description {
    font-size: 1em;
    line-height: 1.6;
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--background-light);
    color: var(--text-dark);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-promotions__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 0;
}

.page-promotions__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-promotions__cta-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-promotions__cta-button {
    background-color: var(--login-button-color); /* Use specific login color */
    border-color: var(--login-button-color);
}

.page-promotions__cta-button:hover {
    background-color: #c06305; /* Darken login button color */
    border-color: #c06305;
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__section {
        padding: 60px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__paragraph {
        font-size: 0.95em;
    }
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card {
        padding-bottom: 20px;
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__step-title {
        font-size: 1.5em;
    }
    .page-promotions__conditions-list,
    .page-promotions__advantages-list {
        margin-left: 10px;
    }
    .page-promotions__advantages-item {
        padding: 20px;
    }
    .page-promotions__advantages-title {
        font-size: 1.4em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
    .page-promotions__cta-section {
        padding: 60px 0;
    }
    .page-promotions__cta-title {
        font-size: 2em;
    }
    .page-promotions__cta-description {
        font-size: 1em;
    }
    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__promotions-grid,
    .page-promotions__advantages-list,
    .page-promotions__faq-list,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }
    .page-promotions__hero-cta-group > a {
        width: 100%;
    }
}

/* Ensure no image filter */
.page-promotions img {
    filter: none;
}

/* Content area image CSS size restriction */
.page-promotions__card-image,
.page-promotions__hero-image {
    min-width: 200px;
    min-height: 200px;
}

/* Text color for specific background */
.page-promotions__dark-bg {
    color: var(--text-light);
}
.page-promotions__light-bg {
    color: var(--text-dark);
}