/* ============================================================
   LessonInc — Main Stylesheet
   Color Palette: Navy Blue + White + Gold
   ============================================================ */

:root {
  --navy:       #0B1D3A;
  --navy-mid:   #112347;
  --navy-light: #1A3666;
  --gold:       #C9A84C;
  --gold-light: #E2C174;
  --gold-pale:  #FDF6E3;
  --white:      #FFFFFF;
  --off-white:  #F8FAFF;
  --gray-100:   #F1F4F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --gray-800:   #1E293B;
  --success:    #16A34A;
  --danger:     #DC2626;
  --shadow-sm:  0 1px 3px rgba(11,29,58,0.08);
  --shadow-md:  0 4px 16px rgba(11,29,58,0.12);
  --shadow-lg:  0 8px 32px rgba(11,29,58,0.16);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: all 0.25s ease;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Inter','Segoe UI',system-ui,sans-serif;color:var(--gray-800);background:var(--white);line-height:1.6}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
input,select{font-family:inherit}

h1{font-size:clamp(2rem,4vw,3.25rem);font-weight:800;line-height:1.15}
h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;line-height:1.25}
h3{font-size:1.25rem;font-weight:600}
h4{font-size:1rem;font-weight:600}
p{color:var(--gray-600)}

.container{max-width:1200px;margin:0 auto;padding:0 24px}
.section{padding:72px 0}
.section-alt{background:var(--off-white)}
.text-center{text-align:center}
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:600}
.badge-gold{background:var(--gold-pale);color:var(--gold);border:1px solid var(--gold-light)}
.divider{width:60px;height:3px;background:var(--gold);border-radius:2px;margin:16px auto}

.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border-radius:var(--radius-sm);font-weight:600;font-size:.95rem;transition:var(--transition)}
.btn-primary{background:var(--gold);color:var(--navy);box-shadow:0 2px 8px rgba(201,168,76,.35)}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-1px);box-shadow:0 4px 16px rgba(201,168,76,.4)}
.btn-navy{background:var(--navy);color:var(--white)}
.btn-navy:hover{background:var(--navy-light);transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--navy);border:2px solid var(--navy)}
.btn-outline:hover{background:var(--navy);color:var(--white)}
.btn-outline-white{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,.6)}
.btn-outline-white:hover{background:rgba(255,255,255,.1);border-color:var(--white)}
.btn-sm{padding:8px 18px;font-size:.85rem}
.btn-lg{padding:15px 36px;font-size:1.05rem}

.navbar{position:fixed;top:0;left:0;right:0;z-index:1000;background:var(--navy);border-bottom:1px solid rgba(201,168,76,.2);transition:var(--transition)}
.navbar.scrolled{box-shadow:0 2px 20px rgba(0,0,0,.3);background:rgba(11,29,58,.97);backdrop-filter:blur(12px)}
.navbar-inner{display:flex;align-items:center;justify-content:space-between;height:70px}
.navbar-logo{display:flex;align-items:center;gap:10px}
.navbar-logo .logo-icon{width:38px;height:38px;background:var(--gold);border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.1rem;color:var(--navy)}
.navbar-logo .logo-text{font-size:1.35rem;font-weight:800;color:var(--white);letter-spacing:-.3px}
.navbar-logo .logo-text span{color:var(--gold)}
.navbar-nav{display:flex;align-items:center;gap:8px}
.navbar-nav a{color:rgba(255,255,255,.75);font-size:.9rem;font-weight:500;padding:6px 14px;border-radius:var(--radius-sm);transition:var(--transition)}
.navbar-nav a:hover{color:var(--white);background:rgba(255,255,255,.08)}
.navbar-cta{display:flex;align-items:center;gap:10px}
.hamburger{display:none;flex-direction:column;gap:5px;padding:8px;cursor:pointer}
.hamburger span{display:block;width:24px;height:2px;background:var(--white);border-radius:2px;transition:var(--transition)}

.hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 60%,#1e4080 100%);min-height:100vh;display:flex;align-items:center;padding-top:70px;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 70% 50%,rgba(201,168,76,.08) 0%,transparent 60%)}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding:80px 0}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(201,168,76,.15);border:1px solid rgba(201,168,76,.3);color:var(--gold-light);padding:6px 16px;border-radius:20px;font-size:.82rem;font-weight:600;margin-bottom:24px}
.hero-badge span{width:6px;height:6px;background:var(--gold);border-radius:50%;animation:pulse 1.5s infinite}
.hero h1{color:var(--white);margin-bottom:20px}
.hero h1 em{color:var(--gold);font-style:normal}
.hero-subtitle{color:rgba(255,255,255,.72);font-size:1.1rem;margin-bottom:36px;max-width:480px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:48px}
.hero-stats{display:flex;gap:32px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);padding-top:32px}
.hero-stat .num{font-size:1.75rem;font-weight:800;color:var(--gold);display:block;line-height:1}
.hero-stat .lbl{font-size:.82rem;color:rgba(255,255,255,.6);margin-top:4px}
.hero-visual{display:flex;justify-content:center;align-items:center;position:relative}
.hero-card-stack{position:relative;width:360px;height:420px}
.floating-card{position:absolute;background:var(--white);border-radius:var(--radius-md);padding:20px;box-shadow:var(--shadow-lg)}
.floating-card.card-main{width:280px;top:40px;left:40px;border-top:3px solid var(--gold)}
.floating-card.card-stat{width:160px;bottom:60px;right:0;border-left:3px solid var(--gold)}
.floating-card.card-badge{width:140px;top:0;right:20px;text-align:center;padding:14px}
.fc-avatar{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,var(--navy),var(--navy-light));display:flex;align-items:center;justify-content:center;color:var(--gold);font-weight:700;font-size:1.2rem;margin-bottom:12px}
.fc-name{font-weight:700;color:var(--navy);font-size:.95rem}
.fc-sub{font-size:.78rem;color:var(--gray-400);margin:2px 0 10px}
.fc-stars{color:#F59E0B;font-size:.85rem}
.fc-price{font-size:.8rem;color:var(--gray-600);margin-top:8px}
.fc-price strong{color:var(--navy)}
.fc-num{font-size:1.5rem;font-weight:800;color:var(--navy)}
.fc-lbl{font-size:.75rem;color:var(--gray-400)}
.verified-icon{font-size:2rem;margin-bottom:8px}

.search-section{background:var(--white);padding:40px 0}
.search-box{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--gray-200);padding:28px 32px}
.search-box-title{font-size:1rem;font-weight:600;color:var(--navy);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.search-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:14px;align-items:end}
.search-field label{display:block;font-size:.78rem;font-weight:600;color:var(--gray-600);margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}
.search-field input,.search-field select{width:100%;padding:12px 16px;border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);font-size:.92rem;color:var(--gray-800);transition:var(--transition);background:var(--off-white)}
.search-field input:focus,.search-field select:focus{outline:none;border-color:var(--navy);background:var(--white);box-shadow:0 0 0 3px rgba(11,29,58,.06)}

