/* =========================================================
   ONIRBAN SMART ACADEMY
   style.css
   Mobile-first responsive design
========================================================= */

:root {
  --navy: #0b2d63;
  --navy-dark: #061d43;
  --navy-soft: #16458d;
  --blue: #1769d2;
  --sky: #eaf3ff;
  --white: #ffffff;
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #18243a;
  --muted: #6b7890;
  --border: #dfe7f1;
  --success: #1b9b65;
  --warning: #e89a19;
  --danger: #d84b4b;
  --shadow: 0 10px 35px rgba(11, 45, 99, .09);
  --shadow-sm: 0 5px 18px rgba(11, 45, 99, .07);
  --radius: 16px;
  --radius-sm: 11px;
  --container: 1180px;
  --header-height: 68px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: "Hind Siliguri", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

.container {
  width: min(calc(100% - 28px), var(--container));
  margin-inline: auto;
}

/* =========================================================
   LOADER
========================================================= */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  transition: opacity .15s ease, visibility .15s ease;
  text-align: center;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 36px;
  font-weight: 800;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}

.loader-school-name {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.loader-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.loader-loading .loader-spinner {
  width: 22px;
  height: 22px;
  margin: 0;
}

.loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dce7f5;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}



@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.notice-quick-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
  font-size: 18px;
  transition: var(--transition);
}

.notice-quick-btn:hover,
.notice-quick-btn.active {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.notice-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e53935;
  border: 2px solid #fff;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 2px 8px rgba(11, 45, 99, .08);
}

.brand-logo span {
  font-size: 21px;
  font-weight: 800;
}

.brand-text {
  min-width: 0;
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.brand-text span {
  color: #384a65;
  font-size: 14px;
  font-weight: 800;
  margin-top: 3px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 8px 9px;
  border-radius: 8px;
  color: #35435b;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--navy);
  background: var(--sky);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
  font-size: 19px;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  display: grid;
  padding: 10px 14px 15px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(11, 45, 99, .1);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .2s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 9px;
  color: #34425a;
  font-weight: 600;
  border-bottom: 1px solid #eef2f7;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a i {
  width: 22px;
  color: var(--navy);
}

/* =========================================================
   PAGE SYSTEM
========================================================= */

.page-section {
  display: none;
  min-height: 55vh;
}

.page-section.active-page {
  display: block;
  animation: pageIn .22s ease both;
}

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

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #eef5ff;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #eef5ff;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transform: translateX(0);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #dfeaf8;
  color: #0b2f63;
  font-weight: 700;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 75px 0 100px;
  color: #fff;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  pointer-events: auto;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 7px 18px rgba(11, 45, 99, .18);
}

.btn-primary:hover {
  background: var(--navy-soft);
}

.btn-light {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

.btn-full {
  width: 100%;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   STATS
========================================================= */

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

.stats-overlap {
  position: relative;
  z-index: 4;
  margin-top: -46px;
}

.stat-card {
  min-height: 118px;
  padding: 16px 10px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stat-card-link {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: #a9c9ef;
  box-shadow: 0 14px 32px rgba(12,48,94,.14);
  outline: none;
}

.stat-card-link:active {
  transform: translateY(-1px) scale(.99);
}

.stat-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
}

.stat-card strong {
  color: var(--navy);
  font-size: 23px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.light-stat {
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   SECTIONS
========================================================= */

.content-section {
  padding: 52px 0;
}

.soft-bg {
  background: #edf4fc;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading.centered {
  display: block;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 30px;
}

.section-heading h2,
.form-card-heading h2,
.founder-content h2,
.contact-info-card h2 {
  color: var(--navy-dark);
  font-size: clamp(23px, 5vw, 34px);
  line-height: 1.25;
  margin-top: 4px;
}

.section-heading p {
  color: var(--muted);
  margin-top: 6px;
}

.section-kicker {
  text-transform: none;
}

.light-kicker {
  color: #d8e8ff;
}

/* =========================================================
   BRANCH CARDS
========================================================= */

.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.branch-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.branch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.branch-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbe7f5;
}

.branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.branch-card:hover .branch-image img {
  transform: scale(1.04);
}

.branch-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(11,45,99,.9);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.branch-body {
  padding: 14px;
}

.branch-body h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.branch-body p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.branch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meta-chip {
  padding: 4px 8px;
  color: #40516b;
  background: #f0f5fb;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.branch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
}

.branch-footer button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
}

/* =========================================================
   RESULT PROMO CARD
========================================================= */

.result-promo-section {
  padding-top: 18px;
  padding-bottom: 52px;
  background: #f7faff;
}

.result-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #d9e7f7;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
  box-shadow: 0 12px 32px rgba(11,45,99,.10);
}

.result-promo-card::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(23,105,210,.08);
}

.result-promo-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 62px;
  color: #fff;
  background: linear-gradient(135deg, #0b3b82, #1769d2);
  border-radius: 17px;
  font-size: 27px;
  box-shadow: 0 10px 20px rgba(11,59,130,.22);
}

