/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #f8f8f8; /* Light background as body is default white */
    color: #333333; /* Dark text for readability on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    background-color: #8B0000; /* Auxiliary color for a bold hero background */
    color: #ffffff; /* White text on dark background */
}

.page-faq__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-faq__main-title {
    font-size: 3.5em;
    font-weight: bold;
    color: #FFD700; /* Main color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__intro-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-faq__hero-image {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.page-faq__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-faq__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.page-faq__button--primary {
    background-color: #FFD700; /* Main color */
    color: #8B0000; /* Auxiliary color for text */
    border: 2px solid #FFD700;
}

.page-faq__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-faq__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Main color for text */
    border: 2px solid #FFD700;
}

.page-faq__button--secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
    transform: translateY(-3px);
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Auxiliary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-faq__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Main color for underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Accordion Styles */
.page-faq__accordion {
    margin-top: 40px;
}

.page-faq__accordion-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-question {
    padding: 20px 30px;
    font-size: 1.3em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fdfdfd;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-question:hover {
    background-color: #f5f5f5;
}

.page-faq__accordion-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: normal;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-faq__accordion-question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for '-' */
}

.page-faq__accordion-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #ffffff;
}

.page-faq__accordion-answer.active {
    max-height: 1000px; /* Arbitrary large value for smooth transition */
    padding: 20px 30px 30px;
}

.page-faq__accordion-answer p {
    margin-bottom: 15px;
    color: #555555;
}

.page-faq__accordion-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__image-container {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-faq__inline-link {
    color: #8B0000; /* Auxiliary color for inline links */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
    color: #FFD700; /* Main color on hover */
}

.page-faq__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
    margin-right: 10px;
}

/* Related Resources Section */
.page-faq__related-resources {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

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

.page-faq__resource-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-faq__resource-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-faq__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px;
}

.page-faq__card-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__card-title a:hover {
    color: #8B0000; /* Auxiliary color on hover */
}

.page-faq__resource-card p {
    padding: 0 20px;
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

.page-faq__button--link {
    display: inline-block;
    margin: 0 20px 20px;
    color: #FFD700; /* Main color for link button */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__button--link:hover {
    color: #8B0000; /* Auxiliary color on hover */
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.page-faq__cta-text {
    font-size: 1.5em;
    color: #333333;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 3em;
    }
    .page-faq__intro-description {
        font-size: 1.2em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__accordion-question {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
    }
    .page-faq__main-title {
        font-size: 2.5em;
    }
    .page-faq__intro-description {
        font-size: 1.1em;
    }
    .page-faq__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__accordion-question {
        font-size: 1.1em;
        padding: 18px 25px;
    }
    .page-faq__accordion-answer.active {
        padding: 15px 25px 25px;
    }
    .page-faq__accordion-answer p {
        font-size: 0.95em;
    }
    .page-faq__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-faq__resource-card img {
        height: 200px;
    }
    .page-faq__cta-bottom {
        padding: 30px 20px;
    }
    .page-faq__cta-text {
        font-size: 1.2em;
    }

    /* Important: Mobile content image overflow prevention */
    .page-faq__content-area img {
        max-width: 100%;
        height: auto;
    }
    .page-faq {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding: 40px 10px;
    }
    .page-faq__main-title {
        font-size: 2em;
    }
    .page-faq__intro-description {
        font-size: 1em;
    }
    .page-faq__button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-faq__content-area {
        padding: 30px 10px;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__accordion-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-faq__accordion-answer.active {
        padding: 10px 20px 20px;
    }
    .page-faq__cta-text {
        font-size: 1em;
    }
}

/* Ensure all images within .page-faq are at least 200px wide for desktop */
/* This rule targets all img elements within the .page-faq content area */
.page-faq img:not(.shared-header img):not(.shared-footer img) { /* Exclude header/footer images */
    min-width: 200px;
    min-height: 200px;
}

/* Specific override for card images to ensure they are large enough */
.page-faq__resource-card img {
    min-width: 200px; /* Ensure card images are not small icons */
    min-height: 200px;
}