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

.page-promotions {
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-dark);
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body handles header offset, this is for internal spacing */
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height to prevent excessive stretching */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 30px 20px;
    margin-top: -150px; /* Overlap slightly for visual effect, but not text on image */
    background: rgba(0, 0, 0, 0.4); /* Subtle background for readability */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.page-promotions__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 20px;
    max-width: 100%;
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive font size */
}

.page-promotions__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
    display: inline-block;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-promotions__promo-types-section,
.page-promotions__terms-conditions-section,
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Use card background for dark sections */
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-promotions__section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

.page-promotions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-promotions__card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__card-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

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

.page-promotions__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-promotions__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin: -60px auto 20px auto;
    border: 3px solid var(--deep-green-color);
    box-shadow: 0 0 0 5px var(--card-bg);
}

.page-promotions__step-item:nth-child(1) .page-promotions__step-number { margin-top: -60px; }
.page-promotions__step-item:nth-child(2) .page-promotions__step-number { margin-top: -60px; }
.page-promotions__step-item:nth-child(3) .page-promotions__step-number { margin-top: -60px; }
.page-promotions__step-item:nth-child(4) .page-promotions__step-number { margin-top: -60px; }

.page-promotions__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__terms-item {
    background-color: var(--background-dark);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    padding: 18px 25px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.page-promotions__terms-item strong {
    color: var(--text-main);
}

.page-promotions__center-button {
    text-align: center;
    margin-top: 40px;
}

.page-promotions__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid transparent; /* default */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom-color: var(--border-color);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-left: 20px;
    color: var(--gold-color);
    line-height: 1;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-item summary {
    list-style: none;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

.page-promotions__cta-section {
    text-align: center;
    padding: 80px 0;
    background: var(--deep-green-color);
    box-shadow: inset 0 8px 30px rgba(0,0,0,0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -100px;
        padding: 25px 15px;
    }
    .page-promotions__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-promotions__steps {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content {
        margin-top: -80px;
        max-width: 95%;
        padding: 20px 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 5vw + 1rem, 2.5rem);
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__introduction-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__promo-types-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__cta-section {
        padding: 50px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw + 1rem, 2.2rem);
        margin-bottom: 30px;
    }
    .page-promotions__section-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-promotions__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 1.4rem;
    }
    .page-promotions__card-text {
        font-size: 0.9rem;
    }
    .page-promotions__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-top: -50px;
    }
    .page-promotions__step-item:nth-child(1) .page-promotions__step-number { margin-top: -50px; }
    .page-promotions__step-item:nth-child(2) .page-promotions__step-number { margin-top: -50px; }
    .page-promotions__step-item:nth-child(3) .page-promotions__step-number { margin-top: -50px; }
    .page-promotions__step-item:nth-child(4) .page-promotions__step-number { margin-top: -50px; }

    .page-promotions__terms-item {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }

    /* Mobile image responsiveness */
    .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,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-promotions__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Video responsiveness (if any, though none currently in HTML) */
    .page-promotions video,
    .page-promotions__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 15px 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 6vw + 1rem, 2.2rem);
    }
    .page-promotions__hero-description {
        font-size: 0.9rem;
    }
}