/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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 {
    background-color: var(--color-background);
    color: var(--color-text-main);
    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;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-background);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 800px;
    color: var(--color-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-glow), 0.4);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-glow), 0.2);
}

/* Section Titles & Descriptions */
.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-promotions__section-description {
    font-size: 1.05em;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Promotions Grid */
.page-promotions__promotions-grid {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistent card image display */
    overflow: hidden;
}

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

.page-promotions__card-content {
    padding: 25px;
    color: var(--color-text-main);
}

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

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

.page-promotions__card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__card-features li {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-promotions__card-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__guide-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-promotions__guide-step-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__guide-item p {
    font-size: 1em;
    color: var(--color-text-secondary);
}

.page-promotions__guide-item p a {
    color: var(--color-glow);
    text-decoration: none;
}

.page-promotions__guide-item p a:hover {
    text-decoration: underline;
}

.page-promotions__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-promotions__terms-heading {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__terms-item p {
    font-size: 1em;
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-promotions__faq-item summary {
    list-style: none;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    border-bottom: 1px solid var(--color-divider);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: 1em;
    color: var(--color-text-secondary);
}

.page-promotions__faq-answer p a {
    color: var(--color-glow);
    text-decoration: none;
}

.page-promotions__faq-answer p a:hover {
    text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

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

.page-promotions__feature-icon {
    width: 200px; /* Minimum size */
    height: 150px; /* Minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--color-glow)); /* subtle glow */
}

.page-promotions__feature-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__feature-item p {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

    .page-promotions__container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }

    .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: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__cta-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__promotions-grid,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__why-choose-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }

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

    .page-promotions__promotion-card,
    .page-promotions__guide-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item,
    .page-promotions__feature-item {
        padding: 20px;
    }

    .page-promotions__card-image-wrapper {
        height: 180px; /* Adjust height for mobile */
    }

    .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-image-wrapper,
    .page-promotions__card-image-wrapper,
    .page-promotions__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .page-promotions__hero-image {
        height: auto !important;
    }

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

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

    .page-promotions__feature-icon {
        width: 150px; /* Adjust for mobile, still > 200px for generation, but display smaller */
        height: 112px; 
        margin: 0 auto 15px auto;
    }
}

/* Ensure content area images are at least 200px wide for desktop */
.page-promotions img:not(.page-promotions__feature-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Remove min-width/height for feature icons on mobile for display, but generation remains >200px */
@media (max-width: 768px) {
    .page-promotions__feature-icon {
        min-width: unset;
        min-height: unset;
    }
}