/* style/faq.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background: var(--secondary-color); /* Body background is white */
}

/* Header offset - applied to the first main section */
.page-faq__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-bottom for hero */
    background: var(--primary-color); /* Dark background for hero */
    color: var(--text-color-light); /* Light text for dark background */
}

.page-faq__hero-container {
    position: relative;
    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;
}

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

.page-faq__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg); /* Use specific color for CTA */
    color: var(--button-register-login-text); /* Use specific color for CTA text */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
}

.page-faq__cta-button:hover {
    background: #a30707; /* Example darken effect */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
    text-align: center;
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-faq__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-faq__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-faq__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-faq__category-item {
    display: inline-block;
    padding: 12px 25px;
    background: var(--background-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.page-faq__category-item:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
    background: var(--secondary-color);
}

.page-faq__faq-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.page-faq__faq-category-header:first-of-type {
    margin-top: 0;
}

.page-faq__category-title {
    font-size: 2em;
    color: var(--primary-color);
    margin: 0;
}

.page-faq__faq-category-header img {
    max-width: 200px; /* Smaller image for category header */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ Accordion Styles */
.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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 15px;
    opacity: 0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Use !important, value large enough */
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--background-light);
    border-radius: 0 0 5px 5px;
}

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

.page-faq__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}