.fhc {
    --fhc-brand-turquoise: #00c4cc;
    --fhc-brand-navy: #002c47;
    --fhc-brand-grey: #4d4d4d;
    --fhc-brand-mint: #29cf9a;
    --fhc-brand-blue: #28bff6;
    --fhc-brand-sky: #288ff6;
    --fhc-brand-gold: #ffd466;
    --fhc-bg: #ffffff;
    --fhc-panel: #f8fcfd;
    --fhc-card: #ffffff;
    --fhc-text: var(--fhc-brand-navy);
    --fhc-muted: #5f7082;
    --fhc-border: rgba(0, 44, 71, 0.14);
    --fhc-border-soft: rgba(0, 196, 204, 0.22);
    --fhc-accent: var(--fhc-brand-turquoise);
    --fhc-accent-strong: #009da7;
    --fhc-accent-soft: rgba(0, 196, 204, 0.12);
    --fhc-mint-soft: rgba(41, 207, 154, 0.14);
    --fhc-blue-soft: rgba(40, 191, 246, 0.14);
    --fhc-gold-soft: rgba(255, 212, 102, 0.24);
    --fhc-shadow: 0 18px 42px rgba(0, 44, 71, 0.08);
    --fhc-shadow-soft: 0 10px 24px rgba(0, 44, 71, 0.055);
    color: var(--fhc-text);
    max-width: 1120px;
    margin: 42px auto;
    font-family: inherit;
}

.fhc * {
    box-sizing: border-box;
}

.fhc__hero {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px solid rgba(0, 196, 204, 0.36);
    border-radius: 24px;
    padding: clamp(32px, 4.5vw, 58px) clamp(18px, 4vw, 42px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 212, 102, 0.38) 0 54px, transparent 55px),
        radial-gradient(circle at 100% 100%, rgba(41, 207, 154, 0.18) 0 72px, transparent 73px),
        linear-gradient(135deg, rgba(0, 196, 204, 0.22), rgba(40, 191, 246, 0.17) 45%, rgba(255, 255, 255, 0.88) 100%);
    box-shadow: var(--fhc-shadow-soft);
}

.fhc__hero::after {
    content: '';
    position: absolute;
    inset: auto 24px -70px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(0, 196, 204, 0.10);
    pointer-events: none;
}

.fhc__title {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: var(--fhc-brand-turquoise);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.fhc__subtitle {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    color: var(--fhc-muted);
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.6;
}

.fhc__search-wrap {
    display: grid;
    gap: 10px;
    margin: 24px 0 16px;
    border: 1px solid var(--fhc-border);
    border-radius: 20px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--fhc-shadow-soft);
}

.fhc__search-label {
    color: var(--fhc-brand-navy);
    font-weight: 850;
    font-size: 14px;
}

.fhc__search {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(0, 44, 71, 0.16);
    border-radius: 15px;
    padding: 0 17px;
    background: #f8fcfd;
    color: var(--fhc-text);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fhc__search::placeholder {
    color: rgba(95, 112, 130, 0.76);
}

.fhc__search:focus {
    border-color: var(--fhc-brand-turquoise);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--fhc-accent-soft);
}

.fhc__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
    padding: 10px;
    border: 1px solid var(--fhc-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--fhc-shadow-soft);
}

.fhc__tab {
    border: 1px solid rgba(0, 44, 71, 0.14);
    border-radius: 999px;
    background: #f8fcfd;
    color: var(--fhc-brand-navy);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    padding: 9px 15px;
    transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.fhc__tab:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 196, 204, 0.42);
    box-shadow: 0 10px 18px rgba(0, 44, 71, 0.055);
}

.fhc__tab.is-active {
    background: linear-gradient(135deg, var(--fhc-brand-turquoise), var(--fhc-brand-sky));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 196, 204, 0.22);
}

.fhc__tab[data-fhc-tab="parent"].is-active {
    background: linear-gradient(135deg, var(--fhc-brand-mint), var(--fhc-brand-turquoise));
}

.fhc__tab[data-fhc-tab="teacher"].is-active {
    background: linear-gradient(135deg, var(--fhc-brand-navy), var(--fhc-brand-sky));
}

.fhc__sections {
    border: 1px solid var(--fhc-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--fhc-shadow);
    padding: clamp(18px, 2.6vw, 28px);
}

.fhc__section {
    display: none;
}

.fhc__section.is-active {
    display: block;
}

.fhc__section-heading {
    position: relative;
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
    padding: 18px 20px 18px 24px;
    border: 1px solid rgba(0, 196, 204, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.12), rgba(255, 255, 255, 0.9));
}

