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

.page-faq__hero-section {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Primary blue gradient */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15; /* Subtle background image */
}

.page-faq__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffc107; /* Secondary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__intro-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

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

.page-faq__button--primary {
    background-color: #ffc107; /* Auxiliary color */
    color: #000000;
    border: 2px solid #ffc107;
}

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

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

.page-faq__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.page-faq__category-navigation {
    text-align: center;
    margin-bottom: 50px;
}

.page-faq__category-heading {
    font-size: 2.2em;
    color: #007bff;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-faq__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-faq__category-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #e9ecef;
    color: #007bff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #dee2e6;
    min-width: 200px;
    text-align: center;
}

.page-faq__category-link:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-category {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    padding: 30px;
    scroll-margin-top: calc(var(--header-offset, 120px) + 20px); /* Account for fixed header when navigating to anchor */
}

.page-faq__category-title {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 30px;
    border-bottom: 2px solid #ffc107; /* Auxiliary color for accent */
    padding-bottom: 15px;
}

.page-faq__accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.page-faq__accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.page-faq__accordion-header:hover {
    color: #007bff;
}

.page-faq__accordion-question {
    flex-grow: 1;
}

.page-faq__accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #007bff;
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 9px;
    left: 0;
}

.page-faq__accordion-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 9px;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
    transform: rotate(90deg);
}

.page-faq__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 10px;
    color: #555555;
}

.page-faq__accordion-content p {
    padding-bottom: 20px;
    margin-top: 10px;
    font-size: 1em;
}

.page-faq__accordion-content a {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}

.page-faq__accordion-content a:hover {
    color: #0056b3;
}

.page-faq__contact-support {
    text-align: center;
    background-color: #007bff;
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__contact-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffc107;
    font-weight: bold;
}

.page-faq__contact-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-faq__contact-support .page-faq__button--primary {
    background-color: #ffc107;
    color: #000000;
    border-color: #ffc107;
}

.page-faq__contact-support .page-faq__button--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.page-faq__contact-support .page-faq__button--secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-faq__contact-support .page-faq__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__intro-description {
        font-size: 1.2em;
    }
    .page-faq__hero-section {
        padding: 60px 20px;
    }
    .page-faq__content-area {
        padding: 40px 20px;
    }
    .page-faq__category-link {
        min-width: unset;
        width: auto;
        flex-grow: 1;
    }
    .page-faq__category-navigation {
        margin-bottom: 40px;
    }
    .page-faq__category-heading {
        font-size: 2em;
    }
    .page-faq__category-title {
        font-size: 1.8em;
    }
    .page-faq__accordion-header {
        font-size: 1.1em;
    }
    .page-faq__contact-title {
        font-size: 2em;
    }
    .page-faq__contact-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-faq__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-faq__intro-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-faq__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__button {
        width: 100%;
        max-width: 250px;
    }
    .page-faq__content-area {
        padding: 30px 15px;
    }
    .page-faq__category-navigation {
        margin-bottom: 30px;
    }
    .page-faq__categories {
        flex-direction: column;
        align-items: center;
    }
    .page-faq__category-link {
        width: 100%;
        max-width: 300px;
    }
    .page-faq__faq-category {
        padding: 20px;
    }
    .page-faq__category-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-faq__accordion-header {
        font-size: 1em;
        padding: 15px 0;
    }
    .page-faq__accordion-content p {
        padding-bottom: 15px;
    }
    .page-faq__contact-title {
        font-size: 1.8em;
    }
    .page-faq__contact-description {
        font-size: 1em;
    }
    .page-faq__contact-support {
        padding: 40px 15px;
    }

    /* Mobile images constraint */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__intro-description {
        font-size: 0.9em;
    }
    .page-faq__category-heading {
        font-size: 1.6em;
    }
    .page-faq__category-title {
        font-size: 1.4em;
    }
    .page-faq__accordion-header {
        font-size: 0.95em;
    }
    .page-faq__contact-title {
        font-size: 1.6em;
    }
}