/* style/promotions.css */

/* Root variables for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--color-deep-green);
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay to make text readable */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for text readability */
    border-radius: 10px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-promotions__cta-button--secondary {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.page-promotions__cta-button--secondary:hover {
    background: rgba(var(--color-primary), 0.1);
    color: var(--color-text-main);
    border-color: var(--color-text-main);
}

.page-promotions__cta-button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-promotions__section {
    padding: 80px 20px;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-gold);
    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(--color-primary);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

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

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    padding: 20px;
    margin-bottom: 10px;
    flex-grow: 1;
}

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

.page-promotions__card-button {
    display: block;
    text-align: center;
    background: var(--button-gradient);
    color: var(--color-text-main);
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.page-promotions__card-button:hover {
    opacity: 0.9;
}

.page-promotions__promotion-detail {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__promotion-subtitle {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-divider);
    padding-bottom: 10px;
}

.page-promotions__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-promotions__list li {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 25px;
}

.page-promotions__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.1em;
}

.page-promotions__list-highlight {
    color: var(--color-text-main);
}

.page-promotions__steps-list {
    list-style: none;
    padding-left: 0;
}

.page-promotions__steps-list li {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__steps-title {
    font-size: 1.6em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__steps-list .page-promotions__text-block {
    margin-bottom: 0;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
}

.page-promotions__faq-question:hover {
    background-color: rgba(var(--color-deep-green), 0.8);
}

.page-promotions__faq-question .page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

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

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

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    font-size: 1.05em;
    border-top: 1px solid var(--color-divider);
}

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

.page-promotions__cta-section {
    background-color: var(--color-deep-green);
    padding: 60px 20px;
    text-align: center;
    border-top: 2px solid var(--color-primary);
}

.page-promotions__cta-container {
    max-width: 900px;
}

.page-promotions__cta-title {
    font-size: 2.2em;
    color: var(--color-gold);
    margin-bottom: 20px;
}

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

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-promotions {
        font-size: 15px;
    }

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

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

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

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

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 50px 15px;
    }

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

    .page-promotions__text-block {
        font-size: 1em;
    }

    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card-title {
        font-size: 1.3em;
    }

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

    .page-promotions__promotion-detail {
        padding: 20px;
    }

    .page-promotions__promotion-subtitle {
        font-size: 1.5em;
    }

    .page-promotions__steps-title {
        font-size: 1.4em;
    }

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

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

    .page-promotions__cta-section {
        padding: 40px 15px;
    }

    .page-promotions__cta-title {
        font-size: 1.8em;
    }

    .page-promotions__cta-description {
        font-size: 1em;
    }

    .page-promotions__button-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Image responsive */
    .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,
    .page-promotions__cta-section,
    .page-promotions__promotion-detail,
    .page-promotions__steps-list li,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Remove padding from elements that are already full-width containers */
    .page-promotions__hero-section,
    .page-promotions__cta-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__button-group {
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__card-button {
        margin-left: 0;
        margin-right: 0;
    }
}