/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark-bg: #FFFFFF;
    --text-light-bg: #333333;
    --card-bg-dark-section: rgba(255, 255, 255, 0.1);
    --card-bg-light-section: #FFFFFF;
    --btn-register-login-bg: #C30808;
    --btn-register-login-text: #FFFF00;
    --body-bg: #1a1a2e; /* From shared.css body background */
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d27 100%);
    overflow: hidden;
}

.page-promotions__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-promotions__section {
    padding: 80px 20px;
}

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

.page-promotions__dark-bg {
    background-color: var(--body-bg);
    color: var(--text-dark-bg);
}

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-light-bg);
}

.page-promotions__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    color: inherit;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit;
}

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

.page-promotions__feature-item {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__light-bg .page-promotions__feature-item {
    background-color: var(--card-bg-light-section);
    color: var(--text-light-bg);
}

.page-promotions__dark-bg .page-promotions__feature-item {
    background-color: var(--card-bg-dark-section);
    color: var(--text-dark-bg);
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__feature-text {
    font-size: 1em;
    color: inherit;
}

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

.page-promotions__promotion-card {
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__light-bg .page-promotions__promotion-card {
    background-color: var(--card-bg-light-section);
    color: var(--text-light-bg);
}

.page-promotions__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__promotion-title {
    font-size: 1.7em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__promotion-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: inherit;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background-color: var(--btn-register-login-bg);
    color: var(--btn-register-login-text);
    border: 2px solid var(--btn-register-login-bg);
}

.page-promotions__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__guide-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-promotions__light-bg .page-promotions__guide-item {
    background-color: var(--card-bg-light-section);
    color: var(--text-light-bg);
}

.page-promotions__dark-bg .page-promotions__guide-item {
    background-color: var(--card-bg-dark-section);
    color: var(--text-dark-bg);
}

.page-promotions__guide-step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__guide-step-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: inherit;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__terms-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__dark-bg .page-promotions__terms-item {
    background-color: var(--card-bg-dark-section);
    color: var(--text-dark-bg);
}

.page-promotions__light-bg .page-promotions__terms-item {
    background-color: var(--card-bg-light-section);
    color: var(--text-light-bg);
}

.page-promotions__terms-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__terms-text {
    font-size: 1em;
    color: inherit;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-promotions__light-bg .page-promotions__faq-item {
    background-color: var(--card-bg-light-section);
    color: var(--text-light-bg);
}

.page-promotions__dark-bg .page-promotions__faq-item {
    background-color: var(--card-bg-dark-section);
    color: var(--text-dark-bg);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: inherit;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.page-promotions__dark-bg .page-promotions__faq-answer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__cta-section {
    background: linear-gradient(90deg, #017439, #004d27);
    color: var(--text-dark-bg);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-promotions__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg_pattern:1920x1080:jun88,pattern,abstract,green_theme]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-promotions__cta-section .page-promotions__content-area {
    z-index: 1;
}

.page-promotions__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-promotions__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--secondary-color);
}

.page-promotions__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 60px 15px;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__features-grid,
    .page-promotions__promotions-grid,
    .page-promotions__guide-list,
    .page-promotions__terms-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__feature-item,
    .page-promotions__promotion-card,
    .page-promotions__guide-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-promotions__feature-title,
    .page-promotions__promotion-title,
    .page-promotions__guide-step-title,
    .page-promotions__terms-title {
        font-size: 1.5em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 15px;
    }
    .page-promotions__cta-section {
        padding: 60px 15px;
    }
    .page-promotions__cta-title {
        font-size: 2em;
    }
    .page-promotions__cta-description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        margin-left: 0 !important;
    }

    /* 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__hero-section,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-promotions__hero-image-wrapper {
        left: 0;
        right: 0;
        width: 100%;
    }
    .page-promotions__content-area {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__cta-title {
        font-size: 1.8em;
    }
}