/* style/promotions.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Black */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f8f9fa;
    --background-dark: #0d0d0d;
    --gray-border: #e0e0e0;
    --button-hover-darken: #e6c200;
}

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

/* Ensure page content is not covered by fixed header */
.page-promotions__banner-section {
    padding-top: 120px; /* Desktop: Adjust based on shared header height */
}

.page-promotions__section-spacing {
    padding: 60px 0;
}

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-promotions__text-link:hover {
    text-decoration: underline;
    color: var(--button-hover-darken);
}

/* Banner Section */
.page-promotions__banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden;
}

.page-promotions__banner-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__banner-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-promotions__banner-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-promotions__cta-button:hover {
    background: var(--button-hover-darken);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
}

.page-promotions__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
}

/* Promotion Types Grid */
.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__promo-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-promotions__promo-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto; /* Push button to bottom */
    border: none;
}

.page-promotions__card-button:hover {
    background: var(--button-hover-darken);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Tips Section */
.page-promotions__tips-section {
    background-color: var(--background-light);
}

.page-promotions__tips-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.page-promotions__tips-list li {
    background: #ffffff;
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.page-promotions__tips-list li:hover {
    transform: translateX(5px);
}

.page-promotions__tips-list li strong {
    color: var(--secondary-color);
}

/* Benefits Section */
.page-promotions__benefits-section {
    background-color: #f0f0f0;
}

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

.page-promotions__benefits-list li {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dark);
    border-top: 4px solid var(--primary-color);
}

.page-promotions__benefits-list li strong {
    color: var(--secondary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--background-light);
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none;
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-top: none;
    border-left: 1px solid var(--gray-border);
    border-right: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to accommodate content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-promotions__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

/* News Section */
.page-promotions__news-section {
    background-color: #f0f0f0;
}

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

.page-promotions__news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-promotions__news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-promotions__news-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__news-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-promotions__news-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.page-promotions__news-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__news-readmore {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
}

.page-promotions__news-readmore:hover {
    text-decoration: underline;
}

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

/* Conclusion Section */
.page-promotions__conclusion-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
    color: var(--text-light);
    text-align: center;
}

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

.page-promotions__conclusion-section .page-promotions__text-block {
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions__conclusion-section .page-promotions__text-link {
    color: var(--primary-color);
}

.page-promotions__final-cta {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__main-title {
        font-size: 40px;
    }
    .page-promotions__banner-description {
        font-size: 18px;
    }
    .page-promotions__text-block, .page-promotions__tips-list li, .page-promotions__benefits-list li, .page-promotions__faq-answer p, .page-promotions__news-excerpt {
        font-size: 16px;
    }
    .page-promotions__promo-title, .page-promotions__news-title {
        font-size: 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-promotions__banner-section {
        padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
        padding-bottom: 40px;
    }
    .page-promotions__section-spacing {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__banner-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .page-promotions__cta-button--large {
        padding: 15px 40px;
        font-size: 20px;
    }
    .page-promotions__promo-grid, .page-promotions__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-promotions__promo-image {
        height: 200px;
    }
    .page-promotions__promo-content, .page-promotions__news-content {
        padding: 20px;
    }
    .page-promotions__promo-title, .page-promotions__news-title {
        font-size: 18px;
    }
    .page-promotions__promo-description, .page-promotions__news-excerpt {
        font-size: 15px;
    }
    .page-promotions__card-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-promotions__tips-list li, .page-promotions__benefits-list li {
        padding: 15px 20px;
        font-size: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }
    .page-promotions__news-image {
        height: 180px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-promotions__banner-container,
    .page-promotions__promo-card,
    .page-promotions__news-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 24px;
    }
    .page-promotions__main-title {
        font-size: 28px;
    }
    .page-promotions__cta-button {
        font-size: 16px;
        padding: 10px 25px;
    }
    .page-promotions__cta-button--large {
        font-size: 18px;
        padding: 12px 30px;
    }
    .page-promotions__promo-title, .page-promotions__news-title {
        font-size: 17px;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
    }
    .page-promotions__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}