/* =========================================================
   Siddhi Tuition Classes — style.css
   Recreates the blue/purple gradient theme from the
   original site with modern responsive polish.
   ========================================================= */

:root {
  --blue-1:   #2f7fc6;
  --blue-2:   #1f6dbb;
  --purple-1: #7a5cd6;
  --purple-2: #4a3aa8;
  --teal-1:   #2aa4b3;
  --teal-2:   #1f8a8f;
  --text:     #ffffff;
  --text-soft:#e9eefc;
  --ink:      #1a2240;
  --card:     rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.18);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.25);
  --radius:   14px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #5b46c2 0%, #2d6fbf 50%, #1c8a92 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 20px;
  margin: 0 auto;
}

/* ---------- Brand bar ---------- */
.brand-bar {
  text-align: center;
  padding: 22px 16px 8px;
  background: transparent;
}
.brand {
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 0.3px;
  color: #fff;
}

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: linear-gradient(90deg, rgba(74,58,168,0.85), rgba(31,109,187,0.85));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav { display: flex; align-items: center; justify-content: center; min-height: 56px; }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.nav-link {
  display: inline-block;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  position: relative;
  transition: color .2s ease;
}
.nav-link:hover { color: #ffe9a8; }
.nav-link.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px;
  height: 2px; background: #fff; border-radius: 2px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 3px; background: #fff; border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; position: relative; }

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}
.section-title.left { text-align: left; }
.title-divider {
  display: block; width: 60px; height: 3px; background: #fff;
  margin: 0 auto 36px; border-radius: 2px; opacity: 0.85;
}
.title-divider.left { margin-left: 0; }

.lead-center {
  max-width: 880px; margin: 0 auto 36px; text-align: center;
  font-size: 16px; color: var(--text-soft);
}

/* gradient backgrounds per section */
.hero        { background: linear-gradient(120deg, #6a4fcf 0%, #2f7fc6 100%); }
.about       { background: linear-gradient(120deg, #1f6dbb 0%, #1f8a8f 100%); }
.achievements{ background: linear-gradient(120deg, #6a4fcf 0%, #2f7fc6 100%); }
.facilities  { background: linear-gradient(120deg, #1f6dbb 0%, #2f7fc6 100%); }
.courses     { background: linear-gradient(120deg, #6a4fcf 0%, #2f7fc6 100%); }
.gallery     { background: linear-gradient(120deg, #2f7fc6 0%, #1f8a8f 100%); }
.instagram   { background: linear-gradient(120deg, #4a3aa8 0%, #6a4fcf 100%); }
.contact     { background: linear-gradient(120deg, #1f8a8f 0%, #2f7fc6 100%); }

/* ---------- Hero ---------- */
.hero-inner {
  text-align: center;
  padding: 30px 0 20px;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700; margin: 0 0 24px;
  line-height: 1.2;
}
.hero-lead {
  font-size: clamp(17px, 2.1vw, 22px);
  margin: 14px auto;
  max-width: 900px;
  font-weight: 500;
}
.hero-lead .thin { font-weight: 400; opacity: 0.95; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin: 28px 0 18px;
}

.hero-keywords {
  font-size: 14px; color: var(--text-soft);
  margin-top: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-weight: 600; font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.25); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-light { background: #ffffff; color: var(--ink); }
.btn-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff; border-color: transparent;
}

/* ---------- About: tabs ---------- */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px; margin: 0 auto 36px;
  background: rgba(255,255,255,0.14);
  padding: 6px; border-radius: 12px;
  max-width: 540px;
}
.tab {
  flex: 1 1 auto;
  border: 0; cursor: pointer;
  padding: 12px 18px;
  background: transparent; color: #fff;
  font-weight: 600; font-size: 15px;
  border-radius: 8px;
  transition: background .2s ease;
}
.tab.active { background: rgba(255,255,255,0.28); }
.tab:hover:not(.active) { background: rgba(255,255,255,0.12); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.two-col {
  display: grid; gap: 36px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%; max-height: 380px; object-fit: cover;
}

.check-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.check-list li {
  position: relative; padding-left: 32px;
  font-size: 16px; color: #fff;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
}

/* ---------- Achievements slider ---------- */
.slider {
  position: relative;
  max-width: 700px; margin: 0 auto;
  padding: 0 50px;
}
.slider-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}
.slide {
  display: none;
  padding: 22px;
  text-align: center;
}
.slide.active { display: block; animation: fadeIn .4s ease; }
.slide img {
  margin: 0 auto;
  max-height: 520px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.9); color: var(--ink);
  border: 0; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background .2s ease;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 16px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 0; cursor: pointer;
  padding: 0;
}
.dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Courses ---------- */
.course-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}
.course-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease;
}
.course-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.13); }
.course-icon {
  flex: 0 0 56px; width: 56px; height: 56px;
  display: grid; place-items: center;
  color: #fff;
}
.course-icon svg { width: 44px; height: 44px; }
.course-card h3 {
  margin: 0 0 8px; font-size: 20px; font-weight: 600;
}
.course-card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-grid figure {
  margin: 0; overflow: hidden; border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  aspect-ratio: 3 / 4;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.28); }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Instagram card ---------- */
.insta-card {
  display: flex; gap: 28px; align-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  max-width: 720px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.insta-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  flex: 0 0 120px;
}
.insta-handle { margin: 0; font-weight: 600; opacity: 0.9; }
.insta-title { margin: 6px 0 16px; font-size: 22px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-box {
  text-align: center;
  max-width: 760px; margin: 0 auto;
  padding: 30px;
}
.contact-box h3 { font-size: 26px; margin: 0 0 12px; }
.contact-box address { font-style: normal; line-height: 1.8; font-size: 16px; }
.contact-phone { margin: 14px 0 6px; font-size: 20px; }
.contact-phone a { color: #fff; }
.branches-title { margin: 18px 0 6px; font-size: 18px; }
.branches { color: var(--text-soft); line-height: 1.9; }
.contact-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1f3d;
  padding: 50px 0 0;
  color: var(--text-soft);
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 17px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--text-soft); }
.footer-bottom {
  margin-top: 30px; padding: 18px 16px;
  text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
  animation: pulse 2.4s infinite;
}
.fab-whatsapp svg { width: 30px; height: 30px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 8px 30px rgba(37,211,102,0.9); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,8,20,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff; border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 18px; right: 18px; font-size: 28px; }
.lb-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 14px;
  background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 20px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 54px 0; }
  .nav { justify-content: space-between; padding: 6px 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: linear-gradient(180deg, #4a3aa8, #1f6dbb);
    padding: 8px 0;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 14px 18px; width: 100%; }
  .nav-link.active::after { display: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .insta-card { flex-direction: column; text-align: center; padding: 22px; }
  .insta-avatar { width: 100px; height: 100px; flex-basis: 100px; }
  .slider { padding: 0 44px; }
  .slider-btn { width: 36px; height: 36px; }
  .fab-whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }
}

@media (max-width: 440px) {
  .btn { padding: 12px 18px; font-size: 14px; }
  .hero h1 { font-size: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
