/* ============================================================
   SCC Adampur — Modern Education Design System
   Indigo / Violet gradients, rounded cards, soft shadows
   ============================================================ */
:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --indigo-dark: #3730a3;
  --purple-light: #ede9fe;
  --ink: #1e1b4b;
  --body: #4b5563;
  --bg: #f8fafc;
  --white: #fff;
  --line: #e5e7eb;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
  --shadow-lg: 0 18px 50px rgba(79, 70, 229, 0.18);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0 0 .6em; line-height: 1.25; font-weight: 700; }
a { color: var(--indigo); text-decoration: none; transition: .2s; }
a:hover { color: var(--violet); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section.bg-white { background: var(--white); }
.section.bg-soft { background: var(--bg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  line-height: 1.2;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79,70,229,.4); color:#fff; }
.btn-outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-white { background: #fff; color: var(--indigo); }
.btn-white:hover { background: var(--purple-light); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Section headers */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.sec-head .eyebrow {
  display: inline-block;
  background: var(--grad-soft);
  color: var(--indigo);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.sec-head p { max-width: 560px; margin: 0 auto; }

/* Top bar */
.topbar { background: var(--ink); color: #cdd0ff; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #cdd0ff; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }

/* Header / Navbar */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(30,27,75,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
.brand-name { line-height: 1.15; }
.brand-name strong { font-size: 1.02rem; color: var(--ink); display: block; }
.brand-name span { font-size: .72rem; color: var(--body); }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 9px 13px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.nav-menu a:hover, .nav-menu a.active { background: var(--grad-soft); color: var(--indigo); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-menu-auth { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,.1), transparent 45%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 80px 20px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.5px; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.06rem; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-meta { display: flex; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-size: 1.5rem; color: #fff; }
.hero-meta div span { font-size: .82rem; color: rgba(255,255,255,.85); }
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 26px;
  color: #fff;
}
.hero-card h3 { color: #fff; margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.25); font-size: .92rem; }
.hero-card li:last-child { border: 0; }

/* Slider / Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-viewport {
  position: relative;
  min-height: 480px;
}
.slide {
  position: absolute;
  inset: 0;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
  z-index: 1;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.slide .container { position: relative; z-index: 2; }
.slide-content { max-width: 680px; padding: 40px 0; }
.slide-content h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.5px; }
.slide-content p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 560px; margin: 16px 0 26px; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(30,27,75,.45);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.carousel-arrow:hover { background: rgba(79,70,229,.9); border-color: rgba(255,255,255,.8); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dot.is-active { background: #fff; transform: scale(1.15); }

/* Stats strip */
.stats-strip { background: var(--ink); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .num { font-size: 2.3rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats-grid .lbl { font-size: .9rem; color: #b6b9e8; }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { height: 190px; overflow: hidden; background: var(--grad-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.15rem; }
.card-body .tag {
  display: inline-block;
  background: var(--grad-soft);
  color: var(--indigo);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-footer { padding: 0 22px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Marquee */
.marquee-wrap { background: var(--ink); color: #fff; overflow: hidden; padding: 12px 0; }
.marquee { white-space: nowrap; display: inline-block; animation: marquee 30s linear infinite; }
.marquee span { margin: 0 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Panels / boxes */
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 26px; }
.panel h3 { margin-top: 0; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: 0 0 48px; height: 48px;
  background: var(--grad-soft);
  color: var(--indigo);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 50px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 22px; }

/* Page banner */
.page-banner {
  background: var(--grad);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 45%); }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); position: relative; }
.page-banner .crumb { position: relative; color: rgba(255,255,255,.85); font-size: .9rem; }

/* Forms */
.form-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: .88rem; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  transition: border .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.form-select { appearance: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.field-error { color: #dc2626; font-size: .8rem; margin-top: 4px; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; font-size: .92rem; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Footer */
.site-footer { background: var(--ink); color: #b6b9e8; padding: 60px 0 0; font-size: .92rem; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
.site-footer a { color: #b6b9e8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; text-align: center; color: #8f93c9; font-size: .82rem; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--ink); color: #fff; font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f5f3ff; }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-indigo { background: var(--grad-soft); color: var(--indigo); }

/* Misc */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; } .mb-4 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-indigo { color: var(--indigo); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.small { font-size: .85rem; }
.muted { color: var(--body); }

/* Exam / auth cards */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--grad-soft); }
.auth-card { width: 100%; max-width: 430px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 40px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { height: 56px; margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; padding: 50px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: 0 18px 30px rgba(30,27,75,.12);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li.nav-menu-auth {
    display: block;
    margin-top: 6px;
  }
  .nav-menu li.nav-menu-auth a { text-align: center; padding: 12px; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .marquee { animation-duration: 60s; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tb-extra { display: none; }
  .carousel-viewport, .slide { min-height: 420px; }
  .slide-content { padding: 30px 0; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
}
/* ============ Admin Panel ============ */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 80vh; }
.admin-sidebar {
  background: var(--ink);
  color: #c7cbea;
  padding: 22px 14px;
  font-size: .88rem;
}
.admin-sidebar h4 { color: #8b93c9; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; margin: 18px 0 8px; padding: 0 10px; }
.admin-sidebar a { display: block; padding: 9px 10px; border-radius: var(--radius-sm); color: #c7cbea; margin-bottom: 2px; }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-sidebar a.active { background: var(--grad); color: #fff; font-weight: 600; }
.admin-main { background: #f4f5fb; padding: 24px; min-width: 0; }
.admin-main .panel { margin-bottom: 22px; }

.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: #f8f9fd; color: var(--body); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl tr:hover td { background: #fafbff; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-indigo { background: #e0e7ff; color: #4338ca; }
.badge-gray { background: #e5e7eb; color: #4b5563; }

.admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tools h1 { font-size: 1.5rem; margin: 0; }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form .form-control { width: auto; min-width: 240px; padding: 9px 14px; }

.pagination-info { font-size: .82rem; color: var(--body); }

.pagination-compact { display: flex; justify-content: flex-end; padding-top: 14px; }
.pagination-compact ul { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.pagination-compact li a,
.pagination-compact li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: .85rem;
  line-height: 1;
  text-decoration: none;
}
.pagination-compact li a:hover { background: var(--grad-soft); border-color: var(--indigo); }
.pagination-compact li.active span { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.pagination-compact li.disabled span { opacity: .45; cursor: not-allowed; }

.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--grad-soft); display: inline-block; }
.avatar-lg { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: var(--grad-soft); }
.thumb-preview img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; background: #eee; }
.img-preview { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; background: #eee; }

.stat-card { background: var(--grad); color: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 10px 24px rgba(79,70,229,.28); }
.stat-card h3 { color: #fff; font-size: 1.9rem; margin: 6px 0 0; }
.stat-card p { margin: 0; font-size: .82rem; opacity: .85; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.detail-grid .d-item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 8px 0; }
.detail-grid .d-item dt { color: var(--body); font-size: .82rem; }
.detail-grid .d-item dd { margin: 0; font-weight: 600; font-size: .88rem; text-align: right; }

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-main { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
}
