/* style/faq.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-body: #0f172a;
    --bg-light-card: #ffffff;
    --border-color: #e0e0e0;
}

.page-faq {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark-body);
}

/* Fixed navigation bar spacing */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), #0a1e36);
    color: var(--text-light);
}

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

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-faq__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
    margin-top: 15px;
}

.page-faq__cta-button--large {
    padding: 20px 50px;
    font-size: 20px;
    margin-top: 30px;
}

.page-faq__section-faq {
    padding: 60px 20px;
    background-color: #1a253a; /* Slightly lighter dark background for contrast */
    color: var(--text-light);
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    border: 1px solid #002244;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: #004488;
    border-color: #003366;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #0d1420; /* Darker background for answer */
    color: #cccccc;
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #002244;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 16px;
}

.page-faq__faq-answer img.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-faq__section-conclusion {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a1e36, var(--primary-color));
    text-align: center;
    color: var(--text-light);
}

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

.page-faq__conclusion-text {
    font-size: 18px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 36px;
    }

    .page-faq__hero-description,
    .page-faq__conclusion-text {
        font-size: 17px;
    }

    .page-faq__section-title {
        font-size: 32px;
    }

    .page-faq__faq-question h3 {
        font-size: 17px;
    }

    .page-faq__faq-answer p {
        font-size: 15px;
    }

    .page-faq__conclusion-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__main-title {
        font-size: 30px;
    }

    .page-faq__hero-description {
        font-size: 16px;
    }

    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-faq__section-faq,
    .page-faq__section-conclusion {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
    }

    .page-faq__faq-question h3 {
        font-size: 16px;
    }

    .page-faq__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
        margin-left: 15px;
    }

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

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }

    .page-faq__faq-answer p {
        font-size: 14px;
    }

    .page-faq__conclusion-title {
        font-size: 28px;
    }

    .page-faq__conclusion-text {
        font-size: 16px;
    }

    .page-faq__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
    }

    /* Ensure images and containers are fully responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__hero-container,
    .page-faq__container,
    .page-faq__faq-item,
    .page-faq__faq-question,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 26px;
    }

    .page-faq__section-title {
        font-size: 24px;
    }

    .page-faq__conclusion-title {
        font-size: 24px;
    }
    .page-faq__cta-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    .page-faq__cta-button--small {
        font-size: 14px;
        padding: 8px 18px;
    }
    .page-faq__cta-button--large {
        font-size: 16px;
        padding: 12px 25px;
    }
}