.stats-bar{background:var(--navy);padding:28px 0}
.stats-bar-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}
.stat-item{display:flex;align-items:center;gap:14px}
.stat-icon{width:44px;height:44px;background:rgba(201,168,76,.15);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.2rem}
.stat-num{font-size:1.5rem;font-weight:800;color:var(--gold);line-height:1}
.stat-lbl{font-size:.78rem;color:rgba(255,255,255,.6);margin-top:2px}

.section-header{margin-bottom:48px}
.section-header.centered{text-align:center}
.section-tag{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--gold);margin-bottom:12px}
.section-tag::before{content:'';display:block;width:20px;height:2px;background:var(--gold)}
.section-title{color:var(--navy);margin-bottom:12px}
.section-subtitle{color:var(--gray-600);font-size:1.02rem;max-width:560px}
.section-header.centered .section-subtitle{margin:0 auto}

.filter-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}
.filter-tab{padding:8px 20px;border-radius:20px;font-size:.85rem;font-weight:600;border:1.5px solid var(--gray-200);color:var(--gray-600);background:var(--white);transition:var(--transition);cursor:pointer}
.filter-tab:hover{border-color:var(--navy);color:var(--navy)}
.filter-tab.active{background:var(--navy);color:var(--white);border-color:var(--navy)}

