/* style/promotions-latest-details.css */

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

.page-promotions-latest-details {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--background-dark);
    line-height: 1.6;
}

.page-promotions-latest-details__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-promotions-latest-details__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions-latest-details__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    padding: 20px 30px;
    border-radius: 10px;
}

.page-promotions-latest-details__main-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-promotions-latest-details__description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-latest-details__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions-latest-details__cta-button--large {
    padding: 15px 40px;
    font-size: 1.3rem;
}

.page-promotions-latest-details__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions-latest-details__section-title {
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    color: var(--gold-color);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

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

.page-promotions-latest-details__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions-latest-details__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: justify;
}

.page-promotions-latest-details__text-block strong {
    color: var(--text-main);
}

.page-promotions-latest-details__promo-grid,
.page-promotions-latest-details__steps-grid,
.page-promotions-latest-details__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-promotions-latest-details__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.page-promotions-latest-details__card-title,
.page-promotions-latest-details__step-title,
.page-promotions-latest-details__feature-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-latest-details__card-description,
.page-promotions-latest-details__step-description,
.page-promotions-latest-details__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions-latest-details__card-button,
.page-promotions-latest-details__step-button {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: fit-content;
}

.page-promotions-latest-details__card-button:hover,
.page-promotions-latest-details__step-button:hover {
    background-color: var(--secondary-color);
}

.page-promotions-latest-details__note-text {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--deep-green);
    border-left: 5px solid var(--gold-color);
    border-radius: 5px;
    text-align: left;
    font-size: 1rem;
    color: var(--text-main);
}

.page-promotions-latest-details__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-promotions-latest-details__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-promotions-latest-details__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    position: relative;
    user-select: none;
    list-style: none; /* Hide default marker */
}

.page-promotions-latest-details__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

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

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

.page-promotions-latest-details__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.page-promotions-latest-details__faq-answer p {
    margin-bottom: 0;
}

.page-promotions-latest-details__conclusion-section {
    background-color: var(--deep-green);
    padding: 80px 0;
}

.page-promotions-latest-details__conclusion-section .page-promotions-latest-details__section-title {
    color: var(--gold-color);
}

.page-promotions-latest-details__conclusion-section .page-promotions-latest-details__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions-latest-details__hero-content {
        padding: 15px 20px;
    }

    .page-promotions-latest-details__main-title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }

    .page-promotions-latest-details__description {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }

    .page-promotions-latest-details__section-title {
        font-size: clamp(1.3rem, 4vw, 2.5rem);
    }

    .page-promotions-latest-details__promo-grid,
    .page-promotions-latest-details__steps-grid,
    .page-promotions-latest-details__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions-latest-details__hero-section {
        padding-bottom: 40px;
    }

    .page-promotions-latest-details__hero-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        background-color: var(--background-dark); /* Use a solid background on mobile */
        padding: 30px 15px;
        border-radius: 0;
        margin-top: -5px; /* Pull up slightly to meet image */
    }

    .page-promotions-latest-details__hero-image {
        filter: brightness(0.8); /* Less darkening for clarity */
    }

    .page-promotions-latest-details__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .page-promotions-latest-details__description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .page-promotions-latest-details__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 15px !important;
    }

    .page-promotions-latest-details__cta-button--large {
        padding: 15px 20px !important;
    }

    .page-promotions-latest-details__section {
        padding: 40px 0;
    }

    .page-promotions-latest-details__container {
        padding: 0 15px;
    }

    .page-promotions-latest-details__text-block {
        text-align: left;
    }

    .page-promotions-latest-details__promo-grid,
    .page-promotions-latest-details__steps-grid,
    .page-promotions-latest-details__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-latest-details__card-image,
    .page-promotions-latest-details__promo-card,
    .page-promotions-latest-details__step-card,
    .page-promotions-latest-details__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions-latest-details__card-button,
    .page-promotions-latest-details__step-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions-latest-details__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-promotions-latest-details__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
    
    /* Ensure all images are responsive */
    .page-promotions-latest-details img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all containers with images/buttons are responsive */
    .page-promotions-latest-details__section,
    .page-promotions-latest-details__card,
    .page-promotions-latest-details__container,
    .page-promotions-latest-details__promo-card,
    .page-promotions-latest-details__step-card,
    .page-promotions-latest-details__feature-card,
    .page-promotions-latest-details__promo-grid,
    .page-promotions-latest-details__steps-grid,
    .page-promotions-latest-details__feature-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions-latest-details__hero-section {
        padding-top: 10px !important;
    }
}

/* Color Contrast Fixes (if needed) */
.page-promotions-latest-details__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-promotions-latest-details__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}