/*
 * Find a coach (+ the 8 category pages) – Nov 2026 redesign
 * Design: Update course/design/find-coach-mockup.png
 * Markup: resources/views/frontend/find-coaches.blade.php + livewire/components/search-tutor.blade.php
 * Every rule is scoped to .fcx (page) so nothing else on the site changes. Replaces find-coaches-page.css.
 */

.fcx {
    --cream: #fbf6ef;
    --cream-2: #f5ebdf;
    --ink: #1d1a17;
    --muted: #6b625a;
    --line: #eadfd2;
    --grad: linear-gradient(135deg, #f3c93c 0%, #e79ab3 100%);
    --grad-soft: linear-gradient(135deg, #fdf3d9 0%, #fcefe6 55%, #fbebee 100%);
    --serif: "Playfair Display", Georgia, serif;
    --sans: Poppins, system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    padding-bottom: 90px;
}

.fcx *, .fcx *::before, .fcx *::after { box-sizing: border-box; }
.fcx a { text-decoration: none; }
.fcx-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.fcx-muted { color: var(--muted); }
.fcx .fcx-gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-style: italic; }

/* Buttons */
.fcx .fcx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 11px 20px; border-radius: 999px; border: 0; background: none;
    font-family: var(--sans); font-size: 14.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, filter 160ms ease;
}
.fcx .fcx-btn:hover { transform: translateY(-1px); }
.fcx .fcx-btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.fcx .fcx-btn--line:hover { background: #fff; color: var(--ink); }
.fcx .fcx-btn--dark { background: var(--ink); color: #fff; }
.fcx .fcx-btn--dark:hover { color: #fff; filter: brightness(1.25); }
.fcx .fcx-btn--block { width: 100%; }

/* Hero */
.fcx-hero { padding-top: 40px; padding-bottom: 22px; }
.fcx .fcx-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.fcx .fcx-crumb li { list-style: none; display: inline-flex; align-items: center; width: auto !important; flex: none; margin: 0; padding: 0; }
.fcx .fcx-crumb li::marker { content: none; }
.fcx .fcx-crumb li + li::before { content: "›"; margin-right: 8px; color: #b9ada1; font-size: 15px; line-height: 1; }
.fcx-crumb a { color: var(--muted); text-decoration: none; }
.fcx-crumb a:hover { color: var(--ink); }
.fcx-crumb .active { color: var(--ink); font-weight: 500; }
.fcx-kicker { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.fcx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.fcx .fcx-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.08; color: var(--ink); margin: 18px 0 14px; letter-spacing: -0.005em; }
.fcx-lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 780px; margin: 0; }
.fcx-intro { max-width: 780px; margin-top: 14px; }
.fcx-intro p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0 0 10px; }
/* Category intro: closed until "Read more" (the text stays in the HTML for search engines) */
.fcx-intro.is-closed { display: none; }
.fcx .fcx-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.fcx .fcx-more svg { transition: transform 160ms ease; }
.fcx .fcx-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Category chips */
.fcx-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; padding-bottom: 30px; }
.fcx .fcx-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 14px; color: var(--ink); white-space: nowrap; transition: background 160ms ease, border-color 160ms ease; }
.fcx .fcx-chip:hover { border-color: var(--ink); color: var(--ink); }
.fcx .fcx-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Layout */
.fcx-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; }
.fcx-main { min-width: 0; }

/* Filters (desktop sidebar, phone bottom sheet) */
.fcx-side { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px 24px; position: sticky; top: 24px; }
.fcx-side__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fcx .fcx-side__head .fcx-side__title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; color: var(--ink); }
.fcx-side__close, .fcx-side__foot, .fcx .am-fc-filters-scrim { display: none; }
.fcx-side__close { border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 50%; }
.fcx-field { margin-bottom: 18px; }
.fcx .fcx-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.fcx-input-icon { position: relative; }
.fcx-input-icon i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fcx .fcx-field .form-control,
.fcx .fcx-field .fcx-native-select,
.fcx .fcx-field .select2-container--default .select2-selection--single {
    height: 46px; min-height: 46px; border: 1px solid var(--line); border-radius: 14px; background-color: var(--cream);
    font-size: 14px; color: var(--ink); box-shadow: none; padding: 0 40px 0 14px; width: 100%;
}
.fcx .fcx-field .fcx-native-select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b625a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 10px; cursor: pointer; }
.fcx .fcx-field .form-control:focus, .fcx .fcx-field .fcx-native-select:focus { border-color: var(--ink); background-color: #fff; outline: none; }
.fcx .fcx-field .select2-container { width: 100% !important; }
.fcx .fcx-field .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding: 0; color: var(--ink); }
.fcx .fcx-field .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.fcx .fcx-field .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 10px; }
.fcx .am-specialty-hubs--find-coaches { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fcx-reset { background: none; border: 0; padding: 4px 0; font-size: 13.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.fcx-reset:hover { color: var(--ink); }

/* Toolbar */
.fcx-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.fcx .fcx-count { margin: 0; font-size: 15px; color: var(--muted); }
.fcx .fcx-count strong { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.fcx-toolbar__right { display: flex; align-items: center; gap: 10px; }
.fcx-sort { width: 200px; }
.fcx-sort .am-select { display: block; width: 100%; }
.fcx .fcx-sort .am-select .select2-container, .fcx .fcx-sort .select2-container { width: 100% !important; max-width: 100%; min-width: 0 !important; }
.fcx-sort .select2-container--default .select2-selection--single { height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 0 36px 0 16px; }
.fcx-sort .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding: 0; font-size: 14px; color: var(--ink); }
.fcx-sort .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink); }
.fcx-sort .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; right: 10px; }
.fcx .fcx-filters-btn { display: none; }

