:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --surface: rgba(255,255,255,0.96);
  --surface-strong: rgba(255,255,255,0.94);
  --text: #232323;
  --text-muted: rgba(35,35,35,0.78);
  --accent: #cc0000;
  --accent-soft: #ff8a94;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  overflow-x: hidden;
}

/* Shared writing animation layer for looping typewriter copy */
@keyframes writingLoop {
  0%, 12% {
    clip-path: inset(0 100% 0 0);
  }
  50%, 78% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

.writing-loop {
  font: inherit;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-variant: inherit;
  letter-spacing: inherit;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  vertical-align: bottom;
  animation: writingLoop var(--typewriter-duration, 4.8s) ease-in-out infinite;
}

.writing-loop.hero-kicker-stream {
  --typewriter-duration: 5.2s;
}

.writing-loop.hero-title-stream {
  --typewriter-duration: 3.2s;
}

.writing-loop.section-title-stream {
  --typewriter-duration: 4s;
}

.writing-loop.section-copy-stream {
  --typewriter-duration: 4.5s;
}

.writing-loop.ways-title-stream {
  --typewriter-duration: 4s;
}

.writing-loop.ways-copy-stream {
  --typewriter-duration: 4.2s;
}

.writing-loop.tutor-title-stream {
  --typewriter-duration: 3.8s;
}

.writing-loop.tutor-copy-stream {
  --typewriter-duration: 4.7s;
}

.writing-loop.about-title-stream {
  --typewriter-duration: 4.1s;
}

.writing-loop.about-copy-stream {
  --typewriter-duration: 5s;
}

.writing-loop.cta-title-stream {
  --typewriter-duration: 3.2s;
}

.writing-loop.cta-copy-stream {
  --typewriter-duration: 4s;
}

/* Shared site typography layer */
.typing-display {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  letter-spacing: -0.05em;
}

.typing-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.typing-heading {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.typing-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.02rem;
  line-height: 1.88;
  color: var(--text-muted, #4b4b4b);
}

.typing-body {
  font-family: "Montserrat", sans-serif;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-muted, #4b4b4b);
}

.typing-micro {
  font-family: "Montserrat", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(204, 0, 0, 0.06), transparent 24%),
              radial-gradient(circle at bottom right, rgba(204, 0, 0, 0.03), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 25% 10%, rgba(204, 0, 0, 0.06), transparent 16%),
                    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.12), transparent 12%),
                    radial-gradient(circle at 60% 80%, rgba(204, 0, 0, 0.05), transparent 18%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Normal-content safety overrides: keep ordinary copy off white utility logic */
.text-gray-500,
.text-gray-600,
.text-gray-700,
.text-gray-800,
.text-gray-900,
.text-slate-900,
.text-slate-700,
.text-slate-600,
.text-slate-500,
.text-slate-800,
.text-slate-1000,
.text-zinc-900,
.text-zinc-800,
.text-zinc-700,
.text-zinc-600,
.text-zinc-500,
.text-zinc-400,
.text-neutral-900,
.text-neutral-800,
.text-neutral-700,
.text-neutral-600,
.text-neutral-500 {
  color: var(--text, #232323) !important;
}

.text-gray-400,
.text-gray-300,
.text-gray-200,
.text-slate-400,
.text-slate-300,
.text-slate-200,
.text-zinc-300,
.text-zinc-200,
.text-neutral-400,
.text-neutral-300 {
  color: var(--text-muted, #4b4b4b) !important;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

main h1,
main h2,
main h3,
main h4,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.section-heading h2 {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  color: var(--text, #232323);
}

main h1,
.page-hero h1 {
  letter-spacing: -0.05em;
  line-height: 0.98;
}

main h2,
.section-heading h2 {
  letter-spacing: -0.038em;
  line-height: 1.08;
}

main h3 {
  letter-spacing: -0.03em;
  line-height: 1.14;
}

main p,
main li,
main label,
main span,
main button,
main a {
  font-family: "Montserrat", sans-serif;
}

main p {
  color: var(--text-muted, #4b4b4b);
}

.montserrat-400 { font-family: "Montserrat", sans-serif; font-optical-sizing: auto; font-weight: 400; font-style: normal; }
.montserrat-600 { font-family: "Montserrat", sans-serif; font-optical-sizing: auto; font-weight: 600; font-style: normal; }
.montserrat-700 { font-family: "Montserrat", sans-serif; font-optical-sizing: auto; font-weight: 700; font-style: normal; }
.science-gothic-700 { font-family: "Science Gothic", sans-serif; font-optical-sizing: auto; font-weight: 700; font-style: normal; }
.science-gothic-900 { font-family: "Science Gothic", sans-serif; font-optical-sizing: auto; font-weight: 900; font-style: normal; }

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(204, 0, 0, 0.25);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Science Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

/* Shared typing/typography style layer */
.typing-title {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text, #232323);
}

.typing-heading {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text, #232323);
}

.typing-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  line-height: 1.88;
  color: var(--text-muted, #4b4b4b);
}

.typing-body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.78;
  color: var(--text-muted, #4b4b4b);
}

.typing-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.typing-micro {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--ink, #3a2020);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent, #cc0000);
  transform: translateY(-1px);
}

/* Page layout + sidebar */
.page-layout {
  /* grid container handled in inline classes; keep a default */
}

.page-sidebar {
  width: 240px;
  position: sticky;
  top: 88px;
  align-self: start;
}

@media (max-width: 1024px) {
  .page-sidebar { display: none; }
}


.rt-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 72px 26px 84px;
}

.rt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 77, 90, 0.32), transparent 24%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

.inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 46px;
  align-items: center;
}

.hero-left {
  display: flex;
# Minor overrides left intentionally light — Tailwind utilities used for layout and visuals.
.hero-title { font-family: 'Poppins', 'Montserrat', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.hero-subtext { font-family: 'Montserrat', sans-serif; opacity: 0.95; }

/* Subtle float animation for hero visual */
@keyframes float-slow { 0% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(-4deg); } 100% { transform: translateY(0) rotate(-6deg); } }
.hero-visual img { animation: float-slow 6s ease-in-out infinite; transition: transform 0.3s ease; }

/* Sidebar polish */
.dashboard-sidebar { border-radius: 16px; padding: 18px; }
.dashboard-sidebar .dash-tab { padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background 220ms, transform 220ms; }
.dashboard-sidebar .dash-tab:hover { background: rgba(255,255,255,0.6); transform: translateX(4px); }
.dashboard-sidebar .dash-tab.active { background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92)); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

/* CTA micro-interactions */
.dashboard-content a:hover { transform: translateY(-3px); }

/* Small screens: reduce hero padding */
@media (max-width: 640px) {
  .dashboard-hero .hero-content { padding: 20px; }
  .hero-visual { display: none; }
}

/* Student panel improvements */
.panel-card { border-radius: 16px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98)); box-shadow: 0 14px 40px rgba(15,15,15,0.06); }
.student-activity { display: flex; gap: 12px; align-items: center; }
.student-activity .avatar { width:48px; height:48px; border-radius:12px; background:linear-gradient(135deg,#fff,#f3f3f3); display:flex;align-items:center;justify-content:center;font-weight:700;color:#cc0000 }
.student-activity .meta { flex:1 }
.stat-animate { font-weight:800; font-size:1.6rem; transition: transform 220ms ease; }

/* Tutor panel visual upgrades */
.tutor-card { border-radius: 14px; padding: 16px; background: linear-gradient(180deg, #ffffff, #fbfbfb); box-shadow: 0 14px 40px rgba(17,24,39,0.06); border: 1px solid rgba(15,23,42,0.04); }
.tutor-status-pill { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background: linear-gradient(90deg, rgba(204,0,0,0.12), rgba(255,255,255,0.02)); color:var(--primary-red, #cc0000); font-weight:700; font-size:0.78rem; }
.tutor-summary-grid .tutor-card:hover { transform: translateY(-6px); transition: transform 240ms ease; }

/* My students list */
.student-list-item { display:flex; gap:12px; align-items:center; padding:12px; border-radius:12px; background:linear-gradient(180deg,#fff,#fcfcfc); border:1px solid rgba(0,0,0,0.03); }
.student-list-item .student-name { font-weight:700; }

/* small helper for hidden small badges on desktop */
.hidden { display:none !important; }
  flex-direction: column;
  gap: 22px;
  animation: floatIn 0.9s ease both;
}

.hero-left p,
.hero-left li,
.hero-left span,
.hero-left .hero-sub {
  color: var(--text-muted, #4b4b4b);
}

/* Tutor page tweaks: make session/request rows look like cards */
#sessions-list > div,
#students-requests-list > div {
  border-radius: 12px;
  border: 1px solid #f1f1f1;
  padding: 12px;
  margin-bottom: 10px;
  background: transparent;
}

.row-btn-outline {
  background: transparent;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
}
.row-btn-outline:hover { background: #fafafa; }

.log-session-btn, .set-meeting-btn { font-weight:600 }


.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  opacity: 0.98;
}

.hero-title {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  font-size: clamp(3.2rem, 4.6vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0;
  max-width: none;
  color: var(--text, #232323);
  animation: floatBounce 6s ease-in-out infinite;
}

.hero-sub {
  max-width: 640px;
  color: var(--text-muted, #4b4b4b);
  line-height: 1.85;
  font-size: 1.05rem;
  font-family: "Montserrat", sans-serif;
  animation: fadeUp 1s ease both;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.hero-fact-row {
  margin-top: 20px;
  display: flex;
  gap: 18px;
}

.hero-fact-row .mini-fact {
  border-radius: 22px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.explore-btn,
.find-course-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.explore-btn {
  background: #fff;
  color: #1b0717;
  box-shadow: 0 24px 60px rgba(255, 255, 255, 0.12);
}

.explore-btn:hover,
.find-course-btn:hover {
  transform: translateY(-4px) scale(1.01);
}

.find-course-btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.mini-fact-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
}

.mini-fact {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px 20px;
}

.mini-fact .num {
  font-family: "Science Gothic", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent, #cc0000);
  margin-bottom: 6px;
}

.mini-fact .label {
  font-size: 0.88rem;
  color: var(--text-muted, #4b4b4b);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rt-emblem {
  position: relative;
  width: 100%;
  min-height: 460px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.emblem-graphic {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #fff 0%, rgba(255,255,255,0.12) 55%, rgba(255,255,255,0.04) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0px);
  opacity: 0.95;
}

.orb-1 {
  width: 210px;
  height: 210px;
  background: rgba(255, 77, 90, 0.35);
  top: -40px;
  left: -30px;
}

.orb-2 {
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.32);
  right: 18%;
  top: 20%;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: rgba(255, 181, 185, 0.34);
  left: 12%;
  bottom: 10%;
}

.orb-4 {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.18);
  right: 5%;
  bottom: 14%;
}

@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-c { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@keyframes floatIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

@keyframes fadeUp { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }

.orb-1 { animation: float-a 7.6s ease-in-out infinite; }
.orb-2 { animation: float-b 8.2s ease-in-out infinite; }
.orb-3 { animation: float-c 7.1s ease-in-out infinite; }
.orb-4 { animation: float-b 8.8s ease-in-out infinite; }

.big-carousel {
  position: relative;
  margin: 32px auto;
  max-width: 1180px;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.big-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(204, 0, 0, 0.08), transparent 26%),
              radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.12), transparent 18%);
  pointer-events: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 1.2s ease;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 33%, rgba(0,0,0,0.18));
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(204,0,0,0.15) 32%, rgba(255,255,255,0.48));
}

.carousel-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: auto;
  max-width: 560px;
  z-index: 2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(204,0,0,0.26);
}

.carousel-caption h3 {
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
}

.carousel-dots {
  position: absolute;
  left: 32px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.active {
  width: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.music-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  opacity: 0.9;
  animation: noteDrift 10s ease-in-out infinite;
}

.music-note.note-1 { top: 12%; left: 10%; animation-duration: 9s; }
.music-note.note-2 { top: 24%; right: 14%; animation-duration: 12s; }
.music-note.note-3 { bottom: 18%; left: 16%; animation-duration: 11s; }
.music-note.note-4 { bottom: 10%; right: 20%; animation-duration: 13s; }

.page-hero {
  padding: 60px 0;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.section-panel,
.form-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.button-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.button-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.button-accent {
  background: #ff4d5a;
  color: #fff;
  border: 1px solid transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes noteDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
  50% { transform: translateY(-18px) translateX(8px) rotate(10deg); opacity: 0.95; }
}

.carousel-credit {
  position: absolute;
  left: 32px;
  bottom: -9999px;
  opacity: 0;
}

.cap-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.carousel-caption h3 {
  margin: 0;
  font-family: "Science Gothic", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: 1.02;
}

.carousel-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9999px;
  opacity: 0;
}

.carousel-dots {
  position: absolute;
  left: 32px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.active {
  width: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-family: "Science Gothic", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

.section-heading .rule {
  flex: 1;
  height: 1px;
  background: rgba(204, 0, 0, 0.25);
}

.section-sub {
  max-width: 720px;
  color: var(--text-muted, #4b4b4b);
  line-height: 1.8;
  margin-bottom: 36px;
}

.steps-list {
  display: grid;
  gap: 18px;
}

.step-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-index {
  font-family: "Science Gothic", sans-serif;
  font-size: 2rem;
  color: var(--accent);
}

.step-row h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.step-row p {
  margin: 0;
  color: var(--text-muted, #4b4b4b);
  line-height: 1.75;
}

.ways-section {
  padding-top: 32px;
}

.playful-gallery {
  padding-top: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  transform: perspective(900px) rotateY(-4deg);
  transform-style: preserve-3d;
}

.gallery-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 18px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  opacity: 0.75;
  pointer-events: none;
}

.gallery-card:hover {
  transform: perspective(900px) rotateY(0deg) translateY(-10px) scale(1.02);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.24);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.1) rotate(-0.5deg);
  filter: saturate(1.05) contrast(1.02);
}

.gallery-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(204, 0, 0, 0.82) 100%);
}

.gallery-copy h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent, #cc0000);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.way-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.way-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 20%);
}

.way-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 42px 90px rgba(0,0,0,0.28);
  filter: saturate(1.08);
}

.way-image {
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.way-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.way-card:hover .way-image img {
  transform: scale(1.08) rotate(1deg);
}

.way-tag {
  display: inline-flex;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #cc0000);
  margin: 18px 20px 12px;
}

.way-card h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: var(--text);
}

.way-desc {
  flex: 1;
  color: var(--text-muted, #4b4b4b);
  line-height: 1.75;
  margin-bottom: 24px;
}

.way-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent, #cc0000);
}

.way-card:hover {
  transform: translateY(-10px) scale(1.01);
}

.tutors-section {
  padding-top: 20px;
}

#tutor-grid {
  display: grid;
  gap: 20px;
}

.tutor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0,0,0,0.16);
}

.row-name {
  font-family: "Science Gothic", sans-serif;
  font-size: 1.15rem;
  margin: 0;
}

.row-subject {
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.row-price {
  font-family: "Science Gothic", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent, #cc0000);
}

.row-view-link {
  color: var(--accent);
  font-weight: 700;
  align-self: center;
}

.row-view-link:hover {
  text-decoration: underline;
}

.about-section {
  padding-top: 30px;
}

.about-content {
  max-width: 820px;
  font-size: 1rem;
  color: var(--text-muted, #4b4b4b);
  line-height: 1.9;
}

.cta-section {
  margin: 0 26px;
  padding: 56px 44px;
  background: linear-gradient(135deg, rgba(255, 77, 90, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.22);
  text-align: center;
}

.cta-section h2 {
  font-family: "Science Gothic", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted, #4b4b4b);
  font-size: 1rem;
  margin-bottom: 28px;
}

.find-course-btn {
  background: var(--accent, #cc0000);
  color: #fff;
}

.site-footer {
  margin: 60px 26px 32px;
  padding: 42px 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff 0%, #fff6f6 100%);
  border: 1px solid rgba(204,0,0,0.20);
}

.footer-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-brand h4,
.footer-links h4 {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-brand p,
.footer-links a {
  color: var(--text-muted, #333333);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted, #333333);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    align-items: center;
  }

  .mini-fact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .rt-hero {
    padding-top: 58px;
  }

  .rt-emblem {
    min-height: 360px;
  }

  .ways-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 18px 18px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .wrap {
    padding: 28px 18px;
  }

  .site-footer {
    margin: 42px 18px 24px;
    padding: 32px 24px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Site-wide typography baseline.
   Several pages (dashboard, library, search, chat, the auth pages, the
   tutor pages) were built straight on Tailwind defaults, so they rendered
   with a different heading face and a slightly larger base size than
   home/about/find-tutor. These rules put every page on the same footing:
   Science Gothic headings over a Montserrat body. Scoped to plain
   elements only, so a page that deliberately styles a heading still wins.
   --------------------------------------------------------------------- */
body {
  font-size: 15px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Science Gothic", "Montserrat", sans-serif;
  letter-spacing: 0.01em;
}

/* Wordmark/heading helper used by the Tailwind-based pages so their brand
   text matches the .logo styling on home/about/find-tutor. */
.serif { font-family: "Science Gothic", "Montserrat", sans-serif; }
