/* style/promotions.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-dark: #0A0A0A;
    --card-bg: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark); /* Fallback, actual body bg from shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Aligned with shared.css body padding-top */
}

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-promotions__hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over image, but not covering text */
    background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-promotions__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-promotions__hero-cta-button {
    min-width: 250px;
}

/* General Sections */
.page-promotions__intro-section, 
.page-promotions__terms-section, 
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for contrast */
}

.page-promotions__types-section, 
.page-promotions__guide-section, 
.page-promotions__why-choose-section, 
.page-promotions__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

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

.page-promotions__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 211, 107, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    padding: 15px 20px 10px;
    font-weight: 600;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-promotions__card-button {
    margin: 0 20px 20px;
    text-align: center;
    font-size: 1rem;
    padding: 12px 25px;
}

/* Terms & Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-list li {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

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

.page-promotions__terms-cta-button {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
}

/* Guide Section */
.page-promotions__guide-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

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

.page-promotions__step-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

.page-promotions__step-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.page-promotions__step-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__guide-cta-button {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-promotions__faq-item {
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    background-color: var(--primary-color);
    color: #ffffff;
    border-bottom: 1px solid var(--primary-color);
}

.page-promotions__faq-item[open] > .page-promotions__faq-question .page-promotions__faq-toggle {
    color: #ffffff;
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    background-color: #fefefe;
}

/* Why Choose Section */
.page-promotions__why-choose-card .page-promotions__card-image {
    height: 180px;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__cta-bottom-title {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.page-promotions__cta-bottom-description {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-promotions__cta-bottom-button {
    min-width: 300px;
}

/* Buttons */
.page-promotions__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

/* General image rules */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 15px;
    }

    .page-promotions__hero-section {
        min-height: 400px;
    }

    .page-promotions__hero-content-wrapper {
        margin-top: -80px;
        padding: 30px 15px;
    }

    .page-promotions__hero-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .page-promotions__hero-description {
        font-size: 1rem;
    }

    .page-promotions__section-title {
        font-size: 2rem;
    }

    .page-promotions__promotion-grid, .page-promotions__why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

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

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

    .page-promotions__guide-steps {
        gap: 20px;
    }

    .page-promotions__step-item {
        flex: 1 1 180px;
    }

    .page-promotions__cta-bottom-title {
        font-size: 2.2rem;
    }

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

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

    .page-promotions__hero-section {
        flex-direction: column; /* Hero: top image, bottom content */
        padding-top: 10px !important;
        min-height: unset;
    }

    .page-promotions__hero-image-wrapper {
        max-height: 300px; /* Adjust height for mobile hero image */
    }

    .page-promotions__hero-image {
        object-fit: contain; /* Hero: contain image, no cropping */
        aspect-ratio: unset;
        max-height: none;
    }

    .page-promotions__hero-content-wrapper {
        margin-top: 0; /* No negative margin on mobile */
        padding: 25px 15px;
        width: calc(100% - 30px); /* Account for padding */
        max-width: 100%;
        box-sizing: border-box;
    }

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

    .page-promotions__hero-description {
        font-size: 0.95rem;
    }

    .page-promotions__hero-cta-button {
        width: 100% !important;
        min-width: unset;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* General Images and Containers */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__promotion-card,
    .page-promotions__why-choose-card,
    .page-promotions__guide-section,
    .page-promotions__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Promotion Grid */
    .page-promotions__promotion-grid, .page-promotions__why-choose-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
        overflow-x: hidden;
    }
    
    .page-promotions__card {
        width: 100%;
    }

    .page-promotions__card-image {
        height: 200px;
        object-fit: cover;
    }

    /* Guide Steps */
    .page-promotions__guide-steps {
        flex-direction: column;
        align-items: center;
    }

    .page-promotions__step-item {
        width: 100%;
        max-width: 350px;
    }

    /* FAQ */
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

    /* CTA Bottom */
    .page-promotions__cta-bottom-title {
        font-size: 1.8rem;
    }

    .page-promotions__cta-bottom-description {
        font-size: 0.95rem;
    }

    .page-promotions__cta-bottom-button {
        width: 100% !important;
        min-width: unset;
    }

    /* Buttons and button containers */
    .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;
    }
    
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column; 
    }
}