/* homepage styles: premium visitor-first layout */
:root {
  --home-max-width: 1180px;
  --home-radius-xl: 24px;
  --home-radius-lg: 18px;
  --home-radius-md: 14px;
  --home-surface: #ffffff;
  --home-surface-soft: #f7fbff;
  --home-border: rgba(23, 46, 89, 0.12);
  --home-shadow: 0 20px 45px rgba(10, 28, 58, 0.12);
  --home-shadow-soft: 0 10px 25px rgba(10, 28, 58, 0.08);
  --home-text: #122742;
  --home-text-strong: #0c1d34;
  --home-muted: #4d6688;
  --home-primary: #0456e2;
  --home-accent: #00a08f;
  --home-warm: #ff8a00;
}

.home-container {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 1.2rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--home-text);
}

.home-dashboard {
  display: grid;
  gap: 1.05rem;
}

.home-hero {
  margin-bottom: 0.9rem;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.1rem;
  border-radius: var(--home-radius-xl);
  border: 1px solid var(--home-border);
  padding: clamp(1rem, 2vw, 1.45rem);
  background:
    radial-gradient(760px 260px at -12% -35%, rgba(4, 86, 226, 0.22), transparent 60%),
    radial-gradient(560px 280px at 110% 120%, rgba(0, 160, 143, 0.24), transparent 52%),
    linear-gradient(145deg, #fcfeff, #f6fbff 72%, #eff8ff);
  box-shadow: var(--home-shadow);
  position: relative;
  overflow: hidden;
}

.home-hero-grid::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  right: -80px;
  top: -70px;
}

.home-hero-inner {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.hero-search-form {
  margin-top: 1.5rem;
  max-width: 600px;
  background: white;
  padding: 0.4rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 35px rgba(4, 86, 226, 0.18);
  border: 1px solid rgba(4, 86, 226, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-search-form:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(4, 86, 226, 0.22);
  border-color: rgba(4, 86, 226, 0.3);
}

.search-input-group {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0 1.25rem;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-field label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--home-muted);
  text-transform: uppercase;
  margin-bottom: -1px;
  letter-spacing: 0.05em;
}

.search-field input {
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-text-strong);
  padding: 0.15rem 0;
  outline: none;
  width: 100%;
}

.search-field input::placeholder {
  color: #a0aec0;
  font-weight: 500;
}

.hero-search-form .btn-primary {
  border-radius: 100px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(4, 86, 226, 0.2);
}

.hero-secondary-cta {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--home-muted);
}

.hero-secondary-cta a {
  color: var(--home-primary);
  font-weight: 800;
  text-decoration: none;
}

.hero-secondary-cta a:hover {
  text-decoration: underline;
}

.home-hero-title {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--home-text-strong);
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.home-hero-sub {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--home-muted);
  max-width: 56ch;
  line-height: 1.55;
}

.home-hero-actions {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-hero-actions .btn {
  text-decoration: none;
  font-weight: 700;
}

.home-hero-art {
  min-height: 355px;
  position: relative;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(4, 86, 226, 0.15);
  background:
    linear-gradient(162deg, rgba(4, 86, 226, 0.26), rgba(0, 160, 143, 0.2)),
    #dff1ff;
  box-shadow: var(--home-shadow-soft);
}

.home-hero-art::before {
  content: "";
  position: absolute;
  left: 8%;
  top: 8%;
  width: 100px;
  height: 100px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-12deg);
  z-index: 1;
}

.hero-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scaleX(-1) scale(1.08);
  filter: drop-shadow(0 15px 35px rgba(7, 22, 45, 0.24));
}

.hero-quick-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.25rem;
  z-index: 1;
}

.hero-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.65rem;
  align-items: center;
  border-radius: 13px;
  border: 1px solid rgba(4, 86, 226, 0.16);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  text-decoration: none;
  padding: 0.68rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-point:hover,
.hero-point:focus {
  transform: translateY(-2px);
  border-color: rgba(4, 86, 226, 0.34);
  box-shadow: 0 10px 24px rgba(4, 86, 226, 0.16);
}

