/* style/promotions.css */

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

.page-promotions {
    background-color: var(--color-background); /* Body background is from shared, but sections within main can have this */
    color: var(--color-text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.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; /* Enforce image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--color-deep-green); /* A darker base for the hero */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px; /* Max width for image */
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Flexible font size for H1 */
    font-weight: 700;
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Subtle glow effect */
}

.page-promotions__description {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
    min-width: 180px; /* Minimum width for buttons */
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.3);
}

.page-promotions__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.5);
}

/* General Section Styling */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__text-block {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__intro-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 40px 0;
}

.page-promotions__intro-section {
    background-color: var(--color-card-bg); /* Darker background for contrast */
}

/* Promotions Grid */
.page-promotions__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-divider);
}

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

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

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.page-promotions__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Guide Section */
.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__guide-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.page-promotions__guide-step-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-promotions__guide-step-description a {
    color: var(--color-glow);
    text-decoration: none;
    font-weight: 500;
}

.page-promotions__guide-step-description a:hover {
    text-decoration: underline;
}

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

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__terms-item a {
    color: var(--color-glow);
    text-decoration: none;
}

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

/* Why Choose Section */
.page-promotions__why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-promotions__why-choose-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    color: var(--color-text-main);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.page-promotions__why-choose-item::before {
    content: "✅";
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--color-glow);
}

.page-promotions__why-choose-section a {
    color: var(--color-glow);
    text-decoration: none;
    font-weight: 500;
}

.page-promotions__why-choose-section a:hover {
    text-decoration: underline;
}

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-promotions__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--color-glow);
}

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

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

.page-promotions__faq-answer a {
    color: var(--color-glow);
    text-decoration: none;
    font-weight: 500;
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    background-color: var(--color-deep-green);
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__cta-bottom-section .page-promotions__section-title {
    padding-top: 0;
    margin-bottom: 25px;
    color: var(--color-gold);
}

.page-promotions__cta-bottom-section .page-promotions__description {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 40px;
    color: var(--color-text-main);
}

.page-promotions__cta-bottom-section .page-promotions__description a {
    color: var(--color-glow);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__cta-bottom-section .page-promotions__description a:hover {
    text-decoration: underline;
}

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
    border-radius: 10px;
    min-width: 250px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 0 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__description {
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
    }

    /* Mobile images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px;
    }

    .page-promotions__hero-image {
        margin-bottom: 20px;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

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

    .page-promotions__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container of buttons */
    }

    /* Mobile buttons responsive */
    .page-promotions__cta-button,
    .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;
    }

    /* Button containers mobile adaptation */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
        padding-top: 40px;
    }

    .page-promotions__intro-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 30px 0;
    }

    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-promotions__guide-item,
    .page-promotions__terms-item,
    .page-promotions__why-choose-item,
    .page-promotions__faq-item {
        padding: 15px 20px;
    }

    .page-promotions__guide-step-title {
        font-size: 1.15rem;
    }

    .page-promotions__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-toggle {
        font-size: 1.2rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-promotions__cta-bottom-section {
        padding: 60px 0;
    }
    .page-promotions__btn-large {
        width: 100%;
        max-width: 300px; /* still apply max-width */
    }

    /* Generic container responsive rules */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}