/* style/promo.css */

/* Base styles for the promotions page */
.page-promo {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-promo__section-title {
    font-size: 2.5em;
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    padding-top: 40px;
}

.page-promo__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #003366; /* Fallback if image fails */
}

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

.page-promo__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.page-promo__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFCC00;
    font-weight: bold;
    line-height: 1.2;
}

.page-promo__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-promo__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-promo__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.1em;
}

.page-promo__button--primary {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.page-promo__button--primary:hover {
    background-color: #e6b800;
    color: #001a33;
}

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

.page-promo__button--secondary:hover {
    background-color: #FFCC00;
    color: #003366;
}

/* Featured Promotions Section */
.page-promo__featured-promotions {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-promo__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promo__card-title {
    font-size: 1.8em;
    color: #003366;
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-promo__card-text {
    font-size: 1em;
    color: #666666;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-promo__button--card {
    margin: 0 20px 20px 20px;
    background-color: #003366;
    color: #ffffff;
    border: 2px solid #003366;
    width: calc(100% - 40px);
}

.page-promo__button--card:hover {
    background-color: #001a33;
    border-color: #001a33;
}

/* Detail Promotions Section */
.page-promo__detail-promotions {
    padding: 80px 0;
    background-color: #eaf2f8;
}

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

.page-promo__detail-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.page-promo__detail-title {
    font-size: 1.6em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promo__detail-title a {
    color: #003366;
    text-decoration: none;
}

.page-promo__detail-title a:hover {
    color: #FFCC00;
}

.page-promo__detail-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promo__button--detail {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
    align-self: flex-start;
    padding: 10px 20px;
}

.page-promo__button--detail:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

/* How to Claim Section */
.page-promo__how-to-claim {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-promo__claim-steps {
    list-style: none;
    counter-reset: step-counter;
    margin-top: 50px;
    padding: 0;
}

.page-promo__step-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.page-promo__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: #003366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
}

.page-promo__step-title {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promo__step-text {
    font-size: 1.1em;
    color: #555555;
}

.page-promo__claim-cta {
    text-align: center;
    margin-top: 50px;
}

/* Terms & Conditions Section */
.page-promo__terms-conditions {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-promo__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-promo__terms-item {
    background-color: #ffffff;
    border-left: 5px solid #FFCC00;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-promo__terms-subtitle {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promo__terms-text {
    font-size: 1em;
    color: #666666;
}

.page-promo__terms-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-promo__faq {
    padding: 80px 0;
    background-color: #eaf2f8;
}

.page-promo__faq-item {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-promo__faq-question {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.page-promo__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: #FFCC00;
    transition: transform 0.3s ease;
}

.page-promo__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-promo__faq-answer {
    font-size: 1em;
    color: #666666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-promo__faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

/* Final Call to Action Section */
.page-promo__final-cta {
    padding: 80px 0;
    background-color: #003366;
    color: #ffffff;
    text-align: center;
}

.page-promo__final-cta .page-promo__section-title {
    color: #FFCC00;
}

.page-promo__final-cta .page-promo__section-description {
    color: #f0f0f0;
}

.page-promo__final-cta .page-promo__button--primary {
    margin-top: 30px;
    background-color: #FFCC00;
    color: #003366;
    border-color: #FFCC00;
}

.page-promo__final-cta .page-promo__button--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #001a33;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promo__main-title {
        font-size: 3em;
    }
    .page-promo__hero-description {
        font-size: 1.1em;
    }
    .page-promo__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promo {
        padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
    }
    .page-promo__hero-content {
        padding: 15px;
        width: 90%;
    }
    .page-promo__main-title {
        font-size: 2.2em;
    }
    .page-promo__hero-description {
        font-size: 0.95em;
    }
    .page-promo__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-promo__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-promo__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promo__detail-grid {
        grid-template-columns: 1fr;
    }
    .page-promo__step-item {
        padding-left: 60px;
    }
    .page-promo__step-item::before {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }
    .page-promo__section-title {
        font-size: 1.8em;
        padding-top: 20px;
    }
    .page-promo__section-description {
        margin-bottom: 30px;
    }
    .page-promo__card-image, .page-promo__promo-card img, .page-promo__detail-card img {
        max-width: 100%;
        height: auto;
    }
    /* Mobile overflow prevention */
    .page-promo, .page-promo__container, .page-promo__hero-section {
        overflow-x: hidden;
    }
    .page-promo__hero-image {
        width: auto; /* Allow image to be wider than viewport if necessary for content, but contain with overflow-x: hidden on parent */
        min-width: 100%;
    }
    .page-promo img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-promo__main-title {
        font-size: 1.8em;
    }
    .page-promo__hero-description {
        font-size: 0.9em;
    }
    .page-promo__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promo__section-title {
        font-size: 1.5em;
    }
    .page-promo__promo-card, .page-promo__detail-card {
        padding: 20px;
    }
    .page-promo__card-title, .page-promo__detail-title, .page-promo__faq-question, .page-promo__terms-subtitle, .page-promo__step-title {
        font-size: 1.3em;
    }
}