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

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--bg-color);
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.3; /* Subtle overlay */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    margin-top: 100px; /* Space from top edge */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Section General */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-promotions__section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

.page-promotions__overview-item.page-promotions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure min height for card content */
}

.page-promotions__overview-item.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Details Section - Promotion Cards */
.page-promotions__details-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

.page-promotions__promo-card.page-promotions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-promotions__card-button {
    margin-top: auto;
    width: 100%;
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-promotions__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.page-promotions__guide-item {
    counter-increment: guide-counter;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 60px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.page-promotions__guide-item::before {
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.page-promotions__guide-item strong {
    color: var(--gold-color);
}

.page-promotions__guide-footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 30px;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.1);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: var(--gold-color);
}

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

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

/* Footer CTA Section */
.page-promotions__cta-footer-section {
    padding: 60px 0 80px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.page-promotions__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-promotions__text-link:hover {
    color: var(--gold-color);
}

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

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

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

    .page-promotions__overview-grid,
    .page-promotions__promo-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-promotions__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-promotions__hero-section {
        padding: 40px 0;
        padding-top: 10px !important;
    }

    .page-promotions__hero-content {
        margin-top: 20px;
        padding: 20px 15px;
    }

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

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

    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1rem;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding-top: 30px;
    }

    .page-promotions__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .page-promotions__card-image {
        height: 200px;
    }

    .page-promotions__card-content {
        padding: 20px;
    }

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

    .page-promotions__card-text {
        font-size: 0.9rem;
    }

    .page-promotions__guide-item {
        padding: 20px 20px 20px 50px;
        font-size: 1rem;
    }

    .page-promotions__guide-item::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px 20px;
    }

    /* Image specific mobile styles */
    .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-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__overview-item.page-promotions__card, .page-promotions__promo-card.page-promotions__card {
        min-height: auto; /* Allow height to adjust on mobile */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        padding: 15px 10px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-promotions__cta-button {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

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

    .page-promotions__section-description {
        font-size: 0.85rem;
    }

    .page-promotions__guide-item {
        font-size: 0.95rem;
    }

    .page-promotions__faq-question {
        font-size: 0.95rem;
    }
}