/* style/faq.css */

.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* A very light grey for subtle contrast */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Deep blue for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-faq__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
    display: block;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for hero title */
    font-weight: bold;
    line-height: 1.1;
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

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

.page-faq__btn {
    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, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 180px;
}

.page-faq__btn--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #1a1a2e;
    border: 2px solid #FFD700;
}

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

.page-faq__btn--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-faq__btn--secondary:hover {
    background-color: #FFD700;
    color: #1a1a2e;
    transform: translateY(-3px);
}

.page-faq__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: unset;
    border-radius: 5px;
    background-color: #1E90FF;
    color: #ffffff;
    border: none;
}

.page-faq__btn--small:hover {
    background-color: #1565b3;
}

/* Category Section */
.page-faq__categories-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-faq__category-card {
    background-color: #f0f8ff; /* Light blue background for cards */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-faq__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-faq__category-title {
    font-size: 1.8em;
    color: #1E90FF;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-faq__category-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__category-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Accordion Sections */
.page-faq__accordion-section {
    padding: 60px 0;
}

.page-faq__accordion-section--alt {
    background-color: #f0f8ff; /* Alternate background for distinction */
}

.page-faq__accordion-item {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.page-faq__summary {
    display: block;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #1E90FF;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

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

.page-faq__summary::marker,
.page-faq__summary::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-faq__summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq__details[open] .page-faq__summary::after {
    content: '-';
    transform: rotate(0deg);
}

.page-faq__details-content {
    padding: 15px 25px 25px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

.page-faq__details-content p {
    margin-bottom: 15px;
}

.page-faq__details-content .page-faq__btn--small {
    margin-top: 10px;
}

.page-faq__inline-link {
    color: #1E90FF;
    text-decoration: underline;
    font-weight: bold;
}

.page-faq__inline-link:hover {
    color: #FFD700;
}

.page-faq__details-image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Example max-width for content images */
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Contact CTA Section */
.page-faq__contact-cta {
    padding: 80px 20px;
    background-color: #1E90FF; /* Deep blue background */
    color: #ffffff;
    text-align: center;
}

.page-faq__contact-cta .page-faq__section-title {
    color: #FFD700; /* Gold title on deep blue background */
}

.page-faq__contact-cta .page-faq__section-description {
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-faq__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn {
        width: 100%;
        max-width: 300px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-faq__categories-section,
    .page-faq__accordion-section,
    .page-faq__contact-cta {
        padding: 40px 0;
    }
    .page-faq__summary {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-faq__summary::after {
        right: 20px;
    }
    .page-faq__details-content {
        padding: 15px 20px 20px 20px;
    }

    /* CRITICAL: Mobile content image overflow prevention and min size enforcement */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
    .page-faq__details-image {
        min-width: 200px;
        min-height: 150px; /* Enforce minimum display height, assuming aspect ratio */
        width: 100%; /* Ensure it scales down within its container */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.95em;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__category-grid {
        grid-template-columns: 1fr;
    }
    .page-faq__category-card {
        padding: 25px;
    }
}