/* Coach grid and cards */
.fcx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fcx-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 160ms ease, transform 160ms ease; }
.fcx-card:hover { box-shadow: 0 18px 36px rgba(120, 80, 40, .10); transform: translateY(-2px); }
.fcx .fcx-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.fcx .fcx-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; border-radius: 0; }
.fcx .fcx-fav { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--ink); border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.fcx .fcx-fav i { font-size: 18px; line-height: 1; }
.fcx .fcx-fav.active { background: var(--grad); }
.fcx-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.fcx .fcx-card__name { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.fcx .fcx-card__name a { color: var(--ink); }
.fcx .fcx-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fcx .fcx-card__name .flag { width: 20px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.fcx .fcx-card__title { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 5px 0 8px; }
.fcx .fcx-card__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13.5px; color: var(--ink); margin: 0 0 10px; }
.fcx-star { color: #e0a43a; }
.fcx .fcx-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: var(--ink); margin-left: 4px; }
.fcx .fcx-card__trust .fcx-badge:first-child { margin-left: 0; }
.fcx .fcx-card__bio { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcx .fcx-card__langs { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.fcx-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.fcx .am-coach-card-price { margin: 0; font-size: 13.5px; color: var(--muted); }
.fcx .am-coach-card-price span { margin-right: 3px; }
.fcx .am-coach-card-price strong { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.fcx .am-coach-card-price em { font-style: normal; margin-left: 3px; text-transform: lowercase; }
.fcx-card__actions { display: flex; align-items: center; gap: 14px; }
.fcx-card__actions .fcx-btn { flex: 1; }
.fcx .fcx-link { font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; padding: 10px 0; }

/* Show more */
.fcx-more { text-align: center; margin-top: 40px; }
.fcx-progress { height: 4px; width: 220px; margin: 0 auto 16px; background: var(--line); border-radius: 4px; overflow: hidden; }
.fcx-progress i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.fcx .fcx-more p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.fcx .fcx-more__btn { min-width: 220px; }

.fcx .fcx-empty { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 48px 28px; text-align: center; }

/* Sections under the results (category guide, related areas, FAQs, reading) */
.fcx-extra { margin-top: 70px; display: grid; gap: 28px; }
.fcx .am-fc-hub-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fcx .am-fc-hub-guide-card,
.fcx .am-fc-related-hubs,
.fcx .am-fc-hub-faq,
.fcx .am-fc-related-reading { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 32px; margin: 0; }
.fcx .am-fc-hub-guide__title,
.fcx .am-fc-related-hubs-title,
.fcx .am-fc-related-reading-title { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.fcx .am-fc-hub-guide-card p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.fcx .am-fc-related-hubs-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fcx .am-fc-related-hub { background: var(--cream); border-radius: 18px; padding: 18px 20px; }
.fcx .am-fc-related-hub a { font-weight: 600; color: var(--ink); }
.fcx .am-fc-related-hub a:hover { text-decoration: underline; }
.fcx .am-fc-related-hub p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }
.fcx .am-fc-hub-faq__item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fcx .am-fc-hub-faq__item summary { cursor: pointer; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.fcx .am-fc-hub-faq__item p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 10px 0 0; }
.fcx .am-fc-related-reading-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fcx .am-fc-related-reading-list a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--ink); background: var(--cream); }
.fcx .am-fc-related-reading-list a:hover { border-color: var(--ink); }

/* Tablet */
@media (max-width: 1199px) {
    .fcx-wrap { padding: 0 32px; }
    .fcx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcx .am-fc-related-hubs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone and small tablet: filters become a bottom sheet */
@media (max-width: 991px) {
    .fcx-layout { grid-template-columns: 1fr; gap: 0; }
    .fcx-side {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1060;
        max-height: 86vh; overflow-y: auto; border-radius: 26px 26px 0 0; border: 0;
        transform: translateY(105%); transition: transform 240ms ease; padding-bottom: 0;
        box-shadow: 0 -18px 40px rgba(0, 0, 0, .18);
    }
    .fcx-side.is-open { transform: translateY(0); }
    .fcx-side__close { display: grid; place-items: center; }
    .fcx-side__foot { display: block; position: sticky; bottom: 0; background: #fff; padding: 14px 0 18px; margin-top: 8px; }
    .fcx .am-fc-filters-scrim { display: block; position: fixed; inset: 0; background: rgba(29, 26, 23, .45); z-index: 1055; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
    .fcx .am-fc-filters-scrim.is-visible { opacity: 1; pointer-events: auto; }
    .fcx .fcx-filters-btn { display: inline-flex; }
    .fcx-toolbar { position: sticky; top: 0; z-index: 20; background: var(--cream); margin: 0 -32px 16px; padding: 12px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .fcx-extra { margin-top: 50px; }
    .fcx .am-fc-hub-guide-grid { grid-template-columns: 1fr; }
}
body.am-fc-no-scroll { overflow: hidden; }

/* Phone: photo-left compact cards, about 5 per screen */
@media (max-width: 767px) {
    .fcx { padding-bottom: 60px; }
    .fcx-wrap { padding: 0 16px; }
    .fcx-hero { padding-top: 24px; }
    .fcx .fcx-hero h1 { font-size: 36px; }
    .fcx-lead { font-size: 15px; }
    .fcx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 18px; margin-right: -16px; padding-right: 16px; }
    .fcx-chips::-webkit-scrollbar { display: none; }
    .fcx-toolbar { margin: 0 -16px 14px; padding: 10px 16px; gap: 8px; }
    .fcx .fcx-count { white-space: nowrap; font-size: 14px; }
    .fcx .fcx-count strong { font-size: 20px; }
    .fcx-toolbar__right { gap: 8px; min-width: 0; }
    .fcx-sort { width: 122px; min-width: 0; }
    .fcx-sort .select2-container--default .select2-selection--single { padding: 0 28px 0 12px; }
    .fcx-sort .select2-container--default .select2-selection--single .select2-selection__rendered { font-size: 13px; }
    .fcx .fcx-filters-btn { padding: 10px 14px; flex: none; }
    .fcx-grid { grid-template-columns: 1fr; gap: 14px; }
    .fcx-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: 20px; }
    .fcx .fcx-card__img { aspect-ratio: auto; height: 100%; min-height: 168px; }
    .fcx .fcx-fav { top: 8px; left: 70px; right: auto; width: 34px; height: 34px; }
    .fcx .fcx-fav i { font-size: 15px; }
    .fcx-card__body { padding: 14px; }
    .fcx .fcx-card__name { font-size: 17.5px; }
    .fcx .fcx-card__title { font-size: 12.5px; margin: 3px 0 6px; }
    .fcx .fcx-card__trust { font-size: 12.5px; margin-bottom: 6px; }
    .fcx .fcx-badge { font-size: 10px; padding: 2px 8px; }
    .fcx .fcx-card__bio, .fcx .fcx-card__langs { display: none; }
    .fcx-card__foot { border-top: 0; padding-top: 6px; gap: 8px; }
    .fcx .am-coach-card-price { font-size: 12px; }
    .fcx .am-coach-card-price strong { font-size: 17px; }
    .fcx-card__actions { gap: 2px 14px; flex-wrap: wrap; }
    .fcx-card__actions .fcx-btn { flex: 0 0 auto; padding: 9px 16px; font-size: 13.5px; }
    .fcx .fcx-link { font-size: 12.5px; }
    .fcx .am-fc-related-hubs-list { grid-template-columns: 1fr; }
    .fcx .am-fc-hub-guide-card, .fcx .am-fc-related-hubs, .fcx .am-fc-hub-faq, .fcx .am-fc-related-reading { padding: 24px 20px; }
}

/* "Match me with a coach" (owner, 22 Nov 2026): under the filters on desktop, a slim line above the coaches on phones */
.fcx-fmc-side { margin-top: 22px; padding: 22px 20px 20px; border-radius: 20px; background: var(--grad-soft); }
.fcx .fcx-fmc-side p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.fcx .fcx-fmc-side p strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.fcx-fmc-slim-wrap { display: none; }
@media (max-width: 991px) {
    .fcx-fmc-side { display: none; }
    .fcx-fmc-slim-wrap { display: block; margin-bottom: 14px; }
    .fcx .fcx-fmc-slim { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--grad-soft); color: var(--ink); font-size: 14px; line-height: 1.4; }
    .fcx .fcx-fmc-slim strong { font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 380px) { .fcx .fcx-fmc-slim { flex-direction: column; align-items: flex-start; } }
.fcx .fcx-fmc-side .fcx-btn { white-space: normal; padding: 12px 14px; font-size: 14px; text-align: center; }
.fcx .fcx-fmc-side { padding: 20px 14px 16px; }
.fcx .fcx-fmc-side p { padding: 0 4px; }
.fcx .fcx-fmc-side .fcx-btn { white-space: nowrap; padding: 12px 10px; font-size: 13.5px; gap: 6px; }

/* Coach cards (owner, 22 Nov 2026): photo on top, 2 per row on desktop and tablet. Phones keep their compact cards. */
@media (min-width: 768px) {
    .fcx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .fcx .fcx-card__img { aspect-ratio: 4 / 3; }
    .fcx .fcx-card__bio { -webkit-line-clamp: 3; }
    .fcx-card__foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
    .fcx-card__actions { gap: 16px; }
    .fcx-card__actions .fcx-btn { flex: 0 0 auto; padding: 11px 24px; }
}
