/* style/promotions.css */

/* Custom Colors */
:root {
    --k9club-primary: #11A84E;
    --k9club-secondary: #22C768;
    --k9club-button-gradient-start: #2AD16F;
    --k9club-button-gradient-end: #13994A;
    --k9club-card-bg: #11271B;
    --k9club-background: #08160F;
    --k9club-text-main: #F2FFF6;
    --k9club-text-secondary: #A7D9B8;
    --k9club-border: #2E7A4E;
    --k9club-glow: #57E38D;
    --k9club-gold: #F2C14E;
    --k9club-divider: #1E3A2A;
    --k9club-deep-green: #0A4B2C;
    --k9club-light-bg-text: #333333; /* For light background cards */
    --k9club-white: #ffffff;
}

/* Base styles for the page content, assuming dark body background from shared.css */
.page-promotions {
    background-color: var(--k9club-background);
    color: var(--k9club-text-main);
    font-family: 'Arial', sans-serif; /* Example font, adjust if specific font is desired */
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--k9club-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--k9club-text-secondary);
}

/* HERO Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--k9club-deep-green);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper doesn't overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow if image is slightly larger than wrapper */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image to make text below stand out */
}

.page-promotions__hero-content {
    text-align: center;
    padding: 40px 20px 80px; /* More padding at bottom */
    position: relative;
    z-index: 1; /* Ensure content is above any potential background elements */
    max-width: 900px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--k9club-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    color: var(--k9club-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background: var(--k9club-button-gradient-start); /* Fallback for browsers not supporting gradient */
    background: linear-gradient(180deg, var(--k9club-button-gradient-start) 0%, var(--k9club-button-gradient-end) 100%);
    color: var(--k9club-white);
    border: 2px solid var(--k9club-button-gradient-start);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
    background: var(--k9club-gold);
    color: var(--k9club-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--k9club-gold), 0.3);
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: var(--k9club-card-bg); /* Darker background for contrast */
    border-bottom: 1px solid var(--k9club-divider);
}

.page-promotions__dark-section {
    background-color: var(--k9club-card-bg);
    color: var(--k9club-text-main);
}

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

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 80px 0;
    background-color: var(--k9club-background);
    border-bottom: 1px solid var(--k9club-divider);
}

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

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

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

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

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--k9club-gold);
    padding: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-promotions__feature-list {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
    flex-grow: 1; /* Make list grow to fill space */
}

.page-promotions__feature-list li {
    color: var(--k9club-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-promotions__feature-list li::before {
    content: '✓'; /* Checkmark icon */
    color: var(--k9club-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-promotions__card .page-promotions__btn-primary {
    margin: 0 20px 20px;
    width: auto; /* Allow button to fit content, but max-width 100% will handle overflow */
    align-self: flex-start; /* Align button to start of card */
}

/* How to Join Section */
.page-promotions__how-to-join-section {
    padding: 80px 0;
    background-color: var(--k9club-card-bg);
    border-bottom: 1px solid var(--k9club-divider);
}

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

.page-promotions__step-card {
    background-color: var(--k9club-white); /* Light background for steps */
    color: var(--k9club-light-bg-text);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--k9club-border);
}

.page-promotions__step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--k9club-primary);
    margin-bottom: 15px;
    line-height: 1;
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--k9club-light-bg-text);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: #555;
}

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

.page-promotions__step-description a:hover {
    color: var(--k9club-secondary);
}

.page-promotions__note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--k9club-text-secondary);
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: var(--k9club-background);
    border-bottom: 1px solid var(--k9club-divider);
}

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

.page-promotions__terms-list li {
    margin-bottom: 15px;
    color: var(--k9club-text-secondary);
    padding-left: 25px;
    position: relative;
}

.page-promotions__terms-list li::before {
    content: '•';
    color: var(--k9club-gold);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.page-promotions__terms-list li strong {
    color: var(--k9club-text-main);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--k9club-card-bg);
    border-bottom: 1px solid var(--k9club-divider);
    text-align: center; /* Center the image and list */
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Align text within FAQ items */
}

.page-promotions__faq-item {
    background-color: var(--k9club-background);
    border: 1px solid var(--k9club-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--k9club-border);
}

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--k9club-gold);
}

/* Remove default details marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--k9club-text-secondary);
    background-color: var(--k9club-background);
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--k9club-card-bg);
}

/* Responsive design */
@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__container {
        padding: 0 15px;
    }

    .page-promotions__hero-content {
        padding: 30px 15px 60px;
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    /* Enforce full width for buttons on mobile */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-promotions__text-block {
        font-size: 1rem;
    }

    .page-promotions__grid-layout {
        grid-template-columns: 1fr; /* Single column layout for cards */
    }

    .page-promotions__card-image {
        height: 180px; /* Slightly smaller image height on mobile */
    }

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

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

    .page-promotions__step-number {
        font-size: 2.5rem;
    }

    .page-promotions__step-title {
        font-size: 1.2rem;
    }

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

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
    }
    
    /* Mobile image responsiveness - must use !important */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness - must use !important */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__how-to-join-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .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 for sections to prevent content touching edges */
        padding-left: 15px; 
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__hero-section {
        padding-left: 0 !important; /* Hero image should be full width */
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Specific top padding for first section */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.6rem;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}