/* ============================================================
   GYAN JYOTI ACADEMY — Main Stylesheet
   ============================================================ */

:root {
  --primary:     #1a3a5c;
  --primary-lt:  #2471a3;
  --accent:      #e67e22;
  --accent-lt:   #f39c12;
  --green:       #1e8449;
  --text:        #1a1a2e;
  --text-muted:  #555f6e;
  --bg:          #f8f9fa;
  --white:       #ffffff;
  --border:      #dde3ea;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.14);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.25s ease;
  --font:        'Poppins', 'Segoe UI', sans-serif;
  --font-heading:'Merriweather', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ── Layout helpers ────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230,126,34,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-lt);
  border-color: var(--primary-lt);
  transform: translateY(-2px);
}

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { display: flex; align-items: center; gap: 5px; }

/* ── Header / Nav ──────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; width: auto; }
.logo-text h1 {
  font-size: 1.1rem;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
}
.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
nav a:hover, nav a.active {
  background: rgba(26,58,92,0.07);
  color: var(--primary);
}
nav .btn { margin-left: 8px; }

.hamburger { display: none; cursor: pointer; padding: 8px; border: none; background: none; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5f8a 50%, var(--primary-lt) 100%);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem,3.5vw,2.6rem); margin-bottom: 14px; }
.hero p { font-size: 15px; opacity: 0.85; margin-bottom: 28px; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 700; color: var(--accent-lt); }
.hero-stat span { font-size: 12px; opacity: 0.8; }
.hero-image-side { position: relative; }
.hero-image-side img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Notifications bar ─────────────────────────────────── */
.notif-bar {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  padding: 0;
  overflow: hidden;
}
.notif-bar .container {
  display: flex;
  align-items: stretch;
  min-height: 44px;
}
.notif-label {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
}
.notif-scroll {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.notif-items { display: flex; flex-direction: column; gap: 0; }
.notif-item {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.notif-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
}
.new-badge {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#notif-list { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.notif-dot { color: var(--text-muted); }

/* ── Branch cards ──────────────────────────────────────── */
.branches-section { background: var(--white); }
.branches-section h2 { text-align: center; margin-bottom: 8px; }
.branches-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 14px; }
.branch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.branch-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  display: block;
  position: relative;
}
.branch-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.branch-card-header {
  padding: 28px 24px 20px;
  color: #fff;
  position: relative;
}
.branch-card-header::after {
  content: '→';
  position: absolute;
  top: 24px; right: 24px;
  font-size: 20px;
  opacity: 0.6;
  transition: var(--transition);
}
.branch-card:hover .branch-card-header::after {
  opacity: 1;
  transform: translateX(4px);
}
.branch-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.branch-card-header h3 { color: #fff; font-size: 1.15rem; font-family: var(--font); font-weight: 700; }
.branch-card-header p { font-size: 12.5px; opacity: 0.8; margin-top: 4px; }
.branch-card-body {
  background: var(--white);
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.branch-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.branch-info-row:last-child { margin-bottom: 0; }
.branch-info-row .icon { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.branch-visit-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  transition: var(--transition);
  color: #fff;
}

/* ── Toppers Slider ────────────────────────────────────── */
.toppers-section { background: var(--bg); }
.toppers-section h2 { text-align: center; margin-bottom: 6px; }
.toppers-subtext { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.slider-wrap { position: relative; overflow: hidden; }
.slider-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.topper-card {
  flex: 0 0 calc(25% - 14px);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.topper-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.topper-info { padding: 14px 12px; }
.topper-info h4 { font-size: 14px; color: var(--primary); font-family: var(--font); font-weight: 700; }
.topper-info p { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.topper-percent {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.slider-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--primary); color: #fff; }
.slider-dots { display: flex; gap: 6px; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active { background: var(--primary); transform: scale(1.2); }
.slider-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Notifications panel ──────────────────────────────── */
.notif-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.notif-panel-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-panel-list { padding: 0; }
.notif-panel-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background var(--transition);
}
.notif-panel-item:hover { background: #f8f9fa; }
.notif-panel-item:last-child { border-bottom: none; }
.notif-panel-date {
  min-width: 65px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-lt);
  text-align: center;
  background: #eaf3fb;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1.3;
}
.notif-panel-text strong { font-size: 13px; display: block; color: var(--text); }
.notif-panel-text span { font-size: 12px; color: var(--text-muted); }

/* ── Two-column layout for notif + admissions ─────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ── Inquiry Form ──────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-card-header {
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-body { padding: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-lt);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; padding: 13px; font-size: 15px; margin-top: 4px; }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  color: #2e7d32;
  font-weight: 600;
  margin-top: 12px;
}

/* ── WhatsApp FAB ──────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-fab:hover {
  background: #20ba5a;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: #0f1d2e;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
footer p, footer a { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.8; }
footer a:hover { color: var(--accent-lt); }
footer ul li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ── Branch page hero ──────────────────────────────────── */
.branch-hero {
  padding: 56px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.branch-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}
.branch-hero .container { position: relative; z-index: 1; }
.branch-hero h1 { color: #fff; margin-bottom: 8px; }
.branch-hero p { opacity: 0.85; font-size: 15px; margin-bottom: 20px; }
.branch-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.branch-hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: 20px;
}

/* ── Map ───────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; height: 340px; border: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-side { display: none; }
  .branch-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topper-card { flex: 0 0 calc(50% - 9px); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .hamburger { display: block; }
  .topper-card { flex: 0 0 calc(50% - 9px); }
  section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .topper-card { flex: 0 0 calc(100%); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
