/* style/promotions.css */

/* Custom Colors */
: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 {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-promotions-text-main); /* Default text color for dark backgrounds */
    background-color: var(--page-promotions-background);
}

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

.page-promotions__dark-section {
    background-color: var(--page-promotions-background);
    color: var(--page-promotions-text-main);
}

.page-promotions__light-bg {
    background-color: #f8f9fa; /* A light background for contrast */
    color: #333333; /* Dark text for light background */
}

/* 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; /* Small top padding, body handles header offset */
    padding-top: 10px; /* Decorative top padding */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 8px;
    margin-top: -100px; /* Adjust to bring content slightly over image bottom, but not covering text */
}

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

.page-promotions__description {
    font-size: 1.1em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--page-promotions-button-gradient);
    color: var(--page-promotions-text-main);
    border: none;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
}

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

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

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-promotions__intro-section, 
.page-promotions__guide-section, 
.page-promotions__why-choose-section,
.page-promotions__cta-bottom-section {
    padding: 60px 20px;
}

.page-promotions__types-section, 
.page-promotions__terms-section,
.page-promotions__faq-section {
    padding: 60px 20px;
}

/* Promotion Grid */
.page-promotions__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promotion-card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--page-promotions-border);
    color: var(--page-promotions-text-main);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--page-promotions-text-main);
    padding: 0 15px;
}

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

.page-promotions__card-button {
    margin-top: auto;
    margin-left: 15px;
    margin-right: 15px;
}

/* Steps List */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--page-promotions-primary-color);
    color: #333333;
}

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

.page-promotions__step-item p {
    color: #555555;
}

.page-promotions__step-item a {
    color: var(--page-promotions-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-item a:hover {
    text-decoration: underline;
}

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--page-promotions-deep-green);
    color: var(--page-promotions-text-main);
}

.page-promotions__terms-subtitle {
    font-size: 1.4em;
    color: var(--page-promotions-gold);
    margin-bottom: 10px;
}

.page-promotions__terms-item p {
    color: var(--page-promotions-text-secondary);
}

.page-promotions__footer-text {
    text-align: center;
    margin-top: 30px;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__footer-text a {
    color: var(--page-promotions-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__footer-text a:hover {
    text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__reason-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-promotions__reason-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--page-promotions-secondary-color);
    color: #333333;
}

.page-promotions__reason-subtitle {
    font-size: 1.3em;
    color: var(--page-promotions-deep-green);
    margin-bottom: 10px;
}

.page-promotions__reason-item p {
    color: #555555;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-promotions-text-main);
    background-color: var(--page-promotions-deep-green);
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
}

.page-promotions__faq-answer {
    padding: 0 25px 15px;
    font-size: 0.95em;
    color: var(--page-promotions-text-secondary);
}

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

.page-promotions__faq-answer a {
    color: var(--page-promotions-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    text-align: center;
    padding: 60px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -50px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-promotions__description,
    .page-promotions__section-description,
    .page-promotions__card-text,
    .page-promotions__step-item p,
    .page-promotions__terms-item p,
    .page-promotions__reason-item p,
    .page-promotions__faq-answer p {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__promotion-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__promotion-card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__reason-item,
    .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 img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-promotions__card-image {
        height: auto;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 300px;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 10px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-content {
        background: rgba(0, 0, 0, 0.7); /* Slightly darker background for text on mobile */
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__hero-content {
        margin-top: -20px;
    }
}