/* ======================== SANKALP DIGITAL PATHSHALA – FINAL PREMIUM CSS (v13) ======================== */
/* Primary #00acee, 0.8x zoom, all pages covered, home hero-visual styled */

html {
  font-size: 80%;
  scroll-behavior: smooth;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  --primary: #00acee;
  --primary-hover: #0099cc;
  --primary-light: rgba(0, 172, 238, 0.08);
  --navy: #0F172A;
  --slate: #64748B;
  --border-light: #E2E8F0;
  --off-white: #F8FAFC;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', 'Open Sans', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & GLOBAL ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- UTILITY CLASSES ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 2.5rem);
}

.section-padding {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-white { background: var(--white); }
.bg-primary-light { background: var(--primary-light); }
.hidden { display: none !important; }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { color: var(--slate); margin-bottom: 1rem; }

/* ---------- CARDS (BASE) ---------- */
.card,
.glass-light {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.glass-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover,
.glass-light:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- BUTTONS ---------- */
.btn, .btn-primary, .btn-outline, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 172, 238, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 172, 238, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.85rem 2.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid transparent;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-edit {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
}

.btn-edit:hover {
  background: rgba(0, 172, 238, 0.15);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
  will-change: transform;
}

.navbar.is-hidden {
  transform: translateY(-110%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem clamp(0.85rem, 2vw, 1.35rem);
  max-width: 1400px;
  margin: 0 auto;
  min-width: 0;
}

.logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-links a {
  padding: 0.42rem 0.54rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex: 0 0 auto;
}

.nav-actions .btn-nav {
  padding-inline: 0.82rem;
  min-height: 34px;
  font-size: 0.76rem;
}

.hamburger {
  display: none;
  font-size: 1.6rem;
  background: none;
  color: var(--navy);
}

/* ---------- HERO (GLOBAL & HOME SPECIFIC) ---------- */
.page-hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Home hero adjustments */
.hero-heading {
  margin-bottom: 1.5rem;            /* more space below heading */
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 800px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

.trust-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Hero visual image styling */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}

.hero-visual img:hover {
  transform: scale(1.02);
}

/* ---------- GRID LAYOUTS ---------- */
.feature-grid,
.course-grid,
.resource-grid,
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ---------- PREMIUM CARDS ---------- */
.feature-card,
.course-card,
.resource-card,
.faculty-card,
.value-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-card:hover,
.course-card:hover,
.resource-card:hover,
.faculty-card:hover,
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.course-img {
  height: 180px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.course-content,
.resource-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-content .btn,
.resource-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

.course-tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.course-features {
  margin: 0.8rem 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.course-features li {
  margin-bottom: 0.3rem;
}

.faculty-card {
  text-align: center;
}

.faculty-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary-light);
  flex-shrink: 0;
}

.faculty-subject {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faculty-social {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.resource-card {
  text-align: center;
}

.resource-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ---------- IMAGE STYLING ---------- */
img.premium-img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}

img.premium-img:hover {
  transform: scale(1.02);
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  transform: scale(1.02);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.2rem;
}

.stat-label {
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.stars {
  color: #FBBF24;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.1rem;
  display: none;
  color: var(--slate);
}

.faq-item.active .faq-answer {
  display: block;
}

/* ---------- CONTACT / FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--navy);
  font-family: inherit;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 172, 238, 0.1);
}

.form-feedback {
  font-weight: 500;
}

/* ---------- ABOUT PAGE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.founder-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.founder-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--slate);
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeline-year {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  min-width: 70px;
}

/* ---------- MARKSHEET / RESULTS ---------- */
.marksheet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.marksheet-header {
  border-bottom: 2px solid var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.marksheet-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.marksheet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.marksheet-table th,
.marksheet-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.marksheet-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.marksheet-summary {
  display: flex;
  gap: 2rem;
  justify-content: center;
  background: var(--off-white);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- AI ASSISTANT / CHAT / SOLVER ---------- */
.chat-interface {
  max-width: 800px;
  margin: 0 auto;
}

.chat-window {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 75%;
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  background: rgba(0, 172, 238, 0.06);
  border: 1px solid var(--border-light);
  color: var(--navy);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.message.user .bubble {
  background: var(--primary);
  color: white;
  border: none;
}

.chat-input-bar {
  display: flex;
  padding: 0.5rem;
  margin-top: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.chat-input-bar input {
  flex: 1;
  padding: 0.8rem;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 0.95rem;
}

.chat-input-bar button {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  color: white;
}

.streaming-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--primary);
  font-weight: bold;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-indicator {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prompt-chip {
  padding: 0.4rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.prompt-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.solver-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.solver-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--slate);
  transition: var(--transition);
  cursor: pointer;
}

.solver-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(0, 172, 238, 0.02);
}

.answer-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
}

/* Lead capture */
.lead-capture-card {
  padding: 1.5rem;
  margin-top: 2rem;
}

.lead-capture-card input {
  margin-bottom: 0.5rem;
}

/* ---------- ADMIN DASHBOARD ---------- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  text-align: center;
  padding: 0 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-menu li a {
  color: #CBD5E1;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: var(--off-white);
}

.dashboard-tab {
  display: none;
}

.dashboard-tab.active {
  display: block;
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card-dash {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table th {
  background: var(--off-white);
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-bar select {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 0.9rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
}

.result-modal {
  max-width: 980px;
}

.custom-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.category-list,
.category-field-rows {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.category-list-item,
.category-field-row {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .8rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--off-white);
}

.category-field-row span {
  color: var(--slate);
  font-size: .85rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-admin-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.gallery-admin-item .delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(239, 68, 68, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* ---------- LIGHTBOX (GALLERY) ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 70vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: white;
  padding: 4rem 0 1.5rem;
}

.footer a {
  color: #CBD5E1;
}

.footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  margin-bottom: 0.8rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #94A3B8;
  font-size: 0.9rem;
}

/* ---------- FLOATING WIDGETS ---------- */
.ai-floating-widget,
.whatsapp-floating {
  position: fixed;
  z-index: 90;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  text-decoration: none;
}

.ai-floating-widget {
  bottom: 100px;
  right: 30px;
  background: var(--primary);
}

.whatsapp-floating {
  bottom: 30px;
  right: 30px;
  background: #25D366;
}

.ai-floating-widget:hover,
.whatsapp-floating:hover {
  transform: scale(1.1);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scale-hover:hover {
  transform: scale(1.02);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    backdrop-filter: blur(24px);
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-actions .btn-nav {
    display: none;
  }

  .contact-grid,
  .about-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

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

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

  .container {
    padding: 0 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .course-grid,
  .resource-grid,
  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .marksheet-details {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}