.fhc__section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 5px;
    border-radius: 999px;
    background: var(--fhc-brand-turquoise);
}

.fhc__section[data-fhc-section="parent"] .fhc__section-heading {
    border-color: rgba(41, 207, 154, 0.24);
    background: linear-gradient(135deg, rgba(41, 207, 154, 0.12), rgba(255, 255, 255, 0.9));
}

.fhc__section[data-fhc-section="parent"] .fhc__section-heading::before {
    background: var(--fhc-brand-mint);
}

.fhc__section[data-fhc-section="teacher"] .fhc__section-heading {
    border-color: rgba(40, 143, 246, 0.22);
    background: linear-gradient(135deg, rgba(40, 143, 246, 0.10), rgba(255, 255, 255, 0.9));
}

.fhc__section[data-fhc-section="teacher"] .fhc__section-heading::before {
    background: var(--fhc-brand-sky);
}

.fhc__section-heading h2 {
    margin: 0;
    color: var(--fhc-brand-navy);
    font-size: clamp(21px, 2.5vw, 30px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.fhc__section-heading p {
    margin: 0;
    color: var(--fhc-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fhc__cards {
    display: grid;
    gap: 12px;
}

.fhc-card {
    border: 1px solid var(--fhc-border);
    border-radius: 18px;
    background: var(--fhc-card);
    box-shadow: 0 8px 22px rgba(0, 44, 71, 0.045);
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.fhc-card:hover {
    border-color: rgba(0, 196, 204, 0.34);
    box-shadow: 0 12px 28px rgba(0, 44, 71, 0.065);
    transform: translateY(-1px);
}

.fhc-card[hidden] {
    display: none;
}

.fhc-card__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 17px 18px;
    list-style: none;
}

.fhc-card__summary::-webkit-details-marker {
    display: none;
}

.fhc-card__summary::after {
    content: '+';
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--fhc-accent-soft);
    color: var(--fhc-accent-strong);
    font-size: 21px;
    font-weight: 850;
    line-height: 1;
}

.fhc-card[open] .fhc-card__summary::after {
    content: '−';
}

.fhc-card__question {
    color: var(--fhc-brand-navy);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}

.fhc-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.fhc-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(77, 77, 77, 0.08);
    color: var(--fhc-muted);
    font-size: 11px;
    font-weight: 850;
}

.fhc-card__badge--role {
    background: var(--fhc-accent-soft);
    color: var(--fhc-accent-strong);
}

.fhc__section[data-fhc-section="parent"] .fhc-card__badge--role {
    background: var(--fhc-mint-soft);
    color: #128a6b;
}

.fhc__section[data-fhc-section="teacher"] .fhc-card__badge--role {
    background: var(--fhc-blue-soft);
    color: #126fa1;
}

.fhc-card__answer {
    border-top: 1px solid var(--fhc-border);
    padding: 0 18px 18px;
    color: var(--fhc-text);
    line-height: 1.65;
    font-size: 14px;
}

.fhc-card__answer p:first-child {
    margin-top: 16px;
}

.fhc-card__answer p:last-child {
    margin-bottom: 0;
}

.fhc-card__answer a:not(.fhc-card__button) {
    color: var(--fhc-accent-strong);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.fhc-card__answer ul,
.fhc-card__answer ol {
    padding-left: 1.25rem;
}

.fhc-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 17px;
    background: linear-gradient(135deg, var(--fhc-brand-turquoise), var(--fhc-brand-sky));
    color: #ffffff !important;
    font-weight: 850;
    text-decoration: none !important;
    box-shadow: 0 12px 22px rgba(0, 196, 204, 0.20);
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.fhc-card__button::after {
    content: '→';
    margin-left: 8px;
}

.fhc-card__button:hover,
.fhc-card__button:focus {
    filter: brightness(0.97);
    transform: translateY(-1px);
    box-shadow: 0 15px 26px rgba(0, 196, 204, 0.24);
}

.fhc__empty,
.fhc__no-results {
    border: 1px dashed rgba(0, 196, 204, 0.35);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--fhc-muted);
    margin: 0;
}

.fhc__no-results {
    margin-top: 14px;
}

@media (max-width: 760px) {
    .fhc {
        margin: 24px auto;
    }

    .fhc__hero {
        border-radius: 20px;
        min-height: 160px;
    }

    .fhc__tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fhc__tab {
        width: 100%;
    }

    .fhc__sections {
        border-radius: 20px;
        padding: 16px;
    }

    .fhc-card__summary {
        grid-template-columns: minmax(0, 1fr) 30px;
        align-items: start;
    }

    .fhc-card__badges {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .fhc-card__summary::after {
        grid-column: 2;
        grid-row: 1;
    }
}
