/* style/promo.css */

/* Base styling for the page content wrapper */
.page-promo {
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #FFFFFF; /* Auxiliary color as background */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden; /* Prevent content overflow */
    min-height: 600px; /* Ensure hero section has a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-promo__hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-promo__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #FFFFFF; /* White text for hero section */
}

.page-promo__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promo__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-promo__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 180px;
    text-align: center;
    cursor: pointer;
}

.page-promo__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000; /* Text color for register button */
    border: 2px solid #FFFFFF;
}

.page-promo__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.page-promo__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Text color for login button */
    border: 2px solid #FCBC45;
}

.page-promo__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

/* Section Styling */
.page-promo__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-promo__intro-text {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-promo__section-title {
    font-size: 2.5em;
    color: #000000; /* Main color for section titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.page-promo__card {
    background-color: #f8f8f8; /* Light background for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-promo__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 250px;
    min-height: 200px;
}

.page-promo__card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-promo__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #555555;
}

.page-promo__card-button {
    background-color: #FCBC45;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    cursor: pointer;
}

.page-promo__card-button:hover {
    background-color: #e0a030;
}

.page-promo__section--dark {
    background-color: #000000; /* Main color for dark section background */
    color: #FFFFFF; /* White text for dark background */
}

.page-promo__section--dark .page-promo__section-title {
    color: #FFFFFF;
}

.page-promo__section--dark .page-promo__section-title::after {
    background-color: #FCBC45;
}

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

.page-promo__reason-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promo__reason-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-promo__reason-title {
    font-size: 1.8em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-promo__reason-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-promo__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promo__faq-question {
    padding: 20px;
    background-color: #000000; /* Dark background for questions */
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
    background-color: #1a1a1a;
}

.page-promo__faq-answer {
    padding: 20px;
    background-color: #FFFFFF;
    color: #333333;
    display: none; /* Hidden by default */
    border-top: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.page-promo__faq-toggle-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

/* CTA Section */
.page-promo__cta-section {
    background: linear-gradient(135deg, #000000, #333333);
    color: #FFFFFF;
    padding: 80px 20px;
    margin-top: 60px;
    border-radius: 10px;
}

.page-promo__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-promo__hero-title {
        font-size: 2.5em;
    }

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

    .page-promo__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-promo__button {
        width: 100%;
        max-width: 250px;
    }

    .page-promo__section-title {
        font-size: 2em;
    }

    .page-promo__grid {
        grid-template-columns: 1fr;
    }

    .page-promo__reason-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image constraint */
    .page-promo img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure minimum size is still met */
        min-height: 200px; /* Ensure minimum size is still met */
    }

    .page-promo__card-image {
        height: auto; /* Allow height to adjust on mobile */
    }

    .page-promo__hero-section {
        min-height: 400px; /* Adjust min height for mobile hero */
        padding: 40px 20px;
    }

    .page-promo__hero-image {
        min-width: 100%;
        min-height: 100%;
    }
}

/* Global image constraint for content area (ensures min size for all images in .page-promo, not just cards) */
.page-promo img {
    min-width: 200px;
    min-height: 200px;
}