/* style/promotions.css */

/* Base styles and variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color-register: #C30808;
    --accent-color-login: #C30808;
    --text-color-light: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-yellow: #FFFF00;
    --background-light: #FFFFFF;
    --background-dark: #017439;
    --card-border-color: #e0e0e0;
}

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

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

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

/* Sections */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-promotions__dark-bg .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
}

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

.page-promotions__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

.page-promotions__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

.page-promotions__btn-primary:hover {
    background-color: darken(var(--accent-color-register), 10%);
    border-color: darken(var(--accent-color-register), 10%);
}

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

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

.page-promotions__light-bg .page-promotions__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-promotions__btn-block {
    width: 100%;
    display: block;
    margin-top: 20px;
}

.page-promotions__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Grid Layout for Cards */
.page-promotions__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__card {
    background-color: var(--background-light);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

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

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

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

.page-promotions__card-text {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Steps Grid */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-promotions__step-item {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__dark-bg .page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
}

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.page-promotions__dark-bg .page-promotions__step-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__dark-bg .page-promotions__step-title {
    color: var(--text-color-light);
}

.page-promotions__step-text {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.page-promotions__dark-bg .page-promotions__step-text {
    color: var(--text-color-light);
}

/* Product Grid */
.page-promotions__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__product-card {
    background-color: var(--background-light);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-promotions__product-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__product-text {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Video Section */
.page-promotions__video-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    transform: translateZ(0); /* Fix for some browsers rendering issues */
}

.page-promotions__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--background-light);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions__faq-title {
    margin: 0;
    color: inherit;
    font-size: 1.1em;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark);
    background-color: #fdfdfd;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

/* Call to Action Section */
.page-promotions__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-promotions__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-color-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Copyright */
.page-promotions__copyright {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: #666;
    background-color: #f5f5f5;
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-promotions__hero-content {
        margin-bottom: 30px;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

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

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

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

    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__grid-layout,
    .page-promotions__steps-grid,
    .page-promotions__product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__product-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__card-image,
    .page-promotions__product-image {
        height: 160px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__card-title {
        font-size: 1.4em;
    }

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

    .page-promotions__product-title {
        font-size: 1.3em;
    }

    .page-promotions__video-section {
        padding: 40px 15px;
    }

    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px;
    }

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px;
    }

    .page-promotions__cta-section {
        padding: 50px 15px;
    }

    .page-promotions__cta-title {
        font-size: 1.8em;
    }

    .page-promotions__cta-description {
        font-size: 1em;
    }

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

    .page-promotions__cta-buttons .page-promotions__btn-large {
        width: 100%;
    }

    /* Ensure all images inside .page-promotions are responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all containers with images/videos/buttons are responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Content area images must not be smaller than 200px */
    .page-promotions__card-image,
    .page-promotions__product-image {
        min-width: 200px !important;
        min-height: 160px !important; /* adjusted for aspect ratio */
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__cta-title {
        font-size: 1.6em;
    }
    .page-promotions__faq-question {
        font-size: 0.95em;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__step-icon {
        font-size: 2em;
        width: 50px;
        height: 50px;
    }
}