/* Jaheda Khatun Girls School & College — refined institutional UI */
:root {
  --bg: #ffffff;
  --bg2: #f4fbf9;
  --bg3: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line2: rgba(15, 23, 42, 0.12);
  --teal: #0f766e;
  --teal2: #14b8a6;
  --teal-soft: #ecfdf5;
  --navy: #123047;
  --gold: #b45309;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }

/* Topbar */
.topbar {
  background: linear-gradient(90deg, #115e59, #0f766e 55%, #0e7490);
  color: #ecfeff;
  font-size: 0.9rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 0;
}
.top-left, .top-right { display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem; align-items: center; }
.topbar a {
  background: rgba(255,255,255,0.16);
  padding: 0.28rem 0.75rem; border-radius: 999px; font-weight: 700;
}
.topbar a:hover { background: rgba(255,255,255,0.28); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: .2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.nav-inner {
  min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
  color: #fff; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.03em;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
  font-size: 0.92rem; letter-spacing: -0.02em; max-width: 260px; line-height: 1.2;
}
.logo-text small { color: var(--muted); font-size: 0.75rem; font-weight: 600; margin-top: 0.15rem; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; flex-wrap: wrap; }
.nav-links a {
  padding: 0.48rem 0.62rem; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 0.9rem;
}
.nav-links a:hover { color: var(--teal); background: var(--teal-soft); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  justify-content: flex-end;
}
/* One neat bar: Teacher | Principal | Login */
.portal-bar {
  display: inline-flex;
  align-items: stretch;
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.06);
}
.portal-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0f766e;
  font-weight: 750;
  font-size: 0.86rem;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
  border-right: 1px solid rgba(15, 118, 110, 0.14);
  transition: background .15s ease, color .15s ease;
}
.portal-btn:last-child { border-right: 0; }
.portal-btn:hover {
  background: rgba(20, 184, 166, 0.14);
  color: #115e59;
}
.btn-signup {
  padding: 0.58rem 1rem !important;
  font-size: 0.9rem !important;
  border-radius: 999px !important;
}
@media (max-width: 1180px) {
  .nav-links a { padding: 0.42rem 0.48rem; font-size: 0.84rem; }
  .logo-text strong { max-width: 170px; font-size: 0.8rem; }
  .portal-btn { padding: 0.5rem 0.72rem; font-size: 0.8rem; }
}
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2);
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border-radius: 12px; padding: 0.72rem 1.15rem; font-weight: 700; font-size: 0.94rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff; box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-secondary {
  background: #fff; border-color: var(--line2); color: var(--ink);
  box-shadow: 0 8px 20px rgba(15,23,42,0.05);
}
.btn-secondary:hover { border-color: rgba(15,118,110,.35); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg3); }
.btn-outline {
  background: #fff; border-color: var(--line2); color: var(--ink);
}
.btn-outline:hover { border-color: rgba(15,118,110,.4); color: var(--teal); background: var(--teal-soft); }
.btn-light {
  background: #fff; color: var(--teal); border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.btn-lg { padding: 0.92rem 1.35rem; border-radius: 14px; }
.full { width: 100%; }
.text-link { color: var(--teal); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative; padding: 4.5rem 0 3.8rem; overflow: hidden;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(45, 212, 191, 0.2), transparent 60%),
    radial-gradient(700px 360px at 95% 10%, rgba(14, 116, 144, 0.1), transparent 55%),
    linear-gradient(180deg, #ecfdf5 0%, #ffffff 68%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; border: 1px solid var(--line2); color: var(--teal);
  padding: 0.42rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04); margin-bottom: 1.15rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal2);
  box-shadow: 0 0 0 0 rgba(20,184,166,.45); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #0b1b2b;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(100deg, #0f766e 0%, #0d9488 40%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.75rem;
}
.hero-stats div {
  background: rgba(255,255,255,0.85); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.85rem 0.6rem; text-align: center;
}
.hero-stats strong { display: block; font-size: 1.35rem; color: var(--teal); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.hero-visual { position: relative; min-height: 420px; }
.hero-photo {
  border-radius: 28px; overflow: hidden; height: 420px;
  box-shadow: var(--shadow); border: 5px solid #fff; position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(15,23,42,0.62); color: #fff; backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.hero-float {
  position: absolute; right: -8px; bottom: 28px; width: min(260px, 80%);
  padding: 1.1rem 1.15rem; border-radius: 18px;
}
.card-glass {
  background: rgba(255,255,255,0.94); border: 1px solid var(--line2);
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.hero-float strong { display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.hero-float p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.65rem; }

/* Trust */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem;
  padding: 1rem 0; color: #64748b; font-weight: 700; font-size: 0.92rem;
}
.trust-row span { position: relative; }
.trust-row span:not(:last-child)::after {
  content: "•"; margin-left: 1.5rem; color: #cbd5e1;
}

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: linear-gradient(180deg, #f8fafc, #f0fdfa 45%, #f8fafc); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; color: var(--teal); font-weight: 800; font-size: 0.84rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.55rem;
}
.eyebrow.light { color: #99f6e4; }
.section-head h2, .admission-grid h2, .contact-grid h2, .about-grid h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.7rem;
}
.sub, .text { color: var(--muted); font-size: 1.02rem; }
.text { margin-bottom: 1.25rem; max-width: 36rem; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: center;
}
.about-visual { position: relative; min-height: 400px; }
.about-img {
  border-radius: 24px; position: absolute; box-shadow: var(--shadow);
  border: 4px solid #fff; overflow: hidden; background: #e2e8f0;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img.main { inset: 0 18% 12% 0; }
.about-img.side { width: 48%; height: 48%; right: 0; bottom: 0; }
.about-float {
  position: absolute; left: 8%; bottom: 8%;
  background: #fff; border-radius: 16px; padding: 0.9rem 1rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-width: 120px;
}
.about-float strong { font-size: 1.6rem; color: var(--teal); font-family: var(--display); }
.about-float span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.about-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 1.5rem;
}
.about-points div {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
}
.about-points h4 { margin-bottom: 0.35rem; }
.about-points p { color: var(--muted); font-size: 0.92rem; }

/* Cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: #fff; border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: 0 10px 28px rgba(15,23,42,0.04); transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(15,118,110,0.25); }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.card-icon.c1 { background: #ecfdf5; }
.card-icon.c2 { background: #e0f2fe; }
.card-icon.c3 { background: #fef3c7; }
.card-icon.c4 { background: #ede9fe; }
.card h3 { margin-bottom: 0.45rem; font-size: 1.12rem; }
.card > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.85rem; }
.card ul { list-style: none; display: grid; gap: 0.35rem; }
.card li {
  color: #334155; font-size: 0.9rem; font-weight: 600;
  padding-left: 1rem; position: relative;
}
.card li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal2);
  position: absolute; left: 0; top: 0.55rem;
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 1.2rem;
  transition: .2s;
}
.feature:hover { border-color: rgba(15,118,110,0.3); box-shadow: var(--shadow); }
.feature span {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #f0fdfa; font-size: 1.3rem; flex-shrink: 0;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Teachers */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.teacher {
  background: #fff; border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 1.35rem; text-align: center; transition: .2s;
}
.teacher:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 0.9rem;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem;
  border: 4px solid #fff; box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}
.a1 { background: linear-gradient(135deg, #0f766e, #115e59); }
.a2 { background: linear-gradient(135deg, #0891b2, #0e7490); }
.a3 { background: linear-gradient(135deg, #d97706, #b45309); }
.a4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.teacher h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.role { color: var(--teal); font-weight: 700; font-size: 0.88rem; margin-bottom: 0.45rem; }
.teacher p:last-child { color: var(--muted); font-size: 0.9rem; }

/* Notices */
.notice-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: start;
}
.notice-list { display: grid; gap: 0.85rem; }
.notice {
  background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--teal2); transition: .2s;
}
.notice:hover { box-shadow: var(--shadow); }
.notice time { color: var(--teal); font-size: 0.84rem; font-weight: 700; }
.notice h3 { margin: 0.3rem 0; font-size: 1.05rem; }
.notice p { color: var(--muted); font-size: 0.94rem; }
.event-card {
  background: linear-gradient(160deg, #115e59, #0f766e 45%, #0e7490);
  color: #ecfeff; border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow);
}
.event-card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; color: #fff; font-family: var(--display); }
.event-date { font-weight: 700; margin-bottom: 0.7rem; color: #ccfbf1; }
.event-card > p { color: rgba(236,254,255,0.9); margin-bottom: 1rem; }
.event-meta {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.2rem; font-weight: 600; font-size: 0.92rem;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.g {
  position: relative; min-height: 170px; border-radius: 18px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1rem;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08); background: #e2e8f0;
}
.g img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s ease;
}
.g:hover img { transform: scale(1.06); }
.g::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.55), transparent 55%);
}
.g span {
  position: relative; z-index: 1;
  background: rgba(15,23,42,0.55); color: #fff; font-weight: 700;
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.88rem; backdrop-filter: blur(6px);
}
.g1 { min-height: 220px; grid-row: span 2; }
.g6 { min-height: 200px; }

/* Forms */
.admission-grid, .contact-grid, .auth-grid, .result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; align-items: start;
}
.admit-steps { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.admit-steps div {
  display: flex; align-items: center; gap: 0.8rem;
  background: #f0fdfa; border: 1px solid rgba(15,118,110,0.12);
  border-radius: 14px; padding: 0.85rem 1rem; font-weight: 700;
}
.admit-steps strong {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; flex-shrink: 0;
}
.form-card {
  background: #fff; border: 1px solid var(--line2); border-radius: 22px;
  padding: 1.45rem; box-shadow: var(--shadow); display: grid; gap: 0.85rem;
}
.form-card h3 { font-size: 1.25rem; }
.muted { color: var(--muted); margin-top: -0.2rem; }
.form-card label {
  display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 700; color: #334155;
}
.form-card input, .form-card select, .form-card textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 12px;
  padding: 0.78rem 0.9rem; background: #fff; outline: none;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: rgba(15,118,110,0.5);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-ok { color: var(--teal); font-weight: 700; }
.routine-note {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}
.routine-off {
  display: none;
  margin: 0.4rem 0 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 750;
}
.routine-off[hidden] { display: none !important; }
.routine-off:not([hidden]) { display: block; }
.form-badge {
  display: inline-block; background: #ecfdf5; color: #0f766e;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28rem 0.65rem; border-radius: 999px; width: fit-content;
}
.form-badge.signup { background: #e0f2fe; color: #0369a1; }
.switch-auth { color: #64748b; font-size: 0.92rem; font-weight: 600; }
.switch-auth a { color: #0f766e; font-weight: 800; }
.switch-auth a:hover { text-decoration: underline; }

.contact-list { display: grid; gap: 1rem; margin-top: 1.25rem; }
.contact-list div {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
}
.contact-list strong { display: block; margin-bottom: 0.25rem; }
.contact-list p { color: var(--muted); }

/* Result */
.result-card { border-top: 4px solid #14b8a6; }
.result-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0.5rem 0 1rem;
}
.result-stats.result-stats-4 { grid-template-columns: repeat(4, 1fr); }
.result-stats div {
  background: #f0fdfa; border: 1px solid rgba(15,118,110,0.12);
  border-radius: 14px; padding: 0.85rem 0.5rem; text-align: center;
}
.result-stats strong { display: block; font-size: 1.4rem; color: #0f766e; font-weight: 800; }
.result-stats span { color: #64748b; font-size: 0.82rem; font-weight: 700; }

/* Separate dynamic grade cards */
.result-card-live {
  display: block !important;
}
.grade-picker {
  margin: 0.15rem 0 0.95rem;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.grade-picker-side {
  margin: 0.85rem 0 1rem;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
  border-color: rgba(15, 118, 110, 0.14);
}
.grade-boxes-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grade-boxes-side .grade-box:last-child {
  grid-column: 1 / -1;
  max-width: 50%;
}
.grade-live-panel {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(165deg, #ecfdf5 0%, #ffffff 55%);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
  animation: gradePop .25s ease;
}
.grade-live-panel[hidden] { display: none !important; }
@keyframes gradePop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.grade-live-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}
.glm-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d9488;
}
#liveGradeBig {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f766e;
  line-height: 1;
}
.grade-live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.grade-live-stats div {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  display: grid;
  gap: 0.25rem;
}
.grade-live-stats span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.grade-live-stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.grade-live-note {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f766e;
}
.grade-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.grade-picker-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.grade-picker-hint {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}
.grade-boxes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.grade-box {
  appearance: none;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 16px;
  padding: 0.8rem 0.7rem;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
  display: grid;
  gap: 0.45rem;
  min-height: 108px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.grade-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #cbd5e1;
  transition: background .18s ease;
}
.grade-box:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.1);
}
.grade-box.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: linear-gradient(165deg, #ecfdf5 0%, #ffffff 55%);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), 0 14px 28px rgba(15, 118, 110, 0.12);
}
.grade-box.active::before {
  background: linear-gradient(180deg, #14b8a6, #0f766e);
}
.gb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.grade-box .gb-grade {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gb-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: transparent;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: .18s ease;
}
.grade-box.active .gb-check {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  border-color: transparent;
  box-shadow: 0 6px 12px rgba(15, 118, 110, 0.25);
}
.gb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  background: #f8fafc;
}
.grade-box.active .gb-row {
  background: rgba(240, 253, 250, 0.9);
}
.gb-row strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.grade-selected {
  margin-top: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 700;
}
.grade-selected strong {
  font-weight: 800;
  color: #115e59;
}
@media (max-width: 980px) {
  .grade-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grade-boxes-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-boxes-side .grade-box:last-child { max-width: none; }
  .result-stats.result-stats-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grade-boxes,
  .grade-boxes-side { grid-template-columns: 1fr 1fr; }
  .grade-picker-head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}
@media (max-width: 420px) {
  .grade-boxes,
  .grade-boxes-side { grid-template-columns: 1fr; }
}
.result-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; font-size: 0.95rem; }
.result-table th, .result-table td {
  border-bottom: 1px solid rgba(15,23,42,0.08); padding: 0.65rem 0.4rem; text-align: left;
}
.result-table th { color: #0f766e; font-size: 0.85rem; font-weight: 800; }

/* Footer */
.footer {
  background: #0b1f1c; color: #cbd5e1; padding: 3rem 0 1.25rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem;
}
.footer .logo-text strong { color: #fff; }
.footer .logo-text small { color: #99f6e4; }
.footer-about { margin-top: 0.9rem; color: #94a3b8; max-width: 300px; }
.footer h4 { color: #fff; margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer a { display: block; color: #94a3b8; padding: 0.28rem 0; font-weight: 600; }
.footer a:hover { color: #5eead4; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(148,163,184,0.15); padding-top: 1.1rem;
  color: #64748b; font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .cards-4, .feature-grid, .teachers,
  .notice-grid, .admission-grid, .contact-grid, .auth-grid, .result-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards-4, .teachers { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g1 { grid-row: auto; min-height: 180px; }
  .logo-text strong { max-width: 180px; font-size: 0.84rem; }
  .hero-float { right: 0; }
}
@media (max-width: 780px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 1rem; right: 1rem;
    background: #fff; border: 1px solid var(--line2); border-radius: 16px;
    padding: 0.7rem; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); z-index: 60;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .nav-inner { position: relative; }
  .hero-grid, .about-grid, .cards-4, .feature-grid, .teachers,
  .notice-grid, .admission-grid, .contact-grid, .auth-grid, .result-grid, .footer-grid,
  .form-row, .gallery, .about-points {
    grid-template-columns: 1fr;
  }
  .about-visual, .hero-visual, .hero-photo { min-height: 280px; height: auto; }
  .hero-photo { height: 300px; }
  .hero-float { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 1rem; }
  .top-left span:nth-child(2) { display: none; }
  .nav-actions { gap: 0.4rem; }
  .portal-bar { border-radius: 12px; }
  .portal-btn { padding: 0.48rem 0.55rem; font-size: 0.75rem; }
  .btn-signup { padding: 0.5rem 0.75rem !important; font-size: 0.8rem !important; }
}
