:root {
  --navy: #082a3e;
  --navy-deep: #051e2d;
  --blue: #1378a3;
  --teal: #1d9b87;
  --green: #8dc63f;
  --mint: #e8f5ed;
  --warm: #f6f5ef;
  --ink: #14313d;
  --muted: #60747c;
  --white: #fff;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: #fff; overflow-x: hidden; }
a { text-decoration: none; }

.navbar { padding: 1.1rem 0; transition: background .25s ease, padding .25s ease, box-shadow .25s ease; }
.navbar.scrolled { background: rgba(5, 30, 45, .96); padding: .7rem 0; box-shadow: 0 10px 30px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.navbar-brand { color: #fff; font-size: 1.05rem; letter-spacing: -.02em; }
.site-logo { display: block; object-fit: contain; flex: 0 0 auto; }
.site-logo--nav { width: 48px; height: 48px; }
.site-logo--footer { width: 64px; height: 64px; }
.brand-text { display: inline-flex; align-items: baseline; gap: .25rem; white-space: nowrap; }
.site-logo--confirmation { width: 110px; height: 110px; margin: 0 auto 1.5rem; }
.nav-link { color: rgba(255,255,255,.78); font-weight: 600; font-size: .9rem; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .35rem; color: rgba(255,255,255,.88); font-size: .8rem; font-weight: 700; white-space: nowrap; transition: color .2s ease; }
.nav-phone i { color: var(--green); font-size: .9rem; }
.nav-phone:hover { color: #fff; }
.btn { border-radius: 8px; font-weight: 700; padding: .72rem 1.2rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--green); color: var(--navy-deep); border-color: var(--green); box-shadow: 0 8px 20px rgba(141,198,63,.18); }
.btn-accent:hover { background: #9bd24f; border-color: #9bd24f; color: var(--navy-deep); }
.btn-dark-blue { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark-blue:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.hero { position: relative; min-height: 720px; color: #fff; background: linear-gradient(90deg, rgba(4,30,45,.96) 0%, rgba(6,42,62,.82) 48%, rgba(4,30,45,.28) 100%), url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=2000&q=85") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(5,30,45,.4)); pointer-events: none; }
.hero .container { z-index: 1; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .65rem; color: #b8e4d6; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--green); }
.hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.045em; line-height: .98; margin: 1.2rem 0 1.5rem; }
.hero h1 em { color: #a9db69; font-style: italic; }
.hero-lead { max-width: 690px; color: rgba(255,255,255,.83); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.75; margin-bottom: 2rem; }
.hero-trust { margin-top: 2rem; color: rgba(255,255,255,.78); font-size: .86rem; font-weight: 600; }
.hero-trust i { color: var(--green); margin-right: .35rem; }
.scroll-cue { position: absolute; bottom: 2rem; right: .75rem; color: rgba(255,255,255,.68); display: flex; align-items: center; gap: .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; z-index: 2; }
.scroll-cue i { animation: nudge 1.8s ease-in-out infinite; }

.section-pad { padding: 7rem 0; }
.section-kicker { color: var(--teal); margin-bottom: 1rem; }
.section-title, .assessment-cta h2, .subject-panel h2 { font-family: var(--serif); letter-spacing: -.035em; line-height: 1.06; }
.section-title { font-size: clamp(2.6rem, 5vw, 4.7rem); margin: 0; color: var(--navy); }
.section-intro { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 470px; margin: 0 0 .55rem auto; }
.feature-card { height: 100%; position: relative; padding: 2.2rem; border: 1px solid #dfe8e7; border-radius: 14px; background: #fff; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(10,54,72,.11); border-color: transparent; }
.feature-number { position: absolute; top: 1.6rem; right: 1.8rem; color: #b4c1c3; font-size: .74rem; font-weight: 800; letter-spacing: .1em; }
.feature-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; background: var(--mint); color: var(--teal); border-radius: 12px; font-size: 1.45rem; margin-bottom: 2.5rem; }
.feature-card h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: .8rem; font-weight: 800; }
.feature-card p { color: var(--muted); font-size: .94rem; line-height: 1.7; margin: 0; }

.subject-panel { overflow: hidden; border-radius: 20px; background: var(--navy); box-shadow: 0 30px 80px rgba(5,30,45,.18); }
.subject-image { min-height: 560px; background: linear-gradient(rgba(19,120,163,.14), rgba(5,30,45,.18)), url("../images/tutor1.jpeg") center/cover; }
.p-xl-6 { padding: 4.5rem !important; }
.subject-panel h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.subject-list a { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 1rem; align-items: center; padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,.15); color: #fff; transition: padding .2s ease, color .2s ease; }
.subject-list a:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.subject-list a:hover { padding-left: .55rem; color: #b8e971; }
.subject-list span { font-weight: 800; }
.subject-list small { color: rgba(255,255,255,.6); }

.assessment-cta { position: relative; overflow: hidden; background: var(--mint); }
.assessment-cta::before, .assessment-cta::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(29,155,135,.18); }
.assessment-cta::before { width: 360px; height: 360px; left: -160px; top: -120px; }
.assessment-cta::after { width: 260px; height: 260px; right: -90px; bottom: -100px; }
.assessment-cta h2 { color: var(--navy); margin-bottom: 1.25rem; }
.assessment-cta p { color: var(--muted); max-width: 650px; margin: 0 auto 2rem; line-height: 1.75; }

.floating-cta { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1000; display: flex; align-items: center; gap: .8rem; width: min(355px, calc(100vw - 2rem)); padding: .85rem 1rem; border-radius: 14px; background: #fff; color: var(--navy); box-shadow: 0 16px 50px rgba(5,30,45,.23); animation: float 3.5s ease-in-out infinite; border-left: 4px solid var(--green); }
.floating-cta > span:nth-child(2) { flex: 1; }
.floating-cta strong, .floating-cta small { display: block; }
.floating-cta strong { font-size: .83rem; }
.floating-cta small { color: var(--muted); font-size: .74rem; margin-top: .1rem; }
.floating-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: var(--mint); color: var(--teal); }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.62); }
.footer-brand { color: #fff; }
.site-footer p { max-width: 360px; }
.site-footer h3 { color: #fff; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; margin-bottom: 1rem; }
.site-footer .col-6 a, .site-footer .col-6 span { display: block; color: rgba(255,255,255,.62); font-size: .87rem; margin-bottom: .65rem; }
.site-footer .footer-contact { display: flex !important; align-items: flex-start; gap: .55rem; min-width: 0; color: rgba(255,255,255,.68); line-height: 1.45; overflow-wrap: anywhere; }
.site-footer a.footer-contact:hover { color: #fff; }
.footer-contact i { flex: 0 0 auto; color: var(--green); font-size: .85rem; margin-top: .15rem; }
.site-footer a:hover { color: #fff; }
.social-link { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: .35rem; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .75rem; }

/* Inner pages */
.page-hero { position: relative; padding: 11rem 0 5.5rem; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgba(141,198,63,.18); right: -110px; top: -190px; }
.page-hero::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: rgba(19,120,163,.14); right: 17%; bottom: -125px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -.045em; margin: .7rem 0 1.25rem; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 680px; font-size: 1.1rem; line-height: 1.75; margin: 0; }
.breadcrumbs { color: #a8d6cc; text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 800; }
.breadcrumbs a { color: #fff; }

.tutor-card { height: 100%; background: #fff; border: 1px solid #dfe8e7; border-radius: 16px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.tutor-card:hover { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(5,30,45,.12); }
.tutor-photo { aspect-ratio: 4/4.1; width: 100%; object-fit: cover; object-position: center; filter: saturate(.85); }
.tutor-body { padding: 1.6rem; }
.tutor-body h2 { color: var(--navy); font-size: 1.35rem; font-weight: 800; margin-bottom: .25rem; }
.tutor-role { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 800; }
.tutor-body p { color: var(--muted); line-height: 1.7; font-size: .9rem; margin: 1rem 0; }
.tag { display: inline-block; color: var(--navy); background: var(--mint); padding: .35rem .6rem; border-radius: 100px; font-size: .68rem; font-weight: 700; margin: .15rem .1rem; }

.subject-detail { height: 100%; padding: 2.2rem; border-radius: 16px; border: 1px solid #dce7e5; background: #fff; position: relative; overflow: hidden; }
.subject-detail.available { border-top: 4px solid var(--teal); }
.subject-detail.upcoming { background: #f7f8f5; border-style: dashed; }
.subject-detail.nonavailable { background: #ffe1c0; border-style: dashed; }
.subject-detail .subject-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--blue); font-size: 1.5rem; margin-bottom: 2rem; }
.subject-detail h2 { color: var(--navy); font-family: var(--serif); font-size: 2.1rem; }
.subject-detail p, .subject-detail li { color: var(--muted); line-height: 1.7; font-size: .92rem; }
.subject-detail ul { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.subject-detail li { border-top: 1px solid #e6eceb; padding: .62rem 0; }
.subject-detail li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: .55rem; }
.status-badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: .4rem .7rem; border-radius: 100px; background: #dff3e9; color: #166e5d; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.status-badge.soon { background: #e7e9e7; color: #687472; }

.story-image { min-height: 540px; border-radius: 18px; background: linear-gradient(rgba(5,30,45,.08), rgba(5,30,45,.2)), url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200&q=82") center/cover; }
.story-copy h2 { font-family: var(--serif); color: var(--navy); font-size: clamp(2.7rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.04em; }
.story-copy p { color: var(--muted); line-height: 1.85; }
.value-row { padding: 1.4rem 0; border-top: 1px solid #dae6e3; }
.value-row h3 { color: var(--navy); font-size: 1rem; font-weight: 800; margin-bottom: .35rem; }
.value-row p { margin: 0; font-size: .9rem; }

.contact-wrap { background: var(--warm); }
.contact-card { background: #fff; border-radius: 18px; box-shadow: 0 22px 60px rgba(5,30,45,.11); overflow: hidden; }
.contact-info { height: 100%; background: var(--navy); color: #fff; padding: 3rem; }
.contact-info h2, .form-panel h2 { font-family: var(--serif); font-size: 2.5rem; letter-spacing: -.03em; }
.contact-info p { color: rgba(255,255,255,.67); line-height: 1.75; }
.contact-point { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-point i { color: var(--green); font-size: 1.2rem; }
.contact-point strong, .contact-point small { display: block; }
.contact-point small { color: rgba(255,255,255,.58); margin-top: .2rem; }
.form-panel { padding: 3rem; }
.form-panel > p { color: var(--muted); }
.form-label { color: var(--navy); font-size: .77rem; font-weight: 800; }
.form-control, .form-select { border: 1px solid #ccd9d7; border-radius: 8px; padding: .85rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(29,155,135,.12); }
.form-note { color: var(--muted); font-size: .75rem; }
.success-message { display: none; border-radius: 10px; background: var(--mint); color: #12604f; padding: 1rem; margin-top: 1rem; }
.success-message.show { display: block; }

.assessment-modal .modal-dialog { max-width: 650px; }
.assessment-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 90px rgba(5,30,45,.3); }
.assessment-modal .modal-body { max-height: min(88vh, 820px); overflow-y: auto; padding: 2.5rem !important; }
.modal-form-heading { padding-right: 2.5rem; margin-bottom: 1.75rem; }
.modal-form-heading h2 { color: var(--navy); font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; line-height: 1; }
.modal-form-heading p { color: var(--muted); line-height: 1.65; margin: .8rem 0 0; }
.modal-form-heading.notshow {display: none;}
.modal-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--warm); color: var(--navy); transition: transform .2s ease, background .2s ease; }
.modal-close:hover { background: var(--mint); transform: rotate(5deg); }
.location-picker { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; border-radius: 10px; background: #edf2f1; }
.location-picker label { display: grid; place-items: center; min-height: 48px; margin: 0; padding: .55rem .7rem; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 800; text-align: center; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.location-picker input:checked + label { color: var(--navy); background: #fff; border-color: #d6e1df; box-shadow: 0 3px 10px rgba(5,30,45,.08); }
.location-picker input:focus-visible + label { outline: 3px solid rgba(29,155,135,.25); outline-offset: 2px; }
.booking-success { display: none; min-height: 440px; padding: 4rem 1rem; text-align: center; align-items: center; justify-content: center; flex-direction: column; }
.booking-success.show { display: flex; }
.booking-success .success-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: #fff; background: var(--teal); font-size: 2rem; margin-bottom: 1.5rem; animation: reveal .5s ease both; }
.booking-success h3 { color: var(--navy); font-family: var(--serif); font-size: 2.8rem; }
.booking-success p { color: var(--muted); max-width: 440px; line-height: 1.7; margin-bottom: 1.5rem; }
.contact-thank-you-modal .booking-success { min-height: 0; padding: 3rem 1.5rem; }
.contact-thank-you-modal h2 { color: var(--navy); font-family: var(--serif); font-size: 2.8rem; }
.submission-error { color: #a12828; background: #fff0f0; border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0 0; font-size: .82rem; }

/* Reusable section examples */
.example-library { background: var(--warm); }
.example-section { padding: 6rem 0; border-bottom: 1px solid #dfe7e4; }
.example-label { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.example-label::before { content: ""; width: 24px; height: 2px; background: var(--green); }
.example-heading { color: var(--navy); font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.04em; line-height: 1.05; }
.example-copy { color: var(--muted); line-height: 1.75; }
.template-note { color: #718084; font-size: .78rem; }

.learning-carousel { overflow: hidden; border-radius: 20px; box-shadow: 0 25px 65px rgba(5,30,45,.17); }
.learning-carousel .carousel-item { min-height: 560px; }
.learning-carousel .carousel-item img { width: 100%; height: 560px; object-fit: cover; }
.learning-carousel .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,30,45,.9), rgba(5,30,45,.2)); }
.learning-carousel .carousel-caption { z-index: 1; left: 8%; right: auto; bottom: 4rem; max-width: 560px; text-align: left; }
.learning-carousel .carousel-caption h2 { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.04em; }
.learning-carousel .carousel-caption p { color: rgba(255,255,255,.78); line-height: 1.7; }
.learning-carousel .carousel-control-prev, .learning-carousel .carousel-control-next { width: 7%; }

.testimonial-block { position: relative; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 20px; background: var(--navy); color: #fff; overflow: hidden; }
.testimonial-block::after { content: "“"; position: absolute; right: 2rem; top: -3.5rem; color: rgba(141,198,63,.14); font-family: var(--serif); font-size: 18rem; line-height: 1; }
.testimonial-quote { position: relative; z-index: 1; max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.5rem); letter-spacing: -.025em; line-height: 1.22; }
.testimonial-person { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.testimonial-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong, .testimonial-person small { display: block; }
.testimonial-person small { color: rgba(255,255,255,.58); margin-top: .18rem; }
.testimonial-stars { color: #b8e971; letter-spacing: .15em; }

.compact-testimonial-carousel { height: 500px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(5,30,45,.12); }
.compact-testimonial-carousel .carousel-inner, .compact-testimonial-carousel .carousel-item { height: 100%; }
.compact-testimonial-slide { height: 500px; }
.compact-testimonial-avatar-column { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--mint); }
.compact-testimonial-avatar { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 4px solid var(--green); box-shadow: 0 12px 30px rgba(5,30,45,.14); }
.compact-testimonial-content { display: flex; justify-content: center; flex-direction: column; height: 100%; padding: clamp(2rem, 6vw, 5rem); padding-right: clamp(4rem, 8vw, 7rem); }
.compact-testimonial-stars { color: #72a62e; letter-spacing: .14em; font-size: .9rem; }
.compact-testimonial-content blockquote { color: var(--navy); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.7rem); letter-spacing: -.025em; line-height: 1.25; margin: 1.25rem 0; }
.compact-testimonial-content strong { color: var(--navy); }
.compact-testimonial-content small { display: block; color: var(--muted); margin-top: .2rem; }
.compact-testimonial-carousel .carousel-indicators { justify-content: flex-start; left: calc(33.333% + clamp(2rem, 6vw, 5rem)); right: auto; margin: 0 0 1.5rem; }
.compact-testimonial-carousel .carousel-indicators button { width: 8px; height: 8px; border: 0; border-radius: 50%; background-color: var(--navy); }
.compact-testimonial-carousel .carousel-control-next { width: 64px; color: var(--navy); opacity: 1; }
.compact-testimonial-carousel .carousel-control-next-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background-color: var(--navy); background-size: 45%; }

.image-story { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(5,30,45,.1); }
.image-story img { width: 100%; min-height: 520px; height: 100%; object-fit: cover; }
.image-story-content { padding: clamp(2rem, 5vw, 4.5rem); }
.image-story-content h2 { color: var(--navy); font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
.image-story-content p { color: var(--muted); line-height: 1.8; }

.results-strip { padding: clamp(2rem, 5vw, 4rem); border-radius: 20px; background: var(--mint); }
.result-item { height: 100%; padding: 1.5rem; border-left: 1px solid rgba(29,155,135,.2); }
.result-item:first-child { border-left: 0; }
.result-value { color: var(--navy); font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1; }
.result-item p { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: .6rem 0 0; }

.process-step { position: relative; height: 100%; padding: 2rem; border: 1px solid #dce6e4; border-radius: 16px; background: #fff; }
.process-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 2rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 800; }
.process-step h3 { color: var(--navy); font-size: 1.1rem; font-weight: 800; }
.process-step p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: .7rem 0 0; }

.compact-tutor-card { height: 100%; padding: 2rem; border: 1px solid #dce7e5; border-radius: 16px; background: #fff; box-shadow: 0 12px 35px rgba(5,30,45,.06); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.compact-tutor-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 50px rgba(5,30,45,.12); }
.compact-tutor-header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.4rem; margin-bottom: 1.3rem; border-bottom: 1px solid #e2eae8; }
.compact-tutor-avatar { width: 82px; height: 82px; flex: 0 0 82px; object-fit: cover; border: 3px solid var(--green); border-radius: 50%; }
.compact-tutor-card h3 { color: var(--navy); font-family: var(--serif); font-size: 1.55rem; line-height: 1.05; margin: 0; }
.compact-tutor-role { display: block; color: var(--teal); font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-top: .45rem; }
.compact-tutor-card p { color: var(--muted); font-size: .9rem; line-height: 1.75; margin: 0; }
.compact-tutor-subjects { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.3rem; }
.compact-tutor-subjects span { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 100px; color: var(--navy); background: var(--mint); font-size: .66rem; font-weight: 700; }
.compact-tutor-subjects i { color: var(--teal); font-size: .72rem; line-height: 1; }
.home-tutors { background: var(--warm); }
.home-tutors .compact-tutor-avatar { width: 96px; height: 96px; flex-basis: 96px; border: 0; box-shadow: 0 10px 24px rgba(5,30,45,.14); }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s ease forwards; }
.reveal-delay-1 { animation-delay: .15s; }.reveal-delay-2 { animation-delay: .3s; }.reveal-delay-3 { animation-delay: .45s; }
.reveal-on-scroll { opacity: 0; transform: translateY(22px); }
.reveal-on-scroll.visible { animation: reveal .6s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--navy-deep); margin-top: .8rem; padding: 1rem; border-radius: 12px; }
  .navbar-nav .btn { display: inline-block; margin-top: .5rem; }
  .nav-phone { padding: .55rem 0; }
  .hero { min-height: 690px; background-position: 62% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(5,30,45,.18); }
  .section-pad { padding: 5rem 0; }
  .section-intro { margin: 1.5rem 0 0; }
  .subject-image { min-height: 390px; }
  .p-xl-6 { padding: 3rem !important; }
  .story-image { min-height: 400px; }
}
@media (max-width: 575.98px) {
  .hero { min-height: 760px; }
  .hero h1 { font-size: 3.25rem; }
  .hero .btn { width: 100%; }
  .hero-trust { gap: .75rem !important; flex-direction: column; }
  .scroll-cue { display: none; }
  .section-pad { padding: 4rem 0; }
  .subject-list a { grid-template-columns: 1fr auto; }
  .subject-list small { grid-column: 1; grid-row: 2; }
  .subject-list i { grid-column: 2; grid-row: 1 / 3; }
  .p-xl-6 { padding: 2rem !important; }
  .floating-cta { right: 1rem; bottom: 1rem; }
  .page-hero { padding: 9rem 0 4rem; }
  .contact-info, .form-panel { padding: 2rem; }
  .assessment-modal .modal-dialog { margin: .75rem; }
  .assessment-modal .modal-body { padding: 1.6rem !important; }
  .location-picker { grid-template-columns: 1fr; }
  .example-section { padding: 4rem 0; }
  .learning-carousel .carousel-item, .learning-carousel .carousel-item img { min-height: 500px; height: 500px; }
  .learning-carousel .carousel-caption { left: 1.5rem; right: 1.5rem; bottom: 2.5rem; }
  .result-item, .result-item:first-child { border-left: 0; border-top: 1px solid rgba(29,155,135,.2); }
  .result-item:first-child { border-top: 0; }
  .compact-testimonial-carousel, .compact-testimonial-slide { height: 500px; }
  .compact-testimonial-avatar-column { height: 155px; }
  .compact-testimonial-avatar { width: 100px; height: 100px; }
  .compact-testimonial-content { height: 345px; padding: 1.5rem 3.5rem 2.8rem 1.5rem; }
  .compact-testimonial-content blockquote { font-size: 1.45rem; margin: .8rem 0; }
  .compact-testimonial-carousel .carousel-indicators { left: 1.5rem; margin-bottom: .8rem; }
  .compact-testimonial-carousel .carousel-control-next { width: 52px; }
  .site-footer .col-6 { flex: 0 0 100%; width: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