.result-promo-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.result-promo-content h2 {
  margin: 3px 0 4px;
  color: var(--navy-dark);
  font-size: clamp(23px, 5.5vw, 31px);
  line-height: 1.2;
}

.result-promo-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.result-promo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.result-promo-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #24466f;
  background: #fff;
  border: 1px solid #dbe8f6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.result-promo-points i {
  color: #1769d2;
}

.result-promo-btn {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 9px 18px rgba(11,59,130,.20);
}

.result-promo-btn:hover {
  transform: translateY(-2px);
}

@media (min-width: 700px) {
  .result-promo-card {
    grid-template-columns: auto 1fr auto;
    padding: 28px;
    gap: 22px;
  }

  .result-promo-btn {
    grid-column: auto;
    width: auto;
    min-width: 180px;
  }
}

/* =========================================================
   FEATURES
========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-grid.three-col {
  margin-bottom: 35px;
}

.feature-card {
  padding: 19px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--navy);
  background: var(--sky);
  border-radius: 11px;
  font-size: 19px;
}

.feature-card h3 {
  color: var(--navy-dark);
  font-size: 17px;
}

.feature-card p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 14px;
}

/* =========================================================
   FOUNDER
========================================================= */

.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.founder-image {
  min-height: 260px;
  background: #dbe7f5;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-content {
  padding: 25px;
}

.founder-content h3 {
  color: var(--navy);
  font-size: 23px;
  margin: 5px 0 10px;
}

.founder-content p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
  padding: 15px 0 55px;
}

.cta-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-soft));
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  max-width: 680px;
  margin-top: 4px;
  font-size: clamp(23px, 5vw, 35px);
  line-height: 1.25;
}

.cta-card p {
  max-width: 680px;
  color: #d9e7fb;
  margin-top: 8px;
}

.cta-card .btn {
  justify-self: start;
}

/* =========================================================
   INTERNAL PAGE HERO
========================================================= */

.page-hero {
  padding: 42px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6,29,67,.98), rgba(22,69,141,.92)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1200&q=70")
    center / cover;
}

.page-hero h1 {
  font-size: clamp(28px, 7vw, 45px);
  line-height: 1.2;
  margin-top: 4px;
}

.page-hero p {
  max-width: 700px;
  color: #dce9fb;
  margin-top: 5px;
}

/* =========================================================
   ABOUT
========================================================= */

.about-grid {
  display: grid;
  gap: 25px;
  align-items: center;
  margin-bottom: 42px;
}

.about-grid h2 {
  color: var(--navy-dark);
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.25;
  margin: 5px 0 12px;
}

.about-grid p {
  color: var(--muted);
  margin-top: 8px;
}

.about-image-card {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.about-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   TOOLBAR / FILTER
========================================================= */

.toolbar,
.filter-row {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.search-box i {
  color: var(--navy);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.select-control {
  width: 100%;
  min-height: 47px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--text);
}

.filter-row .search-box {
  margin: 0;
}

.notice-filter,
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.filter-chip {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #4d5d75;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

/* =========================================================
   BRANCH DETAIL
========================================================= */

.detail-cover {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #cbd9e9;
}

.detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,22,51,.88), rgba(4,22,51,.08));
}

.detail-cover-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 28px), var(--container));
  margin: 0 auto;
  padding: 55px 0 32px;
  color: #fff;
}

.detail-cover-content h1 {
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1.2;
}

.detail-cover-content p {
  color: #dbe8fa;
}

.detail-content {
  padding: 30px 0 55px;
}

.detail-grid {
  display: grid;
  gap: 15px;
}

.info-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 10px;
}

.info-list {
  display: grid;
  gap: 9px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #dfe6ef;
  font-size: 13px;
}

.info-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list span:first-child {
  color: var(--muted);
}

.info-list strong {
  text-align: right;
  color: var(--text);
}

/* =========================================================
   TEACHERS
========================================================= */

.teacher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.teacher-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.teacher-photo {
  width: 72px;
  height: 84px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 10px;
  background: #dce7f4;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card h3 {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.3;
}

.teacher-card p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.teacher-tag {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  color: var(--navy);
  background: var(--sky);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   STUDENTS / TABLE
========================================================= */

.student-table-wrap,
.branch-class-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}

.data-table th {
  color: var(--navy);
  background: #f2f6fb;
  font-weight: 800;
}

.data-table td {
  color: #4d5b70;
}

.data-table tbody tr:hover {
  background: #f9fbfd;
}

.privacy-note {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: #eef7f2;
  border: 1px solid #d7ecdf;
  border-radius: 12px;
}

.privacy-note > i {
  color: var(--success);
  margin-top: 4px;
}

.privacy-note strong {
  color: #1a7650;
}

.privacy-note p {
  color: #507362;
  font-size: 13px;
}

/* =========================================================
   ACADEMICS
========================================================= */

.academic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.academic-card {
  min-height: 125px;
  padding: 15px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.academic-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--navy);
  background: var(--sky);
  border-radius: 12px;
  font-size: 19px;
}

