/* style/promo.css */

/* Base styles for the promo page content, ensuring it starts below the fixed header */
.page-promo {
    padding-top: var(--header-offset, 120px); /* Ensures content clears the fixed header */
    background-color: #f4f4f4; /* Light background from shared.css body */
    color: #333333; /* Dark text for contrast on light background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding: 0; /* Remove default padding as content is within its own container */
}

.page-promo__hero-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promo__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-promo__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(10, 36, 99, 0.7); /* Overlay with main color, semi-transparent */
    color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
}

.page-promo__hero-title {
    font-size: 3.2em;
    color: #E3B505; /* Auxiliary color for emphasis */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-promo__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General Container for sections */
.page-promo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Titles */
.page-promo__section-title {
    font-size: 2.5em;
    color: #0A2463; /* Main color */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-promo__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #E3B505; /* Auxiliary color */
    border-radius: 2px;
}

.page-promo__sub-section-title {
    font-size: 1.8em;
    color: #0A2463;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promo__section-intro,
.page-promo__section-text,
.page-promo__section-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-promo__cta-button {
    display: inline-block;
    background-color: #E3B505; /* Auxiliary color */
    color: #0A2463; /* Main color for text */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #E3B505;
}

.page-promo__cta-button:hover {
    background-color: #0A2463; /* Main color on hover */
    color: #E3B505; /* Auxiliary color for text on hover */
    transform: translateY(-3px);
    border-color: #E3B505;
}

.page-promo__cta-button--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Card Section Styles */
.page-promo__card-section {
    background-color: #ffffff; /* White background for cards */
    padding: 60px 0;
}

.page-promo__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.page-promo__card--reverse {
    flex-direction: row-reverse;
}

.page-promo__card-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    object-fit: cover;
    width: 100%; /* Ensure image fills its flex container */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Minimum size for content images */
}

.page-promo__card-content {
    flex: 2;
    min-width: 300px;
}

.page-promo__card-title {
    font-size: 2em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-promo__card-description,
.page-promo__card-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555555;
}

/* List Styles (Maximize Section) */
.page-promo__list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promo__list-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-promo__list-item:hover {
    transform: translateY(-5px);
}

.page-promo__list-title {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 10px;
}

.page-promo__list-description {
    font-size: 1em;
    color: #666666;
}

/* FAQ Section */
.page-promo__faq-section {
    padding: 60px 0;
}

.page-promo__faq-item {
    background-color: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-promo__faq-question {
    font-size: 1.4em;
    color: #0A2463;
    margin-bottom: 10px;
    cursor: pointer; /* Indicate interactivity */
    position: relative;
    padding-right: 30px;
}

.page-promo__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #E3B505;
    transition: transform 0.3s ease;
}

.page-promo__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-promo__faq-answer {
    font-size: 1.1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.page-promo__faq-answer.active {
    max-height: 200px; /* Adjust as needed for content length */
    padding-top: 15px;
}

/* Link Styles */
.page-promo__link {
    color: #0A2463;
    text-decoration: underline;
    font-weight: bold;
}

.page-promo__link:hover {
    color: #E3B505;
}

/* Details List Section */
.page-promo__details-list-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

.page-promo__details-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-promo__details-card:hover {
    transform: translateY(-5px);
}

.page-promo__details-title {
    font-size: 1.6em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-promo__details-title a {
    color: #0A2463;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promo__details-title a:hover {
    color: #E3B505;
}

.page-promo__details-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

.page-promo__details-button {
    display: inline-block;
    background-color: #0A2463; /* Main color */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.page-promo__details-button:hover {
    background-color: #E3B505; /* Auxiliary color on hover */
    color: #0A2463;
}

/* Final CTA Section */
.page-promo__final-cta-section {
    background-color: #0A2463; /* Main color background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-promo__final-cta-section .page-promo__section-title {
    color: #E3B505; /* Auxiliary color for title */
}

.page-promo__final-cta-section .page-promo__section-title::after {
    background-color: #ffffff; /* White line */
}

.page-promo__final-cta-section .page-promo__section-description {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promo__hero-title {
        font-size: 2.8em;
    }
    .page-promo__hero-description {
        font-size: 1.2em;
    }
    .page-promo__section-title {
        font-size: 2.2em;
    }
    .page-promo__card-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-promo {
        padding-top: var(--header-offset, 120px); /* Ensure content clears the fixed header for mobile too */
    }
    .page-promo__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-promo__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-promo__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-promo__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-promo__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-promo__sub-section-title {
        font-size: 1.5em;
    }
    .page-promo__section-intro,
    .page-promo__section-text,
    .page-promo__section-description,
    .page-promo__card-description,
    .page-promo__card-text,
    .page-promo__list-description,
    .page-promo__faq-answer,
    .page-promo__details-description {
        font-size: 0.95em;
    }

    .page-promo__card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .page-promo__card--reverse {
        flex-direction: column; /* Stacks normally on mobile */
    }
    .page-promo__card-image {
        min-width: 200px; /* Minimum width for content images */
        width: 100%;
        height: auto;
        max-width: 100%; /* Ensure images do not overflow */
    }
    .page-promo__card-content {
        min-width: unset;
    }
    .page-promo__card-title {
        font-size: 1.5em;
    }
    .page-promo__list {
        grid-template-columns: 1fr;
    }
    .page-promo__list-item {
        padding: 20px;
    }
    .page-promo__faq-question {
        font-size: 1.2em;
    }
    .page-promo__details-grid {
        grid-template-columns: 1fr;
    }

    /* Important: Ensure all images within .page-promo are responsive and don't cause overflow */
    .page-promo img {
        max-width: 100%;
        height: auto;
    }
    /* Explicitly ensure content area images are not too small */
    .page-promo *:not(.shared-header):not(.shared-footer) img {
        min-width: 200px;
        min-height: 200px;
        max-width: 100%; /* Override any smaller sizes if they exist */
        height: auto;
    }
    /* Specific override for any smaller image classes if they appear, ensuring min-size */
    .page-promo__card-image,
    .page-promo__hero-image {
        min-width: 200px;
        min-height: 200px;
        max-width: 100%;
        height: auto;
    }
    /* For general img tags within content sections, if any are missed */
    .page-promo section img {
        min-width: 200px;
        min-height: 200px;
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images in content area are never smaller than 200px */
.page-promo img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Specifically for hero image, it can be larger */
.page-promo__hero-image {
    min-width: unset; /* Allow hero image to be full width */
    min-height: unset; /* Allow hero image to be full height */
}