/* style/promotions.css */

/* Custom colors from requirements */
:root {
    --promotions-background: #08160F;
    --promotions-card-bg: #11271B;
    --promotions-text-main: #F2FFF6;
    --promotions-text-secondary: #A7D9B8;
    --promotions-border: #2E7A4E;
    --promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --promotions-glow: #57E38D;
    --promotions-gold: #F2C14E;
    --promotions-divider: #1E3A2A;
    --promotions-deep-green: #0A4B2C;
    --promotions-primary-color: #11A84E; /* Main color from prompt */
    --promotions-secondary-color: #22C768; /* Aux color from prompt */
}

/* Base styles for the page content, considering dark body background */
.page-promotions {
    background-color: var(--promotions-background); /* Explicitly set main background */
    color: var(--promotions-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-promotions__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
    background-color: var(--promotions-background);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    color: var(--promotions-gold); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__description-text {
    font-size: 1.15rem;
    color: var(--promotions-text-secondary); /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-promotions__btn-primary {
    background: var(--promotions-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--promotions-glow);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--promotions-gold); /* Gold text for secondary button */
    border: 2px solid var(--promotions-gold);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--promotions-gold);
    color: var(--promotions-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    background-color: var(--promotions-background); /* Lighter background for these sections */
    color: var(--promotions-text-main);
    padding: 80px 0;
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-final {
    background-color: var(--promotions-card-bg); /* Darker background for these sections */
    color: var(--promotions-text-main);
    padding: 80px 0;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--promotions-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.page-promotions__section-description,
.page-promotions__intro-text {
    font-size: 1.1rem;
    color: var(--promotions-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

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

.page-promotions__feature-item {
    text-align: center;
    background-color: var(--promotions-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--promotions-border);
}

.page-promotions__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--promotions-glow));
}

.page-promotions__feature-title {
    font-size: 1.5rem;
    color: var(--promotions-gold);
    margin-bottom: 15px;
}

.page-promotions__feature-description {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
}

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

.page-promotions__promo-card {
    background-color: var(--promotions-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--promotions-border);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

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

.page-promotions__card-title {
    font-size: 1.6rem;
    color: var(--promotions-gold);
    padding: 20px 25px 10px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    padding: 0 25px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-promotions__promo-card .page-promotions__btn-primary {
    margin: 0 25px 25px;
    width: calc(100% - 50px);
}

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

.page-promotions__step-item {
    text-align: center;
    background-color: var(--promotions-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--promotions-border);
}

.page-promotions__step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--promotions-gold);
    margin-bottom: 15px;
    line-height: 1;
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--promotions-gold);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
}

.page-promotions__step-description a {
    color: var(--promotions-gold);
    text-decoration: underline;
}

.page-promotions__step-description a:hover {
    color: var(--promotions-glow);
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.page-promotions__terms-list li {
    background-color: var(--promotions-background); /* Lighter background for list items */
    border: 1px solid var(--promotions-divider);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--promotions-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-list li a {
    color: var(--promotions-gold);
    text-decoration: underline;
}

.page-promotions__terms-list li a:hover {
    color: var(--promotions-glow);
}

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

.page-promotions__faq-item {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--promotions-gold);
    background-color: var(--promotions-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--promotions-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-promotions__faq-question:hover {
    background-color: var(--promotions-primary-color);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    background-color: var(--promotions-card-bg);
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

.page-promotions__faq-answer a {
    color: var(--promotions-gold);
    text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
    color: var(--promotions-glow);
}

.page-promotions__cta-final {
    text-align: center;
    padding-bottom: 80px;
}

/* --- Responsive styles --- */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 2.5rem);
    }
    .page-promotions__description-text {
        font-size: 1.05rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    }
    .page-promotions__section-description,
    .page-promotions__intro-text {
        font-size: 1rem;
    }
    .page-promotions__promo-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important;
    }
    .page-promotions__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    .page-promotions__description-text {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-promotions__promo-card .page-promotions__btn-primary {
        width: calc(100% - 50px) !important; /* Adjust for card padding */
    }
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__feature-item,
    .page-promotions__promo-card,
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__promo-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 1.4rem;
        padding: 15px 20px 8px;
    }
    .page-promotions__card-description {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }
    .page-promotions__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure width is 100% */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__feature-item,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__terms-list li,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content doesn't spill */
    }
}

/* Ensure link colors have sufficient contrast */
.page-promotions a {
    color: var(--promotions-gold); /* Default link color */
    text-decoration: none;
}

.page-promotions a:hover {
    color: var(--promotions-glow);
    text-decoration: underline;
}

/* Specific text elements for contrast based on background */
.page-promotions__intro-section p,
.page-promotions__intro-section li,
.page-promotions__how-to-claim-section p,
.page-promotions__how-to-claim-section li,
.page-promotions__faq-section p,
.page-promotions__faq-section li {
    color: var(--promotions-text-secondary);
}

.page-promotions__hero-section p,
.page-promotions__hero-section li,
.page-promotions__types-section p,
.page-promotions__types-section li,
.page-promotions__terms-section p,
.page-promotions__terms-section li,
.page-promotions__cta-final p,
.page-promotions__cta-final li {
    color: var(--promotions-text-secondary);
}

.page-promotions__feature-item p,
.page-promotions__promo-card p,
.page-promotions__step-item p {
    color: var(--promotions-text-secondary);
}