/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    line-height: 1.6;
    background-color: var(--bg-color, #08160F); /* Inherited from shared.css, ensure content contrast */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px; /* Space below content */
    overflow: hidden;
    background-color: #08160F; /* Fallback for body background */
}

.page-promotions__hero-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height for better content visibility */
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 20px;
    margin-top: -100px; /* Pull content up slightly over image for visual flow, but not overlap text */
    position: relative;
    z-index: 1;
    background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for text readability */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__description {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border, #2E7A4E);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--border, #2E7A4E);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 20px;
    background-color: var(--bg-color, #08160F); /* Default dark background */
}

.page-promotions__dark-section {
    background-color: var(--card-bg, #11271B); /* Slightly lighter dark background for contrast */
    color: var(--text-main, #F2FFF6);
}

.page-promotions__light-bg {
    background-color: var(--deep-green, #0A4B2C); /* Deep Green from custom palette */
    color: var(--text-main, #F2FFF6);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
    border-radius: 2px;
}

.page-promotions p {
    margin-bottom: 20px;
    color: var(--text-secondary, #A7D9B8);
}

.page-promotions strong {
    color: var(--text-main, #F2FFF6);
}

.page-promotions a {
    color: var(--glow, #57E38D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: var(--main-color, #11A84E);
    text-decoration: underline;
}

.page-promotions__content-image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--divider, #1E3A2A);
}

/* Card Grid */
.page-promotions__card-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, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider, #1E3A2A);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-promotions__card .page-promotions__btn-primary {
    width: fit-content;
    padding: 10px 25px;
    font-size: 0.9rem;
}

.page-promotions__note {
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary, #A7D9B8);
}

/* Feature List (Rebate Section) */
.page-promotions__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-promotions__feature-title {
    font-size: 1.3rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
}

/* VIP Benefits */
.page-promotions__vip-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__benefit-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    text-align: center;
}

.page-promotions__benefit-title {
    font-size: 1.2rem;
    color: var(--glow, #57E38D);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-promotions__event-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider, #1E3A2A);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions__event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__event-title {
    font-size: 1.4rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__event-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__event-card .page-promotions__btn-secondary {
    width: fit-content;
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* Guide Steps */
.page-promotions__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for steps */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    position: relative;
    padding-left: 60px; /* Space for step number */
}

.page-promotions__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--glow, #57E38D);
    color: #08160F; /* Dark text for bright background */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.page-promotions__guide-steps {
    counter-reset: step-counter;
}

.page-promotions__step-title {
    font-size: 1.2rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--divider, #1E3A2A);
    overflow: hidden;
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main, #F2FFF6);
    list-style: none; /* Remove default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section img {
        max-height: 350px;
    }
    
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 20px;
    }

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

    .page-promotions__description {
        font-size: 1rem;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

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

    .page-promotions__card-grid,
    .page-promotions__feature-list,
    .page-promotions__vip-benefits,
    .page-promotions__event-grid,
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile image responsiveness */
    .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,
    .page-promotions__event-card,
    .page-promotions__feature-item,
    .page-promotions__benefit-item,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Adjust specific elements for mobile */
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content {
        width: calc(100% - 30px); /* Account for container padding */
    }
    .page-promotions__card-image,
    .page-promotions__event-image {
        height: auto; /* Allow height to adjust naturally */
    }

    .page-promotions__step-item {
        padding-left: 20px; /* Reduce padding for smaller screens */
        padding-top: 50px; /* Make space for number if it overlaps */
    }
    .page-promotions__step-item::before {
        left: 15px;
        top: 15px;
    }
    
    .page-promotions__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Color Contrast Enforcement */
/* body background is dark #08160F, so text needs to be light */
.page-promotions {
  color: var(--text-main, #F2FFF6); /* Main text color */
}

/* Ensure headings are visible */
.page-promotions h1,
.page-promotions h2,
.page-promotions h3 {
  color: var(--text-main, #F2FFF6);
}

/* Card and section backgrounds are dark, ensure light text */
.page-promotions__card,
.page-promotions__feature-item,
.page-promotions__benefit-item,
.page-promotions__event-card,
.page-promotions__faq-item {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__card p,
.page-promotions__feature-item p,
.page-promotions__benefit-item p,
.page-promotions__event-card p,
.page-promotions__faq-answer p {
  color: var(--text-secondary, #A7D9B8);
}