.hero-point-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  position: relative;
  background: linear-gradient(150deg, rgba(4, 86, 226, 0.24), rgba(0, 160, 143, 0.24));
}

.hero-point-icon::before,
.hero-point-icon::after {
  content: "";
  position: absolute;
}

.hero-point-icon--tutor::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  left: 11px;
  top: 6px;
}

.hero-point-icon--tutor::after {
  width: 16px;
  height: 9px;
  border-radius: 8px;
  background: #ffffff;
  left: 9px;
  top: 18px;
}

.hero-point-icon--book::before {
  width: 16px;
  height: 18px;
  border-radius: 3px;
  background: #ffffff;
  left: 9px;
  top: 7px;
}

.hero-point-icon--book::after {
  width: 2px;
  height: 12px;
  background: rgba(4, 86, 226, 0.3);
  left: 17px;
  top: 10px;
}

.hero-point-icon--resource::before {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #ffffff;
  left: 9px;
  top: 9px;
}

.hero-point-icon--resource::after {
  width: 7px;
  height: 2px;
  background: rgba(4, 86, 226, 0.35);
  left: 13px;
  top: 16px;
}

.hero-point-copy {
  display: grid;
  gap: 0.05rem;
}

.hero-point-copy strong {
  color: var(--home-text-strong);
  font-size: 0.88rem;
  line-height: 1.2;
}

.hero-point-copy small {
  color: var(--home-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.home-how {
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  background: linear-gradient(140deg, #ffffff, #f7fcff);
  box-shadow: var(--home-shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.home-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1a4ca6;
}

.home-how-head h2 {
  margin: 0.25rem 0 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--home-text-strong);
}

.home-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-how-step {
  border: 1px solid rgba(4, 86, 226, 0.15);
  border-radius: 14px;
  background: #ffffff;
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.home-how-step-index {
  color: #1a4ca6;
  font-weight: 800;
  font-size: 0.78rem;
}

.home-how-step h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--home-text-strong);
}

.home-how-step p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.home-card {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0;
  display: grid;
  gap: 0.65rem;
}

.home-card-head h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.25rem;
  color: var(--home-text-strong);
}

.home-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.5;
}

#visitor-subjects {
  background:
    radial-gradient(400px 120px at 0% 0%, rgba(4, 86, 226, 0.08), transparent 55%),
    linear-gradient(145deg, #ffffff, #f8fcff);
}

#visitor-subjects-heading {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 800;
}

.home-subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #12385f;
  background: linear-gradient(145deg, rgba(0, 160, 143, 0.18), rgba(4, 86, 226, 0.12));
  border: 1px solid rgba(0, 160, 143, 0.28);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.subject-pill:hover,
.subject-pill:focus {
  transform: translateY(-1px);
  border-color: rgba(0, 160, 143, 0.5);
  box-shadow: 0 8px 16px rgba(0, 160, 143, 0.18);
}

.visitor-find {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.2rem 0;
  display: grid;
  gap: 0.7rem;
}