.tutors-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.tutor-card{background:var(--white);border-radius:var(--radius-md);border:1px solid var(--gray-200);overflow:hidden;transition:var(--transition);position:relative}
.tutor-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:rgba(201,168,76,.4)}
.tutor-card-header{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);padding:20px;display:flex;align-items:center;gap:14px;position:relative}
.tutor-avatar{width:60px;height:60px;border-radius:50%;border:3px solid rgba(201,168,76,.5);background:var(--navy-light);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.4rem;color:var(--gold);flex-shrink:0;overflow:hidden}
.tutor-avatar img{width:100%;height:100%;object-fit:cover}
.tutor-header-info{flex:1;min-width:0}
.tutor-name{font-weight:700;color:var(--white);font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tutor-city{font-size:.78rem;color:rgba(255,255,255,.6);margin-top:2px}
.tutor-card-badges{position:absolute;top:12px;right:12px;display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.verified-badge{background:rgba(201,168,76,.2);color:var(--gold-light);border:1px solid rgba(201,168,76,.4);font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:10px}
.tutor-card-body{padding:18px 20px}
.tutor-subjects{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.subject-tag{font-size:.72rem;font-weight:600;padding:3px 10px;background:var(--gray-100);color:var(--navy);border-radius:12px}
.tutor-rating{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.stars{color:#F59E0B;font-size:.85rem;letter-spacing:1px}
.rating-num{font-weight:700;color:var(--navy);font-size:.88rem}
.rating-count{color:var(--gray-400);font-size:.78rem}
.tutor-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.tutor-mode{font-size:.78rem;color:var(--gray-600);display:flex;align-items:center;gap:4px}
.tutor-exp{font-size:.78rem;color:var(--gray-600)}
.tutor-price{font-size:.82rem;color:var(--gray-600)}
.tutor-price strong{color:var(--navy);font-size:.95rem}
.tutor-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 20px 18px}

.categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.category-card{background:var(--white);border-radius:var(--radius-md);border:1.5px solid var(--gray-200);padding:24px 20px;text-align:center;transition:var(--transition);cursor:pointer}
.category-card:hover{border-color:var(--navy);transform:translateY(-3px);box-shadow:var(--shadow-md)}
.category-card.featured{border-color:var(--gold);background:var(--gold-pale)}
.cat-icon{width:56px;height:56px;border-radius:14px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin:0 auto 14px;transition:var(--transition)}
.category-card:hover .cat-icon{background:var(--navy)}
.cat-name{font-weight:700;color:var(--navy);font-size:.92rem;margin-bottom:4px}
.cat-count{font-size:.75rem;color:var(--gray-400)}

.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;position:relative}
.steps-grid::before{content:'';position:absolute;top:36px;left:calc(16.66% + 20px);right:calc(16.66% + 20px);height:2px;border-top:2px dashed var(--gold-light);z-index:0}
.step-card{text-align:center;position:relative;z-index:1}
.step-num{width:72px;height:72px;border-radius:50%;background:var(--navy);color:var(--gold);font-size:1.5rem;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;border:3px solid var(--gold-pale);box-shadow:0 0 0 6px var(--white),0 0 0 8px var(--gray-100)}
.step-title{font-weight:700;color:var(--navy);margin-bottom:10px}
.step-desc{font-size:.88rem;color:var(--gray-600)}

.why-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.why-card{background:var(--white);border-radius:var(--radius-md);padding:28px;border:1px solid var(--gray-200);display:flex;gap:20px;align-items:flex-start;transition:var(--transition)}
.why-card:hover{box-shadow:var(--shadow-md);border-color:rgba(201,168,76,.3)}
.why-icon{width:52px;height:52px;border-radius:12px;background:var(--navy);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex-shrink:0}
.why-title{font-weight:700;color:var(--navy);margin-bottom:6px}
.why-desc{font-size:.88rem;color:var(--gray-600)}

.cta-banner{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);padding:72px 0;position:relative;overflow:hidden}
.cta-banner::before{content:'';position:absolute;top:-80px;right:-80px;width:300px;height:300px;background:radial-gradient(circle,rgba(201,168,76,.12) 0%,transparent 70%)}
.cta-inner{text-align:center;position:relative;z-index:1}
.cta-inner h2{color:var(--white);margin-bottom:16px}
.cta-inner p{color:rgba(255,255,255,.7);font-size:1.05rem;margin-bottom:36px}
.cta-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

.footer{background:#07111F;padding:56px 0 28px;color:rgba(255,255,255,.7)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px}
.footer-brand .logo-text{color:var(--white);font-size:1.4rem;font-weight:800}
.footer-brand .logo-text span{color:var(--gold)}
.footer-tagline{font-size:.88rem;color:rgba(255,255,255,.5);margin-top:12px;max-width:260px;line-height:1.7}
.footer-heading{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--gold);margin-bottom:18px}
.footer-links{display:flex;flex-direction:column;gap:10px}
.footer-links a{font-size:.88rem;color:rgba(255,255,255,.55);transition:var(--transition)}
.footer-links a:hover{color:var(--gold)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:28px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-copy{font-size:.82rem;color:rgba(255,255,255,.4)}
.footer-legal{display:flex;gap:20px}
.footer-legal a{font-size:.82rem;color:rgba(255,255,255,.4);transition:var(--transition)}
.footer-legal a:hover{color:var(--gold)}

.spinner{width:36px;height:36px;border:3px solid var(--gray-200);border-top-color:var(--navy);border-radius:50%;animation:spin .8s linear infinite;margin:40px auto}
.loader-text{text-align:center;color:var(--gray-400);font-size:.88rem;margin-top:12px}
.toast-container{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:10px}
.toast{background:var(--navy);color:var(--white);padding:14px 20px;border-radius:var(--radius-sm);font-size:.88rem;font-weight:500;box-shadow:var(--shadow-lg);border-left:4px solid var(--gold);animation:slideIn .3s ease;max-width:320px}
.toast.success{border-left-color:var(--success)}
.toast.error{border-left-color:var(--danger)}

@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.2)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes fadeUp{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
.fade-up{animation:fadeUp .5s ease forwards}

@media(max-width:1024px){.hero-grid{grid-template-columns:1fr;gap:40px}.hero-visual{display:none}.search-grid{grid-template-columns:1fr 1fr}.search-grid>.btn{grid-column:1/-1;width:100%;justify-content:center}.footer-grid{grid-template-columns:1fr 1fr}.why-grid{grid-template-columns:1fr}}
@media(max-width:768px){.section{padding:48px 0}.navbar-nav{display:none}.hamburger{display:flex}.navbar-nav.open{display:flex;flex-direction:column;align-items:flex-start;position:absolute;top:70px;left:0;right:0;background:var(--navy);padding:16px 24px;border-top:1px solid rgba(255,255,255,.1)}.hero{min-height:auto}.hero-grid{padding:48px 0}.search-grid{grid-template-columns:1fr}.steps-grid{grid-template-columns:1fr}.steps-grid::before{display:none}.stats-bar-inner{justify-content:center;gap:20px}.footer-grid{grid-template-columns:1fr;gap:32px}.footer-bottom{flex-direction:column;text-align:center}.categories-grid{grid-template-columns:repeat(2,1fr)}.tutors-grid{grid-template-columns:1fr}.why-grid{grid-template-columns:1fr}.cta-actions{flex-direction:column;align-items:center}}

/* PWA install action and narrow-phone touch targets. */
[data-pwa-install][hidden]{display:none!important}
[data-pwa-install]{min-height:44px}
@media(max-width:480px){.container{padding-left:16px;padding-right:16px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.hero-actions>.btn{max-width:100%;white-space:normal;text-align:center}.categories-grid{grid-template-columns:1fr 1fr;gap:10px}}

/* Homepage hero refresh: a search-first experience, no tabs or unverified sample stats. */
.hero{min-height:initial;padding:112px 0 66px;background:radial-gradient(ellipse at 83% 9%,rgba(201,168,76,.16),transparent 39%),linear-gradient(125deg,#09182f 0%,#112b53 57%,#183e71 100%)}
.hero::before{pointer-events:none;background:radial-gradient(circle at 3% 92%,rgba(255,255,255,.055),transparent 33%)}
.hero>.container{width:100%;position:relative;z-index:1}
.hero-grid{grid-template-columns:minmax(0,1.04fr) minmax(340px,.96fr);gap:clamp(30px,5vw,72px);padding:28px 0;align-items:center}
.hero-content{min-width:0}
.hero-badge{margin-bottom:24px;font-size:.8rem;padding:8px 15px}
.hero h1{font-size:clamp(2.45rem,4.4vw,4.4rem);letter-spacing:-.045em;line-height:1.095;max-width:680px;margin-bottom:24px}
.hero-subtitle{font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.75;max-width:540px;margin-bottom:30px;color:#d7e3f4}
.hero-actions{margin-bottom:31px}
.hero-actions .btn{min-height:52px;border-radius:10px;justify-content:center}
.hero-benefits{display:flex;flex-wrap:wrap;gap:9px 18px;color:#e5edf8;font-size:.83rem;font-weight:500;margin-bottom:25px}
.hero-benefits span span{color:#e8c87b;font-weight:800;margin-right:5px}
.hero-how-link{color:#f3d99a;text-decoration:underline;text-underline-offset:5px;font-size:.87rem;font-weight:600}
.hero-how-link:hover{color:white}
.hero-search-wrap{min-width:0;scroll-margin-top:85px}
.hero-search-card{background:#fff;box-shadow:0 22px 70px rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.7);border-radius:23px;padding:clamp(23px,3vw,37px);position:relative;overflow:hidden}
.hero-search-card::before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#c9a84c,#efd58d,#c9a84c)}
.hero-search-eyebrow{font-size:.73rem;font-weight:800;letter-spacing:.14em;color:#9a7520;margin-bottom:7px}
.hero-search-card h2{font-size:clamp(1.5rem,2.5vw,2rem);letter-spacing:-.035em;color:var(--navy);margin-bottom:7px}
.hero-search-description{font-size:.91rem;line-height:1.55;color:#59687f;margin-bottom:22px}
.hero-search-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px 13px}
.hero-search-fields .search-field{min-width:0}
.hero-search-fields .search-field label{display:block;color:#243650;text-transform:none;letter-spacing:0;font-size:.82rem;font-weight:700;margin-bottom:7px}
.hero-search-fields .search-field input,.hero-search-fields .search-field select{min-width:0;width:100%;min-height:48px;background:#f8fafd;border:1.5px solid #dce4ee;border-radius:9px;padding:10px 12px;color:#1f2e46;font-size:.88rem}
.hero-search-fields .search-field input:focus-visible,.hero-search-fields .search-field select:focus-visible{outline:2px solid #ba8d2d;outline-offset:1px;border-color:#ba8d2d}
.optional-label{display:block;color:#69778a;font-size:.68rem;font-weight:400}
.hero-search-submit{margin-top:21px;width:100%;justify-content:center;min-height:54px;font-size:1rem;border-radius:10px}
/* The hero has two different backgrounds: dark introductory panel and white search card.
   Scope foreground colors to each surface so inherited/global text rules cannot blend in. */
.hero .hero-content .hero-badge{color:#fff0bc;background:rgba(201,168,76,.20);border-color:rgba(242,210,139,.55)}
.hero .hero-content h1{color:#ffffff}
.hero .hero-content h1 em{color:#f3d184}
.hero .hero-content .hero-subtitle{color:#f1f5fd}
.hero .hero-content .hero-benefits{color:#ffffff}
.hero .hero-content .hero-benefits > span{color:#ffffff}
.hero .hero-content .hero-benefits > span > span{color:#ffe4a0}
.hero .hero-content .hero-how-link{color:#ffe4a0;text-decoration-thickness:1.5px}
.hero .hero-content .hero-how-link:hover{color:#ffffff}
.hero .hero-search-card{background:#ffffff;color:#172a45}
.hero .hero-search-card .hero-search-eyebrow{color:#73500a}
.hero .hero-search-card h2{color:#102342}
.hero .hero-search-card .hero-search-description{color:#3e4e65}
.hero .hero-search-card .search-field label{color:#182d4c}
.hero .hero-search-card .search-field .optional-label{color:#4a5870}
.hero .hero-search-card .search-field input,.hero .hero-search-card .search-field select{color:#172a45;background:#f8fafd}
.hero .hero-search-card .search-field input::placeholder{color:#526178;opacity:1}
.hero .hero-search-card .hero-search-foot{color:#40526b}
.hero-search-foot{margin-top:15px;font-size:.76rem;color:#5a6b82;text-align:center;line-height:1.45}
.hero-search-foot span{color:#b18b38}
.hero a:focus-visible,.hero button:focus-visible{outline:3px solid #f4d888;outline-offset:4px}
@media(max-width:1024px){.hero-grid{grid-template-columns:minmax(0,1fr) minmax(310px,.9fr);gap:28px}.hero h1{font-size:clamp(2.35rem,4vw,3.6rem)}.hero-search-fields{grid-template-columns:1fr}}
@media(max-width:760px){.hero{padding:93px 0 47px}.hero-grid{grid-template-columns:1fr;gap:29px;padding:0}.hero h1{font-size:clamp(2.3rem,7.5vw,3.5rem)}.hero-subtitle{margin-bottom:22px}.hero-actions{margin-bottom:22px}.hero-search-fields{grid-template-columns:1fr 1fr}.hero-search-card{padding:24px}}
@media(max-width:520px){.hero{padding:91px 0 38px}.hero h1{font-size:clamp(2.15rem,10vw,2.75rem)}.hero-actions{gap:10px}.hero-actions .btn{padding:12px 17px;font-size:.9rem;flex:1 1 auto}.hero-benefits{gap:8px 13px}.hero-search-fields{grid-template-columns:1fr}.hero-search-card{border-radius:16px;padding:22px 19px}.hero-search-foot{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.hero-badge span{animation:none}.hero .btn:hover{transform:none}}


/* Shared LessonInc brand treatment using the approved sample wordmark. */
.brand-lockup{display:flex;align-items:center;text-decoration:none;min-width:0}
.brand-mark{display:block;height:36px;width:auto;max-width:240px;object-fit:contain;flex:none}
.brand-tagline{font-size:.58rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-top:4px;white-space:nowrap}
.footer-brand.brand-footer{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.footer-brand.brand-footer .footer-tagline{margin-top:2px;max-width:320px}
@media(max-width:520px){.brand-mark{height:32px;max-width:190px}.brand-tagline{font-size:.54rem;letter-spacing:.08em}}

/* Brand v2: original uploaded wordmark + revised symbol, one mark only. */
.navbar-logo.brand-lockup{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0}
.navbar-logo.brand-lockup .brand-mark{display:block;width:205px;height:auto;max-width:100%;object-fit:contain}
.navbar-logo.brand-lockup .brand-tagline-header{display:block;margin:0 0 0 3px;font-size:9px;letter-spacing:.11em;font-weight:750;line-height:1.2;color:#edc967;white-space:nowrap}
@media(max-width:520px){.navbar-logo.brand-lockup .brand-mark{width:165px}.navbar-logo.brand-lockup .brand-tagline-header{font-size:8px;letter-spacing:.06em}}

/* brand-v3-wordmark-alignment: tagline begins beneath lettering, not the icon. */
.navbar-logo.brand-lockup .brand-mark{width:218px;max-width:100%;height:auto}
.navbar-logo.brand-lockup .brand-tagline-header{margin-left:13.49%;margin-top:1px}
@media(max-width:520px){.navbar-logo.brand-lockup .brand-mark{width:175px}.navbar-logo.brand-lockup .brand-tagline-header{margin-left:13.49%}}

/* Uniform wordmark-width tagline; retain the homepage logo proportions. */
.navbar-logo.brand-lockup .brand-tagline-header{box-sizing:border-box;width:86.37%!important;max-width:86.37%!important;margin:1px 0 0 13.49%!important;align-self:flex-start;text-align:left;text-align-last:auto;letter-spacing:.08em!important;white-space:nowrap}



/* brand-v4-footer-sync: footer brand lockup intentionally reuses the homepage header geometry. */
.footer-brand.brand-footer{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.footer-brand .footer-brand-lockup{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0;text-decoration:none}
.footer-brand .footer-brand-lockup .brand-mark{display:block;width:218px!important;max-width:100%!important;height:auto!important;object-fit:contain}
.footer-brand .footer-brand-lockup .brand-tagline-header{display:block!important;box-sizing:border-box;width:86.37%!important;max-width:86.37%!important;margin:1px 0 0 13.49%!important;align-self:flex-start;text-align:left;text-align-last:auto;letter-spacing:.08em!important;white-space:nowrap;font-size:9px;font-weight:750;line-height:1.2;color:#edc967!important}
.footer-brand.brand-footer .footer-tagline{margin-top:2px;max-width:320px}
@media(max-width:520px){.footer-brand .footer-brand-lockup .brand-mark{width:175px!important}.footer-brand .footer-brand-lockup .brand-tagline-header{font-size:8px}}

/* Public tutor cards: one verified tier, optional NEW superscript, balanced content. */
.tutors-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,305px),1fr));align-items:stretch}
.tutor-card{display:flex;flex-direction:column;min-height:340px;border-radius:18px;box-shadow:0 7px 24px rgba(12,36,67,.045)}
.tutor-card-header{padding:23px 20px;min-height:112px;align-items:center}
.tutor-avatar{width:70px;height:70px}
.tutor-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;white-space:normal;overflow:visible;font-size:1.04rem;line-height:1.4}
.tutor-card-body{display:flex;flex-direction:column;flex:1;padding:19px 20px 13px}
.tutor-detail-label{font-size:.7rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase;color:var(--gray-400);margin:2px 0 7px}
.tutor-detail-empty{color:var(--gray-400);font-size:.78rem}
.tutor-subjects{min-height:30px;margin-bottom:12px}
.tutor-classes{margin-bottom:12px}
.class-tag{background:#eef3fc;color:#214675}
.tutor-rating{margin-top:auto;padding-top:8px}
.tutor-meta{flex-wrap:wrap;gap:9px 13px;margin-top:auto;margin-bottom:7px;align-items:baseline}
.tutor-price{margin-left:auto}
.tutor-card-actions{margin-top:auto;padding:13px 20px 20px;border-top:1px solid var(--gray-100)}
.tutor-status-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:.66rem;line-height:1.3;font-weight:800;padding:3px 8px;border-radius:7px;vertical-align:middle;letter-spacing:0}
.tutor-status-badge.green{background:#dcfce7;color:#166534;border:1px solid #86efac}
.tutor-status-badge.gold{background:#fff2c7;color:#79500b;border:1px solid #eac46b}
.tutor-status-badge.new{background:#e9f1ff;color:#1e40af;border:1px solid #c5d8ff;font-size:.57rem;transform:translateY(-.3em);padding:2px 5px}
.tutor-status-badge.featured{background:#e9f1ff;color:#1d4ed8}
@media(max-width:680px){.tutors-grid{grid-template-columns:1fr}.tutor-card{min-height:0}.tutor-card-header{min-height:0}.tutor-card-actions .btn{white-space:normal}}

/* Compact public tutor cards: avoid stretching a single card across the grid. */
.tutors-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),340px));gap:18px;justify-content:start;align-items:start}
.tutor-card{min-height:0;height:auto}
.tutor-card-header{min-height:0;padding:15px 16px;gap:11px}
.tutor-avatar{width:54px;height:54px}
.tutor-card-body{padding:13px 16px 8px;flex:0 1 auto}
.tutor-detail-label{margin:0 0 4px}
.tutor-subjects{min-height:0;margin-bottom:8px;gap:5px}
.tutor-classes{margin-bottom:8px}
.tutor-rating{margin-top:0;padding-top:4px;margin-bottom:7px}
.tutor-meta{margin-top:0;margin-bottom:5px;gap:6px 10px}
.tutor-card-actions{margin-top:0;padding:10px 16px 13px}
@media(max-width:680px){.tutors-grid{grid-template-columns:minmax(0,1fr)}.tutor-card{width:100%}}

/* Tutor-card detail emphasis: compact layout without invented prices or empty tall areas. */
.tutor-card-tagline{color:var(--gray-600);font-size:.8rem;line-height:1.45;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tutor-card .tutor-detail-label{color:var(--navy);font-size:.68rem}
.tutor-card .tutor-classes .class-tag{font-weight:700}
.tutor-card .tutor-status-badge.new{flex-shrink:0;background:#fff1cd;color:#744c00;border:1px solid #e5bd61}
.tutor-card .tutor-meta{justify-content:flex-start}


/* LessonInc uniform public tutor cards: identical height regardless of optional details.
   The full information remains accessible on View Profile. */
.tutors-grid{align-items:stretch}
.tutors-grid>.tutor-card{box-sizing:border-box;width:100%;height:424px;min-height:424px;max-height:424px;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.tutors-grid .tutor-card-header{box-sizing:border-box;flex:0 0 99px;height:99px;min-height:99px;max-height:99px;padding:12px 15px;overflow:hidden}
.tutors-grid .tutor-header-info{min-width:0;max-height:76px;overflow:hidden}
.tutors-grid .tutor-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-height:47px;line-height:1.35;font-size:.99rem}
.tutors-grid .tutor-city{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tutors-grid .tutor-card-body{box-sizing:border-box;flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px 15px 5px}
.tutors-grid .tutor-card-tagline{box-sizing:border-box;flex:0 0 36px;min-height:36px;max-height:36px;margin:0 0 5px;line-height:18px;overflow:hidden;overflow-wrap:anywhere;-webkit-line-clamp:2;line-clamp:2}
.tutors-grid .tutor-detail-label{flex:0 0 13px;height:13px;line-height:13px;margin:0 0 3px}
.tutors-grid .tutor-subjects{box-sizing:border-box;flex:0 0 50px;min-height:50px;max-height:50px;align-content:flex-start;gap:4px;margin:0 0 5px;overflow:hidden}
.tutors-grid .subject-tag{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:17px;padding:2px 8px}
.tutors-grid .tutor-rating{box-sizing:border-box;flex:0 0 23px;height:23px;min-height:23px;margin:1px 0 3px;padding:2px 0 0;overflow:hidden;white-space:nowrap}
.tutors-grid .tutor-meta{box-sizing:border-box;flex:0 0 38px;min-height:38px;max-height:38px;margin:0;gap:3px 8px;align-content:center;overflow:hidden}
.tutors-grid .tutor-mode,.tutors-grid .tutor-exp{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tutors-grid .tutor-card-actions{box-sizing:border-box;flex:0 0 58px;min-height:58px;max-height:58px;margin-top:auto;padding:9px 15px;align-items:stretch;min-width:0}
.tutors-grid .tutor-card-actions .btn{box-sizing:border-box;min-width:0;width:100%;height:39px;padding:6px 5px;font-size:.78rem;display:flex;justify-content:center;align-items:center;white-space:nowrap;overflow:hidden}
@media(max-width:680px){.tutors-grid>.tutor-card{height:424px;min-height:424px;max-height:424px}}


/* Tutor card visibility v10: full class coverage, balanced fixed frame and inset actions. */
.tutors-grid>.tutor-card{height:416px;min-height:416px;max-height:416px}
.tutors-grid .tutor-card-header{flex:0 0 94px;height:94px;min-height:94px;max-height:94px}
.tutors-grid .tutor-card-body{padding:9px 15px 3px;justify-content:flex-start}
.tutors-grid .tutor-card-tagline{flex:0 0 34px;min-height:34px;max-height:34px;margin-bottom:4px;line-height:17px}
.tutors-grid .tutor-subjects{flex:0 0 46px;min-height:46px;max-height:46px;margin-bottom:4px}
.tutors-grid .tutor-classes{flex:0 0 30px;min-height:30px;max-height:30px;align-items:flex-start;align-content:flex-start;margin:0 0 3px;gap:4px;overflow:visible}
.tutors-grid .tutor-classes .class-tag{font-size:.74rem;line-height:18px;padding:2px 6px;min-width:23px;text-align:center;max-width:none;flex:0 0 auto}
.tutors-grid .tutor-meta{flex:0 0 27px;height:27px;min-height:27px;max-height:27px;align-content:center;margin:0 0 2px;gap:3px 9px}
.tutors-grid .tutor-rating{flex:0 0 23px;min-height:23px;max-height:23px;margin:0;padding:1px 0 0}
.tutors-grid .tutor-card-actions{flex:0 0 69px;min-height:69px;max-height:69px;margin-top:auto;padding:11px 16px 18px;align-items:center}
.tutors-grid .tutor-card-actions .btn{height:39px}
@media(max-width:680px){.tutors-grid>.tutor-card{height:416px;min-height:416px;max-height:416px}}

/* Tutor cards v11 — equal frames; a compact right-side information rail. */
.tutors-grid>.tutor-card{height:488px!important;min-height:488px!important;max-height:488px!important}
.tutors-grid .tutor-card-body{padding:9px 14px 4px;overflow:hidden}
.tutors-grid .tutor-card-tagline{flex:0 0 32px;min-height:32px;max-height:32px}
.tutors-grid .tutor-subjects:not(.tutor-classes){flex:0 0 36px;min-height:36px;max-height:36px}
.tutors-grid .tutor-classes{flex:0 0 auto;min-height:29px;max-height:58px;overflow:hidden;align-content:flex-start}
.tutors-grid .tutor-meta{flex:0 0 25px;min-height:25px;max-height:25px}
.tutors-grid .tutor-rating{flex:0 0 22px;min-height:22px;max-height:22px}
.tutor-card-extras{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 7px;margin-top:5px;min-width:0;font-size:.67rem;color:#41536b}
.tutor-card-extras span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:17px}
.tutor-card-quick-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:5px 14px 0;min-height:32px;flex:0 0 32px}
.tutor-card-quick-actions button{border:1px solid #d5deeb;background:#f6f8fc;color:#173451;padding:4px 9px;border-radius:8px;font-size:.72rem;font-weight:700;cursor:pointer;min-height:27px}
.tutor-card-quick-actions button:hover,.tutor-card-quick-actions button:focus-visible{border-color:#b38d35;background:#fff8e5}
.tutor-card-quick-actions .is-saved{color:#a1264b;border-color:#edb8cd;background:#fff0f5}
.tutors-grid .tutor-card-actions{flex:0 0 64px;min-height:64px;max-height:64px;padding:8px 14px 15px}
.tutor-video-overlay{position:fixed;inset:0;z-index:99999;background:rgba(4,15,32,.86);display:flex;align-items:center;justify-content:center;padding:18px}
.tutor-video-dialog{position:relative;width:min(780px,100%);padding:45px 12px 12px;background:#101c2d;border-radius:16px}
.tutor-video-dialog video{width:100%;max-height:75vh;display:block;background:#000;border-radius:8px}
.tutor-video-close{position:absolute;right:12px;top:8px;color:#fff;background:#34455d;border:0;border-radius:8px;padding:8px 12px;cursor:pointer}
@media(max-width:380px){.tutor-card-extras{font-size:.61rem;gap:4px}.tutor-card-quick-actions{padding-inline:10px}}
/* Search list: right-side rail is no longer an empty column. */
.tutor-list-card .list-right{min-width:205px;align-items:stretch;justify-content:center;gap:8px}
.tutor-list-card .tutor-card-extras{grid-template-columns:1fr 1fr;min-width:210px}
.tutor-list-card .tutor-card-quick-actions{padding:0;justify-content:flex-start}
.tutor-list-card .list-actions{margin-top:0}
@media(max-width:900px){.tutor-list-card .list-right{min-width:0;width:100%}.tutor-list-card .tutor-card-extras{min-width:0;width:100%}}

@media(max-width:380px){.tutors-grid>.tutor-card{height:505px!important;min-height:505px!important;max-height:505px!important}.tutors-grid .tutor-classes{max-height:76px}}

/* Credentials and truthful separate online/offline tuition prices. */
.tutor-card-credentials{display:grid;grid-template-columns:1fr 1fr;gap:3px 7px;font-size:.68rem;color:#314665;min-width:0;line-height:17px;margin-top:3px}
.tutor-card-credentials span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tutors-grid>.tutor-card{height:531px!important;min-height:531px!important;max-height:531px!important}
.tutor-list-card .tutor-card-credentials{width:100%}
@media(max-width:380px){.tutors-grid>.tutor-card{height:548px!important;min-height:548px!important;max-height:548px!important}}

/* Approved introduction and sample clips share one modal, with accessible switching. */
.tutor-video-choice{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.tutor-video-choice button{background:#263950;color:#e9f1fb;border:1px solid #536781;border-radius:8px;padding:7px 10px;cursor:pointer;font-size:.8rem}
.tutor-video-choice button.selected{background:#d6b96b;color:#17273b;border-color:#d6b96b}

/* v12: compact, balanced tutor cards. Scoped to public tutor grids only. */
.tutors-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),360px));justify-content:start;align-items:stretch;gap:18px}
.tutors-grid>.tutor-card{height:427px!important;min-height:427px!important;max-height:427px!important;display:flex;flex-direction:column}
.tutors-grid .tutor-card-header{flex:0 0 84px;height:84px;min-height:84px;max-height:84px;padding:10px 14px}
.tutors-grid .tutor-avatar{width:54px;height:54px;flex:0 0 54px}
.tutors-grid .tutor-header-info{max-height:66px}
.tutors-grid .tutor-name{font-size:.9rem;line-height:1.24;max-height:43px}
.tutors-grid .tutor-card-body{flex:1 1 auto;min-height:0;padding:9px 14px 3px;gap:0;overflow:hidden}
.tutors-grid .tutor-card-tagline{flex:0 0 auto;min-height:0;max-height:33px;line-height:16px;margin:0 0 5px}
.tutors-grid .tutor-detail-label{margin:2px 0 3px;flex:0 0 13px}
.tutors-grid .tutor-subjects:not(.tutor-classes){flex:0 0 auto;min-height:23px;max-height:53px;margin:0 0 3px;overflow:hidden}
.tutors-grid .tutor-classes{flex:0 0 auto;min-height:25px;max-height:60px;margin:0 0 3px;overflow:hidden;align-content:flex-start}
.tutors-grid .tutor-meta{flex:0 0 auto;min-height:20px;height:auto;max-height:36px;margin:2px 0 3px;align-content:flex-start}
.tutors-grid .tutor-rating{flex:0 0 auto;height:auto;min-height:0;max-height:23px;margin:0 0 3px;padding:0}
.tutors-grid .tutor-card-credentials{margin:3px 0;gap:4px 8px;line-height:17px}
.tutors-grid .tutor-card-extras{margin:4px 0 0;gap:5px 8px;font-size:.7rem}
.tutors-grid .tutor-card-extras span{line-height:19px}
.tutors-grid .tutor-card-footer{flex:0 0 auto;border-top:1px solid var(--gray-100);padding:6px 14px 12px;display:flex;flex-direction:column;gap:5px}
.tutors-grid .tutor-card-footer .tutor-card-quick-actions{padding:0;min-height:27px;flex:0 0 auto;justify-content:flex-end}
.tutors-grid .tutor-card-footer .tutor-card-actions{padding:0;margin:0;border:0;flex:0 0 auto;min-height:39px;max-height:none;gap:9px}
.tutors-grid .tutor-card-footer .tutor-card-actions .btn{height:39px}
.tutors-grid .tutor-card-quick-actions button{min-height:27px}
@media(max-width:680px){.tutors-grid{grid-template-columns:minmax(0,1fr);justify-content:start}.tutors-grid>.tutor-card{height:427px!important;min-height:427px!important;max-height:427px!important}}
@media(max-width:380px){.tutors-grid>.tutor-card{height:453px!important;min-height:453px!important;max-height:453px!important}.tutors-grid .tutor-classes{max-height:75px}}

/* v13: retain the original two-tier action layout, eliminate artificial blank body.
   Grid stretch equalizes cards within each row; content is never clipped to a fixed pixel height. */
.tutors-grid{align-items:stretch;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),360px));justify-content:start}
.tutors-grid>.tutor-card{height:auto!important;min-height:0!important;max-height:none!important;display:flex;flex-direction:column;overflow:hidden}
.tutors-grid .tutor-card-header{flex:0 0 auto;height:auto;min-height:84px;max-height:none}
.tutors-grid .tutor-card-body{flex:1 0 auto;min-height:0;overflow:visible;padding:10px 14px 12px}
.tutors-grid .tutor-card-tagline{max-height:none;min-height:0;flex:0 0 auto;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.tutors-grid .tutor-subjects:not(.tutor-classes),.tutors-grid .tutor-classes{max-height:none;min-height:0;flex:0 0 auto;overflow:visible;align-content:flex-start}
.tutors-grid .tutor-meta{max-height:none;min-height:0;flex:0 0 auto;height:auto;overflow:visible;flex-wrap:wrap}
.tutors-grid .tutor-rating{max-height:none;min-height:0;flex:0 0 auto;height:auto}
.tutors-grid .tutor-card-credentials,.tutors-grid .tutor-card-extras{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;overflow:visible}
.tutors-grid .tutor-card-credentials span,.tutors-grid .tutor-card-extras span{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
.tutors-grid .tutor-card-footer{margin-top:auto;flex:0 0 auto;border-top:1px solid var(--gray-100);padding:10px 14px 13px;gap:9px}
.tutors-grid .tutor-card-footer .tutor-card-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;justify-content:stretch;min-height:0;padding:0}
.tutors-grid .tutor-card-footer .tutor-card-quick-actions button{width:100%;min-width:0;min-height:34px;font-size:.75rem;white-space:normal}
.tutors-grid .tutor-card-footer .tutor-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:0;padding:0;margin:0;border:0}
.tutors-grid .tutor-card-footer .tutor-card-actions .btn{width:100%;min-width:0;height:39px}
@media(max-width:380px){.tutors-grid>.tutor-card{height:auto!important;min-height:0!important;max-height:none!important}.tutors-grid .tutor-classes{max-height:none}}

/* v14: visible four-field tutor comparison; equal-height cards without clipping. */
.tutors-grid{align-items:stretch}
.tutors-grid>.tutor-card{height:100%!important;min-height:0!important;max-height:none!important}
.tutors-grid .tutor-card-body{flex:1 1 auto;gap:0;overflow:visible}
.tutor-card-credentials{display:flex!important;flex-wrap:wrap;gap:4px 12px;margin:6px 0 4px;font-size:.75rem;line-height:1.4}
.tutor-card-credentials span{white-space:normal!important;overflow:visible!important}
.tutor-card-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-top:9px;padding-top:10px;border-top:1px solid #e8edf5;min-width:0}
.tutor-card-metric{min-width:0;display:flex;flex-direction:column;gap:3px}
.tutor-card-metric-label{font-size:.71rem;color:#64748b;line-height:1.3;letter-spacing:0}
.tutor-card-metric-value{font-size:.78rem;line-height:1.35;font-weight:700;color:#172b49;overflow-wrap:anywhere}
.tutor-card-activity{font-size:.72rem;color:#466078;margin-top:7px}
.tutors-grid .tutor-card-footer{margin-top:auto}
.tutors-grid .tutor-card-footer .tutor-card-quick-actions{display:flex;flex-wrap:wrap;justify-content:stretch}
.tutors-grid .tutor-card-footer .tutor-card-quick-actions button{flex:1 1 0}
.tutor-list-card .tutor-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin:0 0 8px;padding-top:4px}
.tutor-list-card .tutor-card-metric-value{font-size:.78rem}
@media(max-width:380px){.tutor-card-metrics{gap:7px}.tutor-card-metric-value{font-size:.73rem}}

/* v15: no centered tutor grid; fill three desktop / two tablet / one mobile columns. */
.tutors-grid{grid-template-columns:repeat(3,minmax(0,1fr));justify-content:start;justify-items:stretch}
.tutors-grid>.tutor-card{min-width:0;width:100%}
@media(max-width:1050px){.tutors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.tutors-grid{grid-template-columns:minmax(0,1fr)}}


/* v16: One horizontal, touch-scrollable tutor-card rail on every screen.
   Scoped to homepage tutor rails; search results retain their comparison layout. */
#top-teachers-grid .tutors-grid,
#featured-tutors-grid .tutors-grid,
#new-available-grid .tutors-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  grid-template-rows: auto;
  grid-auto-columns: minmax(0, min(340px, calc((100% - 36px) / 3)));
  gap: 18px;
  justify-content: start;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#top-teachers-grid .tutors-grid::-webkit-scrollbar,
#featured-tutors-grid .tutors-grid::-webkit-scrollbar,
#new-available-grid .tutors-grid::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#top-teachers-grid .tutors-grid > .tutor-card,
#featured-tutors-grid .tutors-grid > .tutor-card,
#new-available-grid .tutors-grid > .tutor-card {
  width: 100%;
  min-width: 0;
  height: 100% !important;
  scroll-snap-align: start;
}
@media (max-width: 1050px) {
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid {
    grid-auto-columns: minmax(0, min(360px, calc((100% - 18px) / 2)));
  }
}
@media (max-width: 680px) {
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid {
    grid-auto-columns: minmax(0, min(340px, 88%));
    scroll-snap-type: x mandatory;
  }
}
@media (prefers-reduced-motion: reduce) {
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid { scroll-behavior: auto; }
}

/* v17: homepage tutor rails start at the left edge on every viewport.
   Cards scroll right-to-left as users swipe; never center incomplete rows. */
#top-teachers-grid .tutors-grid,
#featured-tutors-grid .tutors-grid,
#new-available-grid .tutors-grid {
  direction:ltr!important;justify-content:start!important;justify-items:start!important;
  margin-inline:0!important;scroll-snap-type:x proximity;touch-action:pan-x pan-y;
}
#top-teachers-grid .tutors-grid > .tutor-card,
#featured-tutors-grid .tutors-grid > .tutor-card,
#new-available-grid .tutors-grid > .tutor-card {margin-inline:0!important;scroll-snap-align:start}
.tutor-see-all{display:flex;justify-content:flex-start;margin-top:20px}
.tutor-see-all .btn{min-height:42px}
@media(max-width:680px){.tutor-see-all .btn{width:auto;max-width:100%}}
/* The dedicated see-all page is a grid, not a horizontal rail. */
.all-tutors-catalog .tutors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 justify-content:start;justify-items:stretch;overflow:visible;gap:18px}
@media(max-width:1050px){.all-tutors-catalog .tutors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.all-tutors-catalog .tutors-grid{grid-template-columns:minmax(0,1fr)}}

/* Brand geometry safeguard: preserve the official 1134×132 wordmark proportions.
   Scoped to the actual brand lockups; never stretch tutor photos or other images. */
.navbar-logo.brand-lockup .brand-mark,
.footer-brand .footer-brand-lockup .brand-mark {
  width: min(218px, 100%) !important;
  height: auto !important;
  aspect-ratio: 1134 / 132;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar-logo.brand-lockup .brand-tagline-header,
.footer-brand .footer-brand-lockup .brand-tagline-header {
  text-align: left !important;
  text-align-last: auto !important;
  letter-spacing: .08em !important;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .navbar-logo.brand-lockup .brand-mark,
  .footer-brand .footer-brand-lockup .brand-mark { width: min(175px, 100%) !important; }
}

/* Footer hit-area hardening: only the visible link/tab text is clickable. */
.footer-links{align-items:flex-start}
.footer-links a{display:inline-flex;width:max-content;max-width:100%;align-self:flex-start}
.footer-legal{align-items:center}
.footer-legal a{display:inline-flex;width:max-content;max-width:100%;flex:0 0 auto}

/* Sitewide logo geometry is controlled by brand-tagline-alignment.css. */

/* v18: four-card homepage focus rail. Additional tutors remain full width and move
   right-to-left through the horizontal rail instead of shrinking all cards. */
@media (min-width:1200px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{
    grid-auto-columns:calc((100% - 54px)/4)!important;
    scroll-behavior:smooth;
    scrollbar-width:none;
  }
  #top-teachers-grid .tutors-grid::-webkit-scrollbar,
  #featured-tutors-grid .tutors-grid::-webkit-scrollbar,
  #new-available-grid .tutors-grid::-webkit-scrollbar{display:none}
}
@media (min-width:901px) and (max-width:1199px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{grid-auto-columns:calc((100% - 36px)/3)!important}
}
/* Optional card metrics use only the space backed by real data. */
.tutor-card-metrics-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tutor-card-metrics-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.tutor-card-metrics-3 .tutor-card-metric:last-child{grid-column:1/-1}


/* Official LessonInc social links */
.footer-social{display:flex;flex-direction:column;gap:9px;margin-top:4px}.footer-social-label{font-size:.72rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.58)}.footer-social-links{display:flex;gap:9px}.social-link{width:38px;height:38px;border-radius:10px;border:1px solid rgba(230,196,112,.32);background:rgba(255,255,255,.045);display:grid;place-items:center;color:#edc967;transition:transform .16s ease,background .16s ease,border-color .16s ease}.social-link:hover{transform:translateY(-2px);background:rgba(237,201,103,.12);border-color:rgba(237,201,103,.65);color:#f7dc95}.social-link svg{width:19px;height:19px;fill:currentColor}.social-follow-card{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 28px;border:1px solid var(--gray-200);border-radius:var(--radius-lg);background:linear-gradient(135deg,#fff,#f8fafc);box-shadow:var(--shadow-sm)}.social-follow-card h2{color:var(--navy);margin:3px 0 7px;font-size:1.35rem}.social-follow-card p{margin:0;color:var(--gray-600);font-size:.9rem}.social-follow-eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#9a741e}.social-follow-actions{display:flex;gap:10px;flex-wrap:wrap}.social-follow-btn{display:inline-flex;align-items:center;gap:9px;min-height:43px;padding:0 15px;border:1px solid #d7dfeb;border-radius:10px;background:#fff;color:var(--navy);font-size:.86rem;font-weight:700;text-decoration:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.social-follow-btn:hover{transform:translateY(-1px);border-color:#d6b35a;box-shadow:0 6px 16px rgba(11,29,58,.08)}.social-follow-btn svg{width:18px;height:18px;fill:#c39a3d}@media(max-width:640px){.social-follow-card{align-items:flex-start;flex-direction:column;padding:22px}.social-follow-actions{width:100%}.social-follow-btn{flex:1;justify-content:center}}

/* Tutor acquisition strip — public homepage only. */
.tutor-opportunity{background:linear-gradient(180deg,#f7f9fc 0%,#fff 100%)}
.tutor-opportunity-panel{border:1px solid #e1e8f2;border-radius:24px;padding:clamp(24px,4vw,46px);background:linear-gradient(145deg,#ffffff 0%,#fbfdff 100%);box-shadow:0 16px 42px rgba(20,47,83,.07)}
.tutor-opportunity-head{max-width:780px;margin:0 auto 28px;text-align:center}.tutor-opportunity-head .section-title{margin-bottom:12px}.tutor-opportunity-head .section-subtitle{max-width:760px;margin:0 auto;color:#617089;line-height:1.75}
.tutor-career-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tutor-career-card{display:flex;gap:14px;align-items:flex-start;min-width:0;padding:20px 18px;border:1px solid #e3e9f1;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(16,34,63,.04)}.tutor-career-icon{flex:0 0 38px;height:38px;border-radius:11px;background:#eef3fb;color:#173f72;display:grid;place-items:center;font-size:.72rem;font-weight:800}.tutor-career-card h3{margin:1px 0 7px;color:#173454;font-size:.92rem;line-height:1.25}.tutor-career-card p{margin:0;color:#68778e;font-size:.76rem;line-height:1.6}
.tutor-opportunity-footer{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-top:24px;padding-top:22px;border-top:1px solid #e7edf4}.tutor-opportunity-note{display:flex;flex-direction:column;gap:4px;max-width:610px}.tutor-opportunity-note strong{font-size:.86rem;color:#193955}.tutor-opportunity-note span{font-size:.74rem;color:#718096;line-height:1.5}.tutor-opportunity-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
@media(max-width:1024px){.tutor-career-path{grid-template-columns:1fr 1fr}.tutor-opportunity-footer{align-items:flex-start;flex-direction:column}.tutor-opportunity-actions{justify-content:flex-start}}
@media(max-width:620px){.tutor-opportunity-panel{padding:22px 16px}.tutor-opportunity-head{text-align:left;margin-bottom:20px}.tutor-opportunity-head .section-subtitle{margin:0}.tutor-career-path{grid-template-columns:1fr}.tutor-career-card{padding:16px}.tutor-opportunity-actions{width:100%;flex-direction:column}.tutor-opportunity-actions .btn{width:100%;justify-content:center}}


/* Homepage tutor-load recovery state */
.homepage-load-error{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:12px 0}.homepage-load-error .loader-text{margin:0}.homepage-tutor-retry{min-height:40px}
