/* style/promotions.css */

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

/* Base styles for the page content, ensuring contrast with body background */
.page-promotions {
    background-color: var(--bg-color); /* Matches body background if not overridden by shared.css */
    color: var(--text-main-color); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Ensure images are responsive and adhere to minimum size */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
    border-radius: 8px; /* Soften edges */
    transition: transform 0.3s ease;
}

.page-promotions img:hover {
    transform: scale(1.02);
}

/* Container for consistent content width */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 10px; /* Small top padding, as body handles --header-offset */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: 675px; /* Adjust height for visual impact, maintain aspect ratio with object-fit */
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 0;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the image, but not *on* the image */
    padding: 20px;
    background: linear-gradient(to bottom, rgba(8, 22, 15, 0.8), var(--bg-color)); /* Subtle fade from transparent to bg color */
    border-radius: 12px;
}

.page-promotions__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

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

/* General Section Title */
.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-promotions__section-title--light {
    color: var(--text-main-color); /* For sections with dark backgrounds */
}

/* Text Block styles */
.page-promotions__text-block {
    margin-bottom: 20px;
    color: var(--text-secondary-color);
    text-align: justify;
}

.page-promotions__text-block--light {
    color: var(--text-main-color);
}

/* Call to Action Button */
.page-promotions__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
    border: none;
    cursor: pointer;
}

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

.page-promotions__cta-button--center {
    display: block;
    margin: 40px auto 0;
    width: fit-content;
    max-width: 100%;
}

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

/* Types of Promotions Section */
.page-promotions__types-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

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

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

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

.page-promotions__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-promotions__promotion-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promotion-description {
    color: var(--text-secondary-color);
    font-size: 0.95em;
    flex-grow: 1;
    text-align: left;
}

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

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

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

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

.page-promotions__link-text {
    color: var(--gold-color);
    text-decoration: underline;
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
}

.page-promotions__link-text:hover {
    color: var(--glow-color);
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-promotions__reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-promotions__reason-item.page-promotions__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.page-promotions__reason-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-promotions__reason-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__reason-description {
    color: var(--text-secondary-color);
    font-size: 0.9em;
    text-align: left;
}

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

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

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

.page-promotions__faq-item summary {
    list-style: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--card-bg-color);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Subtle hover effect */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--card-bg-color);
    color: var(--gold-color);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

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

/* Call to Action Section (final) */
.page-promotions__cta-section {
    padding: 60px 0 80px;
    text-align: center;
    background-color: var(--bg-color);
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-image {
        height: 500px;
    }
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-content {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__promotions-grid,
    .page-promotions__reasons-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-promotions__hero-image {
        height: 350px !important;
        margin-bottom: 20px;
    }

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

    .page-promotions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__cta-button {
        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: 1em;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__promotions-grid,
    .page-promotions__reasons-grid {
        grid-template-columns: 1fr; /* Stack items vertically */
    }

    .page-promotions__promotion-image,
    .page-promotions__reason-image {
        height: 150px;
    }

    .page-promotions__promotion-title,
    .page-promotions__reason-title {
        font-size: 1.3em;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}