.visitor-find-head {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.visitor-find-head h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.visitor-find-head h2 a,
.visitor-find-head p a {
  text-decoration: none;
  color: inherit;
}

.visitor-find-head h2 a:hover,
.visitor-find-head p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visitor-find-head p {
  margin: 0;
  color: var(--home-muted);
}

.learning-path {
  max-width: 420px;
}

.learning-path svg {
  width: 100%;
  height: auto;
}

.path-line {
  fill: none;
  stroke: rgba(4, 86, 226, 0.38);
  stroke-width: 3.3;
  stroke-linecap: round;
}

.path-dot {
  fill: rgba(0, 160, 143, 0.7);
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.visitor-find .home-chips {
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 86, 226, 0.18);
  background: rgba(4, 86, 226, 0.06);
  color: #244670;
  padding: 0.3rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.chip strong {
  color: #0f3f9d;
}

.tutor-carousel-section {
  position: relative;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0 0;
}

.spotlight-glow {
  position: absolute;
  inset: -16px 0 auto 0;
  height: 170px;
  background: radial-gradient(220px 120px at 18% 30%, rgba(4, 86, 226, 0.22), transparent 62%),
              radial-gradient(230px 120px at 82% 30%, rgba(0, 160, 143, 0.2), transparent 62%);
  filter: blur(7px);
  pointer-events: none;
  animation: glow-sweep 8.5s ease-in-out infinite;
}

.tutor-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.tutor-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 15px;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.45rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.tutor-track::-webkit-scrollbar {
  height: 8px;
}

.tutor-track::-webkit-scrollbar-thumb {
  background: rgba(4, 86, 226, 0.24);
  border-radius: 999px;
}

.tutor-carousel.is-static .tutor-track {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow-x: visible;
  scroll-snap-type: none;
}

.tutor-card {
  scroll-snap-align: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  min-height: auto;
}

.tutor-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef5ff;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(4, 86, 226, 0.14);
}

.tutor-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.tutor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tutor-card-body {
  padding: 0.62rem 0.2rem 0.25rem;
  display: grid;
  gap: 0.25rem;
}

.tutor-card-name {
  color: var(--home-text-strong);
  font-weight: 800;
  text-decoration: none;
}

.tutor-card-subjects {
  color: #244670;
  font-size: 0.87rem;
  font-weight: 600;
}

.tutor-card-trial {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border-radius: 999px;
  border: 1px solid rgba(153, 27, 27, 0.28);
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.55rem;
}

.tutor-card-feedback {
  margin-top: 0.6rem;
  padding-top: 0.58rem;
  border-top: 1px dashed rgba(4, 86, 226, 0.2);
  display: grid;
  gap: 0.32rem;
}

.tutor-card-rating {
  color: #ef8e00;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  font-weight: 800;
}

.tutor-card-quote {
  margin: 0;
  color: #264972;
  font-size: 0.87rem;
  line-height: 1.45;
}

.tutor-card-reviewer {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.tutor-card-reviewer-name {
  color: #0e396c;
  font-weight: 800;
  font-size: 0.83rem;
}

.tutor-card-reviewer-role {
  border-radius: 999px;
  border: 1px solid rgba(4, 86, 226, 0.2);
  background: rgba(4, 86, 226, 0.08);
  color: #1a4ca6;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.08rem 0.38rem;
  white-space: nowrap;
}

.tutor-card-bio {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(4, 86, 226, 0.22);
  background: #ffffff;
  color: #0b54df;
  font-size: 1.2rem;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(4, 86, 226, 0.08);
}

.value-section {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.3rem 0;
  display: grid;
  gap: 0.65rem;
}

.value-head h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.28rem, 2.3vw, 1.62rem);
}

.value-head p {
  margin: 0.35rem 0 0;
  color: var(--home-muted);
}

.value-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.value-hero {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(4, 86, 226, 0.2);
  box-shadow: 0 14px 28px rgba(10, 28, 58, 0.12);
  padding: 10px;
  background: linear-gradient(145deg, rgba(4, 86, 226, 0.16), rgba(0, 160, 143, 0.17));
}

.value-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}

.value-flow {
  display: grid;
  gap: 0.75rem;
}

.value-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(4, 86, 226, 0.12);
  background: #ffffff;
  padding: 0.7rem;
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(4, 86, 226, 0.2), rgba(0, 160, 143, 0.2));
  position: relative;
}

.value-icon span {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
}

.value-icon--star span:nth-child(1) {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  left: 20px;
  top: 10px;
  border-radius: 4px;
}

.value-icon--star span:nth-child(2) {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  left: 15px;
  top: 26px;
}

.value-icon--star span:nth-child(3) {
  width: 8px;
  height: 30px;
  border-radius: 999px;
  left: 26px;
  top: 15px;
}

.value-icon--shield span:nth-child(1) {
  width: 28px;
  height: 34px;
  border-radius: 14px 14px 18px 18px;
  left: 16px;
  top: 12px;
}

.value-icon--shield span:nth-child(2) {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  left: 23px;
  top: 28px;
  background: rgba(0, 160, 143, 0.58);
}

.value-icon--board span:nth-child(1) {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  left: 14px;
  top: 16px;
}

.value-icon--board span:nth-child(2) {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  left: 18px;
  top: 28px;
}

