/* style/promo.css */

/* Base styles for the promo page */
.page-promo {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background color */
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text for desktop */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* 10px top padding for initial spacing */
    text-align: center;
    overflow: hidden;
    background-color: #111111; /* Card BG for hero section background */
}

.page-promo__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promo__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-promo__hero-content {
    max-width: 900px;
    padding: 0 15px;
    z-index: 1;
}

.page-promo__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD36B; /* Glow color for main title */
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promo__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF6D6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
}

.page-promo__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for light button */
    border: 2px solid transparent;
}

.page-promo__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-promo__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color for secondary button text */
    border: 2px solid #FFD36B; /* Glow color for secondary button border */
}

.page-promo__btn-secondary:hover {
    background: #FFD36B;
    color: #111111;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

/* Section common styles */
.page-promo__promotions-grid,
.page-promo__why-jl58,
.page-promo__faq-section,
.page-promo__cta-download-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-promo__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD36B;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-promo__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF6D6;
}

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

.page-promo__promo-card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 550px; /* Ensure cards have consistent height */
}

.page-promo__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-promo__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-promo__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD36B;
    line-height: 1.3;
}

.page-promo__card-title a {
    color: #FFD36B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promo__card-title a:hover {
    color: #F2C14E; /* Main color on hover */
    text-decoration: underline;
}

.page-promo__card-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promo__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: 2px solid transparent;
    border-radius: 30px;
    margin-top: auto; /* Push button to bottom */
}

.page-promo__btn-small:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

/* Why JL58 Section */
.page-promo__why-jl58 {
    background-color: #111111; /* Card BG for this section */
    padding-top: 80px;
    padding-bottom: 80px;
    border-radius: 12px;
    margin: 60px auto;
    border: 1px solid #3A2A12;
}

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

.page-promo__benefit-item {
    text-align: center;
    background-color: #0A0A0A; /* Background color for benefit items */
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

.page-promo__benefit-icon {
    width: 30px; /* Specific size for icons */
    height: 30px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5)); /* Glow effect for icons */
}

.page-promo__benefit-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD36B;
}

.page-promo__benefit-text {
    font-size: 0.9em;
    color: #FFF6D6;
}

/* FAQ Section */
.page-promo__faq-list {
    margin-top: 40px;
}

.page-promo__faq-item {
    background-color: #111111; /* Card BG for FAQ items */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111;
    transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
    background-color: #1a1a1a;
}

.page-promo__faq-question h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: #FFD36B;
    margin: 0;
    flex-grow: 1;
}

.page-promo__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFD36B;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-promo__faq-item.active .page-promo__faq-toggle {
    transform: rotate(45deg);
}

.page-promo__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6;
}

.page-promo__faq-item.active .page-promo__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-promo__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    color: #FFF6D6;
}

/* CTA Download Section */
.page-promo__cta-download-section {
    display: flex;
    flex-direction: row; /* Desktop: content then image */
    align-items: center;
    gap: 50px;
    background-color: #111111; /* Card BG for this section */
    border: 1px solid #3A2A12;
    border-radius: 12px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-promo__cta-download-content {
    flex: 1;
    text-align: left;
}

.page-promo__cta-download-content .page-promo__section-title {
    text-align: left;
    margin-bottom: 15px;
}

.page-promo__cta-download-content .page-promo__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

.page-promo__cta-download-image-wrapper {
    flex-shrink: 0;
    width: 400px; /* Fixed width for desktop image */
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promo__cta-download-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promo__hero-section {
        padding-bottom: 40px;
    }

    .page-promo__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-promo__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }

    .page-promo__cta-download-section {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .page-promo__cta-download-content {
        text-align: center;
    }

    .page-promo__cta-download-content .page-promo__section-title,
    .page-promo__cta-download-content .page-promo__section-description {
        text-align: center;
    }

    .page-promo__cta-download-image-wrapper {
        width: 100%;
        max-width: 500px; /* Adjust max-width for tablet */
        height: auto;
        margin-top: 40px;
    }
}

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

    .page-promo__hero-section {
        padding: 10px 15px 30px;
    }

    .page-promo__hero-content {
        padding: 0 10px;
    }

    .page-promo__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

    .page-promo__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 350px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promo__btn-primary,
    .page-promo__btn-secondary,
    .page-promo__btn-small {
        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-promo__promotions-grid,
    .page-promo__why-jl58,
    .page-promo__faq-section,
    .page-promo__cta-download-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promo__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-promo__section-description {
        font-size: 0.95em;
    }

    .page-promo__promo-card {
        padding: 20px;
        min-height: auto; /* Allow height to adjust */
    }

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

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

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

    .page-promo__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-promo__benefit-item {
        padding: 25px;
    }

    .page-promo__faq-question h3 {
        font-size: 1em;
    }

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

    .page-promo__faq-item.active .page-promo__faq-answer {
        padding: 15px 20px 20px;
    }

    .page-promo__cta-download-section {
        padding: 40px 20px;
    }

    .page-promo__cta-download-image-wrapper {
        width: 100%;
        height: auto;
    }
    
    /* Image responsiveness for all images */
    .page-promo img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure containers with images are also responsive */
    .page-promo__section,
    .page-promo__card,
    .page-promo__container,
    .page-promo__hero-section,
    .page-promo__promotions-grid,
    .page-promo__why-jl58,
    .page-promo__faq-section,
    .page-promo__cta-download-section,
    .page-promo__hero-image-wrapper,
    .page-promo__cta-download-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific adjustment for hero section to avoid double padding if it's the first element in main */
    /* The body padding-top is handled by shared.css */
    .page-promo__hero-section {
        padding-top: 10px !important; /* Only a small decorative top padding */
    }
}