/* ------------------------------------------------------------------
   FAQ page
   Theme colours: primary red #df1e26, teal #00768d, dark #3a312c
-------------------------------------------------------------------*/

.faq-section {
    background: #ffffff;
}

.faq-intro h5 {
    color: #00768d;
}

.faq-intro p {
    color: #5c5c5c;
    line-height: 1.6;
}

.faq-intro-link {
    color: #df1e26;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.faq-intro-link:hover,
.faq-intro-link:focus {
    color: #df1e26;
    border-bottom-color: #df1e26;
}

/* --- Category groups --- */
.faq-category {
    margin-bottom: 45px;
}

.faq-category-title {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #df1e26;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e2e3;
    position: relative;
}

.faq-category-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: #df1e26;
}

/* --- Accordion --- */
.faq-accordion {
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 14px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-item.is-open {
    border-color: #00768d;
    box-shadow: 0 8px 26px rgba(0, 118, 141, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 22px 26px;
    cursor: pointer;
    font-family: 'Yantramanav', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: #3a312c;
    transition: color 0.2s ease;
}

.faq-question:hover,
.faq-question:focus {
    color: #00768d;
    outline: none;
}

.faq-item.is-open .faq-question {
    color: #00768d;
    font-weight: 600;
}

.faq-question-text {
    flex: 1 1 auto;
}

/* --- Plus / minus icon --- */
.faq-icon {
    flex: 0 0 auto;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f4f4f4;
    transition: background 0.25s ease, transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #df1e26;
    transition: transform 0.25s ease, background 0.25s ease;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.faq-question:hover .faq-icon,
.faq-item.is-open .faq-icon {
    background: #00768d;
}

.faq-question:hover .faq-icon::before,
.faq-question:hover .faq-icon::after,
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background: #ffffff;
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

/* --- Answer panel --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 26px 24px 26px;
}

.faq-answer-inner p {
    margin: 0;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #5c5c5c;
}

/* --- Read more button --- */
.faq-more-btn {
    display: inline-block;
    padding: 14px 42px;
    background: #df1e26;
    color: #ffffff;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-more-btn:hover,
.faq-more-btn:focus {
    background: #00768d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 118, 141, 0.22);
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .faq-question {
        font-size: 17px;
        padding: 18px 18px;
        gap: 14px;
    }

    .faq-answer-inner {
        padding: 0 18px 20px 18px;
    }

    .faq-category {
        margin-bottom: 35px;
    }
}
