/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login-bg: #EA7C07;
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Default light background */
}

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

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

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

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

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

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

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

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

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    background-color: var(--button-login-bg); /* Using login color for primary action */
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--button-login-bg), 10%);
}

.page-promotions__btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

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

.page-promotions__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: inherit;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit;
}

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

.page-promotions__numbered-list {
    list-style: decimal inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-promotions__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: inherit;
}

/* Overview Section */
.page-promotions__overview-section, 
.page-promotions__terms-section, 
.page-promotions__faq-section {
    padding: 60px 0;
}

/* Types Section */
.page-promotions__types-section, 
.page-promotions__guide-section, 
.page-promotions__conclusion-section {
    padding: 60px 0;
}

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

.page-promotions__promo-card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    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;
    justify-content: space-between;
}

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

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

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

.page-promotions__card-description {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-promotions__card-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95em;
}

.page-promotions__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}

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

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__conclusion-section .page-promotions__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__sub-title {
        font-size: 1.3em;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        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;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__faq-item,
    .page-promotions__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
    }
}