/* style/promotions.css */

/* General Styles for page-promotions */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page */
}

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1A202C;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-promotions__section-title--light {
    color: #ffffff;
}

.page-promotions__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__section-description--light {
    color: #cccccc;
}

/* Hero Section (Module 1: H1 Title + CTA Buttons) */
.page-promotions__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Base padding, adjust for header offset if needed */
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-promotions__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold color for H1 */
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for primary buttons */
}

.page-promotions__cta-button--primary {
    background: #FFD700; /* Auxiliary color */
    color: #1A202C; /* Main color text */
    border: 2px solid #FFD700;
}

.page-promotions__cta-button--primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-promotions__cta-button--secondary:hover {
    background: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Promotions List Section */
.page-promotions__list-section {
    padding: 80px 0;
    background-color: #f0f2f5; /* Light background */
}

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

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

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

.page-promotions__promotion-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-promotions__promotion-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promotion-title a {
    color: #1A202C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promotion-title a:hover {
    color: #FFD700;
}

.page-promotions__promotion-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__read-more-button {
    display: inline-block;
    padding: 10px 25px;
    background: #1A202C;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-promotions__read-more-button:hover {
    background: #FFD700;
    color: #1A202C;
    transform: translateY(-1px);
}

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

/* FAQ Section (Module 2) */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #1A202C; /* Dark background */
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2D3748; /* Slightly lighter dark background */
    border: 1px solid #3A4557;
    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: #3A4557;
    border-color: #4A5568;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Gold text for questions */
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #ffffff;
    transform: rotate(180deg); /* Rotate for minus sign */
}

.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: #2D3748; /* Consistent dark background */
    color: #e0e0e0; /* Light text for answer */
    border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #3A4557;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Brand Section (Module 3) */
.page-promotions__brand-section {
    padding: 80px 0;
    background-color: #f0f2f5; /* Light background */
}

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

.page-promotions__brand-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-promotions__brand-item:hover {
    transform: translateY(-5px);
}

.page-promotions__brand-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 15px;
}

.page-promotions__brand-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

.page-promotions__brand-image-wrapper {
    text-align: center;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__brand-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* Blog Section (Module 4) */
.page-promotions__blog-section {
    padding: 80px 0;
    background-color: #1A202C; /* Dark background */
}

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

.page-promotions__blog-item {
    background: #2D3748;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-promotions__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__blog-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-promotions__blog-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #FFD700; /* Gold text for blog titles */
    transition: color 0.3s ease;
}

.page-promotions__blog-link:hover .page-promotions__blog-item-title {
    color: #ffffff;
}

.page-promotions__blog-item-excerpt {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__blog-item-date {
    font-size: 14px;
    color: #999999;
    align-self: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 30px;
    }
    .page-promotions__promotion-title {
        font-size: 22px;
    }
    .page-promotions__blog-item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Header offset already handled by var(--header-offset) */
    .page-promotions__hero-section {
        padding: 80px 15px 60px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    
    .page-promotions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-promotions__section-title {
        font-size: 28px;
        padding-top: 30px;
    }

    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .page-promotions__list-section,
    .page-promotions__faq-section,
    .page-promotions__brand-section,
    .page-promotions__blog-section {
        padding: 50px 0;
    }

    .page-promotions__promotion-grid,
    .page-promotions__blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-promotions__promotion-card,
    .page-promotions__blog-item,
    .page-promotions__brand-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
        border-radius: 8px;
    }

    .page-promotions__promotion-image,
    .page-promotions__blog-image,
    .page-promotions__brand-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        display: block !important;
    }
    
    .page-promotions__promotion-image {
        height: 200px; /* Maintain a consistent height for cards on mobile */
    }
    .page-promotions__blog-image {
        height: 180px;
    }

    .page-promotions__promotion-content,
    .page-promotions__blog-content {
        padding: 20px;
    }

    .page-promotions__promotion-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-promotions__promotion-excerpt {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .page-promotions__read-more-button {
        padding: 8px 20px;
        font-size: 15px;
    }
    
    .page-promotions__view-all-cta {
        margin-top: 40px;
    }

    /* FAQ Mobile */
    .page-promotions__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .page-promotions__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
        margin-bottom: 0;
    }
    
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Brand Section Mobile */
    .page-promotions__brand-content {
        gap: 20px;
    }
    .page-promotions__brand-item {
        padding: 25px;
    }
    .page-promotions__brand-item-title {
        font-size: 20px;
    }
    .page-promotions__brand-item p {
        font-size: 15px;
    }
    .page-promotions__brand-image-wrapper {
      margin-top: 40px;
      border-radius: 8px;
    }

    /* Blog Section Mobile */
    .page-promotions__blog-item-title {
        font-size: 18px;
    }
    .page-promotions__blog-item-excerpt {
        font-size: 14px;
    }
    .page-promotions__blog-item-date {
        font-size: 13px;
    }

    /* Ensure all content containers are constrained on mobile */
    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__list-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__brand-section .page-promotions__container,
    .page-promotions__blog-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}