/* ════════════════════════════════════════
   FAQ PAGE — modernaminos.com
   Path: /assets/css/faq-styles.css
════════════════════════════════════════ */

/* ── Hero ── */
.faq-hero {
    background: linear-gradient(180deg, #002B47 0%, #003862 100%);
    padding: 35px 15px;
    text-align: center;
    color: #ffffff;
}

.faq-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-hero h1 {
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #ffffff;
}

.faq-hero p {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #c9973a;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .faq-hero {
        padding: 35px 15px;
    }
    .faq-hero h1 {
        font-size: 20px;
    }
    .faq-hero p {
        font-size: 14px;
    }
}

/* ── Main section ── */
.faq-main {
    background: #ffffff;
    padding: 64px 20px 96px;
}

.faq-main-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── Left: category tab list ── */
.faq-cats {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 32, 62, 0.06);
    overflow: hidden;
}

.faq-cats-head {
    background: #116190;
    color: #ffffff;
    padding: 18px 24px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.faq-cats-list {
    list-style: none;
    margin: 0;
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5b6675;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-cat-btn:hover {
    background: #f4f7fa;
    color: #1a6e8e;
}

.faq-cat-btn.is-active, .faq-mcat-btn:focus,
.faq-mcat-btn:hover,
.faq-q-btn:focus,
.faq-q-btn:hover,
.faq-cat-btn:focus {
    background: #e8f0f8;
    color: #1a6e8e;
}

.faq-cat-btn .faq-cat-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: currentColor;
}

/* ── Right: accordion panel ── */
.faq-panels {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 32, 62, 0.06);
    padding: 22px 26px 28px;
    min-height: 420px;
    min-width: 0;
    overflow: hidden;
}

.faq-panel {
    display: none;
}

.faq-panel.is-active {
    display: block;
}

.faq-panel-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Accordion question button ── */
.faq-q-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 26px;
    border: 0;
    border-radius: 999px;
    background: #e8eef4;
    color: #213E7C;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.faq-q-btn:hover {
    background: #dbe6f1;
}

.faq-q-item.is-open .faq-q-btn {
    background: #116190;
    color: #ffffff;
}

/* ── +/- icons ── */
.faq-q-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.faq-q-icon-minus {
    display: none;
}

.faq-q-item.is-open .faq-q-icon-plus {
    display: none;
}

.faq-q-item.is-open .faq-q-icon-minus {
    display: block;
}

/* ── Answer body ── */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.faq-q-item.is-open .faq-a {
    max-height: 1500px;
    margin-top: 12px;
}

.faq-a-inner {
    padding: 22px 20px;
    border: 1px solid #e3ecf3;
    border-radius: 14px;
    background: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1c2e3a;
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-a-inner p {
    margin: 0 0 12px;
}

.faq-a-inner p:last-child {
    margin-bottom: 0;
}

.faq-a-inner ul {
    margin: 8px 0 12px 22px;
    padding: 0;
}

.faq-a-inner li {
    margin: 0 0 6px;
}

.faq-a-inner a,
.faq-a-inner a b,
.faq-a-inner a strong {
    color: #c2185b;
    text-decoration: none;
    font-weight: 600;
}

.faq-a-inner a:hover,
.faq-a-inner a:hover b,
.faq-a-inner a:hover strong {
    color: #444;
}

.faq-a-inner b,
.faq-a-inner strong {
    color: #0f1b2d;
    font-weight: 700;
}

/* ── Mobile section (hidden by default) ── */
.faq-mobile {
    display: none;
}

.faq-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-mcat {
    display: flex;
    flex-direction: column;
}

.faq-mcat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background: #e8eef4;
    color: #213E7C;
    border: 0;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-mcat.is-open .faq-mcat-btn {
    background: #116190;
    color: #ffffff;
}

/* ── Override theme/reset focus & hover colors ── */

.faq-mcat-btn:focus-visible,
.faq-q-btn:focus-visible,
.faq-cat-btn:focus-visible {
    outline: 2px solid #116190;
    outline-offset: 2px;
}

.faq-q-btn:hover {
    background: #dbe6f1;
    color: #213E7C;
}

.faq-mcat-btn:hover {
    background: #d4dff0;
    color: #213E7C;
}

.faq-mcat-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.faq-mcat.is-open .faq-mcat-icon {
    transform: rotate(180deg);
}

.faq-mcat-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 4px;
}

.faq-mcat.is-open .faq-mcat-panel {
    max-height: 9999px;
    padding: 14px 4px 4px;
}

.faq-mcat-panel .faq-panel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Tablet: stack categories above panels ── */
@media (max-width: 960px) {
    .faq-main {
        padding: 48px 18px 72px;
    }

    .faq-main-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-cats-list {
        padding: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .faq-cat-btn {
        flex: 1 1 calc(50% - 4px);
        padding: 12px 14px;
        font-size: 12px;
    }
}

/* ── Mobile: swap to collapsible categories ── */
@media (max-width: 768px) {
    .faq-main-inner {
        display: none;
    }

    .faq-mobile {
        display: block;
    }

    .faq-main {
        padding: 36px 14px 60px;
    }

    .faq-q-btn {
        padding: 14px 18px;
        font-size: 13.5px;
        gap: 10px;
    }

    .faq-a-inner {
        padding: 16px 18px;
        font-size: 14px;
        line-height: 1.7;
    }

    /* Closed accordion items inside an open mobile category */
    .faq-mcat.is-open .faq-mcat-panel .faq-q-btn {
        background-color: transparent;
        border: 1px solid #E9E5E5;
        color: #08202C;
    }

    /* Open accordion item inside an open mobile category */
    .faq-mcat.is-open .faq-mcat-panel .faq-q-item.is-open .faq-q-btn {
        background-color: #fff;
        border: 1px solid #116190;
        color: #116190;
        border-radius: 100px;
    }
}

@media (max-width: 580px) {
    .faq-mcat-btn {
        padding: 16px 18px; /* fixed: was "16x 18px" */
        font-size: 12px;
        font-weight:600;
    }
}