/* style/promotions.css */

:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-background: #08160F;
    --color-card-bg: #11271B;
    --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);
    color: var(--color-text-main);
    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: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-promotions__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-promotions__main-title {
    color: var(--color-gold);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-promotions__intro-description {
    color: var(--color-text-main);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--color-divider);
    box-sizing: border-box;
}

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

.page-promotions__section-title {
    color: var(--color-gold);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

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

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

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-glow);
}

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

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.3);
}

.page-promotions__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 4px 12px rgba(17, 168, 78, 0.5);
    transform: translateY(-2px);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
    color: var(--color-gold);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-promotions__step-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.page-promotions__terms-title {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-promotions__terms-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.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;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 15px 25px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    background-color: var(--color-card-bg);
}

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

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

/* Ensure details summary marker is hidden */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__conclusion-cta {
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__btn-large {
    padding: 15px 35px;
    font-size: 1.2rem;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 10px 15px 40px;
    }
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-promotions__intro-description {
        font-size: 1rem;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__steps-list {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 180px;
    }

    /* Mobile specific image, video, button responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video {
        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__hero-image-wrapper,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .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;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-promotions__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-promotions__section-title {
        font-size: 1.5rem;
    }
    .page-promotions__intro-description {
        font-size: 0.9rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px;
    }
}