.academic-card h3 {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.academic-card p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

/* =========================================================
   ADMISSION
========================================================= */

.admission-intro-image{
  margin:0 0 24px;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.admission-intro-image img{
  display:block;
  width:100%;
  height:260px;
  object-fit:cover;
}
@media (max-width:700px){
  .admission-intro-image{margin-bottom:18px;border-radius:18px}
  .admission-intro-image img{height:190px}
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 25px;
}

.step-card {
  position: relative;
  padding: 17px 17px 17px 60px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.step-card > span {
  position: absolute;
  left: 17px;
  top: 18px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.step-card h3 {
  color: var(--navy);
  font-size: 16px;
}

.step-card p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.form-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.form-card-heading {
  margin-bottom: 20px;
}

.form-card-heading p {
  color: var(--muted);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 5px;
}

.form-group label {
  color: #34445c;
  font-size: 13px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  padding: 11px 12px;
  background: #fbfcfe;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input,
.form-group select {
  min-height: 45px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #83a9dc;
  box-shadow: 0 0 0 3px rgba(23, 105, 210, .08);
}

.form-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.form-message.show {
  display: block;
}

.form-message.success {
  color: #176a48;
  background: #eaf7f0;
  border: 1px solid #cfe9db;
}

.form-message.error {
  color: #9a3131;
  background: #fff0f0;
  border: 1px solid #f2d0d0;
}

/* =========================================================
   NOTICES
========================================================= */

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.notice-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 58px;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  text-align: center;
}

.notice-date strong {
  font-size: 19px;
  line-height: 1;
}

.notice-date span {
  font-size: 9px;
}

.notice-card h3 {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.notice-card p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.notice-label {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  color: var(--navy);
  background: var(--sky);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #dfe8f3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 9px 8px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
  display: grid;
  gap: 15px;
}

.contact-info-card {
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-dark), var(--navy-soft));
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.contact-info-card h2 {
  color: #fff;
  margin-bottom: 17px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.11);
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  color: #b8cce9;
  font-size: 10px;
}

.contact-item strong {
  color: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.map-placeholder {
  min-height: 270px;
  display: grid;
  place-items: center;
  margin-top: 15px;
  text-align: center;
  color: var(--navy);
  background:
    linear-gradient(rgba(234,243,255,.86), rgba(234,243,255,.86)),
    repeating-linear-gradient(45deg, #d6e4f5 0 10px, #edf4fc 10px 20px);
  border: 1px solid var(--border);
  border-radius: 17px;
}

.map-placeholder i {
  font-size: 40px;
}

.map-placeholder h3 {
  margin-top: 8px;
}

.map-placeholder p {
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   LEGAL
========================================================= */

.legal-content {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  color: var(--navy);
  font-size: 19px;
  margin-top: 22px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
  margin-top: 6px;
}

/* =========================================================
   MODAL
========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 16, 37, .68);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--navy);
  background: var(--sky);
}

.modal-content-image {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.modal-dialog h2 {
  color: var(--navy);
  line-height: 1.25;
}

.modal-dialog p {
  color: var(--muted);
  margin-top: 7px;
}

/* =========================================================
   TOAST
========================================================= */

.toast-container {
  position: fixed;
  z-index: 11000;
  left: 14px;
  right: 14px;
  bottom: 15px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 460px;
  margin-left: auto;
  padding: 12px 14px;
  color: #fff;
  background: var(--navy-dark);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  font-size: 13px;
  animation: toastIn .2s ease both;
}

.toast.success {
  background: #176c4a;
}

.toast.error {
  background: #9d3333;
}

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

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  color: #c8d6e9;
  background: var(--navy-dark);
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand-inner .brand-text strong {
  color: #fff;
}

.footer-brand-inner .brand-text span {
  color: #b9cce5;
}

.footer-brand-inner .brand-logo {
  color: #fff;
  border-color: #b9cce5;
  background: transparent;
}

.footer-brand > p {
  max-width: 380px;
  margin-top: 13px;
  color: #aebfd7;
  font-size: 13px;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-links h3,
.footer-contact h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 5px;
}

.footer-links a,
.footer-contact a {
  color: #adbed5;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact a i {
  width: 19px;
  color: #d9e7fa;
}

.social-links {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}

.social-links a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom .container {
  padding: 14px 0;
  text-align: center;
}

.footer-bottom p {
  color: #94a9c5;
  font-size: 11px;
}

/* =========================================================
   EMPTY / UTILITY
========================================================= */

.empty-state {
  padding: 35px 18px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.empty-state i {
  color: #9db0c9;
  font-size: 28px;
  margin-bottom: 8px;
}

.loading-state {
  padding: 25px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* =========================================================
   RESPONSIVE — 480+
========================================================= */

@media (min-width: 480px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .academic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* =========================================================
   RESPONSIVE — 700+
========================================================= */

@media (min-width: 700px) {
  :root {
    --header-height: 74px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-text strong {
    font-size: 22px;
  }

  .brand-text span {
    font-size: 15px;
  }

  .hero-section {
    min-height: 620px;
  }

  .hero-content {
    padding: 100px 0 145px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .content-section {
    padding: 70px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .founder-card {
    grid-template-columns: 320px 1fr;
  }

  .founder-image {
    min-height: 320px;
  }

  .cta-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 38px;
  }

  .cta-card .btn {
    justify-self: end;
  }

  .filter-row {
    grid-template-columns: 1fr 220px;
  }

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

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-card {
    padding: 28px;
  }

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

  .form-group.full-width {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
  }

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

  .footer-brand {
    padding-right: 20px;
  }
}

/* =========================================================
   RESPONSIVE — 960+
========================================================= */

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .branch-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .detail-grid {
    grid-template-columns: 1.35fr .65fr;
    align-items: start;
  }

  .teacher-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .academic-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-hero {
    padding: 60px 0;
  }
}

/* =========================================================
   RESPONSIVE — 1200+
========================================================= */

@media (min-width: 1200px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 165px;
  }

  .branch-grid {
    gap: 18px;
  }

  .feature-grid {
    gap: 17px;
  }

  .gallery-grid {
    gap: 12px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 3px solid rgba(23, 105, 210, .35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   LANGUAGE SWITCHER + BACK HOME BUTTON
   ========================================================= */
.header-language{display:flex;align-items:center;gap:2px;background:#eef4ff;border-radius:12px;padding:3px}
.header-language button,.language-buttons button{border:0;background:transparent;color:#0b2d63;font-weight:800;border-radius:9px;padding:7px 9px;font-size:11px;cursor:pointer}
.header-language button.active,.language-buttons button.active{background:#0b2d63;color:#fff}
.language-menu-box{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:7px;background:#eef4ff;border-radius:14px;color:#0b2d63;font-weight:700}
.language-menu-box>span{font-size:13px;display:flex;align-items:center;gap:8px}
.language-buttons{display:flex;gap:3px;background:#fff;border-radius:10px;padding:3px}
.language-buttons button{font-size:12px;padding:6px 9px}
.back-home-wrap{padding-top:14px;padding-bottom:0}
.back-home-btn{border:1px solid #dbe5f2;background:#fff;color:#0b2d63;border-radius:12px;padding:10px 15px;font-weight:800;display:inline-flex;align-items:center;gap:8px;box-shadow:0 5px 18px rgba(11,45,99,.07);cursor:pointer}
.back-home-btn:hover{background:#eef4ff;transform:translateY(-1px)}
.english-mode{font-family:Inter,system-ui,sans-serif}
.english-mode .back-home-btn{font-family:Inter,system-ui,sans-serif}
@media(max-width:900px){.header-language{display:none}.language-menu-box{display:flex}}
@media(min-width:901px){.language-menu-box{display:none}}

/* =========================================================
   BRANCH CARD MOBILE FIX + ATTRACTIVE VIEW DETAILS BUTTON
   ========================================================= */
.branch-card,
.branch-card * {
  box-sizing: border-box;
}

.branch-card {
  width: 100%;
  min-width: 0;
}

.branch-card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 16px;
  min-width: 0;
  background: #fff;
}

.branch-card-body .section-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 2px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf4ff;
  color: #0b3d82;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.branch-card-body h3 {
  margin: 0;
  color: #0b2d63;
  font-family: "Hind Siliguri", sans-serif;
  font-size: clamp(19px, 5.2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.branch-card-body p {
  margin: 0;
  padding: 7px 10px;
  color: #52627a;
  background: #f7faff;
  border: 1px solid #e2eaf5;
  border-radius: 10px;
  font-family: "Hind Siliguri", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.branch-view-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  padding: 11px 16px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #0b2d63 0%, #1769d2 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(11, 45, 99, .18);
  font-family: "Hind Siliguri", sans-serif;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.branch-view-btn i {
  font-size: 13px;
  transition: transform .2s ease;
}

.branch-view-btn:hover,
.branch-view-btn:active {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 11px 24px rgba(11, 45, 99, .25);
}

.branch-view-btn:hover i,
.branch-view-btn:active i {
  transform: translateX(4px);
}

@media (max-width: 479px) {
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .branch-card-body {
    padding: 15px;
  }

  .branch-card-body h3 {
    font-size: 20px;
  }

  .branch-view-btn {
    min-height: 50px;
    font-size: 17px !important;
  }
}

/* =========================================================
   RESULT SYSTEM
========================================================= */
.result-search-card{max-width:900px;margin:0 auto 22px;padding:22px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.result-results{display:grid;gap:18px}.result-empty{padding:28px 18px;text-align:center;background:#fff;border:1px dashed var(--border);border-radius:var(--radius);color:var(--muted)}.result-empty i{font-size:28px;margin-bottom:8px;color:#9db0c9}
.result-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.result-card-head{padding:20px;color:#fff;background:linear-gradient(135deg,var(--navy),var(--navy-soft))}.result-school{font-size:20px;font-weight:800}.result-exam{margin-top:3px;opacity:.92;font-size:13px}
.result-student-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:16px;background:#f7faff;border-bottom:1px solid var(--border)}.result-student-item small{display:block;color:var(--muted);font-size:10px}.result-student-item strong{display:block;margin-top:2px;color:var(--navy);font-size:13px;overflow-wrap:anywhere}
.result-table-wrap{overflow-x:auto;padding:16px}.result-table{width:100%;min-width:520px;border-collapse:collapse}.result-table th,.result-table td{padding:10px 9px;border-bottom:1px solid var(--border);text-align:left;font-size:12px}.result-table th{color:var(--navy);background:var(--sky);font-weight:800}
.result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px}.result-summary-item{padding:13px 9px;text-align:center;background:#f7faff;border:1px solid var(--border);border-radius:12px}.result-summary-item span{display:block;color:var(--muted);font-size:10px}.result-summary-item strong{display:block;margin-top:2px;color:var(--navy);font-size:18px}
.result-status{display:inline-flex;align-items:center;justify-content:center;margin:0 16px 16px;padding:6px 12px;border-radius:999px;color:#176a48;background:#eaf7f0;border:1px solid #cfe9db;font-size:12px;font-weight:800}.result-status.fail{color:#9a3131;background:#fff0f0;border-color:#f2d0d0}.result-remarks{margin:0 16px 16px;padding:13px;border-radius:12px;background:#f7faff;color:var(--muted);font-size:12px}.result-actions{display:flex;gap:9px;flex-wrap:wrap;padding:0 16px 18px}
@media(max-width:420px){.result-search-card{padding:16px}.result-student-grid{grid-template-columns:1fr}.result-summary{grid-template-columns:1fr}}


/* =========================================================
   MODERN POPUP / MODAL DEFAULTS
========================================================= */
.modal { padding: 16px; }
.modal-backdrop { background: rgba(3, 15, 35, .72); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.modal-dialog { width:min(100%, 720px); max-height:min(88vh,760px); padding:24px; border:1px solid rgba(255,255,255,.7); border-radius:24px; background:rgba(255,255,255,.98); box-shadow:0 28px 80px rgba(2,19,48,.34); animation:popupIn .22s ease-out both; }
.modal-close { width:42px; height:42px; border-radius:50%; background:#edf4ff; box-shadow:0 6px 18px rgba(11,45,99,.10); transition:transform .18s ease, background .18s ease; }
.modal-close:hover { transform:rotate(90deg); background:#dceaff; }
.modal-dialog h2 { font-size:clamp(22px,5vw,32px); margin:8px 0 6px; }
.modal-dialog p { line-height:1.75; }
@keyframes popupIn { from { opacity:0; transform:translateY(18px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:560px){ .modal{padding:10px;} .modal-dialog{padding:18px; border-radius:20px; max-height:90vh;} .modal-close{width:40px;height:40px;} }

/* =========================================================
   MOBILE BOTTOM NAVIGATION — added without changing existing UI
========================================================= */
.mobile-bottom-nav{
  display:none;
}

@media (max-width: 768px){
  body{
    padding-bottom:calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    z-index:9998;
    height:64px;
    display:grid;
    grid-template-columns:1fr 1fr 1.12fr 1fr 1fr;
    align-items:end;
    padding:0 8px 5px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:22px;
    background:rgba(8,35,77,.96);
    box-shadow:0 14px 38px rgba(4,22,52,.28), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }

  .mobile-bottom-item{
    position:relative;
    min-width:0;
    height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#dceaff;
    text-decoration:none !important;
    font-family:"Hind Siliguri",sans-serif;
    font-size:11px;
    font-weight:700;
    line-height:1;
    transition:color .18s ease, transform .18s ease;
  }

  .mobile-bottom-item i{
    font-size:19px;
    line-height:1;
  }

  .mobile-bottom-item.active{
    color:#fff;
  }

  .mobile-bottom-item.active:not(.mobile-bottom-center)::after{
    content:"";
    position:absolute;
    bottom:1px;
    width:20px;
    height:3px;
    border-radius:99px;
    background:#5ca8ff;
    box-shadow:0 0 10px rgba(92,168,255,.55);
  }

  .mobile-bottom-center{
    height:74px;
    margin-top:-19px;
    color:#dceaff;
  }

  .mobile-bottom-center-icon{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:3px solid rgba(142,205,255,.9);
    background:linear-gradient(145deg,#1769d2,#0b2d63);
    box-shadow:0 8px 24px rgba(4,32,78,.45), inset 0 1px 8px rgba(255,255,255,.16);
  }

  .mobile-bottom-center-icon i{
    font-size:25px;
    color:#fff;
  }

  .mobile-bottom-center span:last-child{
    font-size:10px;
  }

  .mobile-bottom-item:active{
    transform:scale(.94);
  }
}

@media (min-width:769px){
  .mobile-bottom-nav{display:none !important;}
}

@media (max-width:380px){
  .mobile-bottom-nav{
    left:6px;
    right:6px;
    padding-left:4px;
    padding-right:4px;
  }
  .mobile-bottom-item{font-size:10px;}
  .mobile-bottom-center-icon{width:54px;height:54px;}
}


/* =========================================================
   ENHANCED TEACHERS — PREMIUM FACULTY DESIGN
========================================================= */
.teacher-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 88% 30%, rgba(67,135,255,.28), transparent 32%), linear-gradient(135deg, #071f4b 0%, #0b3d86 58%, #1264c7 100%);
  color: #fff;
}
.teacher-hero::before,
.teacher-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.teacher-hero::before { width: 360px; height: 360px; right: -110px; top: -170px; }
.teacher-hero::after { width: 220px; height: 220px; left: -120px; bottom: -130px; }
.teacher-hero-inner {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 54px;
  padding-bottom: 54px;
  position: relative;
  z-index: 1;
}
.teacher-hero-copy { max-width: 760px; }
.teacher-hero-copy h1 { font-size: clamp(34px, 6vw, 62px); margin: 8px 0 14px; line-height: 1.05; letter-spacing: -.5px; }
.teacher-hero-copy p { max-width: 680px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.85; margin: 0; }
.teacher-hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.teacher-hero-pills span { display:inline-flex; align-items:center; gap:7px; padding:9px 13px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.09); border-radius:999px; font-size:12px; font-weight:700; backdrop-filter: blur(10px); }
.teacher-hero-art { width: 250px; height: 250px; flex: 0 0 250px; position:relative; display:grid; place-items:center; }
.teacher-hero-icon { width:132px; height:132px; border-radius:40px; display:grid; place-items:center; font-size:55px; color:#fff; background:linear-gradient(145deg,#1976ff,#0a3e98); border:1px solid rgba(255,255,255,.35); box-shadow:0 25px 60px rgba(0,0,0,.24), inset 0 0 0 10px rgba(255,255,255,.06); position:relative; z-index:2; }
.teacher-hero-orbit { position:absolute; border:1px solid rgba(255,255,255,.2); border-radius:50%; }
.orbit-one { width:210px; height:210px; }
.orbit-two { width:155px; height:155px; border-style:dashed; opacity:.65; }
.teacher-content-section { background: linear-gradient(180deg,#f4f8ff 0%,#fff 35%); }
.teacher-toolbar { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:28px; }
.teacher-toolbar-title h2 { margin:4px 0 4px; color:var(--navy); font-size:clamp(22px,3vw,30px); }
.teacher-toolbar-title p { margin:0; color:var(--muted); font-size:14px; }
.teacher-filters { display:grid; grid-template-columns:minmax(220px,1fr) 190px; gap:10px; min-width:min(100%,480px); }
.teacher-search-box { margin:0; }
.teacher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.teacher-card { display:block; overflow:hidden; padding:0; border:1px solid #dce6f4; border-radius:24px; background:#fff; box-shadow:0 12px 35px rgba(12,48,94,.08); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.teacher-card:hover { transform:translateY(-5px); box-shadow:0 22px 45px rgba(12,48,94,.15); border-color:#b9d1f3; }
.teacher-image { height:245px; position:relative; overflow:hidden; background:linear-gradient(135deg,#dbeaff,#eef5ff); }
.teacher-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(4,24,57,.35)); pointer-events:none; }
.teacher-image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.teacher-card:hover .teacher-image img { transform:scale(1.035); }
.teacher-body { padding:19px 20px 21px; }
.teacher-topline { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:8px; }
.teacher-role { color:#1764c0; background:#eaf3ff; padding:5px 9px; border-radius:999px; font-size:10px; font-weight:800; }
.teacher-status { color:#2c8a55; font-size:10px; font-weight:800; white-space:nowrap; }
.teacher-status i { font-size:6px; vertical-align:middle; margin-right:4px; }
.teacher-card h3 { margin:0; color:var(--navy); font-size:21px; line-height:1.35; }
.teacher-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:12px; padding-top:12px; border-top:1px solid #edf1f7; }
.teacher-meta span { color:var(--muted); font-size:12px; display:inline-flex; align-items:center; gap:5px; }
.teacher-meta i { color:#2d73cc; }
@media (max-width: 700px) {
  .teacher-hero-inner { min-height:0; padding-top:38px; padding-bottom:38px; }
  .teacher-hero-copy p { font-size:14px; line-height:1.75; }
  .teacher-hero-art { display:none; }
  .teacher-toolbar { display:block; }
  .teacher-filters { grid-template-columns:1fr; min-width:0; margin-top:17px; }
  .teacher-grid { grid-template-columns:1fr; gap:16px; }
  .teacher-image { height:230px; }
  .teacher-card h3 { font-size:19px; }
}
@media (min-width: 960px) {
  .teacher-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* =========================================================
   TEACHER BRANCH PICKER — MODERN MOBILE FRIENDLY
========================================================= */
.teacher-filter-native {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.teacher-branch-picker {
  width:100%;
  min-height:52px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border:1px solid #d8e4f4;
  border-radius:15px;
  background:linear-gradient(180deg,#ffffff,#f7faff);
  color:var(--navy);
  font:inherit;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(11,45,99,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.teacher-branch-picker:hover,.teacher-branch-picker:focus-visible{transform:translateY(-1px);border-color:#a9c6ec;box-shadow:0 12px 28px rgba(11,45,99,.11);outline:none;}
.teacher-branch-picker-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf2ff;color:#0b63ce;flex:0 0 34px;}
.teacher-branch-picker-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.teacher-branch-picker-chevron{font-size:13px;color:#6480a4;transition:transform .18s ease;}
.teacher-branch-picker[aria-expanded="true"] .teacher-branch-picker-chevron{transform:rotate(180deg);}

.branch-picker-modal{position:fixed;inset:0;z-index:10060;display:none;align-items:center;justify-content:center;padding:14px;}
.branch-picker-modal.open{display:flex;}
.branch-picker-backdrop{position:absolute;inset:0;background:rgba(4,20,47,.68);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.branch-picker-dialog{position:relative;z-index:2;width:min(100%,560px);max-height:min(88vh,720px);overflow:hidden;border:1px solid rgba(255,255,255,.7);border-radius:26px;background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);box-shadow:0 30px 90px rgba(0,0,0,.32);animation:branchPickerIn .22s ease-out both;}
@keyframes branchPickerIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.branch-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 20px 17px;border-bottom:1px solid #e5edf7;background:linear-gradient(135deg,#f8fbff,#eef5ff);}
.branch-picker-kicker{display:inline-block;margin-bottom:4px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#1f70d5;}
.branch-picker-head h2{margin:0;color:var(--navy);font-size:24px;line-height:1.25;}
.branch-picker-head p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.55;}
.branch-picker-close{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dce7f5;border-radius:13px;background:#fff;color:var(--navy);font-size:17px;cursor:pointer;box-shadow:0 7px 18px rgba(11,45,99,.07);transition:.18s ease;flex:0 0 42px;}
.branch-picker-close:hover{transform:rotate(90deg);background:#edf5ff;}
.branch-picker-options{padding:12px;overflow:auto;max-height:calc(min(88vh,720px) - 125px);}
.branch-picker-option{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid transparent;border-radius:17px;background:transparent;color:var(--navy);font:inherit;font-weight:700;text-align:left;cursor:pointer;transition:.18s ease;margin-bottom:6px;}
.branch-picker-option:hover{background:#eef6ff;border-color:#d5e6fb;transform:translateX(2px);}
.branch-option-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#edf4ff;color:#1768c9;flex:0 0 42px;}
.branch-option-label{flex:1;font-size:16px;}
.branch-option-check{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;border:1.5px solid #c8d6e8;color:transparent;background:#fff;flex:0 0 30px;}
.branch-picker-option.active{background:linear-gradient(135deg,#eaf3ff,#f5f9ff);border-color:#b8d4f5;box-shadow:0 8px 22px rgba(22,104,201,.08);}
.branch-picker-option.active .branch-option-icon{background:linear-gradient(135deg,#0b63ce,#164d9e);color:#fff;}
.branch-picker-option.active .branch-option-check{background:#1266c9;border-color:#1266c9;color:#fff;}
body.branch-picker-open{overflow:hidden;}

@media (max-width:560px){
  .branch-picker-modal{padding:8px;align-items:flex-end;}
  .branch-picker-dialog{width:100%;max-height:86vh;border-radius:24px 24px 16px 16px;}
  .branch-picker-head{padding:19px 16px 14px;}
  .branch-picker-head h2{font-size:21px;}
  .branch-picker-options{padding:10px 9px;max-height:calc(86vh - 116px);}
  .branch-picker-option{padding:11px 10px;border-radius:15px;}
  .branch-option-label{font-size:15px;}
}
/* Reliable teacher filtering: hidden cards must never occupy grid space. */
#teacherGrid .teacher-card.teacher-filter-hidden { display:none !important; }

/* =========================================================
   MODERN CUSTOM SELECT POPUPS
   Replaces mobile browser-native select dialogs on the public site.
   ========================================================= */
.custom-select-native{position:absolute !important;width:1px !important;height:1px !important;opacity:0 !important;pointer-events:none !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;}
.custom-select-trigger{width:100%;min-height:54px;display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid #d7e4f4;border-radius:16px;background:linear-gradient(180deg,#fff,#f7fbff);color:var(--navy,#0b2d63);font:inherit;font-weight:700;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(11,45,99,.06);transition:.18s ease;}
.custom-select-trigger:hover,.custom-select-trigger:focus-visible{border-color:#9fc4ef;box-shadow:0 12px 28px rgba(11,45,99,.11);transform:translateY(-1px);outline:none;}
.custom-select-trigger-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf2ff;color:#1467c8;flex:0 0 34px;}
.custom-select-trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.custom-select-trigger-chevron{color:#6c83a2;font-size:13px;transition:transform .18s ease;}
.custom-select-open{overflow:hidden;}
.custom-select-modal{position:fixed;inset:0;z-index:10070;display:none;align-items:center;justify-content:center;padding:12px;}
.custom-select-modal.open{display:flex;}
.custom-select-backdrop{position:absolute;inset:0;background:rgba(3,18,42,.72);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);}
.custom-select-dialog{position:relative;z-index:2;width:min(100%,560px);max-height:min(88vh,720px);overflow:hidden;border:1px solid rgba(255,255,255,.75);border-radius:26px;background:linear-gradient(180deg,#fff 0%,#f5f9ff 100%);box-shadow:0 30px 100px rgba(0,0,0,.36);animation:customSelectIn .22s ease-out both;}
@keyframes customSelectIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.custom-select-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 20px 17px;border-bottom:1px solid #e1eaf5;background:linear-gradient(135deg,#f9fcff,#edf5ff);}
.custom-select-kicker{display:inline-block;margin-bottom:4px;color:#1768c9;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.custom-select-head h2{margin:0;color:var(--navy,#0b2d63);font-size:23px;line-height:1.25;}
.custom-select-head p{margin:5px 0 0;color:#71829a;font-size:13px;line-height:1.55;}
.custom-select-close{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dbe6f4;border-radius:13px;background:#fff;color:#0b2d63;font-size:17px;cursor:pointer;box-shadow:0 7px 18px rgba(11,45,99,.07);transition:.18s ease;flex:0 0 42px;}
.custom-select-close:hover{transform:rotate(90deg);background:#edf5ff;}
.custom-select-options{padding:12px;overflow:auto;max-height:calc(min(88vh,720px) - 125px);}
.custom-select-option{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid transparent;border-radius:17px;background:transparent;color:var(--navy,#0b2d63);font:inherit;font-weight:700;text-align:left;cursor:pointer;transition:.18s ease;margin-bottom:6px;}
.custom-select-option:hover{background:#eef6ff;border-color:#d5e6fb;transform:translateX(2px);}
.custom-select-option-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#edf4ff;color:#1768c9;flex:0 0 42px;}
.custom-select-option-label{flex:1;font-size:16px;line-height:1.45;}
.custom-select-option-check{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;border:1.5px solid #c8d6e8;color:transparent;background:#fff;flex:0 0 30px;}
.custom-select-option.active{background:linear-gradient(135deg,#eaf3ff,#f5f9ff);border-color:#b8d4f5;box-shadow:0 8px 22px rgba(22,104,201,.08);}
.custom-select-option.active .custom-select-option-icon{background:linear-gradient(135deg,#0b63ce,#164d9e);color:#fff;}
.custom-select-option.active .custom-select-option-check{background:#1266c9;border-color:#1266c9;color:#fff;}
@media (max-width:560px){
 .custom-select-modal{padding:8px;align-items:flex-end;}
 .custom-select-dialog{width:100%;max-height:88vh;border-radius:24px 24px 16px 16px;}
 .custom-select-head{padding:19px 16px 14px;}
 .custom-select-head h2{font-size:21px;}
 .custom-select-options{padding:10px 9px;max-height:calc(88vh - 116px);}
 .custom-select-option{padding:11px 10px;border-radius:15px;}
 .custom-select-option-label{font-size:15px;}
}


/* =========================================================
   HERO SLIDER — CLEAN PROFESSIONAL PRESENTATION
   Only affects the homepage hero slider.
========================================================= */
.hero-section{
  min-height:clamp(430px,62vh,680px);
  background:#eef5ff;
  isolation:isolate;
}
.hero-slider{
  background:#eef5ff;
  z-index:0;
}
.hero-slider-track{
  height:100%;
  transition:transform .95s cubic-bezier(.65,0,.35,1);
  will-change:transform;
}
.hero-slide{
  overflow:hidden;
  background:#eef5ff;
}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.015);
  transition:transform 5.8s cubic-bezier(.2,.65,.2,1);
  backface-visibility:hidden;
}
.hero-slide.is-active img{
  transform:scale(1.045);
}
.hero-slider-dots{
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 24px rgba(10,35,70,.12);
  backdrop-filter:blur(8px);
}
.hero-dot{
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(11,45,99,.28);
  cursor:pointer;
  transition:all .3s ease;
}
.hero-dot.active{
  width:24px;
  border-radius:999px;
  background:#0b2d63;
}
.hero-dot:focus-visible{
  outline:2px solid #0b2d63;
  outline-offset:3px;
}
.hero-content,.hero-actions{display:none!important;}
@media (max-width:767px){
  .hero-section{min-height:clamp(360px,55vh,560px);}
  .hero-slider-dots{bottom:15px;gap:6px;padding:7px 9px;}
  .hero-dot{width:6px;height:6px;}
  .hero-dot.active{width:20px;}
}
@media (prefers-reduced-motion:reduce){
  .hero-slider-track,.hero-slide img{transition:none!important;}
}

/* Hero slider swipe support */
#heroSliderTrack{touch-action:pan-y;cursor:grab;}
#heroSliderTrack:active{cursor:grabbing;}
