/* style/promotions.css */

/* Custom Color Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B; /* Card BG */
    --bg-color: #08160F; /* Background */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
}

/* --- General Styles --- */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color, very light green */
    background-color: var(--bg-color); /* Deep dark green */
    line-height: 1.6;
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1/H2 font size */
    font-weight: 700;
    color: var(--text-main); /* Very light green */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 18px;
    color: var(--text-secondary); /* Light green */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-promotions__btn-secondary,
.page-promotions__card-button {
    background-color: transparent;
    color: var(--text-main); /* Very light green */
    border: 2px solid var(--border-color); /* Medium green border */
}

.page-promotions__btn-secondary:hover,
.page-promotions__card-button:hover {
    background-color: var(--border-color); /* Medium green background */
    color: #ffffff; /* White text on hover */
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-color);
    min-height: 600px;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.7);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px;
    background: linear-gradient(0deg, var(--bg-color) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0.5) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

/* --- Introduction Section --- */
.page-promotions__introduction-section {
    background-color: var(--card-bg-color);
}

.page-promotions__introduction-section .page-promotions__section-title {
    color: var(--gold-color);
}

.page-promotions__introduction-section .page-promotions__section-description {
    color: var(--text-secondary);
}

.page-promotions__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-promotions__text-block {
    flex: 1;
    min-width: 300px;
    color: var(--text-main);
}

.page-promotions__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-main);
}

.page-promotions__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* --- Types Section (Card Grid) --- */
.page-promotions__types-section {
    background-color: var(--bg-color);
}

.page-promotions__types-section .page-promotions__section-title {
    color: var(--glow-color);
}

.page-promotions__types-section .page-promotions__section-description {
    color: var(--text-secondary);
}

.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-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
    border: 1px solid var(--divider-color);
}

.page-promotions__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-promotions__card-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    width: 100%;
    margin-top: auto;
}

/* --- Guide Section --- */
.page-promotions__guide-section {
    background-color: var(--deep-green-color);
}

.page-promotions__guide-section .page-promotions__section-title {
    color: var(--text-main);
}

.page-promotions__guide-section .page-promotions__section-description {
    color: var(--text-secondary);
}

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

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

.page-promotions__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-promotions__step-item p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* --- Terms Section --- */
.page-promotions__terms-section {
    background-color: var(--bg-color);
}

.page-promotions__terms-section .page-promotions__section-title {
    color: var(--text-main);
}

.page-promotions__terms-section .page-promotions__section-description {
    color: var(--text-secondary);
}

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

.page-promotions__terms-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--divider-color);
}

.page-promotions__terms-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* --- Tips Section --- */
.page-promotions__tips-section {
    background-color: var(--deep-green-color);
}

.page-promotions__tips-section .page-promotions__section-title {
    color: var(--glow-color);
}

.page-promotions__tips-section .page-promotions__section-description {
    color: var(--text-secondary);
}

.page-promotions__content-wrapper.page-promotions__content-wrapper {
    flex-direction: row; /* Ensure row direction on larger screens */
}

.page-promotions__tips-list {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-promotions__tips-list li {
    position: relative;
    margin-bottom: 10px;
    font-size: 17px;
    color: var(--text-main);
}

.page-promotions__tips-list li::before {
    content: '✅';
    position: absolute;
    left: -25px;
    color: var(--glow-color);
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
    background-color: var(--bg-color);
}

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--text-main);
}

.page-promotions__faq-section .page-promotions__section-description {
    color: var(--text-secondary);
}

.page-promotions__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-promotions__faq-question:hover {
    background-color: var(--deep-green-color);
}

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

.page-promotions__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--glow-color);
    margin-left: 15px;
}

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

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 16px;
    color: var(--text-secondary);
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 15px 25px 20px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* --- Conclusion Section --- */
.page-promotions__conclusion-section {
    background-color: var(--deep-green-color);
}

.page-promotions__conclusion-section .page-promotions__section-title {
    color: var(--gold-color);
}

.page-promotions__conclusion-section .page-promotions__section-description {
    color: var(--text-main);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-promotions__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__text-block,
    .page-promotions__image-block {
        min-width: unset;
        width: 100%;
    }
    .page-promotions__image {
        max-width: 80%;
    }
    .page-promotions__hero-content {
        margin-top: -100px;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__section-title {
        font-size: 28px;
    }
    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: 10px !important;
    }
    .page-promotions__hero-content {
        padding: 25px 15px;
        margin-top: -80px;
    }
    .page-promotions__main-title {
        font-size: 36px;
    }
    .page-promotions__hero-description {
        font-size: 17px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__image,
    .page-promotions__hero-image,
    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__image-block,
    .page-promotions__hero-image-wrapper,
    .page-promotions__card-grid,
    .page-promotions__step-list,
    .page-promotions__terms-list,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__card {
        min-height: unset;
    }
    .page-promotions__card-image {
        height: auto;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
        font-size: 15px;
    }
}