/* style/promotions.css */

:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --button-hover-dark: #071a47;
    --button-hover-light: #e6c200;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light); /* Default to light text for body-like background */
    background: var(--dark-bg-1); /* Assuming --dark-bg-1 is dark */
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

@media (max-width: 768px) {
    .page-promotions {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    }
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-promotions__heading {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section */
}

.page-promotions__description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from section */
}

/* HERO Section */
.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: 180px; /* Desktop: Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), #071a47); /* Darker gradient for hero */
}

.page-promotions__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 20px;
    color: var(--text-color-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    background: var(--button-hover-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--secondary {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-left: 20px;
}

.page-promotions__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

/* Welcome Offers Section */
.page-promotions__welcome-offers {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-promotions__welcome-offers .page-promotions__heading,
.page-promotions__welcome-offers .page-promotions__description {
    color: var(--text-color-dark);
}

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

.page-promotions__card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

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

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

.page-promotions__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: inherit;
}

.page-promotions__card-text {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
    color: inherit;
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.page-promotions__btn-primary:hover {
    background: var(--button-hover-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.page-promotions__btn-secondary:hover {
    background: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Daily Offers Section */
.page-promotions__daily-offers .page-promotions__card-image {
    height: 250px; /* Fixed height for consistency */
}

/* Special Events Section */
.page-promotions__special-events {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-promotions__special-events .page-promotions__heading,
.page-promotions__special-events .page-promotions__description {
    color: var(--text-color-dark);
}

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

.page-promotions__content-block {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__sub-heading {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__content-block p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-color-dark);
    flex-grow: 1;
}

.page-promotions__content-image {
    max-width: 100%;
    height: 280px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Section */
.page-promotions__why-choose .page-promotions__heading,
.page-promotions__why-choose .page-promotions__description {
    color: var(--text-color-light);
}

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

.page-promotions__feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__feature-icon {
    max-width: 150px; /* Increased icon size */
    height: 150px; /* Fixed height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__feature-text {
    font-size: 16px;
    color: var(--text-color-light);
}

.page-promotions__cta-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Latest News Section */
.page-promotions__latest-news {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-promotions__latest-news .page-promotions__heading,
.page-promotions__latest-news .page-promotions__description {
    color: var(--text-color-dark);
}

.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: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__news-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-promotions__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

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

.page-promotions__news-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__news-excerpt {
    font-size: 15px;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

.page-promotions__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-promotions__read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    background: var(--background-light);
    color: var(--text-color-dark);
    padding-bottom: 80px;
}

.page-promotions__faq-section .page-promotions__heading,
.page-promotions__faq-section .page-promotions__description {
    color: var(--text-color-dark);
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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;
    padding: 0 15px;
    opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

.page-promotions__faq-answer p {
    color: var(--text-color-dark);
}

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

.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;
    pointer-events: none;
    color: var(--text-color-dark);
}

.page-promotions__faq-toggle {
    font-size: 24px;
    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: 28px;
    height: 28px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__heading {
        font-size: 32px;
    }
    .page-promotions__description {
        font-size: 16px;
    }
    .page-promotions__content-wrapper {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image, .page-promotions__content-image, .page-promotions__news-image {
        height: 220px; /* Adjust height for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 140px !important; /* Mobile: Ensure content is not hidden by fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-title {
        font-size: 32px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
    }
    .page-promotions__cta-button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__heading {
        font-size: 28px;
    }
    .page-promotions__description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-promotions__card-grid, .page-promotions__features-grid, .page-promotions__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card, .page-promotions__content-block, .page-promotions__feature-item, .page-promotions__news-card {
        padding: 20px;
    }
    .page-promotions__card-image, .page-promotions__content-image, .page-promotions__news-image {
        height: 180px; /* Further adjust height for mobile */
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__sub-heading {
        font-size: 22px;
    }
    .page-promotions__feature-icon {
        max-width: 100px;
        height: 100px;
    }
    .page-promotions__feature-title {
        font-size: 20px;
    }
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
    
    /* Ensure all images and containers are responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-container,
    .page-promotions__content-wrapper,
    .page-promotions__features-grid,
    .page-promotions__news-grid,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 28px;
    }
    .page-promotions__heading {
        font-size: 24px;
    }
    .page-promotions__cta-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .page-promotions__cta-button {
        width: 100%;
        max-width: 280px;
    }
    .page-promotions__card-image, .page-promotions__content-image, .page-promotions__news-image {
        height: 150px; /* Even smaller height for very small mobiles */
    }
}