/* =================================================== */
/* STYLES FOR: faq.php
/* =================================================== */

.faq-section {
    background-color: var(--color-background);
}

.faq-list__container {
    max-width: 800px;
    /* Constrains width for readability */
    margin: 0 auto;
}

.faq-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* The first category title doesn't need a large top margin */
.faq-category-title:first-of-type {
    margin-top: 0;
}

/* ==================== ACCORDION ITEM ==================== */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    display: block;
    /* Makes the whole summary clickable */
    position: relative;
    padding: 1.5rem 2.5rem 1.5rem 0;
    /* Right padding for the icon */
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    list-style: none;
    /* Hides the default disclosure triangle */
}

/* Hides default triangle in Firefox */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--color-primary);
}

/* ==================== ACCORDION ICON (+/-) ==================== */
.faq-question::after {
    content: '\f067';
    /* Font Awesome "plus" icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* When the <details> item is open, rotate the icon */
.faq-item[open]>.faq-question::after {
    /* Rotates the "+" 45 degrees to look like an "x" or close icon */
    transform: translateY(-50%) rotate(45deg);
}

/* ==================== ACCORDION ANSWER ==================== */
.faq-answer {
    padding-bottom: 1.5rem;
    padding-right: 2.5rem;
    /* Aligns with text above */
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 1rem;
}

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

.faq-answer a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer a:hover {
    color: var(--color-primary-alt);
}

/* ==================== FAQ CONTACT BOX ==================== */
.faq-contact-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    text-align: center;
}

.faq-contact-box__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.faq-contact-box__text {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}