/* style/promotions.css */

:root {
    --page-promotions-primary-color: #003366;
    --page-promotions-secondary-color: #FFCC00;
    --page-promotions-text-dark: #333333;
    --page-promotions-text-light: #ffffff;
    --page-promotions-bg-light: #ffffff;
    --page-promotions-bg-dark: #003366;
    --page-promotions-border-light: #e0e0e0;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    background-color: var(--page-promotions-bg-dark);
    color: var(--page-promotions-text-light);
    overflow: hidden;
    text-align: center;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-promotions-secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--page-promotions-secondary-color);
    color: var(--page-promotions-primary-color);
    border: 2px solid var(--page-promotions-secondary-color);
}

.page-promotions__btn-primary:hover {
    background-color: #e6b800; /* Darker shade of secondary color */
    border-color: #e6b800;
    color: var(--page-promotions-primary-color);
}

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

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

/* General Sections */
.page-promotions__intro-section,
.page-promotions__terms-section,
.page-promotions__benefits-section,
.page-promotions__cta-bottom {
    padding: 60px 0;
    background-color: var(--page-promotions-bg-light);
    color: var(--page-promotions-text-dark);
}

.page-promotions__types-section,
.page-promotions__guide-section,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--page-promotions-bg-dark);
    color: var(--page-promotions-text-light);
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

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

.page-promotions__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

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

.page-promotions__promotion-card {
    background-color: var(--page-promotions-bg-light);
    color: var(--page-promotions-text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--page-promotions-primary-color);
    margin: 15px 15px 10px 15px;
    min-height: 60px;
}

.page-promotions__card-title a {
    color: var(--page-promotions-primary-color);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-description {
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-primary,
.page-promotions__promotion-card .page-promotions__btn-secondary {
    margin: 0 15px;
}

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

.page-promotions__term-item {
    background-color: #f9f9f9;
    border-left: 5px solid var(--page-promotions-primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-promotions__term-description {
    font-size: 1em;
    color: var(--page-promotions-text-dark);
}

.page-promotions__terms-section a {
    color: var(--page-promotions-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__terms-section a:hover {
    text-decoration: underline;
}

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

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-promotions__step-description {
    font-size: 1em;
    color: var(--page-promotions-text-light);
    flex-grow: 1;
    margin-bottom: 20px;
}

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

/* Benefits Section */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-promotions__benefit-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--page-promotions-secondary-color);
}

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

.page-promotions__benefit-description {
    font-size: 1em;
    color: var(--page-promotions-text-dark);
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--page-promotions-text-light);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-q-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;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--page-promotions-text-light);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

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

/* Bottom CTA */
.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--page-promotions-primary-color);
}

.page-promotions__cta-bottom .page-promotions__cta-buttons {
    margin-top: 30px;
}

/* Image & Video Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promotion-grid,
    .page-promotions__terms-grid,
    .page-promotions__guide-steps,
    .page-promotions__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__promotion-card {
        padding-bottom: 15px;
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
        min-height: auto;
    }
    .page-promotions__card-description {
        font-size: 0.9em;
    }
    .page-promotions__term-title,
    .page-promotions__benefit-title {
        font-size: 1.2em;
    }
    .page-promotions__step-title {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-promotions__faq-q-title {
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}