:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --card-bg: rgba(15, 23, 42, 0.9);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 22px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 40%, #000 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
}

.page-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72));
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 5vw;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans Devanagari", "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #020617;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4), 0 10px 25px rgba(248, 113, 22, 0.5);
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #f97316, #fb7185);
  transition: width 0.22s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 250, 252, 0.1);
  background: radial-gradient(circle at top left, rgba(248, 113, 22, 0.16), transparent 60%);
}

/* Layout */

main {
  padding: 1.5rem 5vw 3rem;
}

.section {
  margin: 4rem auto;
  max-width: 1100px;
}

.section-header {
  max-width: 620px;
}

.section-header.center {
  text-align: center;
  margin: 0 auto 2rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.8fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.section-about .about-left {
  align-self: stretch;
}

.section-about .about-right {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.section-about .section-header p + .about-story {
  margin-top: 0.9rem;
}

.about-story {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.section-body-grid {
  display: grid;
  gap: 1.25rem;
}

.info-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.8));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-teacher-photo-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
}

.about-teacher-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.2);
}

.about-teacher-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-teacher-caption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.about-extra-photo-card {
  margin-top: 1.1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 0.85rem 1rem;
  box-shadow: var(--shadow-soft);
}

.about-extra-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.2);
}

.about-extra-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hero */

.hero {
  max-width: 1100px;
  margin: 1.5rem auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.hero-subtitle {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.hero-badges span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.btn-primary,
.btn-secondary {
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #020617;
  box-shadow: 0 16px 30px rgba(248, 113, 22, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 113, 22, 0.6);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #f97316;
  background: rgba(15, 23, 42, 1);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.22);
}

.hero-photo-card {
  background: radial-gradient(circle at top left, rgba(248, 113, 22, 0.16), rgba(15, 23, 42, 0.96));
  border-radius: 28px;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.85);
  position: relative;
  overflow: hidden;
  max-width: 320px;
  justify-self: end;
}

.teacher-photo-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.18);
}

.teacher-photo-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-photo-caption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Teaching section */

.teaching {
  max-width: 1100px;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Gallery */

.gallery {
  max-width: 1100px;
}

.gallery-carousel {
  max-width: 800px;
  margin: 2rem auto 0;
}

.gallery-window {
  overflow: hidden;
  /* makes swipe gestures feel better on mobile */
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  gap: 0.9rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.gallery-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(100% / 3);
  /* IMPORTANT: avoid horizontal padding here; it makes slides wider than their flex-basis,
     which causes the "half photo / two photos" issue on mobile. */
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}



.gallery-item figcaption {
  padding: 0.75rem 0.85rem 0.95rem;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .gallery-item {
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  .gallery-item {
    flex: 0 0 77%;   /* slightly less than full width */
    max-width: 77%;
  }
  .gallery-track {
    gap: 0.75rem;   /* keep your spacing */
  }
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.gallery-nav-btn {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text);
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.gallery-nav-btn:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Testimonials */

.testimonials {
  max-width: 1100px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  box-shadow: var(--shadow-soft);
}
.review-link {
  color: #4285F4;
  font-weight: 600;
  text-decoration: none;
}

.review-link:hover {
  text-decoration: underline;
}
.student-photo {
  width: 70px;       
  height: 70px;      
  object-fit: cover;  
  border-radius: 50%; 
  border: 3px solid #f0f0f0; 
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; 
}

.testimonial-content h3 {
  margin: 0 0 0.1rem;
  font-size: 0.95rem;
}

.testimonial-grade {
  margin: 0 0 0.35rem !important;
  font-size: 0.78rem;
  color: var(--accent);
}

.testimonial-content p {
  font-size: 0.85rem;
}

/* Contact */

.contact {
  max-width: 1100px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  background: radial-gradient(circle at top left, rgba(248, 113, 22, 0.18), rgba(15, 23, 42, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.9);
  padding: 1.5rem 1.7rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0 0.6rem;
}

.contact-btn {
  font-size: 0.9rem;
}

.contact-email-btn {
  border-style: dashed;
}

.contact-note {
  font-size: 0.82rem !important;
  color: var(--muted);
}

.location-block {
  margin-top: 0;
  padding: 1.2rem 1.4rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: radial-gradient(circle at top left, rgba(248, 113, 22, 0.16), rgba(15, 23, 42, 0.98));
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.9);
}

.location-left h2 {
  margin-top: 0.3rem;
}

.location-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.location-address {
  font-size: 0.85rem !important;
  color: var(--text);
}

.location-text {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.6rem 0 0.6rem;
}

.location-media {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 0.9rem;
  margin-top: 0.8rem;
  align-items: flex-start;
}

.location-photo-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.location-photo-frame img {
  width: 100%;
  height: auto;
}

.location-links p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.maps-btn {
  width: 100%;
  justify-content: center;
}

.enquiry-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1rem 1.1rem;
}

.enquiry-form h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.enquiry-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  margin-top: 0.22rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  outline: none;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(248, 113, 22, 0.4);
}

.full-width {
  width: 100%;
}

.form-helper {
  font-size: 0.75rem !important;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Footer */

.site-footer {
  max-width: 1100px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo-card {
    order: -1;
    max-width: 100%;
    justify-self: start;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-media {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
  }

  main {
    padding: 1.2rem 1rem 2.5rem;
  }

  .hero {
    margin-top: 1.2rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.82rem;
  }

  .teaching-grid,
  .gallery-grid,
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

