/* style/promotions.css */

/* Variables from custom color palette */
:root {
    --sodo88-primary: #11A84E;
    --sodo88-secondary: #22C768;
    --sodo88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --sodo88-card-bg: #11271B;
    --sodo88-background: #08160F;
    --sodo88-text-main: #F2FFF6;
    --sodo88-text-secondary: #A7D9B8;
    --sodo88-border: #2E7A4E;
    --sodo88-glow: #57E38D;
    --sodo88-gold: #F2C14E;
    --sodo88-divider: #1E3A2A;
    --sodo88-deep-green: #0A4B2C;
}

/* General styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--sodo88-text-main); /* Default text color for dark body background */
    background-color: var(--sodo88-background);
}

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

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image slightly for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-promotions__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sodo88-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--sodo88-text-main);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--sodo88-button-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    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-color: var(--sodo88-primary);
    border-radius: 2px;
}

.page-promotions__intro-section, .page-promotions__tips-section, .page-promotions__cta-section {
    padding: 60px 0;
    background-color: var(--sodo88-background);
    color: var(--sodo88-text-main);
}

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

.page-promotions__highlight {
    color: var(--sodo88-gold);
    font-weight: bold;
}

.page-promotions__features-section {
    padding: 60px 0;
    background-color: var(--sodo88-card-bg);
    color: var(--sodo88-text-main);
}

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

.page-promotions__feature-card {
    background-color: var(--sodo88-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--sodo88-text-main);
}

.page-promotions__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--sodo88-divider);
}

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--sodo88-primary);
}

.page-promotions__card-description {
    font-size: 1rem;
    margin: 0 20px 15px;
    flex-grow: 1;
    color: var(--sodo88-text-secondary);
}

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

.page-promotions__card-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: var(--sodo88-text-secondary);
}

.page-promotions__card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sodo88-gold);
    font-weight: bold;
}

.page-promotions__card-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 8px;
    background-color: var(--sodo88-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-promotions__card-button:hover {
    background-color: var(--sodo88-secondary);
}

.page-promotions__guide-section {
    padding: 60px 0;
    background-color: var(--sodo88-background);
    color: var(--sodo88-text-main);
}

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

.page-promotions__step-item {
    background-color: var(--sodo88-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.page-promotions__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sodo88-gold);
    margin-bottom: 15px;
    background: var(--sodo88-deep-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sodo88-primary);
}

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

.page-promotions__step-description {
    font-size: 1rem;
    color: var(--sodo88-text-secondary);
}

.page-promotions__guide-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--sodo88-card-bg);
    color: var(--sodo88-text-main);
}

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

.page-promotions__terms-list li {
    background-color: var(--sodo88-background);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--sodo88-text-secondary);
    line-height: 1.8;
}

.page-promotions__terms-list li strong {
    color: var(--sodo88-primary);
    font-size: 1.1rem;
}

.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--sodo88-background);
    color: var(--sodo88-text-main);
}

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

.page-promotions__faq-item {
    background-color: var(--sodo88-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item[open] {
    background-color: var(--sodo88-deep-green);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sodo88-primary);
    transition: color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--sodo88-gold);
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--sodo88-text-secondary);
    line-height: 1.7;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__cta-section {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    .page-promotions__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content {
        padding: 30px 15px;
    }
    .page-promotions__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-promotions__hero-description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-promotions__intro-section, .page-promotions__features-section, 
    .page-promotions__guide-section, .page-promotions__terms-section, 
    .page-promotions__faq-section, .page-promotions__cta-section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__text-block {
        font-size: 1rem;
    }
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__card-description {
        font-size: 0.95rem;
    }
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-promotions__step-item {
        padding: 25px;
    }
    .page-promotions__step-title {
        font-size: 1.2rem;
    }
    .page-promotions__faq-question {
        font-size: 1.05rem;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }

    /* Mobile image responsive adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsive adaptation (if any) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsive adaptation */
    .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-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;
    }
    .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;
    }
}

/* Color Contrast Fixes for Light Backgrounds (if needed) */
.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__highlight,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-description,
.page-promotions__light-bg .page-promotions__card-list li,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__step-description,
.page-promotions__light-bg .page-promotions__terms-list li,
.page-promotions__light-bg .page-promotions__terms-list li strong,
.page-promotions__light-bg .page-promotions__faq-question,
.page-promotions__light-bg .page-promotions__faq-answer {
    color: var(--sodo88-text-main); /* Ensure dark text on light background if it was actually light */
}

/* Override for specific sections with different backgrounds */
.page-promotions__dark-bg {
    background-color: var(--sodo88-card-bg);
    color: var(--sodo88-text-main);
}
.page-promotions__dark-bg .page-promotions__section-title::after {
    background-color: var(--sodo88-gold);
}

.page-promotions__light-bg {
    background-color: var(--sodo88-background);
    color: var(--sodo88-text-main);
}

.page-promotions a {
    color: var(--sodo88-primary);
    text-decoration: none;
}
.page-promotions a:hover {
    text-decoration: underline;
    color: var(--sodo88-gold);
}