/* style/promotions.css */

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

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

/* HERO Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* As per strict rule: small top padding, body handles header offset */
    background: var(--page-promotions-card-bg); /* Use a specific background for the hero section */
    overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    width: 100%; /* Ensure it takes full width within its max-width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--page-promotions-text-main); /* Ensure text color is main text color */
}

.page-promotions__hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp as per requirement for H1 */
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--page-promotions-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Mobile button adaptation */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--page-promotions-gold); /* Gold for headings */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__text-main {
    color: var(--page-promotions-text-main);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.page-promotions__text-secondary {
    color: var(--page-promotions-text-secondary);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 40px;
}

.page-promotions__dark-section {
    background-color: var(--page-promotions-card-bg); /* Use card background for dark sections */
    padding: 60px 0;
}

/* Card Styling */
.page-promotions__card {
    background-color: var(--page-promotions-deep-green); /* Use deep green for card background */
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-promotions-text-main);
    text-align: center;
}

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

.page-promotions__card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter is applied */
}

/* Intro Section Features */
.page-promotions__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__feature-item {
    padding: 30px;
}

.page-promotions__feature-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied */
}

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

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

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--page-promotions-background);
}

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

.page-promotions__promo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.page-promotions__promo-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__promo-title {
    font-size: 1.6rem;
    color: var(--page-promotions-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promo-description {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--page-promotions-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Mobile button adaptation */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__vip-section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--page-promotions-background);
    text-align: center;
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--page-promotions-gold);
    border: 2px solid var(--page-promotions-gold);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Mobile button adaptation */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
    background: var(--page-promotions-gold);
    color: var(--page-promotions-background); /* Dark text on gold background */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
}

.page-promotions__faq-list {
    margin-top: 40px;
}

details.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--page-promotions-border);
    overflow: hidden;
    background: var(--page-promotions-deep-green); /* Card BG for FAQ item */
    color: var(--page-promotions-text-main);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--page-promotions-gold); /* Question text gold */
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
    background: var(--page-promotions-card-bg); /* Slightly different hover for FAQ question */
}
.page-promotions__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--page-promotions-gold); /* Toggle icon gold */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 20px;
    background: var(--page-promotions-card-bg); /* Answer section background */
    border-radius: 0 0 5px 5px;
    color: var(--page-promotions-text-secondary); /* Answer text secondary */
    font-size: 1rem;
}

/* Blog/News Section */
.page-promotions__blog-section {
    padding: 60px 0;
    background-color: var(--page-promotions-background);
}

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

.page-promotions__blog-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 20px;
}

.page-promotions__blog-card img {
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__blog-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__blog-title a {
    color: var(--page-promotions-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__blog-title a:hover {
    color: var(--page-promotions-gold);
}

.page-promotions__blog-date {
    font-size: 0.9rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 10px;
}

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

.page-promotions__view-all {
    text-align: center;
    margin-top: 50px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 30px 15px;
    }
    .page-promotions__heading {
        font-size: 2rem;
    }
    .page-promotions__hero-content h1 {
        font-size: 2.5rem;
    }
    .page-promotions__hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__hero-content h1 {
        font-size: 2rem;
    }
    .page-promotions__hero-content p {
        font-size: 1rem;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .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-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    /* All images must be responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__blog-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-promotions__feature-item {
        padding: 20px;
    }
    .page-promotions__promo-card {
        padding: 20px;
    }
    .page-promotions__blog-card img {
        height: auto !important; /* Allow auto height for blog cards on mobile */
    }

    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 15px; }
    details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
}