/* style/promotions.css */

:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --dark-bg-1: #0d0d0d; /* Assuming from shared.css */
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-light: #e0e0e0;
    --card-bg: #ffffff;
    --section-bg-light: #f1f3f5;
}

.page-promotions {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-1);
    padding-top: 120px; /* Adjust for fixed header */
}

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

/* HERO Promotions Section (not homepage hero, but a prominent banner for promotions) */
.page-promotions__hero-promotions-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.page-promotions__hero-promotions-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-promotions-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

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

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

.page-promotions__hero-promotions-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-promotions__section-description {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-promotions__cta-button--primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.page-promotions__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.page-promotions__cta-button--secondary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1);
}

.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: var(--card-bg);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-card-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-promotions__promo-card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Benefits Section */
.page-promotions__benefits-section {
    padding: 60px 0;
    background-color: var(--section-bg-light);
    color: var(--text-dark);
}

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

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

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

.page-promotions__benefits-item {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-promotions__benefits-item-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__benefits-item-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1);
}

.page-promotions__guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-promotions__guide-steps {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-promotions__step-item {
    background: var(--card-bg);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-promotions__step-number {
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.page-promotions__step-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.page-promotions__step-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-top: 5px;
}

.page-promotions__guide-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-promotions__guide-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__guide-cta-group {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* News Section */
.page-promotions__news-section {
    padding: 60px 0;
    background-color: var(--section-bg-light);
    color: var(--text-dark);
}

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

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

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

.page-promotions__news-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--text-dark);
    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 20px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__news-card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
}

.page-promotions__news-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1);
}

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

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

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

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

.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;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-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: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-promotions-title {
        font-size: 36px;
    }
    .page-promotions__section-title {
        font-size: 30px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-promotions__benefits-list, .page-promotions__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        padding-top: 100px !important; /* Mobile fixed header adjustment */
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-promotions-section {
        padding: 40px 15px;
    }
    .page-promotions__hero-promotions-title {
        font-size: 28px;
    }
    .page-promotions__hero-promotions-description {
        font-size: 16px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-promotions__section-title {
        font-size: 26px;
        margin-top: 40px;
    }
    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__types-section, .page-promotions__benefits-section, .page-promotions__guide-section, .page-promotions__news-section, .page-promotions__faq-section {
        padding: 40px 0;
    }
    .page-promotions__promo-card, .page-promotions__benefits-item, .page-promotions__news-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__promo-card-title {
        font-size: 20px;
    }
    .page-promotions__promo-card-text {
        font-size: 15px;
    }
    .page-promotions__guide-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-promotions__guide-steps {
        width: 100%;
    }
    .page-promotions__guide-image-wrapper {
        width: 100%;
        min-width: unset;
    }
    .page-promotions__guide-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__guide-cta-group .page-promotions__cta-button {
        width: 100%;
    }
    .page-promotions__news-card-image {
        height: 180px;
    }
    .page-promotions__news-card-title {
        font-size: 18px;
        margin: 15px;
    }
    .page-promotions__news-card-excerpt {
        font-size: 14px;
        margin: 0 15px 15px 15px;
    }
    .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;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__benefits-item,
    .page-promotions__news-card,
    .page-promotions__guide-steps,
    .page-promotions__guide-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-promotions-title {
        font-size: 24px;
    }
    .page-promotions__section-title {
        font-size: 22px;
    }
    .page-promotions__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-promotions__promo-card-title {
        font-size: 18px;
    }
    .page-promotions__benefits-item-title {
        font-size: 20px;
    }
    .page-promotions__step-title {
        font-size: 18px;
    }
}