:root {
  --green-950: #082b23;
  --green-900: #0b3a30;
  --green-800: #0f5a48;
  --green-700: #0f6e56;
  --green-600: #128164;
  --mint-500: #24c79a;
  --mint-200: #9fe8d2;
  --mint-100: #ddf6ee;
  --cream: #faf9f2;
  --paper: #fff;
  --ink: #14201b;
  --muted: #678179;
  --line: #dce7e1;
  --danger: #b33434;
  --shadow: 0 22px 60px rgb(8 43 35 / 10%);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@font-face {
  font-family: "BPG Mrgvlovani Caps 2010";
  src: url("../fonts/bpg-mrgvlovani-caps-2010.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body { margin: 0; color: var(--ink); background: var(--cream); font-family: "BPG Mrgvlovani Caps 2010", system-ui, -apple-system, sans-serif; line-height: 1.55; }
body, input, select, textarea, button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { border-radius: 12px; }
button, select { cursor: pointer; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 12px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgb(36 199 154 / 16%); }
textarea { resize: vertical; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.section { padding: 76px 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; padding: 10px 14px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.nav-shell { position: sticky; top: 0; z-index: 100; background: rgb(250 249 242 / 92%); border-bottom: 1px solid rgb(220 231 225 / 80%); backdrop-filter: blur(14px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 240px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.nav-menu > a:hover, .admin-link { color: var(--green-700); }
.language-switcher { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.language-switcher a { padding: 5px 8px; border-radius: 999px; font-size: 11px; }
.language-switcher .active { color: #fff; background: var(--green-700); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; }

.hero { position: relative; overflow: hidden; padding: 42px 0 46px; background: linear-gradient(135deg, #fbfaf4 0%, #f2fbf7 100%); }
.hero-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(1px); opacity: .55; pointer-events: none; }
.glow-one { left: -300px; top: -230px; background: radial-gradient(circle, var(--mint-200), transparent 66%); }
.glow-two { right: -250px; bottom: -360px; background: radial-gradient(circle, #ffe6be, transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr); gap: 70px; align-items: center; }
.hero-content { position: relative; }
.eyebrow, .section-kicker, .section-heading span { color: var(--green-700); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 3px; border-radius: 99px; background: var(--mint-500); }
.hero h1 { max-width: none; margin: 0 0 25px; font-size: clamp(27px, 3.2vw, 43px); line-height: 1.15; letter-spacing: -.025em; color: var(--green-950); text-align: center; }
.hero-copy { max-width: 710px; color: var(--muted); font-size: 19px; }
.quick-search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; margin-top: 32px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.quick-search label { padding: 2px 8px; border-right: 1px solid var(--line); }
.quick-search label span, label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.quick-search select { border: 0; padding: 3px 0; box-shadow: none; font-weight: 700; }
.hero-stats { display: grid; width: min(100%, 480px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px auto 0; }
.hero-stats div { position: relative; display: flex; min-height: 88px; align-items: center; justify-content: center; flex-direction: column; padding: 14px 12px 12px; text-align: center; background: rgb(255 255 255 / 72%); border: 1px solid rgb(15 110 86 / 18%); border-radius: 16px; box-shadow: 0 10px 28px rgb(8 43 35 / 7%); backdrop-filter: blur(8px); }
.hero-stats div::before { position: absolute; top: -1px; width: 42px; height: 3px; content: ""; background: var(--mint-500); border-radius: 0 0 99px 99px; }
.hero-stats strong { color: var(--green-800); font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.hero-stats span { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.hero-card { padding: 34px; color: #fff; background: linear-gradient(145deg, var(--green-700), var(--green-950)); border-radius: 30px; box-shadow: 0 30px 70px rgb(8 43 35 / 25%); transform: rotate(1.5deg); }
.hero-card-mark { display: grid; width: 54px; height: 54px; place-items: center; color: var(--green-900); background: var(--mint-200); border-radius: 17px; font-size: 28px; font-weight: 900; }
.hero-card h2 { margin: 24px 0; font-size: 28px; line-height: 1.2; }
.hero-card ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hero-card li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / 16%); }
.hero-card li span { color: var(--mint-200); font-weight: 800; }

.hero-carousel { position: relative; padding: 0 44px; }
.hero-carousel-viewport { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-carousel-viewport::-webkit-scrollbar { display: none; }
.hero-carousel-track { display: flex; gap: 16px; }
.hero-teacher-card { position: relative; display: grid; min-width: calc((100% - 48px) / 4); grid-template-columns: 104px minmax(0, 1fr); align-items: center; padding: 10px; overflow: hidden; background: repeating-linear-gradient(#fff 0, #fff 27px, #dcefe8 28px); border: 1px solid rgb(15 110 86 / 16%); border-radius: 15px; box-shadow: 0 10px 25px rgb(8 43 35 / 8%); scroll-snap-align: start; transition: transform .2s, box-shadow .2s; }
.hero-teacher-card::before { position: absolute; top: 0; bottom: 0; left: 8px; width: 2px; content: ""; background: #f3b8b8; opacity: .7; }
.hero-teacher-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgb(8 43 35 / 13%); }
.hero-teacher-photo { position: relative; z-index: 1; display: grid; width: 104px; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--mint-500), var(--green-800)); border: 5px solid #fff; border-radius: 11px; box-shadow: 0 5px 14px rgb(8 43 35 / 14%); font-size: 35px; font-weight: 900; transform: rotate(-1deg); }
.hero-teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.hero-teacher-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; padding: 3px 5px 3px 12px; }
.hero-teacher-copy small { overflow: hidden; color: var(--green-700); font-size: 9px; font-weight: 900; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.hero-teacher-copy strong { margin: 4px 0 6px; overflow: hidden; color: var(--green-950); font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.hero-teacher-copy > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hero-carousel-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgb(15 110 86 / 18%); color: var(--green-800); background: rgb(255 255 255 / 94%); border-radius: 50%; box-shadow: 0 8px 20px rgb(8 43 35 / 12%); font-size: 27px; line-height: 1; transform: translateY(-50%); }
.hero-carousel-arrow:hover { color: #fff; background: var(--green-700); }
.hero-carousel-prev { left: 0; }
.hero-carousel-next { right: 0; }
.hero-content .quick-search { width: min(900px, 100%); margin: 25px auto 0; border-radius: 16px; box-shadow: 0 13px 34px rgb(8 43 35 / 9%); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 11px 18px; border-radius: 12px; font-weight: 800; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green-700); box-shadow: 0 10px 24px rgb(15 110 86 / 18%); }
.button-primary:hover { background: var(--green-800); }
.button-light { color: var(--green-950); background: #fff; }
.button-muted { color: var(--green-900); background: var(--mint-100); }
.button-danger { color: #fff; background: var(--danger); }
.button.full, .full { width: 100%; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.section-heading a { color: var(--green-700); font-weight: 800; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-teacher-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.home-teacher-grid .teacher-card { border-radius: 16px; }
.home-teacher-grid .teacher-photo { aspect-ratio: 4 / 3; }
.home-teacher-grid .teacher-card-body { padding: 14px; }
.home-teacher-grid .teacher-category { font-size: 10px; }
.home-teacher-grid .teacher-card h3 { font-size: 17px; line-height: 1.25; }
.home-teacher-grid .teacher-card-body > p:not(.teacher-category) { min-height: 36px; margin: 4px 0 12px; font-size: 13px; line-height: 1.4; }
.home-teacher-grid .teacher-card-price { font-size: 12px; }
.home-teacher-grid .teacher-meta { gap: 5px; font-size: 10px; }
.home-teacher-grid .teacher-meta span { padding: 5px 7px; }
.home-teachers-actions { display: flex; justify-content: center; margin-top: 30px; }
.home-all-teachers-button { min-width: 180px; color: #fff; background: linear-gradient(135deg, var(--green-700), var(--green-900)); border-radius: 999px; box-shadow: 0 12px 28px rgb(15 110 86 / 22%); }
.home-all-teachers-button:hover { color: #fff; box-shadow: 0 16px 34px rgb(15 110 86 / 30%); }
.teacher-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgb(8 43 35 / 5%); transition: transform .2s, box-shadow .2s; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teacher-photo { display: grid; aspect-ratio: 16 / 11; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--mint-500), var(--green-800)); font-size: 58px; font-weight: 900; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card-body { padding: 20px; }
.teacher-category { margin: 0 0 5px; color: var(--green-700); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.teacher-card h3 { margin: 0; font-size: 21px; }
.teacher-card-body > p:not(.teacher-category) { min-height: 44px; margin: 5px 0 16px; color: var(--muted); }
.teacher-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.teacher-meta span { padding: 6px 8px; background: var(--mint-100); border-radius: 99px; }
.empty-state { padding: 54px 24px; text-align: center; background: #fff; border: 1px dashed #b8ccc3; border-radius: var(--radius); }

.match-section { color: #fff; background: var(--green-950); }
.match-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.match-grid h2 { margin: 8px 0 14px; font-size: 44px; }
.match-grid p { color: #bdd3ca; }
.match-grid .section-kicker { color: var(--mint-200); }
.match-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px; color: var(--ink); background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius); }
.match-form label span { color: #cce0d8; }
.match-form .button { align-self: end; }

.page-hero { padding: 62px 0 42px; background: linear-gradient(135deg, #edf9f4, #fffaf0); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding: 40px 0 30px; }
.page-hero h1 { margin: 5px 0 4px; color: var(--green-950); font-size: clamp(36px, 5vw, 58px); line-height: 1.15; }
.page-hero p { margin: 0; color: var(--muted); }
.listing-section { padding-top: 32px; }
.filter-form { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 32px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.teachers-page-hero { padding: 22px 0 18px; }
.teachers-page-hero h1 { margin: 2px 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; }
.teachers-page-hero .section-kicker, .teachers-page-hero p { font-size: 11px; }
.teachers-listing-section { padding-top: 18px; }
.teachers-listing-section .filter-form { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(140px, .75fr); gap: 10px; margin-bottom: 24px; padding: 14px; border-radius: 14px; }
.teachers-listing-section .filter-form label > span { margin-bottom: 4px; font-size: 11px; }
.teachers-listing-section .filter-form input,
.teachers-listing-section .filter-form select,
.teachers-listing-section .filter-form .button { min-height: 42px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; }
.teachers-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
.teachers-page-grid .teacher-card { height: auto; border-radius: 16px; }
.teachers-page-grid .teacher-card > a { display: flex; height: 100%; }
.teachers-page-grid .teacher-photo { aspect-ratio: 16 / 10; min-height: 0; }
.teachers-page-grid .teacher-photo img { object-position: center; }
.teachers-page-grid .teacher-card-body { display: flex; min-height: 158px; flex-direction: column; padding: 27px 14px 14px; overflow: visible; }
.teachers-page-grid .teacher-category { margin-bottom: 3px; font-size: 10px; line-height: 1.2; }
.teachers-page-grid .teacher-card-price { align-self: flex-start; margin: 0 0 5px; padding: 5px 8px; font-size: 11px; line-height: 1.2; }
.teachers-page-grid .teacher-card h3 { font-size: 17px; line-height: 1.25; }
.teachers-page-grid .teacher-card-body > p:not(.teacher-category) { min-height: 34px; margin: 5px 0 10px; font-size: 12px; line-height: 1.4; }
.teachers-page-grid .teacher-meta { gap: 5px; margin-top: auto; font-size: 10px; line-height: 1.2; }
.teachers-page-grid .teacher-meta span { padding: 5px 7px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pagination a { display: grid; width: 42px; height: 42px; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.pagination a.active { color: #fff; background: var(--green-700); border-color: var(--green-700); }

.profile-hero { padding: 42px 0; background: linear-gradient(135deg, #e7f8f1, #fff9ea); }
.back-link { color: var(--green-700); font-size: 13px; font-weight: 800; }
.profile-head { display: flex; align-items: center; gap: 28px; margin-top: 22px; }
.profile-image { display: grid; width: 170px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--mint-500), var(--green-800)); border: 7px solid #fff; border-radius: 34px; box-shadow: var(--shadow); font-size: 64px; font-weight: 900; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h1 { margin: 5px 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.15; }
.profile-head > div > p:last-of-type { color: var(--muted); font-size: 18px; }
.profile-badges { display: flex; gap: 8px; }
.profile-badges span { padding: 6px 10px; color: var(--green-800); background: #fff; border-radius: 99px; font-size: 12px; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-card, .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 42px rgb(8 43 35 / 6%); }
.info-list { position: sticky; top: 98px; padding: 24px; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-list > div span { color: var(--muted); font-size: 13px; }
.info-list .button { margin-top: 20px; }
.profile-main { display: grid; gap: 20px; }
.prose, .comments { padding: 28px; }
.prose p { margin-bottom: 0; font-size: 17px; white-space: normal; }
.social-links { display: flex; gap: 10px; }
.social-links a { padding: 10px 14px; color: var(--green-800); background: var(--mint-100); border-radius: 10px; font-weight: 800; }
.comments h2 { margin-top: 4px; }
.comment-list { display: grid; gap: 12px; margin: 22px 0 30px; }
.comment-list article { padding: 16px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 14px; }
.comment-list article > div { display: flex; justify-content: space-between; gap: 10px; }
.comment-list article span { color: #efa514; letter-spacing: 2px; }
.comment-list article p { margin-bottom: 0; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wide { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; }
.legal-copy { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-copy p { margin: 0 0 20px; font-size: 17px; }

.flash { position: fixed; top: 92px; left: 50%; z-index: 500; width: min(600px, calc(100% - 30px)); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); transform: translateX(-50%); transition: opacity .25s, transform .25s; }
.flash-success { color: #07503e; background: #d9f7ec; border: 1px solid #a7e8d2; }
.flash-error { color: #7a1515; background: #ffebeb; border: 1px solid #f4bcbc; }
.flash-hidden { opacity: 0; transform: translate(-50%, -15px); pointer-events: none; }

.admin-login { min-height: 70vh; display: grid; place-items: center; }
.admin-card { display: grid; gap: 16px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-card img { width: 230px; margin: 0 auto 10px; }
.admin-card h1 { margin: 0 0 10px; text-align: center; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.admin-toolbar nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-toolbar nav a { padding: 9px 13px; color: var(--green-900); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 800; }
.admin-section { padding-top: 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-grid article { display: flex; min-height: 130px; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background: linear-gradient(145deg, var(--green-700), var(--green-950)); border-radius: 18px; }
.stat-grid strong { font-size: 32px; line-height: 1; }
.stat-grid span { margin-top: 8px; color: #cde0d8; font-size: 11px; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-panel { padding: 22px; }
.admin-panel h2 { margin-top: 0; font-size: 19px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
td a { color: var(--green-700); font-weight: 800; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-teacher { display: flex; align-items: center; gap: 10px; }
.admin-teacher img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
.status { padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.status-published { color: #07503e; background: #d9f7ec; }
.status-draft { color: #795100; background: #fff1c9; }
.status-archived { color: #555; background: #eee; }
.teacher-form { display: grid; gap: 24px; }
.security-form { display: grid; gap: 16px; }
.security-form small { display: block; margin-top: 6px; color: var(--muted); }
.teacher-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.teacher-form legend { padding: 0 8px; color: var(--green-800); font-weight: 900; }
.teacher-form .check { display: flex; align-items: center; gap: 8px; }
.teacher-form .check input { width: auto; }
.teacher-form small { display: block; margin-top: 6px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs a { padding: 9px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }
.tabs .active { color: #fff; background: var(--green-700); }
.moderation-list { display: grid; gap: 14px; }
.moderation-list article header, .moderation-list article footer, .moderation-list article footer > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.moderation-list article header span { margin-left: 12px; color: #efa514; }
.moderation-list article footer { padding-top: 16px; border-top: 1px solid var(--line); }
.moderation-list article footer form { display: inline-flex; }
.moderation-list time { color: var(--muted); font-size: 12px; }

.button:disabled { opacity: .6; cursor: wait; transform: none; }
.teacher-card-price { display: inline-flex; margin: -3px 0 13px; padding: 6px 10px; color: var(--green-900); background: #e4f8f1; border-radius: 9px; font-size: 13px; font-weight: 900; }
.button-whatsapp { margin-top: 9px; color: #fff; background: #168a4a; }
.button-whatsapp:hover { background: #10723c; }

.category-section { position: relative; padding: 54px 0 66px; overflow: hidden; background: radial-gradient(circle at 8% 35%, rgb(159 232 210 / 18%), transparent 18%), radial-gradient(circle at 92% 72%, rgb(255 205 128 / 18%), transparent 16%), #fbfaf2; }
.category-section::before, .category-section::after { position: absolute; content: "❧"; color: #5ca386; font-size: 42px; opacity: .45; transform: rotate(-24deg); pointer-events: none; }
.category-section::before { left: 4%; top: 38%; }
.category-section::after { right: 4%; bottom: 20%; transform: rotate(145deg); }
.category-heading { align-items: center; justify-content: center; flex-direction: column; margin-bottom: 30px; text-align: center; }
.category-heading h2 { font-size: clamp(30px, 4vw, 46px); }
.category-all-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; padding: 10px 15px; color: var(--green-800); background: var(--mint-100); border: 1px solid rgb(15 110 86 / 13%); border-radius: 12px; font-size: 12px; transition: color .18s, background .18s, transform .18s; }
.category-all-link:hover { color: #fff; background: var(--green-700); transform: translateY(-1px); }
.category-all-link span { font-size: 17px; line-height: 1; }
.category-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.category-card { --card-bg: #e4f3ff; --card-accent: #3e88b8; position: relative; display: flex; width: calc((100% - 72px) / 7); min-height: 206px; flex-direction: column; padding: 11px 12px 13px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 82%, #fff), var(--card-bg)); border: 1px solid rgb(8 43 35 / 10%); border-radius: 15px; box-shadow: 0 12px 20px rgb(8 43 35 / 12%); transition: transform .22s, box-shadow .22s, border-color .22s; }
.category-card:nth-child(7n + 2) { --card-bg: #fff2dc; --card-accent: #d98218; }
.category-card:nth-child(7n + 3) { --card-bg: #eaf2ff; --card-accent: #3977c5; }
.category-card:nth-child(7n + 4) { --card-bg: #f4edff; --card-accent: #8657b8; }
.category-card:nth-child(7n + 5) { --card-bg: #fff0f2; --card-accent: #c95369; }
.category-card:nth-child(7n + 6) { --card-bg: #eff8dc; --card-accent: #6c8e22; }
.category-card:nth-child(7n + 7) { --card-bg: #e8f8f8; --card-accent: #178b91; }
.category-card::after { display: none; }
.category-card:hover { z-index: 1; border-color: color-mix(in srgb, var(--card-accent) 35%, transparent); box-shadow: 0 20px 42px rgb(8 43 35 / 13%); transform: translateY(-6px) rotate(-.3deg); }
.category-card:hover::after { transform: scale(1.25); }
.category-card:focus-visible { z-index: 2; outline: 3px solid var(--mint-500); outline-offset: 3px; }
.category-art { display: block; width: 100%; height: 108px; flex: 0 0 auto; background-image: url("../images/category-illustrations-v1.png?v=20260813-v2"); background-repeat: no-repeat; background-position: var(--art-x) var(--art-y); background-size: 500% 400%; border-radius: 11px; mix-blend-mode: multiply; }
.category-art-uploaded { background-position: center; background-size: cover; mix-blend-mode: normal; }
.category-popular { position: absolute; z-index: 2; top: 8px; right: 8px; padding: 6px 8px; color: #fff; background: var(--green-700); border-radius: 999px; box-shadow: 0 5px 12px rgb(8 43 35 / 20%); font-size: 8px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.category-card strong { position: relative; z-index: 1; display: -webkit-box; min-height: 34px; margin-top: 10px; overflow: hidden; color: var(--green-950); font-size: 13px; line-height: 1.28; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.category-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.category-card-footer { position: relative; z-index: 1; }
.category-card-footer small { padding: 5px 8px; color: color-mix(in srgb, var(--card-accent) 82%, #243c34); background: rgb(255 255 255 / 68%); border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.2; }
.category-card-footer i { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--card-accent); border-radius: 8px; font-size: 12px; font-style: normal; opacity: 1; transition: transform .18s; }
.category-card:hover .category-card-footer i, .category-card:focus-visible .category-card-footer i { transform: translateX(3px); }
.category-card-empty { border-color: rgb(8 43 35 / 6%); box-shadow: 0 8px 22px rgb(8 43 35 / 4%); }
.category-card-empty .category-art { opacity: .88; }
.category-card-empty strong { color: var(--green-950); }
.category-card-empty .category-card-footer small { color: var(--muted); }

.community-section { padding: 28px 0 76px; }
.community-card { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: 40px; color: #fff; background: linear-gradient(130deg, var(--green-950), var(--green-700)); border-radius: 28px; box-shadow: var(--shadow); }
.community-card h2 { max-width: 760px; margin: 7px 0 10px; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.community-card p { max-width: 780px; margin: 0; color: #c5dbd2; }
.community-card .section-kicker { color: var(--mint-200); }
.community-card .button { flex: 0 0 auto; background: #fff; color: var(--green-900); }

.profile-image-button { position: relative; padding: 0; border: 7px solid #fff; cursor: zoom-in; }
.profile-image-button > span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; color: #fff; background: rgb(8 43 35 / 78%); border-radius: 8px; font-size: 10px; }
.share-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; }
.share-card h2 { margin: 4px 0; font-size: 22px; }
.share-card p { margin: 0; color: var(--muted); font-size: 13px; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.share-button { border: 0; padding: 9px 12px; color: var(--green-900); background: var(--mint-100); border-radius: 10px; font-size: 12px; font-weight: 800; }
.share-button.facebook { color: #fff; background: #1877f2; }
.share-button.whatsapp { color: #fff; background: #168a4a; }
.copy-status { position: absolute; opacity: 0; pointer-events: none; }
.copy-status.show { position: fixed; left: 50%; bottom: 28px; z-index: 800; padding: 10px 16px; color: #fff; background: var(--green-950); border-radius: 99px; box-shadow: var(--shadow); opacity: 1; transform: translateX(-50%); }
.similar-section { padding-top: 18px; }
.similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-modal[hidden] { display: none; }
.photo-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgb(2 18 14 / 86%); backdrop-filter: blur(8px); }
.photo-modal-box { position: relative; width: min(900px, 100%); max-height: 90vh; }
.photo-modal-box img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 20px; }
.photo-modal-box button { position: absolute; top: -14px; right: -14px; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; border: 0; color: var(--green-950); background: #fff; border-radius: 50%; font-size: 28px; }
body.modal-open { overflow: hidden; }

.register-hero { padding: 70px 0 58px; color: #fff; background: radial-gradient(circle at 15% 10%, #1c8f6e, transparent 30%), linear-gradient(140deg, var(--green-950), var(--green-700)); text-align: center; }
.register-hero .section-kicker { color: var(--mint-200); }
.register-hero h1 { margin: 9px 0 12px; font-size: clamp(36px, 5vw, 58px); line-height: 1.12; }
.register-hero p { max-width: 700px; margin: 0 auto; color: #cce1d9; }
.register-group-pill { display: inline-flex; margin-top: 20px; padding: 9px 14px; color: var(--green-950); background: var(--mint-200); border-radius: 99px; font-size: 12px; font-weight: 900; }
.steps-indicator { display: flex; max-width: 360px; align-items: center; justify-content: center; margin: 30px auto 0; }
.steps-indicator i { height: 2px; flex: 1; background: rgb(255 255 255 / 25%); }
.step-dot { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid rgb(255 255 255 / 30%); border-radius: 50%; font-style: normal; font-weight: 900; }
.step-dot.active, .step-dot.done { color: var(--green-950); background: var(--mint-200); border-color: var(--mint-200); }
.register-section { padding-top: 36px; }
.register-form { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.register-progress { height: 5px; background: var(--mint-100); }
.register-progress span { display: block; width: 33.333%; height: 100%; background: var(--mint-500); transition: width .25s ease; }
.register-step { padding: 34px; }
.register-step[hidden] { display: none; }
.step-header { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.step-header > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--green-700); border-radius: 13px; font-weight: 900; }
.step-header h2 { margin: 0 0 3px; font-size: 25px; }
.step-header p { margin: 0; color: var(--muted); }
.register-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px 0; }
.register-fields label > small { display: block; margin-top: 6px; color: var(--muted); }
.field-error { color: var(--danger) !important; font-weight: 700; }
.form-error-summary { margin-bottom: 16px; padding: 14px 18px; color: #7a1515; background: #ffebeb; border: 1px solid #f4bcbc; border-radius: 12px; }
.compact-fieldset { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.compact-fieldset legend { padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.check-card { display: flex; flex: 1; align-items: center; gap: 9px; padding: 12px; background: #f6faf8; border: 1px solid var(--line); border-radius: 12px; }
.check-card input, .consent-check input { width: auto; }
.check-card span { margin: 0; color: var(--ink); }
.photo-field input[type="file"] { padding: 8px; }
.photo-cropper { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr); gap: 18px; align-items: center; margin-top: 10px; }
.photo-picker { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; background: #f6faf8; border: 1px dashed #aac7ba; border-radius: 18px; text-align: center; touch-action: none; cursor: grab; }
.photo-picker:active { cursor: grabbing; }
.photo-placeholder { display: grid; gap: 6px; place-items: center; font-size: 36px; }
.photo-placeholder b { font-size: 15px; }
.photo-placeholder small { color: var(--muted); font-size: 11px; }
.photo-picker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop-x, 50%) var(--crop-y, 50%); transform: scale(var(--crop-zoom, 1)); pointer-events: none; user-select: none; }
.photo-crop-controls { display: grid; gap: 12px; padding: 16px; background: var(--mint-100); border: 1px solid var(--line); border-radius: 14px; }
.photo-crop-controls p { margin: 0; color: var(--green-900); font-size: 13px; line-height: 1.5; }
.photo-crop-controls label { display: grid; gap: 6px; }
.photo-crop-controls input[type="range"] { padding: 0; accent-color: var(--green-700); }
.info-box { padding: 18px; color: var(--green-900); background: var(--mint-100); border-radius: 14px; }
.info-box p { margin: 5px 0 0; }
.consent-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.consent-check > span { margin: 0; color: var(--ink); font-size: 13px; }
.consent-check a { color: var(--green-700); text-decoration: underline; }
.consent-check .field-error { grid-column: 2; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-actions.end { justify-content: flex-end; }
.success-section { min-height: 68vh; display: grid; place-items: center; }
.success-card { padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); text-align: center; }
.success-icon { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 18px; color: #fff; background: var(--green-700); border-radius: 22px; font-size: 36px; font-weight: 900; }
.success-card h1 { margin: 8px 0; font-size: 36px; }
.success-card > p { color: var(--muted); }
.success-community-box { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin: 28px 0; padding: 20px; background: var(--mint-100); border-radius: 18px; text-align: left; }
.success-community-box > span { font-size: 32px; }
.success-community-box p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--green-700); font-size: 24px; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 0 20px; color: var(--muted); }
.faq-action { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding: 26px; background: var(--mint-100); border-radius: 18px; }
.faq-action h2 { width: 100%; margin: 0 0 8px; text-align: center; }
.seo-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.seo-summary div { display: flex; align-items: baseline; gap: 10px; }
.seo-summary strong { color: var(--green-700); font-size: 28px; }
.seo-summary span { color: var(--muted); }

.admin-title-actions, .admin-row-actions { display: flex; align-items: center; gap: 8px; }
.admin-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-mini-stats a { display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.admin-mini-stats strong { color: var(--green-700); font-size: 28px; }
.admin-mini-stats span { color: var(--muted); font-size: 12px; }
.admin-filter-form { display: grid; grid-template-columns: 1.7fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.admin-teacher div { display: grid; }
.admin-teacher small { color: var(--muted); }
.admin-row-actions form { margin: 0; }
.admin-row-actions button { border: 0; padding: 7px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.action-approve { color: #07503e; background: #d9f7ec; }
.action-reject { color: #7a1515; background: #ffebeb; }
.pending-row { background: #fffcf1; }
.status-archived { color: #7a1515; background: #ffebeb; }
.admin-danger-menu { position: relative; }
.admin-danger-menu summary { padding: 7px 9px; color: #8d1d1d; background: #fff0f0; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 900; list-style: none; }
.admin-danger-menu summary::-webkit-details-marker { display: none; }
.admin-danger-menu[open] form { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: grid; width: min(310px, 80vw); gap: 9px; padding: 15px; color: var(--ink); background: #fff; border: 1px solid #edbcbc; border-radius: 14px; box-shadow: var(--shadow); }
.admin-danger-menu small { color: var(--muted); line-height: 1.45; }
.admin-danger-menu code { overflow-wrap: anywhere; color: #7a1515; font-family: inherit; font-size: 12px; font-weight: 900; }
.admin-danger-menu input { min-height: 38px; }

.mentor-home-section { background: linear-gradient(180deg, #eef9f5, #faf9f2); border-top: 1px solid var(--line); }
.mentor-section-heading p { max-width: 700px; margin: 8px 0 0; color: var(--muted); }
.mentor-home-section .home-request-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; justify-content: stretch; }
.section-heading-actions { display: flex; align-items: center; gap: 14px; }
.section-heading-actions .button { color: #fff; }
.request-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.request-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgb(8 43 35 / 5%); transition: transform .2s, box-shadow .2s; }
.request-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.request-card-main { display: flex; min-height: 330px; flex: 1; flex-direction: column; padding: 22px; }
.request-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.request-icon { display: grid; width: 54px; height: 54px; place-items: center; background: linear-gradient(145deg, var(--mint-100), #fff4d9); border-radius: 17px; font-size: 28px; }
.request-budget { padding: 6px 10px; color: var(--green-900); background: var(--mint-100); border-radius: 9px; font-size: 12px; font-weight: 900; }
.request-card h3 { margin: 0; color: var(--green-950); font-size: 22px; line-height: 1.25; }
.request-person { margin: 7px 0 16px; color: var(--muted); font-size: 13px; }
.request-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.request-meta span { padding: 6px 8px; color: var(--green-800); background: #f0faf6; border-radius: 99px; font-size: 11px; }
.request-availability { display: -webkit-box; margin: auto 0 0; padding-top: 18px; overflow: hidden; color: var(--muted); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.request-availability strong { color: var(--ink); }
.request-card-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 7px; padding: 12px; border-top: 1px solid var(--line); background: #fbfdfc; }
.request-card-actions a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 10px; color: var(--green-800); background: var(--mint-100); border-radius: 9px; font-size: 11px; font-weight: 800; }
.request-card-actions .request-whatsapp { color: #fff; background: #168a4a; }
.catalog-title-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.catalog-title-row > div { max-width: 800px; }
.mentor-filter-form { grid-template-columns: 1.4fr repeat(4, 1fr) auto; }
.catalog-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.catalog-result-heading strong { color: var(--green-950); font-size: 19px; }
.catalog-result-heading span { color: var(--muted); font-size: 13px; }
.mentor-form-hero { background: linear-gradient(135deg, var(--green-950), #176f5a); }
.request-profile-icon { background: linear-gradient(145deg, #fff, var(--mint-100)); font-size: 58px; }
.request-profile-head > div > p:last-of-type { color: var(--muted); }
.request-profile-hero .profile-badges span { border: 1px solid var(--line); }
.info-list strong { max-width: 58%; text-align: right; overflow-wrap: anywhere; }
.mentor-detail-cta { padding-top: 0; }
.admin-panel td > small { display: block; margin-top: 4px; color: var(--muted); }
.taxonomy-admin-grid { display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.taxonomy-create-card { position: sticky; top: 92px; }
.taxonomy-create-form, .taxonomy-list, .taxonomy-region-list, .taxonomy-settlement-list { display: grid; gap: 14px; }
.taxonomy-create-form small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.taxonomy-tree-card { min-width: 0; padding: 0; overflow: visible; }
.taxonomy-tree-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); }
.taxonomy-tree-toolbar h2 { margin: 0; }
.taxonomy-tree-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.taxonomy-tree-toolbar > div:last-child { display: flex; align-items: center; gap: 12px; }
.taxonomy-tree-toolbar [data-category-order-status] { color: var(--muted); font-size: 11px; }
.taxonomy-tree-toolbar [data-category-order-status].is-dirty { color: #8b6414; font-weight: 900; }
.taxonomy-tree { padding: 16px; }
.taxonomy-tree-list, .taxonomy-tree-children { display: grid; gap: 7px; }
.taxonomy-tree-item { position: relative; min-width: 0; }
.taxonomy-tree-item.is-child { margin-left: 38px; }
.taxonomy-tree-item.is-child::before { position: absolute; top: -7px; bottom: 50%; left: -21px; width: 15px; content: ""; border-bottom: 1px solid #bad2c8; border-left: 1px solid #bad2c8; border-radius: 0 0 0 8px; }
.taxonomy-tree-row { display: grid; grid-template-columns: 30px 28px 46px minmax(170px, 1fr) auto auto; gap: 8px; align-items: center; min-height: 62px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.taxonomy-tree-row:hover { border-color: #a8c8ba; box-shadow: 0 6px 16px rgb(8 43 35 / 6%); }
.taxonomy-drag-handle, .taxonomy-collapse, .taxonomy-move-actions button { display: grid; width: 28px; height: 32px; place-items: center; padding: 0; color: #668078; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.taxonomy-drag-handle { cursor: grab; font-size: 16px; letter-spacing: -4px; }
.taxonomy-drag-handle:active { cursor: grabbing; }
.taxonomy-collapse:disabled, .taxonomy-move-actions button:disabled { opacity: .25; cursor: default; }
.taxonomy-tree-image { display: grid; width: 44px; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; color: var(--green-700); background: var(--mint-100); border-radius: 8px; }
.taxonomy-tree-image img { width: 100%; height: 100%; object-fit: cover; }
.taxonomy-tree-copy { display: grid; min-width: 0; gap: 3px; }
.taxonomy-tree-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-tree-copy small { color: var(--muted); font-size: 10px; }
.taxonomy-move-actions { display: flex; gap: 1px; }
.taxonomy-move-actions button:hover, .taxonomy-collapse:hover:not(:disabled) { color: var(--green-800); background: var(--mint-100); }
.taxonomy-edit-toggle { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.taxonomy-tree-children { margin-top: 7px; }
.taxonomy-tree-item.is-collapsed > .taxonomy-tree-children { display: none; }
.taxonomy-tree-item.is-collapsed > .taxonomy-tree-row .taxonomy-collapse { transform: rotate(-90deg); }
.taxonomy-tree-item.is-dragging { opacity: .38; }
.taxonomy-tree-item.drop-before > .taxonomy-tree-row { box-shadow: 0 -3px 0 var(--green-700); }
.taxonomy-tree-item.drop-after > .taxonomy-tree-row { box-shadow: 0 3px 0 var(--green-700); }
.taxonomy-tree-item.drop-inside > .taxonomy-tree-row { border-color: var(--green-700); background: #f1fbf7; }
.taxonomy-root-dropzone { padding: 11px; color: #668078; background: #f8fbfa; border: 1px dashed #b9cec5; border-radius: 10px; text-align: center; font-size: 10px; }
.taxonomy-root-dropzone.is-active { color: var(--green-800); background: var(--mint-100); border-color: var(--green-700); }
.taxonomy-edit-panel { display: grid; gap: 14px; margin-top: 7px; padding: 16px; background: #f8fbfa; border: 1px solid var(--line); border-radius: 12px; }
.taxonomy-row-form { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(180px, 1fr) 110px auto; gap: 12px; align-items: end; }
.taxonomy-row-form small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.taxonomy-name-field { min-width: 0; }
.category-image-admin { display: grid; grid-template-columns: 120px minmax(240px, 1fr) auto; gap: 14px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.category-image-preview { display: grid; width: 120px; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; color: var(--muted); background: #f4f8f6; border: 1px dashed #aac7ba; border-radius: 12px; font-size: 10px; }
.category-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.category-image-form { display: grid; grid-template-columns: minmax(230px, 1fr) auto; gap: 12px; align-items: end; }
.category-image-form input[type="file"] { padding: 8px; }
.category-image-form small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.category-image-remove { min-height: 40px; color: var(--danger); background: #fff0f0; }
.taxonomy-delete-form { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid #efd0d0; }
.taxonomy-delete-form p { margin: 0; color: var(--muted); font-size: 10px; }
.taxonomy-delete-button { color: #8d1d1d; background: #ffe8e8; border: 0; }
.taxonomy-delete-button:disabled { opacity: .45; cursor: not-allowed; }
.taxonomy-region-create { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(520px, 2fr); gap: 24px; align-items: end; margin-bottom: 20px; }
.taxonomy-region-create h2 { margin-bottom: 5px; }
.taxonomy-region-create p { margin: 0; color: var(--muted); }
.taxonomy-create-inline { display: grid; grid-template-columns: 1fr 120px auto; gap: 12px; align-items: end; }
.taxonomy-region-list { gap: 20px; }
.taxonomy-region-card { display: grid; gap: 18px; }
.taxonomy-region-form { display: grid; grid-template-columns: minmax(220px, 1.7fr) 120px 100px 100px auto; gap: 12px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.taxonomy-settlement-list { gap: 8px; }
.taxonomy-settlement-form { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(160px, 1fr) 110px 130px auto; gap: 10px; align-items: end; padding: 12px; background: #f7fbf9; border: 1px solid var(--line); border-radius: 14px; }
.taxonomy-settlement-form > small { align-self: center; color: var(--muted); font-size: 11px; }
.taxonomy-add-settlement { display: grid; grid-template-columns: minmax(220px, 1fr) 120px auto; gap: 12px; align-items: end; padding: 16px; background: var(--mint-100); border-radius: 14px; }

.site-footer { padding: 54px 0 24px; color: #d8e8e1; background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 230px; padding: 8px; background: #fff; border-radius: 12px; }
.footer-brand p { max-width: 380px; color: #a8c1b7; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 14px; }
.site-footer a { display: block; margin: 8px 0; color: #bcd0c7; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; color: #7fa095; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 12px; }

/* Teacher cards — 2D editorial notebook */
.teacher-card { position: relative; overflow: visible; background: #fffdf5; border: 1px solid #d8d1bd; border-radius: 18px 18px 16px 16px; box-shadow: 0 15px 30px rgb(42 62 53 / 11%), 0 3px 0 #eee6d2; transform: rotate(-.15deg); }
.teacher-card:nth-child(even) { transform: rotate(.15deg); }
.teacher-card:hover { z-index: 2; box-shadow: 0 22px 42px rgb(42 62 53 / 16%), 0 3px 0 #e6dcc3; transform: translateY(-6px) rotate(0); }
.teacher-card > a { position: relative; display: flex; height: 100%; flex-direction: column; padding: 9px; }
.teacher-card-clip { position: absolute; z-index: 4; top: -8px; right: 17px; width: 14px; height: 32px; border: 2px solid #78867e; border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: inset 0 0 0 3px #fffdf5; transform: rotate(8deg); }
.teacher-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; flex: 0 0 auto; overflow: hidden; background: linear-gradient(145deg, #d9f4ea, #f5e8c8); border: 1px solid #d9d2c0; border-radius: 13px 13px 8px 8px; }
.teacher-photo::after { position: absolute; inset: 0; content: ""; border: 5px solid rgb(255 255 255 / 45%); border-radius: inherit; pointer-events: none; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.teacher-photo-backdrop { display: none; }
.teacher-photo-cropped { object-position: var(--card-photo-x) var(--card-photo-y) !important; transform: scale(var(--card-photo-zoom)); }
.teacher-card-body { position: relative; display: flex; min-height: 174px; flex: 1; flex-direction: column; margin-top: 7px; padding: 25px 10px 10px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgb(92 137 121 / 14%) 28px), linear-gradient(90deg, transparent 0, transparent 16px, rgb(210 102 91 / 18%) 17px, transparent 18px); border-radius: 4px 4px 10px 10px; }
.teacher-category, .teacher-card-price { position: absolute; top: -15px; z-index: 2; display: inline-flex; min-height: 26px; align-items: center; margin: 0; padding: 5px 9px; border: 1px solid rgb(8 43 35 / 9%); border-radius: 7px 7px 3px 3px; box-shadow: 0 4px 8px rgb(26 50 42 / 8%); font-size: 10px; line-height: 1.15; text-transform: none; }
.teacher-category { left: 8px; max-width: calc(68% - 8px); overflow: hidden; color: var(--green-950); background: #dff4eb; white-space: nowrap; text-overflow: ellipsis; }
.teacher-card-price { right: 8px; color: #6d4d12; background: #fff1bf; font-weight: 900; }
.teacher-card h3 { margin: 2px 34px 0 0; color: var(--green-950); font-size: 19px; line-height: 1.25; }
.teacher-card-body > p:not(.teacher-category) { display: -webkit-box; min-height: 38px; margin: 5px 28px 10px 0; overflow: hidden; color: #5c6d66; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.teacher-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-right: 30px; color: var(--green-900); font-size: 9px; }
.teacher-meta span { padding: 5px 7px; background: rgb(255 255 255 / 78%); border: 1px solid #d7e5de; border-radius: 999px; }
.teacher-card-arrow { position: absolute; right: 7px; bottom: 8px; display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--green-700); border-radius: 50%; font-size: 15px; transition: transform .18s, background .18s; }
.teacher-card:hover .teacher-card-arrow { background: var(--green-950); transform: translateX(3px) rotate(-8deg); }
.home-teacher-grid .teacher-card, .teachers-page-grid .teacher-card { border-radius: 18px 18px 16px 16px; }
.home-teacher-grid .teacher-photo, .teachers-page-grid .teacher-photo { aspect-ratio: 16 / 10; }
.home-teacher-grid .teacher-card-body, .teachers-page-grid .teacher-card-body { min-height: 158px; padding: 27px 13px 13px; }
.home-teacher-grid .teacher-card-body > p:not(.teacher-category), .teachers-page-grid .teacher-card-body > p:not(.teacher-category) { min-height: 34px; margin: 5px 28px 10px 0; font-size: 12px; }
.home-teacher-grid .teacher-card h3, .teachers-page-grid .teacher-card h3 { margin-right: 28px; font-size: 17px; }
.home-teacher-grid .teacher-meta, .teachers-page-grid .teacher-meta { gap: 5px; padding-right: 30px; font-size: 10px; }
.home-teacher-grid .teacher-meta span, .teachers-page-grid .teacher-meta span { padding: 5px 7px; }
.home-teacher-grid .teacher-card { border-radius: 12px; }
.home-teacher-grid .teacher-card > a { padding: 5px; }
.home-teacher-grid .teacher-card-clip { top: -6px; right: 10px; width: 9px; height: 23px; }
.home-teacher-grid .teacher-photo { aspect-ratio: 16 / 10; border-radius: 9px 9px 6px 6px; }
.home-teacher-grid .teacher-photo::after { border-width: 3px; }
.home-teacher-grid .teacher-photo-backdrop { position: absolute; inset: -10px; z-index: 0; display: block; width: calc(100% + 20px); height: calc(100% + 20px); object-fit: cover; object-position: center; filter: blur(11px) saturate(.82); opacity: .62; transform: scale(1.08); }
.home-teacher-grid .teacher-photo-main { position: relative; z-index: 1; object-fit: contain; object-position: center; filter: none; }
.home-teacher-grid .teacher-photo-cropped { object-fit: cover; object-position: var(--card-photo-x) var(--card-photo-y); transform: scale(var(--card-photo-zoom)); }
.home-teacher-grid .teacher-card-body { min-height: 112px; margin-top: 4px; padding: 20px 7px 7px; background-size: auto 23px, auto; }
.home-teacher-grid .teacher-category, .home-teacher-grid .teacher-card-price { top: -12px; min-height: 19px; padding: 3px 5px; border-radius: 5px; font-size: 7px; }
.home-teacher-grid .teacher-category { left: 4px; max-width: calc(68% - 4px); }
.home-teacher-grid .teacher-card-price { right: 4px; }
.home-teacher-grid .teacher-card h3 { margin-right: 21px; font-size: 12px; }
.home-teacher-grid .teacher-card-body > p:not(.teacher-category) { min-height: 27px; margin: 3px 19px 7px 0; font-size: 9px; line-height: 1.35; }
.home-teacher-grid .teacher-meta { gap: 3px; padding-right: 21px; font-size: 7px; }
.home-teacher-grid .teacher-meta span { padding: 3px 4px; }
.home-teacher-grid .teacher-card-arrow { right: 4px; bottom: 5px; width: 19px; height: 19px; font-size: 10px; }

.home-request-grid .request-card { border-radius: 14px; }
.home-request-grid .request-card-main { min-height: 248px; padding: 11px; }
.home-request-grid .request-card-top { gap: 5px; margin-bottom: 9px; }
.home-request-grid .request-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.home-request-grid .request-budget { padding: 4px 6px; border-radius: 6px; font-size: 8px; white-space: nowrap; }
.home-request-grid .teacher-category { position: static; min-height: 0; align-self: flex-start; margin-bottom: 6px; padding: 3px 5px; font-size: 8px; }
.home-request-grid .request-card h3 { font-size: 13px; line-height: 1.3; }
.home-request-grid .request-person { margin: 5px 0 9px; font-size: 9px; }
.home-request-grid .request-meta { gap: 3px; }
.home-request-grid .request-meta span { padding: 3px 4px; font-size: 7px; }
.home-request-grid .request-availability { padding-top: 10px; font-size: 9px; line-height: 1.4; }
.home-request-grid .request-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 6px; }
.home-request-grid .request-card-actions a { min-width: 0; min-height: 28px; padding: 4px 2px; overflow: hidden; border-radius: 6px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.teachers-page-grid .teacher-card, .teachers-page-grid .teacher-card:nth-child(even) { height: auto; min-height: 0; transform: none; }
.teachers-page-grid .teacher-card:hover { transform: translateY(-4px); }
.teachers-page-grid .teacher-card > a { height: 100%; padding: 10px; }
.teachers-page-grid .teacher-card-clip { display: none; }
.teachers-page-grid .teacher-card-body { overflow: visible; background: #fffdf8; }
.teachers-page-grid .teacher-category { left: 10px; max-width: calc(100% - 118px); }
.teachers-page-grid .teacher-card-price { right: 10px; }

/* Admin — persistent vertical navigation */
.admin-area main { padding-left: 236px; }
.admin-toolbar { position: fixed; z-index: 120; top: 88px; bottom: 18px; left: 16px; width: 210px; align-items: stretch; flex-direction: column; gap: 12px; margin: 0; padding: 13px; background: #fffdf8; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 42px rgb(8 43 35 / 13%); }
.admin-toolbar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 5px 12px; color: var(--green-950); border-bottom: 1px solid var(--line); }
.admin-toolbar-brand > span { display: grid; width: 35px; height: 35px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--mint-500), var(--green-800)); border-radius: 11px; font-family: Georgia, serif; font-size: 19px; font-weight: 900; }
.admin-toolbar-brand strong { font-size: 13px; }
.admin-toolbar nav { display: flex; min-height: 0; flex: 1; flex-direction: column; flex-wrap: nowrap; gap: 4px; overflow-y: auto; }
.admin-toolbar nav a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 7px; width: 100%; padding: 8px; color: #53665f; background: transparent; border: 0; border-radius: 10px; font-size: 11px; }
.admin-toolbar nav a i { display: grid; width: 27px; height: 27px; place-items: center; color: var(--green-700); background: var(--mint-100); border-radius: 8px; font-style: normal; }
.admin-toolbar nav a:hover, .admin-toolbar nav a.active { color: #fff; background: var(--green-700); }
.admin-toolbar nav a:hover i, .admin-toolbar nav a.active i { color: var(--green-950); background: #d6f5e9; }
.admin-toolbar form, .admin-toolbar form .button { width: 100%; margin: 0; }
.admin-toolbar form .button { min-height: 38px; }
@media (max-width: 1050px) {
  .admin-area main { padding-left: 0; }
  .admin-toolbar { position: static; width: auto; align-items: center; flex-direction: row; margin-top: 24px; padding: 10px; }
  .admin-toolbar-brand { display: none; }
  .admin-toolbar nav { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .admin-toolbar nav a { width: auto; grid-template-columns: 24px auto; }
  .admin-toolbar nav a i { width: 23px; height: 23px; }
  .admin-toolbar form, .admin-toolbar form .button { width: auto; }
  .quick-search, .filter-form { grid-template-columns: 1fr 1fr; }
  .hero-teacher-card { min-width: calc((100% - 16px) / 2); }
  .teachers-listing-section .filter-form { grid-template-columns: 1fr 1fr; }
  .teachers-listing-section .filter-form .wide { grid-column: 1 / -1; }
  .quick-search label { border-right: 0; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teachers-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-teacher-grid, .mentor-home-section .home-request-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .request-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { width: calc((100% - 36px) / 4); }
  .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-form { grid-template-columns: 1fr 1fr; }
  .mentor-filter-form { grid-template-columns: 1fr 1fr; }
  .taxonomy-admin-grid, .taxonomy-region-create { grid-template-columns: 1fr; }
  .taxonomy-create-card { position: static; }
  .taxonomy-row-form, .taxonomy-region-form { grid-template-columns: 1fr 120px 90px 90px; }
  .taxonomy-row-form .button, .taxonomy-region-form .button { grid-column: 1 / -1; }
  .taxonomy-settlement-form { grid-template-columns: 1fr 1fr 110px; }
  .category-image-admin { grid-template-columns: 130px 1fr; }
  .category-image-preview { width: 130px; }
  .category-image-admin > form:last-child { grid-column: 2; }
  .taxonomy-settlement-form > small { grid-column: 1 / 3; }
}

@media (max-width: 780px) {
  .container, .narrow { width: min(100% - 28px, 1160px); }
  .section { padding: 54px 0; }
  .nav { min-height: 68px; }
  .brand img { width: 205px; }
  .menu-toggle { display: block; }
  .nav-menu { position: absolute; top: 68px; left: 14px; right: 14px; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu > a { padding: 9px; }
  .language-switcher { align-self: flex-start; }
  .hero { padding: 34px 0 38px; }
  .hero-grid, .match-grid, .profile-grid, .admin-columns { grid-template-columns: 1fr; gap: 28px; }
  .hero-card { transform: none; }
  .hero h1 { margin-bottom: 20px; font-size: 31px; }
  .hero-carousel { padding: 0 38px; }
  .hero-stats { width: min(100%, 460px); gap: 10px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .teachers-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-teacher-grid, .mentor-home-section .home-request-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-teacher-grid .teacher-card-body { padding: 12px; }
  .request-grid { grid-template-columns: 1fr; }
  .match-form { grid-template-columns: 1fr; }
  .profile-head { align-items: flex-start; flex-direction: column; }
  .profile-image { width: 140px; }
  .info-list { position: static; }
  .comment-form, .teacher-form fieldset { grid-template-columns: 1fr; }
  .register-fields { grid-template-columns: 1fr; }
  .photo-cropper { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .category-section { padding: 48px 0 52px; }
  .category-card { width: calc((100% - 12px) / 2); min-height: 200px; }
  .community-card, .share-card { align-items: flex-start; flex-direction: column; }
  .catalog-title-row { align-items: flex-start; flex-direction: column; }
  .share-actions { justify-content: flex-start; }
  .success-community-box { grid-template-columns: auto 1fr; }
  .success-community-box .button { grid-column: 1 / -1; }
  .admin-mini-stats { grid-template-columns: 1fr; }
  .taxonomy-tree-toolbar { align-items: stretch; flex-direction: column; }
  .taxonomy-tree-toolbar > div:last-child { justify-content: space-between; }
  .taxonomy-tree-row { grid-template-columns: 28px 26px 42px minmax(110px, 1fr) auto; }
  .taxonomy-move-actions { grid-column: 4; }
  .taxonomy-edit-toggle { grid-column: 5; grid-row: 1 / span 2; }
  .taxonomy-tree-item.is-child { margin-left: 24px; }
  .taxonomy-tree-item.is-child::before { left: -13px; width: 9px; }
  .taxonomy-create-inline, .taxonomy-add-settlement, .taxonomy-row-form, .taxonomy-region-form, .taxonomy-settlement-form { grid-template-columns: 1fr; }
  .taxonomy-row-form .button, .taxonomy-region-form .button, .taxonomy-settlement-form > small { grid-column: auto; }
  .category-image-admin, .category-image-form { grid-template-columns: 1fr; }
  .category-image-preview { width: 100%; max-width: 320px; }
  .category-image-admin > form:last-child { grid-column: auto; }
  .taxonomy-delete-form { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .quick-search, .filter-form { grid-template-columns: 1fr; }
  .teachers-listing-section .filter-form { grid-template-columns: 1fr; }
  .teachers-listing-section .filter-form .wide { grid-column: auto; }
  .teachers-page-grid { grid-template-columns: 1fr; }
  .teachers-page-grid .teacher-card { height: auto; }
  .hero h1 { font-size: 27px; }
  .hero-carousel { margin-inline: -6px; padding: 0 28px; }
  .hero-carousel-track { gap: 6px; }
  .hero-carousel-arrow { width: 28px; height: 28px; font-size: 21px; }
  .hero-teacher-card { min-width: calc((100% - 12px) / 3); grid-template-columns: 1fr; align-content: start; padding: 5px; border-radius: 10px; }
  .hero-teacher-card::before { left: 4px; width: 1px; }
  .hero-teacher-photo { width: 100%; aspect-ratio: 4 / 3; border-width: 3px; border-radius: 7px; font-size: 22px; transform: none; }
  .hero-teacher-copy { padding: 5px 1px 2px; }
  .hero-teacher-copy small { font-size: 6px; }
  .hero-teacher-copy strong { margin: 2px 0 3px; font-size: 9px; }
  .hero-teacher-copy > span { font-size: 7px; }
  .hero-copy { font-size: 16px; }
  .hero-stats { gap: 8px; margin-top: 22px; }
  .hero-stats div { min-height: 78px; padding: 12px 6px 10px; border-radius: 13px; }
  .hero-stats strong { font-size: 25px; }
  .hero-stats span { font-size: 9px; }
  .taxonomy-tree { padding: 10px; }
  .taxonomy-tree-row { grid-template-columns: 25px 24px 38px minmax(0, 1fr); padding: 7px; }
  .taxonomy-tree-image { width: 38px; }
  .taxonomy-tree-copy small { white-space: normal; }
  .taxonomy-move-actions { grid-column: 2 / 5; justify-content: flex-end; }
  .taxonomy-edit-toggle { grid-column: 1 / 5; grid-row: auto; }
  .taxonomy-tree-toolbar > div:last-child { align-items: stretch; flex-direction: column; }
  .admin-danger-menu[open] form { position: fixed; top: 18%; right: 14px; left: 14px; width: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .catalog-result-heading { align-items: flex-start; flex-direction: column; }
  .request-card-actions { grid-template-columns: 1fr; }
  .profile-head h1 { font-size: 38px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-toolbar, .admin-title-row { align-items: stretch; flex-direction: column; }
  .admin-title-actions, .step-actions { align-items: stretch; flex-direction: column; }
  .admin-filter-form { grid-template-columns: 1fr; }
  .category-grid { gap: 6px; }
  .category-card { width: calc((100% - 12px) / 3); min-height: 142px; padding: 6px; border-radius: 10px; }
  .category-card:nth-child(n + 16) { display: none; }
  .category-art { height: 64px; border-radius: 7px; }
  .category-popular { top: 4px; right: 4px; padding: 3px 4px; font-size: 5px; }
  .category-card strong { min-height: 26px; margin-top: 6px; font-size: 8px; line-height: 1.25; }
  .category-card-footer { gap: 3px; padding-top: 5px; }
  .category-card-footer small { padding: 3px 4px; font-size: 6px; }
  .category-card-footer i { width: 18px; height: 18px; border-radius: 5px; font-size: 8px; }
  .category-heading { gap: 16px; }
  .category-all-link { width: 100%; justify-content: center; }
  .similar-grid { grid-template-columns: 1fr; }
  .home-teacher-grid, .mentor-home-section .home-request-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .home-teacher-grid .teacher-card:nth-child(n + 16), .home-request-grid .request-card:nth-child(n + 16) { display: none; }
  .home-teacher-grid .teacher-card > a { padding: 4px; }
  .home-teacher-grid .teacher-card-clip { top: -5px; right: 7px; width: 7px; height: 18px; border-width: 1px; }
  .home-teacher-grid .teacher-card-body { min-height: 96px; margin-top: 3px; padding: 17px 4px 5px; background-size: auto 20px, auto; }
  .home-teacher-grid .teacher-category, .home-teacher-grid .teacher-card-price { top: -10px; min-height: 16px; padding: 2px 3px; font-size: 5px; }
  .home-teacher-grid .teacher-card h3 { margin-right: 16px; font-size: 9px; }
  .home-teacher-grid .teacher-card-body > p:not(.teacher-category) { min-height: 22px; margin: 2px 14px 5px 0; font-size: 7px; }
  .home-teacher-grid .teacher-meta { gap: 2px; padding-right: 16px; font-size: 5px; }
  .home-teacher-grid .teacher-meta span { padding: 2px 3px; }
  .home-teacher-grid .teacher-card-arrow { right: 3px; bottom: 4px; width: 15px; height: 15px; font-size: 8px; }
  .home-request-grid .request-card { border-radius: 10px; }
  .home-request-grid .request-card-main { min-height: 190px; padding: 6px; }
  .home-request-grid .request-card-top { gap: 3px; margin-bottom: 6px; }
  .home-request-grid .request-icon { width: 25px; height: 25px; border-radius: 7px; font-size: 12px; }
  .home-request-grid .request-budget { padding: 3px; font-size: 5px; }
  .home-request-grid .teacher-category { margin-bottom: 4px; padding: 2px 3px; font-size: 5px; }
  .home-request-grid .request-card h3 { font-size: 9px; }
  .home-request-grid .request-person { margin: 3px 0 6px; font-size: 6px; }
  .home-request-grid .request-meta { gap: 2px; }
  .home-request-grid .request-meta span { padding: 2px 3px; font-size: 5px; }
  .home-request-grid .request-availability { padding-top: 6px; font-size: 6px; -webkit-line-clamp: 2; }
  .home-request-grid .request-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 4px; }
  .home-request-grid .request-card-actions a { min-height: 23px; padding: 3px 1px; font-size: 5px; }
  .register-step { padding: 24px 18px; }
  .community-card, .success-card { padding: 26px 20px; }
  .seo-summary { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { gap: 8px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
