/* style/faq.css */

/* Base styling for the FAQ page */
.page-faq {
    color: #ffffff; /* Light text on dark body background */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(25,25,25,0.8)); /* Dark overlay for text readability */
    border-bottom: 2px solid #FFD700;
}

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

.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, color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-faq__button--primary {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

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

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

.page-faq__button--secondary:hover {
    background-color: #FFD700;
    color: #000000;
    transform: translateY(-2px);
}

.page-faq__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 6px;
    background-color: #FFD700;
    color: #000000;
    border: none;
}

.page-faq__button--small:hover {
    background-color: #e6c200;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* FAQ List */
.page-faq__faq-list {
    display: grid;
    gap: 20px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-faq__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
    font-size: 1.4em;
    color: #FFD700;
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    position: relative;
}

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

.page-faq__faq-item--active .page-faq__faq-question::after {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    color: #ffffff;
    font-size: 1.05em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item--active .page-faq__faq-answer {
    max-height: 500px; /* Adjust based on content length */
    padding-top: 15px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

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

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

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

/* CTA Section */
.page-faq__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-faq__cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-faq__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-faq__cta-image-wrapper {
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

/* Related Resources */
.page-faq__related-resources {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-faq__resource-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.page-faq__resource-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

.page-faq__resource-title {
    font-size: 1.5em;
    margin: 20px 15px 10px 15px;
}

.page-faq__resource-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-faq__resource-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq {
        padding-top: var(--header-offset, 80px);
    }
    .page-faq__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__button {
        width: 100%;
        max-width: 300px;
    }
    .page-faq__content-area,
    .page-faq__cta-section,
    .page-faq__related-resources {
        padding: 30px 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        font-size: 1.2em;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        font-size: 0.9em;
        padding: 0 20px 15px 20px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-faq__resource-image {
        height: 200px;
    }

    /* Mobile image overflow prevention */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
    .page-faq__cta-title {
        font-size: 1.6em;
    }
}