/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07;
    --background-light: #f8f9fa;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

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

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    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);
}

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

.page-promotions__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-offset, 120px) 0 80px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

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

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

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

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

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

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--text-dark);
}

.page-promotions__promotions-grid {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

.page-promotions__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-promotions__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-promotions__card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-promotions__details-section .page-promotions__section-title {
    color: var(--text-light);
}

.page-promotions__details-section .page-promotions__section-description {
    color: rgba(255, 255, 255, 0.8);
}

.page-promotions__detail-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions__detail-title {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.page-promotions__detail-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions__detail-text strong {
    color: var(--secondary-color);
}

.page-promotions__detail-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    display: block;
}

.page-promotions__cta-bottom {
    text-align: center;
    padding: 50px 0 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 60px;
}

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

.page-promotions__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__faq-section .page-promotions__section-description {
    color: var(--text-dark);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-promotions__faq-q-text {
    margin: 0;
    color: var(--primary-color);
}

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

.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;
    background-color: var(--secondary-color);
}

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

.page-promotions__faq-a-text {
    margin: 0;
    color: #555;
    font-size: 0.95em;
}

/* General image styling for content areas */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__card-image {
        height: 220px;
    }
    .page-promotions__detail-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing if not handled by body */
        padding-bottom: 50px;
        text-align: left;
    }
    .page-promotions__hero-content {
        max-width: 100%;
        padding: 0 15px;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
        text-align: center;
    }
    .page-promotions__hero-description {
        font-size: 1em;
        text-align: center;
    }
    .page-promotions__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        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__hero-image-wrapper {
        position: relative;
        height: 200px;
        margin-top: 30px;
    }
    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-promotions__promotions-grid,
    .page-promotions__details-section,
    .page-promotions__faq-section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-promotions__card {
        margin: 0;
    }
    .page-promotions__card-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__card-text {
        font-size: 0.9em;
    }
    .page-promotions__card-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__detail-block {
        padding: 20px;
        margin-bottom: 30px;
        text-align: left;
    }
    .page-promotions__detail-title {
        font-size: 1.6em;
        text-align: center;
    }
    .page-promotions__detail-text {
        font-size: 1em;
        text-align: justify;
    }
    .page-promotions__detail-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__cta-bottom {
        padding: 30px 15px;
        margin-top: 40px;
    }
    .page-promotions__cta-title {
        font-size: 1.8em;
    }
    .page-promotions__cta-description {
        font-size: 1em;
    }

    .page-promotions__faq-list {
        margin-top: 30px;
        padding: 0 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-a-text {
        font-size: 0.9em;
    }

    /* General content area images and containers for mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__detail-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-buttons {
        flex-direction: column !important;
        gap: 10px;
    }
}

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