/* style/promotions.css */

/* Custom Colors */
: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 {
    color: var(--color-text-main);
    background-color: var(--color-background);
    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;
}

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

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

.page-promotions__deep-green-bg {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

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

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

.page-promotions__text-secondary {
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--color-card-bg); /* Ensure contrast */
    border-radius: 8px;
    transform: translateY(-50%); /* Pull up slightly over the image */
    margin-top: -100px; /* Adjust based on image height and desired overlap */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.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: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-border);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-gold);
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

/* Text Blocks */
.page-promotions__text-block {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

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

.page-promotions__card:hover {
    transform: translateY(-5px);
}

.page-promotions__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Enforce minimum size */
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

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

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

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

/* Ordered/Unordered Lists */
.page-promotions__ordered-list,
.page-promotions__unordered-list {
    list-style-type: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__ordered-list li,
.page-promotions__unordered-list li {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    font-size: 1.1rem;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__ordered-list li strong {
    color: var(--color-gold);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    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 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    text-align: justify;
}

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

.page-promotions__cta-bottom .page-promotions__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        transform: translateY(-30%);
        margin-top: -60px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }

    .page-promotions__hero-content {
        padding: 30px 15px;
        transform: translateY(-20%);
        margin-top: -40px;
        width: calc(100% - 30px);
    }
    
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-promotions__description {
        font-size: 1rem;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

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

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

    .page-promotions__card-content {
        padding: 20px;
    }

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

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

    .page-promotions__card-button {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .page-promotions__ordered-list li,
    .page-promotions__unordered-list li {
        padding: 15px;
        font-size: 1rem;
    }

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

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

    .page-promotions__cta-bottom {
        padding: 50px 0;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .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;
    }
    
    .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;
    }

    /* Mobile image responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        padding: 20px 10px;
        margin-top: -30px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-promotions__description {
        font-size: 0.9rem;
    }
    .page-promotions__cta-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-promotions__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 12px 15px;
    }
}