.value-icon--board span:nth-child(3) {
  width: 16px;
  height: 6px;
  border-radius: 999px;
  left: 22px;
  top: 40px;
}

.value-text h3 {
  margin: 0;
  color: var(--home-text-strong);
  font-size: 1rem;
}

.value-text p {
  margin: 0.3rem 0 0;
  color: var(--home-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.resources-summary {
  margin-top: 0 !important;
}

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

.resource-tile {
  border-radius: 12px;
  border: 1px solid rgba(4, 86, 226, 0.16);
  background: linear-gradient(145deg, #fbfdff, #f0f7ff);
  text-decoration: none;
  padding: 0.72rem 0.5rem 0.62rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: #1e4370;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resource-tile:hover,
.resource-tile:focus {
  transform: translateY(-2px);
  border-color: rgba(4, 86, 226, 0.34);
  box-shadow: 0 10px 18px rgba(4, 86, 226, 0.12);
}

.resource-tile img {
  width: 100%;
  max-width: 104px;
  height: 86px;
  object-fit: contain;
}

.resource-tile span {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.section-art {
  margin-top: 0.45rem;
  border-radius: 16px;
  min-height: 118px;
  position: relative;
  overflow: hidden;
}

.section-art--teach {
  background:
    radial-gradient(170px 130px at 15% 15%, rgba(0, 160, 143, 0.2), transparent 60%),
    radial-gradient(170px 130px at 85% 85%, rgba(4, 86, 226, 0.2), transparent 58%),
    #f5fbff;
}

.art-arc {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(0, 160, 143, 0.35);
  border-radius: 50%;
  left: -22px;
  bottom: -42px;
}

.art-orb {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(4, 86, 226, 0.32));
}

.art-orb--a {
  left: 24px;
  top: 24px;
}

.art-orb--b {
  left: 72px;
  top: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(0, 160, 143, 0.35));
}

.art-bars {
  position: absolute;
  left: 24px;
  top: 34px;
  display: grid;
  gap: 5px;
}

.art-bars span {
  height: 8px;
  border-radius: 999px;
  background: rgba(4, 86, 226, 0.25);
}

.art-bars span:nth-child(1) { width: 96px; }
.art-bars span:nth-child(2) { width: 74px; background: rgba(0, 160, 143, 0.35); }
.art-bars span:nth-child(3) { width: 83px; }

.section-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.section-notes span {
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.8rem;
  color: #36557f;
  border: 1px solid rgba(4, 86, 226, 0.14);
  background: rgba(4, 86, 226, 0.06);
}

.home-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-card-footer .btn,
.home-card .btn {
  text-decoration: none;
}

.home-attention-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 138, 0, 0.35);
  background: rgba(255, 138, 0, 0.12);
  color: #713103;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.home-attention-alert strong {
  color: #934100;
}

.btn-live {
  box-shadow: 0 8px 20px rgba(4, 86, 226, 0.26);
}

@keyframes glow-sweep {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-glow {
    animation: none;
  }
}

@media (max-width: 1000px) {
  .hero-search-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
    max-width: none;
    align-items: stretch;
    gap: 0.8rem;
  }

  .search-input-group {
    padding: 0;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-search-form .btn-primary {
    width: 100%;
    border-radius: 14px;
    padding: 1rem;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-art {
    min-height: 220px;
  }

  .hero-quick-points {
    grid-template-columns: 1fr;
  }

  .home-how-grid {
    grid-template-columns: 1fr;
  }

  .value-layout {
    grid-template-columns: 1fr;
  }

  .value-item {
    grid-template-columns: 1fr;
  }

  .value-hero img {
    height: 260px;
  }

  .resource-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tutor-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .tutor-track {
    grid-auto-columns: minmax(220px, 72%);
  }
}

@media (max-width: 720px) {
  .home-container {
    padding: 0.92rem;
  }

  .home-hero-grid,
  .home-card,
  .home-how,
  .visitor-find,
  .tutor-carousel-section,
  .value-section {
    padding: 0.88rem;
  }

  .home-hero-title {
    max-width: none;
  }

  .resource-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutor-track {
    grid-auto-columns: minmax(220px, 90%);
  }
}
