/* style/promotions.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* body already handles --header-offset */
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8); /* Allow subtle filters for background images to ensure text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    transform: translateY(-2px);
}

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

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

.page-promotions__overview-section,
.page-promotions__promo-highlight-section,
.page-promotions__guide-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-promotions__overview-section .page-promotions__section-title,
.page-promotions__guide-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__promo-highlight-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--text-light);
}

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

.page-promotions__text-block {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text-link {
    color: var(--login-color);
    text-decoration: underline;
    font-weight: bold;
}

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

.page-promotions__feature-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: var(--text-dark);
}

.page-promotions__feature-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__feature-description {
    font-size: 1rem;
    color: #555;
}

.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);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-dark);
}

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

.page-promotions__card-title {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__card-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

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

.page-promotions__guide-item {
    background-color: var(--secondary-color);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    color: var(--text-dark);
}

.page-promotions__guide-step-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__guide-step-description {
    font-size: 1rem;
    color: #555;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-promotions__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

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

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

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

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

.page-promotions__faq-answer a {
    color: var(--login-color);
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__promo-highlight-section,
    .page-promotions__guide-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-promotions__hero-content {
        padding: 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 20px;
    }
    .page-promotions__cta-button,
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .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-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add spacing for stacked buttons */
    }
    .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;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    .page-promotions__feature-grid,
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__faq-item summary {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-promotions__overview-section,
    .page-promotions__promo-highlight-section,
    .page-promotions__guide-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 15px;
    }
    .page-promotions__promo-card {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    }
    .page-promotions__card-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
}

/* Allow subtle filter for hero image for better text contrast */
.page-promotions__hero-image-wrapper img {
    filter: brightness(0.6) grayscale(0.2); /* Adjust brightness and add a slight grayscale */
    transition: filter 0.3s ease;
}

.page-promotions__hero-image-wrapper:hover img {
    filter: brightness(0.7) grayscale(0.1); /* Slightly brighter on hover */
}