/* style/promotions.css */

/* Variables from color scheme */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-bg-dark: #08160F;
    --color-card-bg: #11271B;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-bg-dark); /* Main background color */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-deep-green); /* Fallback */
    padding-top: 10px; /* Small top padding */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height on desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not text on image */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px); /* Adjust position */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styles */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-divider);
}

.page-promotions__introduction,
.page-promotions__guide,
.page-promotions__tips,
.page-promotions__conclusion {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
}

.page-promotions__promo-types,
.page-promotions__terms,
.page-promotions__faq-section {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
}

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

.page-promotions__heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-gold);
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__sub-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-secondary);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

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

.page-promotions__list-item {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--color-text-main);
}

.page-promotions__list-item::before {
    content: '✓';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-promotions__numbered-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
    counter-reset: promotion-step;
}

.page-promotions__numbered-list .page-promotions__list-item {
    padding-left: 40px;
    position: relative;
    margin-bottom: 25px;
}

.page-promotions__numbered-list .page-promotions__list-item::before {
    counter-increment: promotion-step;
    content: counter(promotion-step) ". ";
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.page-promotions__full-width-btn {
    width: 100%;
    max-width: 400px; /* Limit width on desktop */
    margin-top: 30px;
}

/* Promo Card Grid */
.page-promotions__promo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

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

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

.page-promotions__card-list {
    margin-top: 15px;
    margin-bottom: 20px;
}

.page-promotions__card-button {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

.page-promotions__content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
    color: var(--color-gold);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

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

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

/* Conclusion Section */
.page-promotions__conclusion {
    background-color: var(--color-bg-dark);
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 30px 15px;
        transform: translateY(-30px);
        margin-top: -80px;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-promotions__hero-description {
        font-size: 1rem;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__heading {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
        margin-bottom: 25px;
    }

    .page-promotions__sub-heading {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }

    .page-promotions__hero-content {
        margin-top: -60px;
        transform: translateY(-20px);
        padding: 25px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-promotions__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__promo-card-grid,
    .page-promotions__promo-card,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__heading {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-promotions__sub-heading {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-top: 25px;
    }

    .page-promotions__text,
    .page-promotions__list-item,
    .page-promotions__card-text,
    .page-promotions__faq-answer p {
        font-size: 0.95rem;
    }

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

    .page-promotions__promo-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promo-card {
        padding: 20px;
    }

    .page-promotions__card-title {
        font-size: 1.3rem;
    }

    .page-promotions__faq-item summary {
        padding: 15px;
        font-size: 1.05rem;
    }

    .page-promotions__faq-qtext {
        font-size: 1.05rem;
    }

    .page-promotions__faq-toggle {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-image-wrapper {
        max-height: 300px;
    }
    .page-promotions__hero-content {
        margin-top: -40px;
        transform: translateY(-10px);
        padding: 20px 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-promotions__hero-description {
        font-size: 0.9rem;
    }
    .page-promotions__cta-buttons {
        gap: 10px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .page-promotions__section,
    .page-promotions__container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-promotions__heading {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .page-promotions__list-item,
    .page-promotions__text,
    .page-promotions__card-text,
    .page-promotions__faq-answer p {
        font-size: 0.9rem;
    }
    .page-promotions__faq-item summary {
        font-size: 1rem;
    }
    .page-promotions__faq-qtext {
        font-size: 1rem;
    }
    .page-promotions__faq-toggle {
        font-size: 1.3rem;
    }
}