/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-promotions__dark-bg {
    background-color: #1A237E; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary brand color for titles */
    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: #FFD700;
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-promotions__text-block a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__text-block a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-promotions__main-title {
    font-size: 3.8em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__subtitle {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: #FFD700;
    color: #1A237E;
    border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

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

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #f0f0f0;
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

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

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

.page-promotions__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 1em;
    color: #e0e0e0;
}

.page-promotions__card-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__card-description a:hover {
    text-decoration: underline;
}

/* Featured Promos Section */
.page-promotions__featured-promos {
    padding: 80px 0;
}

.page-promotions__promo-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-promotions__category-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-promotions__category-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__category-title {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-promotions__category-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-promotions__category-title a:hover {
    text-decoration: underline;
}

.page-promotions__category-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* How-To-Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #f0f0f0;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    counter-increment: step-counter;
    padding-left: 80px;
    color: #ffffff;
}

.page-promotions__step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: #FFD700;
    color: #1A237E;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-promotions__step-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-promotions__step-item p {
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-promotions__step-item a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-item a:hover {
    text-decoration: underline;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
}

.page-promotions__terms-list {
    list-style: disc;
    max-width: 900px;
    margin: 30px auto;
    padding-left: 40px;
    color: #e0e0e0;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-promotions__terms-list strong {
    color: #FFD700;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #f0f0f0;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-promotions__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.2em;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 25px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-promotions__faq-answer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__faq-answer a:hover {
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: #FFD700;
}

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 3em;
    }
    .page-promotions__subtitle {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__text-block {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__main-title {
        font-size: 2.5em;
    }
    .page-promotions__subtitle {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__overview-section,
    .page-promotions__featured-promos,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom {
        padding: 50px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__promo-grid,
    .page-promotions__promo-category-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__promo-card,
    .page-promotions__category-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__step-item::before {
        left: 10px;
        top: 20px;
    }

    .page-promotions__step-item {
        padding-left: 60px;
    }
    
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 2em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}