@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-title: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --primary-color: #0d4694; /* Deep Royal Navy from Website Template */
  --primary-hover: #1a5cba;
  --primary-light: #eff6ff;
  --secondary-color: #07152b; /* Deep Brand Navy */
  --brand-orange: #ef560f; /* Saffron/Orange from Website Template */
  --brand-green: #16a34a;  /* Emerald Green from Logo */
  --brand-gold: #f59e0b;   /* Star Gold from Logo */
  --brand-cyan: #0284c7;   /* Cyan from Logo Chart */
  --success-color: #16a34a;
  --warning-color: #ef560f;
  --danger-color: #dc2626;
  --info-color: #0284c7;
  --dark-color: #07152b;
  --dark-surface: #0f274a;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

/* Govt of India Registration Badge Styling */
.govt-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 70, 148, 0.25);
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(13, 70, 148, 0.08);
}
.govt-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: left;
}
.govt-badge-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0d4694;
}
.govt-badge-reg {
  font-size: 0.68rem;
  font-weight: 600;
  color: #ef560f;
  letter-spacing: 0.2px;
}

/* Left Orange Accent Card */
.card-accent-left {
  border-left: 4px solid #ef560f !important;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}


/* Brand Color Utility Classes */
.bg-brand-blue { background-color: var(--primary-color) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-green { background-color: var(--brand-green) !important; }
.bg-brand-navy { background-color: var(--secondary-color) !important; }

.text-brand-blue { color: var(--primary-color) !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-green { color: var(--brand-green) !important; }
.text-brand-gold { color: var(--brand-gold) !important; }

/* Override Primary Buttons with Logo Royal Blue */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn-warning {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important;
}
.btn-warning:hover, .btn-warning:focus {
  background-color: #e04e00 !important;
  border-color: #e04e00 !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}


html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Universal Text & Container Overflow Safeguards */
*, *::before, *::after {
  box-sizing: border-box;
}

body, p, span, label, input, button, select, textarea, td, th, li, a, div, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.row > * {
  min-width: 0;
  max-width: 100%;
}

.card, .card-body, .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
  min-width: 0;
  max-width: 100%;
}

.badge, .btn, .nav-segment-btn {
  max-width: 100%;
  white-space: normal;
  text-overflow: ellipsis;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand,
.card-title,
.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6,
.modal-title,
.page-title,
.section-title,
.title-font,
.font-title,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.hero-section h1, .btn-lg, .btn-primary, .btn-warning, .btn-dark, .btn-outline-light {
  font-family: var(--font-title) !important;
  font-weight: 600 !important;
  letter-spacing: -0.2px;
}

.font-sans {
  font-family: var(--font-body) !important;
}

/* Bespoke Hero Section Styling */
.hero-bespoke-bg {
  background: radial-gradient(circle at 85% 15%, rgba(30, 64, 175, 0.35) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, #070d1e 0%, #0b192e 50%, #112240 100%);
  position: relative;
}

.hero-bespoke-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-bespoke-bg::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, rgba(30, 64, 175, 0.22) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* ==========================================================================
   HERO SECTION & NAVBAR: ZERO BORDER RADIUS ENFORCEMENT ACROSS ALL UI ELEMENTS
   ========================================================================== */
.navbar,
.navbar *,
.navbar .btn,
.navbar .dropdown-menu,
.navbar .dropdown-item,
.navbar .navbar-toggler,
.navbar .nav-link,
.navbar .badge,
.navbar .form-control,
.navbar .input-group,
.navbar .input-group-text,
.header-top,
.header-top *,
.header-top .custom-button,
.header-top .dropdown-menu,
.offcanvas,
.offcanvas *,
.offcanvas .btn,
.offcanvas .list-group-item,
.offcanvas .badge,
.hero-section,
.hero-section .card,
.hero-section .form-control,
.hero-section .input-group,
.hero-section .input-group-text,
.hero-section .btn,
.hero-section .badge,
.hero-section button,
.hero-section input,
.hero-section a.btn,
.hero-section .nav-segment-wrapper,
.hero-section .nav-segment-btn,
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item,
.hero-section .hero-slide-wrapper,
.hero-section .hero-slide-img,
.hero-section .carousel-caption,
.hero-section .hero-slide-bottom,
.hero-section .carousel-indicators button,
.hero-auth-card,
.hero-auth-card *,
.google-style-card,
.google-style-card *,
.hero-cms-carousel,
.hero-cms-carousel *,
.hero-stats-counter-bar,
.hero-stats-counter-bar * {
  border-radius: 0 !important;
}

/* Hero Mobile & High-End Typography Styling */
.hero-title {
  font-size: clamp(1.45rem, 5.2vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.3px;
}

.hero-gradient-subtitle {
  color: #ef560f;
  background: linear-gradient(135deg, #ff7a18 0%, #ffae19 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-paragraph {
  font-size: 0.85rem;
}

@media (min-width: 576px) {
  .hero-paragraph {
    font-size: 0.95rem;
  }
}

@media (min-width: 992px) {
  .hero-paragraph {
    font-size: 1.08rem;
  }
}

/* Executive Hero Buttons Styling */
.hero-btn-primary {
  background: linear-gradient(135deg, #ef560f 0%, #d97706 100%) !important;
  border: none !important;
  box-shadow: 0 8px 24px -4px rgba(239, 86, 15, 0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(239, 86, 15, 0.6) !important;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px);
}

/* Executive Glassmorphic Hero Feature Highlights Bar */
.hero-features-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 8px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 12px 32px -8px rgba(0, 0, 0, 0.25);
}

/* Top Announcement Ticker Bar */
.hero-top-ticker-bar {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #881337 100%) !important;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 0 !important;
  min-height: 38px;
  display: flex;
  align-items: stretch;
}

.hero-top-ticker-bar .container-xxl {
  min-height: 38px;
}

.hero-ticker-badge {
  background-color: #f59e0b !important;
  color: #111827 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 0.95rem;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 0 !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.22);
  z-index: 2;
  transition: background-color 0.2s ease;
}

.hero-ticker-badge:hover {
  background-color: #fbbf24 !important;
}

@media (max-width: 575.98px) {
  .hero-top-ticker-bar {
    min-height: 34px;
  }
  .hero-top-ticker-bar .container-xxl {
    min-height: 34px;
  }
  .hero-ticker-badge {
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

/* Golden Commitment & Excellence Banner Strip */
.hero-golden-banner-strip {
  background: linear-gradient(135deg, #fef08a 0%, #fef3c7 35%, #fde047 70%, #eab308 100%) !important;
  color: #1e1b4b !important;
  border: 1px solid #facc15 !important;
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.35) !important;
  transition: transform 0.2s ease;
}

.hero-golden-banner-strip:hover {
  transform: translateY(-1px);
}

/* ZERO GAP BETWEEN HERO IMAGE-FORM & TRUST STATS COUNTDOWN BAR */
.hero-section {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.hero-section .container-xxl {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.hero-desktop-split-row {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.hero-col-left,
.hero-col-right {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.hero-mascot-card-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.hero-auth-card,
.google-style-card {
  margin-bottom: 0 !important;
}
.hero-cms-carousel {
  margin-bottom: 0 !important;
}
/* Full Width Trust Counter Bar Below Hero with Professional Border Boxes */
.hero-stats-counter-bar {
  margin-top: 0 !important;
  background: #060b19 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  position: relative;
  z-index: 5;
}

.hero-stat-card {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(30, 41, 59, 0.85) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-stat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
}

.hero-stat-card .hero-counter-val {
  font-family: var(--font-title);
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-stat-card .hero-stat-label {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.25;
}

@media (max-width: 767.98px) {
  .hero-stat-card,
  .hero-stat-card:hover {
    padding: 7px 3px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .hero-stat-card .hero-stat-icon-wrap i {
    font-size: 1.15rem !important;
  }
  .hero-stat-card .hero-counter-val {
    font-size: clamp(0.82rem, 3.2vw, 1.15rem) !important;
    margin-top: 3px;
    margin-bottom: 2px;
  }
  .hero-stat-card .hero-stat-label {
    font-size: clamp(0.48rem, 1.6vw, 0.62rem) !important;
    letter-spacing: 0.02em;
  }
}

@media (min-width: 768px) {
  .hero-stat-card {
    padding: 14px 18px !important;
  }
  .hero-stat-card .hero-stat-icon-wrap i {
    font-size: 1.65rem !important;
  }
  .hero-stat-card .hero-counter-val {
    font-size: clamp(1.25rem, 2.2vw, 1.95rem) !important;
    margin-bottom: 2px;
  }
  .hero-stat-card .hero-stat-label {
    font-size: 0.72rem !important;
  }
}

.hero-mobile-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  position: relative;
}

.hero-feature-has-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.hero-feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 86, 15, 0.22) 0%, rgba(245, 158, 11, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  margin-bottom: 7px;
  box-shadow: 0 4px 12px rgba(239, 86, 15, 0.2);
}

.hero-feature-icon-wrapper i {
  font-size: 0.95rem;
  color: #fbbf24 !important;
}

.hero-feature-text {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-auth-card {
  background: #ffffff;
  border-radius: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-segment-wrapper {
  background: #f1f5f9;
  border-radius: 0 !important;
  padding: 4px;
  display: flex;
  position: relative;
  z-index: 10;
}

.nav-segment-btn {
  flex: 1;
  border: none;
  border-radius: 0 !important;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  color: #64748b;
  background: transparent;
  transition: all 0.2s ease;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-segment-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 575.98px) {
  /* Strict Zero Outer Padding & Zero Outer Margins on Mobile */
  .hero-col-right {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-auth-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Generous Inner Form Padding (Inside the Card) */
  .hero-auth-card > div:first-child {
    padding: 1.35rem 1.5rem 0 1.5rem !important;
  }

  .hero-auth-card .card-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem !important;
  }

  .hero-auth-card .form-control {
    padding: 0.75rem 1rem !important;
  }

  .hero-auth-card .input-group-text {
    padding: 0.75rem 1rem !important;
  }

  .nav-segment-btn {
    font-size: 0.78rem !important;
    padding: 10px 6px !important;
    letter-spacing: 0px !important;
    min-height: 44px !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
  }

  .hero-title,
  .hero-section h1 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
  }
  .hero-paragraph {
    font-size: 0.83rem !important;
    line-height: 1.45 !important;
  }
}

/* Hero Managed CMS Image Slider (Global Desktop Styles) */
.hero-cms-carousel,
.hero-cms-carousel .carousel-inner,
.hero-cms-carousel .carousel-item,
.hero-cms-carousel .hero-slide-wrapper,
.hero-cms-carousel .hero-slide-img,
.hero-cms-carousel .carousel-caption {
  border-radius: 0 !important;
}

.hero-cms-carousel {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  transition: none !important;
}

.hero-cms-carousel:hover {
  transform: none !important;
  box-shadow: none !important;
}

.hero-slide-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 480px !important;
  min-height: 280px !important;
  max-height: 480px !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.hero-slide-img {
  width: 100% !important;
  height: 480px !important;
  min-height: 280px !important;
  max-height: 480px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

.hero-cms-carousel .carousel-caption {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  text-align: left !important;
  pointer-events: none !important;
}

.hero-slide-bottom {
  width: 100% !important;
  background: linear-gradient(to top right, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.85) 35%, rgba(15, 23, 42, 0.35) 65%, transparent 85%), linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.70) 50%, transparent 80%), linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.65) 60%, transparent 80%) !important;
  box-shadow: inset 12px -12px 30px rgba(0, 0, 0, 0.4) !important;
  pointer-events: auto !important;
  border-radius: 0 !important;
}

.hero-slide-content-left {
  max-width: 70% !important;
}

.hero-slide-btn {
  font-size: 0.78rem !important;
  padding: 5px 14px !important;
  border-radius: 0 !important;
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 86, 15, 0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hero-slide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 86, 15, 0.55) !important;
}

.hero-top-badge {
  font-size: 0.60rem !important;
  padding: 3px 8px !important;
  border-radius: 0 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.hero-cms-carousel .carousel-indicators button {
  width: 20px;
  height: 4px;
  border-radius: 0 !important;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  transition: all 0.3s ease;
}

.hero-cms-carousel .carousel-indicators button.active {
  background-color: #f59e0b;
  width: 30px;
}

/* 70/30 Desktop Split Ratio & Zero Gap Between Slider and Form (Full Desktop Width) */
@media (min-width: 992px) {
  .hero-desktop-split-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    align-items: flex-end !important;
    display: flex !important;
  }
  .hero-col-left {
    flex: 0 0 68% !important;
    max-width: 68% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  .hero-col-right {
    flex: 0 0 32% !important;
    max-width: 32% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    position: relative !important;
    z-index: 3 !important;
  }
  /* Left column text block: H1 + Description on left half */
  .hero-header-text-block {
    margin-bottom: 0 !important;
  }
  /* Right column: mascot peeking directly on form card, static, hands on card */
  .hero-col-right .hero-mascot-card-wrapper {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    transform: none !important;
  }
  .hero-col-right .hero-mascot-card-wrapper:hover {
    transform: none !important;
  }
  .hero-col-right .google-style-card {
    height: 480px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }
  .hero-col-right .hero-mascot-character-container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    margin-bottom: -46px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    z-index: 15 !important;
    pointer-events: none !important;
  }
  .hero-col-right .hero-mascot-img {
    height: 200px !important;
    max-height: 210px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    vertical-align: bottom !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)) !important;
    animation: none !important;
    transform: none !important;
    pointer-events: none !important;
  }
  /* Banner tucks ~20px behind the form card */
  .hero-col-left .hero-cms-carousel {
    margin-right: -20px !important;
    width: calc(100% + 20px) !important;
    position: relative;
    z-index: 1;
  }
  .hero-col-right {
    position: relative;
    z-index: 3;
  }
  .hero-col-left .hero-bottom-btn-wrapper {
    right: 32px !important;
    bottom: 8px !important;
  }
  .hero-col-left .hero-cms-carousel .carousel-indicators {
    margin-right: calc(15% + 20px);
  }
}

/* Form content centered (vertical + horizontal) inside the card */
.google-style-card .card-body {
  flex: 0 0 auto !important;
}

/* Base form spacing */
.google-style-card .google-tab-wrapper { margin-bottom: 10px; }
.google-style-card .tab-pane .mb-3 { margin-bottom: 1.25rem !important; }
.google-style-card .google-form-label { margin-bottom: 0.4rem !important; }
.google-style-card .tab-pane .mt-2 { margin-top: 1.25rem !important; }
.google-style-card .google-tab-wrapper,
.google-style-card .google-tab-btn,
.google-style-card .google-input,
.google-style-card .google-btn-primary {
  border-radius: 0 !important;
}
.google-style-card .input-group > .google-input {
  border-radius: 0 !important;
}
.google-style-card .input-group > .google-input-btn {
  border-radius: 0 !important;
}

/* Password Input & Password Input Groups Strict 0px Border Radius */
input[type="password"],
input[type="password"].form-control,
.google-input[type="password"],
.input-group input[type="password"],
.input-group:has(input[type="password"]),
.input-group:has(input[type="password"]) *,
.input-group:has(input[type="password"]) > *,
.input-group:has(input[type="password"]) > .form-control,
.input-group:has(input[type="password"]) > .btn,
.input-group:has(input[type="password"]) > .input-group-text,
.password-toggle,
.password-toggle-btn,
#heroStudentPassword,
#heroSchoolPassword,
#loginPassword,
#regPassword,
#schPassword {
  border-radius: 0px !important;
}

/* Ambient Backlight Aura Behind Form Card in Hero Column */
.hero-col-right {
  position: relative !important;
  z-index: 3 !important;
}
.hero-col-right::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 6%;
  right: 6%;
  bottom: 8%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28) 0%, rgba(245, 158, 11, 0.16) 42%, transparent 72%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

/* Form Card Elevated Light & Dimensional Shadow */
.hero-auth-card.google-style-card,
.google-style-card {
  border-radius: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  position: relative !important;
  z-index: 2 !important;
  box-shadow:
    0 4px 6px -1px rgba(2, 6, 23, 0.08),
    0 14px 28px -4px rgba(2, 6, 23, 0.24),
    0 32px 64px -14px rgba(2, 6, 23, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  height: 480px !important;
  min-height: 480px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Luminous Top Edge Refraction Accent on Form Card */
.hero-auth-card.google-style-card::before,
.google-style-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8 0%, #38bdf8 38%, #fbbf24 72%, #ef560f 100%);
  z-index: 12;
  box-shadow: 0 1px 6px rgba(26, 115, 232, 0.4);
}

/* CTA buttons under banner */
.hero-cta-row {
  gap: 14px !important;
}
.hero-cta-row .btn {
  font-size: 0.82rem !important;
  padding: 7px 14px !important;
  border-radius: 0 !important;
}
.hero-cta-row .btn i {
  font-size: 0.9rem !important;
}

.hero-mascot-card-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 35px !important;
  width: 100% !important;
  transform: none !important;
  z-index: 2 !important;
}

.hero-mascot-character-container {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  margin-bottom: -46px !important;
  line-height: 0 !important;
  font-size: 0 !important;
  z-index: 15 !important;
  pointer-events: none !important;
}

.hero-mascot-img {
  max-height: 160px !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
  vertical-align: bottom !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)) !important;
  pointer-events: none !important;
  animation: none !important;
  transform: none !important;
}

/* Segmented Tab Switcher (Recessed Bed + Soft Inset Shadow) */
.google-tab-wrapper {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  padding: 4px !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.google-tab-btn {
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.google-tab-btn:hover {
  color: #0f172a !important;
}

.google-tab-btn.active {
  background: #ffffff !important;
  color: #1a73e8 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.10),
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 #ffffff !important;
}

/* Form Label Design Taste */
.google-form-label {
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 0.86rem !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: -0.1px;
}

/* Form Inputs Light & Shadow Architecture */
.google-input {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0 !important;
  font-size: 0.92rem !important;
  padding: 0.65rem 0.95rem !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.05),
    0 1px 1px rgba(255, 255, 255, 0.9) !important;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
}

.google-input:focus {
  border-color: #1a73e8 !important;
  box-shadow:
    0 0 0 3px rgba(26, 115, 232, 0.22),
    0 4px 12px rgba(26, 115, 232, 0.14),
    inset 0 1px 1px rgba(15, 23, 42, 0.02) !important;
  outline: none !important;
  background-color: #ffffff !important;
}

/* Password Toggle Eye Button with Matching Light Depth */
.google-input-btn {
  border: 1.5px solid #cbd5e1 !important;
  border-left: none !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  border-radius: 0 !important;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.04),
    0 1px 1px rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s ease !important;
}

.google-input-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Primary Submit Button: Rich Gradient Surface, Specular Highlight & Glow Shadow */
.google-btn-primary {
  background: linear-gradient(180deg, #1d6fe6 0%, #1557b0 100%) !important;
  border: 1px solid #134e9e !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  padding: 0.65rem 1.45rem !important;
  letter-spacing: 0.02em !important;
  box-shadow:
    0 3px 8px -1px rgba(21, 87, 176, 0.38),
    0 8px 18px -4px rgba(21, 87, 176, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.google-btn-primary:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #174ea6 !important;
  box-shadow:
    0 6px 16px -2px rgba(21, 87, 176, 0.48),
    0 14px 28px -6px rgba(21, 87, 176, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) !important;
}

.google-btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow:
    0 2px 4px rgba(21, 87, 176, 0.30),
    inset 0 2px 4px rgba(0, 0, 0, 0.20) !important;
}

.google-link {
  color: #1a73e8 !important;
  font-size: 0.85rem !important;
  transition: color 0.2s ease !important;
}

.google-link:hover {
  color: #1557b0 !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   DESKTOP FORM FACTOR ENLARGEMENT (min-width: 992px)
   Form inputs, labels, tabs, and action buttons scaled generously
   ========================================================================== */
@media (min-width: 992px) {
  .google-style-card .google-tab-wrapper,
  .google-style-card .tab-content {
    max-width: 395px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .google-style-card-padding-20 {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .hero-form-heading h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
    color: #0f172a !important;
  }

  .hero-form-heading p {
    font-size: 0.86rem !important;
    color: #64748b !important;
  }

  .google-tab-wrapper {
    padding: 5px !important;
    margin-bottom: 14px !important;
  }

  .google-tab-btn {
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
    font-weight: 700 !important;
  }

  .google-form-label {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.45rem !important;
    color: #1e293b !important;
  }

  .google-input {
    font-size: 0.96rem !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0.72rem 1.05rem !important;
  }

  .google-input-btn {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 1.15rem !important;
    font-size: 0.96rem !important;
  }

  .google-btn-primary {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 1.65rem !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .google-link {
    font-size: 0.88rem !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET INNER PADDING & RESPONSIVE ADJUSTMENTS
   Ensures generous inner padding left and right across all handheld devices
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Zero Outer Padding & Margins on Mobile */
  .hero-col-right {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-auth-card.google-style-card,
  .google-style-card {
    height: auto !important;
    min-height: unset !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
    margin-top: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Generous Inner Left & Right Padding on Handheld Displays (Inside Card) */
  .google-style-card-padding-20,
  .hero-auth-card .card-body,
  .hero-auth-card > div:first-child {
    padding-left: 1.65rem !important;
    padding-right: 1.65rem !important;
  }

  .google-style-card .google-tab-wrapper,
  .google-style-card .tab-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  .google-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    min-height: 46px !important;
    height: 46px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .google-input-btn {
    min-height: 46px !important;
    height: 46px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .google-btn-primary {
    min-height: 46px !important;
    height: 46px !important;
    padding: 0.65rem 1.4rem !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 575.98px) {
  /* Zero Outer Padding on Narrow Screens */
  .hero-col-right {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-auth-card.google-style-card,
  .google-style-card,
  .hero-auth-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Mobile Small Viewports: Generous Inner Left-Right Padding */
  .google-style-card-padding-20,
  .hero-auth-card .card-body,
  .hero-auth-card > div:first-child {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .hero-form-heading h2 {
    font-size: 1.2rem !important;
  }
}

/* Hero CMS Carousel Mobile Responsive Overrides */
@media (max-width: 575.98px) {
  .hero-cms-carousel,
  .hero-cms-carousel .carousel-inner,
  .hero-cms-carousel .carousel-item,
  .hero-cms-carousel .hero-slide-wrapper,
  .hero-cms-carousel .hero-slide-img,
  .hero-cms-carousel .carousel-caption {
    border-radius: 5px !important;
  }
  .hero-slide-wrapper,
  .hero-slide-img {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 230px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .hero-top-badge {
    font-size: 0.55rem !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
  }
  .hero-slide-content-left {
    max-width: 85% !important;
    width: 85% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow: hidden;
  }

  .hero-slide-content-left .badge {
    font-size: 0.60rem !important;
    padding: 2px 7px !important;
    margin-bottom: 5px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px !important;
  }

  .hero-slide-content-left h5 {
    font-size: 0.76rem !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
    font-weight: 800 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-slide-content-left .hero-slide-desc {
    font-size: 0.64rem !important;
    line-height: 1.25 !important;
    margin-bottom: 5px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.95;
  }

  .hero-bottom-btn-wrapper {
    padding: 2px 4px !important;
    bottom: 2px !important;
    right: 2px !important;
  }

  .hero-slide-btn,
  .hero-slide-content-left .btn {
    font-size: 0.48rem !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 3px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    font-weight: 700 !important;
    line-height: 1.0 !important;
    min-height: 0 !important;
    height: auto !important;
    letter-spacing: -0.05px !important;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.4) !important;
  }

  .hero-slide-btn i,
  .hero-slide-content-left .btn i {
    font-size: 0.42rem !important;
  }

  .hero-cms-carousel .carousel-caption {
    padding: 0 !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
  }
}

/* ===== Announcement ticker marquee (CMS-managed) ===== */
.ann-marquee {
  overflow: hidden;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.ann-marquee-track {
  display: flex;
  width: max-content;
  animation: annMarquee var(--ann-duration, 30s) linear infinite;
}
.ann-marquee:hover .ann-marquee-track { animation-play-state: paused; }
.ann-marquee-group { display: flex; flex-shrink: 0; }
.ann-marquee-item {
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(0.76rem, 2vw, 0.86rem);
  padding: 0 28px;
  position: relative;
}
.ann-marquee-item::after {
  content: "•";
  position: absolute;
  right: -4px;
  color: #fbbf24;
}
@keyframes annMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ann-marquee-track { animation: none; }
}

/* ===== Banner CTA: fixed size per breakpoint + text never under button ===== */
.hero-cms-carousel .hero-slide-btn {
  justify-content: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  /* Desktop */
  width: 140px !important;
  height: 38px !important;
  padding: 0 12px !important;
  font-size: 0.8rem !important;
  gap: 6px !important;
}
.hero-cms-carousel .hero-slide-btn i { font-size: 0.75rem !important; margin: 0 !important; }
.hero-cms-carousel .hero-slide-content-left {
  max-width: calc(100% - 190px) !important;
  width: auto !important;
}

/* Tablet */
@media (max-width: 991.98px) {
  .hero-cms-carousel .hero-slide-btn {
    width: 120px !important;
    height: 34px !important;
    font-size: 0.74rem !important;
    border-radius: 0 !important;
  }
  .hero-cms-carousel .hero-slide-content-left { max-width: calc(100% - 150px) !important; }
}

/* Mobile */
@media (max-width: 575.98px) {
  .hero-cms-carousel .hero-bottom-btn-wrapper {
    right: 8px !important;
    bottom: 10px !important;
    padding: 0 !important;
  }
  .hero-cms-carousel .hero-slide-btn {
    width: 88px !important;
    height: 26px !important;
    padding: 0 6px !important;
    font-size: 0.62rem !important;
    gap: 3px !important;
    border-radius: 0 !important;
  }
  .hero-cms-carousel .hero-slide-btn i { font-size: 0.55rem !important; }
  .hero-cms-carousel .hero-slide-content-left { max-width: calc(100% - 100px) !important; }
  .hero-features-glass-card {
    padding: 10px 4px !important;
    border-radius: 14px !important;
  }
  .hero-mobile-feature-item {
    padding: 2px 3px !important;
  }
  .hero-feature-icon-wrapper {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
  }
  .hero-feature-icon-wrapper i {
    font-size: 0.84rem !important;
  }
  .hero-feature-text {
    font-size: 0.69rem !important;
    line-height: 1.2 !important;
    font-weight: 500;
  }

  .badge-mobile-stack {
    width: 100%;
    justify-content: flex-start;
  }
}

.hero-stat-box {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat-box:last-child {
  border-right: none;
}

/* Seamless Unbreakable Formal Input Group Container with Light & Shadow */
.hero-auth-card .input-group {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.05),
    0 1px 1px rgba(255, 255, 255, 0.9) !important;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-auth-card .input-group:focus-within {
  border-color: #1a73e8 !important;
  box-shadow:
    0 0 0 3px rgba(26, 115, 232, 0.22),
    0 4px 12px rgba(26, 115, 232, 0.14),
    inset 0 1px 1px rgba(15, 23, 42, 0.02) !important;
}

.hero-auth-card .input-group .input-group-text,
.hero-auth-card .input-group .form-control,
.hero-auth-card .input-group .btn {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.hero-auth-card .input-group .input-group-text {
  background-color: #f8fafc !important;
  color: #64748b !important;
  padding: 0.65rem 0.85rem !important;
  display: flex !important;
  align-items: center !important;
}

.hero-auth-card .input-group .form-control {
  color: #0f172a !important;
  padding: 0.65rem 0.75rem 0.65rem 0.5rem !important;
  font-size: 0.95rem !important;
  flex: 1 1 auto !important;
  width: 1% !important;
}

@media (min-width: 992px) {
  .hero-auth-card .input-group {
    min-height: 48px !important;
    height: 48px !important;
  }
  .hero-auth-card .input-group .form-control {
    padding: 0.72rem 1.05rem !important;
    font-size: 0.96rem !important;
  }
  .hero-auth-card .input-group .input-group-text,
  .hero-auth-card .input-group .btn {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 1.15rem !important;
  }
}

@media (max-width: 991.98px) {
  .hero-auth-card .input-group {
    min-height: 46px !important;
    height: 46px !important;
  }
  .hero-auth-card .input-group .form-control {
    font-size: 16px !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }
}

/* Formal Password Toggle Eye Button inside Seamless Container */
.password-toggle-btn {
  background-color: #f8fafc !important;
  color: #64748b !important;
  border: none !important;
  padding: 0.65rem 0.85rem !important;
  transition: all 0.2s ease !important;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
  background-color: #0f172a !important;
  color: #fbbf24 !important;
  box-shadow: none !important;
}

/* Remove Chrome/Safari/Edge yellow & blue Autofill highlight background */
.hero-auth-card input:-webkit-autofill,
.hero-auth-card input:-webkit-autofill:hover,
.hero-auth-card input:-webkit-autofill:focus,
.hero-auth-card input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Section Container Spacing & Spacing Gap Utilities */
main section {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

@media (min-width: 768px) {
  main section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

main section.hero-section,
body main section.hero-section,
html body main section.hero-section {
  padding-top: 2rem !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Full Width Container Setup */
.container-full {
  width: 100%;
  padding-left: clamp(1rem, 4vw, 3.5rem);
  padding-right: clamp(1rem, 4vw, 3.5rem);
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Containers */
.container-xxl, .container-xl, .container-lg, .container {
  width: 100%;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

@media (min-width: 1400px) {
  .container-xxl, .container-full {
    max-width: 1560px;
  }
}

@media (min-width: 1600px) {
  .container-xxl, .container-full {
    max-width: 1720px;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography & Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--primary-hover);
}

/* Card Styling */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   UNIVERSAL BUTTON HEIGHT & ALIGNMENT STANDARDIZATION SYSTEM
   Enforces consistent, pixel-perfect heights across all tiers, pages & devices
   ========================================================================== */

/* 1. Base Button Standardization */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-sm, 8px);
  white-space: nowrap;
}

/* 2. Tier 1: Standard Default Buttons (42px) */
.btn:not(.btn-sm):not(.btn-lg):not(.btn-xs):not(.palette-btn):not(.question-palette-btn):not(.navbar-toggler):not(.btn-close):not(.btn-icon) {
  min-height: 42px;
  height: 42px;
  padding: 0 1.25rem;
  font-size: 0.925rem;
}

/* 3. Tier 2: Small Buttons (36px) - Table actions, toolbars, secondary actions */
.btn-sm,
.table .btn:not(.btn-lg),
.card-header .btn-sm,
.input-group-sm .btn {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 0.85rem !important;
  font-size: 0.835rem !important;
  border-radius: 7px !important;
}

/* 4. Tier 3: Large Buttons (48px) - Hero CTAs, Main action forms */
.btn-lg,
.input-group-lg .btn {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 1.75rem !important;
  font-size: 1.05rem !important;
  border-radius: 10px !important;
}

/* 5. Form Input Group Alignment (Buttons & Inputs side-by-side) */
.input-group:not(.input-group-sm):not(.input-group-lg) > .form-control,
.input-group:not(.input-group-sm):not(.input-group-lg) > .form-select,
.input-group:not(.input-group-sm):not(.input-group-lg) > .btn {
  min-height: 42px !important;
  height: 42px !important;
}

.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .btn {
  min-height: 36px !important;
  height: 36px !important;
}

.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .btn {
  min-height: 48px !important;
  height: 48px !important;
}

/* 6. Table Action Buttons & Action Groups */
.table td .btn,
.table td .btn-group .btn {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 0.65rem !important;
  font-size: 0.82rem !important;
}

/* 7. Icon-Only & Square Action Buttons */
.btn-icon,
.btn-icon-sm,
.table td .btn.btn-sm.rounded-circle,
.table td .btn.btn-sm.p-1 {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary-custom {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}
.btn-secondary-custom:hover {
  background-color: #133b5c;
  color: #fff;
}

/* Badges & Pills */
.badge-student {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}
.badge-school {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}
.badge-admin {
  background: linear-gradient(135deg, #0b2545 0%, #1e3a8a 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

/* Auth Layout */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 4px 6px -1px rgba(2, 6, 23, 0.06),
    0 16px 32px -4px rgba(2, 6, 23, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  position: relative;
}

@media (min-width: 992px) {
  .auth-card .form-control,
  .auth-card .input-group-text,
  .auth-card .btn {
    min-height: 48px;
    font-size: 0.96rem;
  }
  .auth-card .form-label {
    font-size: 0.90rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.45rem;
  }
}
.auth-logo {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enterprise Professional Admin Dashboard Layout */
:root {
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-hover: rgba(255, 255, 255, 0.06);
  --admin-sidebar-active-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.04) 100%);
  --admin-sidebar-active-text: #60a5fa;
  --admin-sidebar-border: rgba(255, 255, 255, 0.08);
  --admin-text-muted: #64748b;
  --admin-text-body: #94a3b8;
  --admin-topbar-bg: #ffffff;
  --admin-topbar-border: #e2e8f0;
  --admin-canvas-bg: #f8fafc;
}

.admin-wrapper {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: var(--admin-canvas-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar Styling */
.admin-sidebar {
  width: 280px;
  background-color: var(--admin-sidebar-bg);
  color: var(--admin-text-body);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--admin-sidebar-border);
  z-index: 1040;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.admin-sidebar .sidebar-brand {
  padding: 1.35rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--admin-sidebar-border);
  background: rgba(255, 255, 255, 0.015);
  position: relative;
  flex-shrink: 0;
}

.admin-sidebar .brand-logo-container {
  margin-top: 0.35rem;
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-sidebar .brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.admin-sidebar .brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.admin-sidebar .brand-title-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar .brand-subtitle-text {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
}

.admin-sidebar .sidebar-nav {
  padding: 1rem 0.85rem 2rem 0.85rem;
  list-style: none;
  margin: 0;
  flex-grow: 1;
}

/* Sidebar Nav Items & Tabs with Spacing */
.admin-sidebar .nav-item {
  margin-bottom: 8px;
}

/* Dashboard Tab-Like Sidebar Links (Transparent, White Text, Smooth Hover, 10px Radius) */
.admin-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-size: 0.89rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
}

.admin-sidebar .sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-sidebar .sidebar-link i.link-icon {
  font-size: 1.1rem;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.admin-sidebar .sidebar-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.admin-sidebar .sidebar-link:hover i.link-icon {
  color: #ffffff;
}

/* Main Tab Active State (Dashboard & Main Parent Tabs Highlighted Identically) */
.admin-sidebar .sidebar-link.active {
  background: rgba(59, 130, 246, 0.20);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.40);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}

.admin-sidebar .sidebar-link.active i.link-icon {
  color: #60a5fa;
}

.admin-sidebar .sidebar-link .chevron-icon {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, color 0.2s ease;
}

.admin-sidebar .sidebar-link:hover .chevron-icon {
  color: #ffffff;
}

.admin-sidebar .sidebar-link:not(.collapsed) .chevron-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Sidebar Submenus (Clean, No Bullets, Smooth Hover, 10px Radius) */
.admin-sidebar .sidebar-submenu {
  list-style: none;
  padding: 0.35rem 0 0.5rem 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-sidebar .sidebar-submenu li {
  margin-bottom: 0;
}

.admin-sidebar .sidebar-submenu a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
  background: transparent;
  border: 1px solid transparent;
}

.admin-sidebar .sidebar-submenu a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

/* Inner Active Sub-Tab (Slightly Dimmer than Main Tab, Minimal & Clean) */
.admin-sidebar .sidebar-submenu a.active {
  color: #bfdbfe !important;
  background: rgba(59, 130, 246, 0.09) !important;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.20) !important;
  border-left: 3px solid rgba(96, 165, 250, 0.65) !important;
  transform: translateX(2px);
}

/* Sidebar Footer */
.admin-sidebar .sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--admin-sidebar-border);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.admin-sidebar .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Main Content & Topbar Area */
.admin-content {
  flex-grow: 1;
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--admin-canvas-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-topbar {
  background-color: var(--admin-topbar-bg);
  border-bottom: 1px solid var(--admin-topbar-border);
  height: 68px;
  min-height: 68px;
  padding: 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.admin-menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--admin-topbar-border);
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.admin-menu-toggle:hover {
  background: #f8fafc;
  color: #2563eb;
  border-color: #cbd5e1;
}

/* Professional Executive Topbar Badges (10px Radius) */
.topbar-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  letter-spacing: 0.02em;
}

.status-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-badge-year {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  letter-spacing: 0.02em;
}

.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1200px) {
  .topbar-right-actions {
    gap: 1.25rem;
  }
}

.topbar-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  transition: all 0.18s ease;
}

.topbar-action-btn:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* User profile button & menu (10px Radius with Generous Gap) */
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.42rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--admin-topbar-border);
  background: #ffffff;
  transition: all 0.18s ease;
  cursor: pointer;
}

.topbar-user-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.topbar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Mobile Sidebar Backdrop & Responsive Toggles */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1035;
}

@media (max-width: 991.98px) {
  .admin-wrapper {
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow: visible;
  }
  .admin-content {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .sidebar-backdrop.show {
    display: block;
  }
}

/* Sidebar Squeeze Button (Inside Sidebar) */
.sidebar-squeeze-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.88rem;
  z-index: 10;
  padding: 0;
}

.sidebar-squeeze-btn:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
  color: #ffffff;
  transform: scale(1.08);
}

.sidebar-squeeze-btn .squeeze-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   ADMIN SQUEEZED / COLLAPSED SIDEBAR (Active ONLY when body.sidebar-collapsed)
   ========================================================================== */
body.sidebar-collapsed .admin-sidebar,
html.sidebar-collapsed .admin-sidebar {
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
}

body.sidebar-collapsed .admin-sidebar .sidebar-brand,
html.sidebar-collapsed .admin-sidebar .sidebar-brand {
  padding: 1.25rem 0.35rem 1rem 0.35rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  position: relative;
  border-bottom: 1px solid var(--admin-sidebar-border);
  overflow: visible !important;
}

body.sidebar-collapsed .admin-sidebar .brand-logo-container,
html.sidebar-collapsed .admin-sidebar .brand-logo-container {
  width: 100% !important;
  max-width: 58px !important;
  min-height: 40px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.sidebar-collapsed .admin-sidebar .brand-logo-img,
html.sidebar-collapsed .admin-sidebar .brand-logo-img {
  max-width: 52px !important;
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
}

body.sidebar-collapsed .admin-sidebar .brand-logo-icon,
html.sidebar-collapsed .admin-sidebar .brand-logo-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  margin: 0 auto !important;
}

body.sidebar-collapsed .admin-sidebar .sidebar-squeeze-btn,
html.sidebar-collapsed .admin-sidebar .sidebar-squeeze-btn {
  position: static !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
  width: 42px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #93c5fd !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.sidebar-collapsed .admin-sidebar .sidebar-squeeze-btn .squeeze-icon,
html.sidebar-collapsed .admin-sidebar .sidebar-squeeze-btn .squeeze-icon {
  transform: rotate(180deg);
}

/* HIDE Brand text & Navigation link labels ONLY when .sidebar-collapsed is on body/html */
body.sidebar-collapsed .admin-sidebar .brand-text-container,
body.sidebar-collapsed .admin-sidebar .brand-title-text,
body.sidebar-collapsed .admin-sidebar .brand-subtitle-text,
body.sidebar-collapsed .admin-sidebar .sidebar-link span,
body.sidebar-collapsed .admin-sidebar .chevron-icon,
body.sidebar-collapsed .admin-sidebar .sidebar-footer .overflow-hidden,
body.sidebar-collapsed .admin-sidebar .sidebar-footer form,
html.sidebar-collapsed .admin-sidebar .brand-text-container,
html.sidebar-collapsed .admin-sidebar .brand-title-text,
html.sidebar-collapsed .admin-sidebar .brand-subtitle-text,
html.sidebar-collapsed .admin-sidebar .sidebar-link span,
html.sidebar-collapsed .admin-sidebar .chevron-icon,
html.sidebar-collapsed .admin-sidebar .sidebar-footer .overflow-hidden,
html.sidebar-collapsed .admin-sidebar .sidebar-footer form {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.sidebar-collapsed .admin-sidebar .sidebar-nav,
html.sidebar-collapsed .admin-sidebar .sidebar-nav {
  padding: 0.75rem 0.35rem !important;
  gap: 0.45rem !important;
  align-items: center;
}

body.sidebar-collapsed .admin-sidebar .nav-item,
html.sidebar-collapsed .admin-sidebar .nav-item {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Centered 44px Icon Buttons in Squeezed State */
body.sidebar-collapsed .admin-sidebar .sidebar-link,
html.sidebar-collapsed .admin-sidebar .sidebar-link {
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  margin: 0 auto;
}

body.sidebar-collapsed .admin-sidebar .sidebar-link-content,
html.sidebar-collapsed .admin-sidebar .sidebar-link-content {
  gap: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.sidebar-collapsed .admin-sidebar .sidebar-link i.link-icon,
html.sidebar-collapsed .admin-sidebar .sidebar-link i.link-icon {
  font-size: 1.3rem !important;
  margin: 0 !important;
  width: auto !important;
  display: inline-block;
}

body.sidebar-collapsed .admin-sidebar .sidebar-footer,
html.sidebar-collapsed .admin-sidebar .sidebar-footer {
  padding: 0.75rem 0.25rem !important;
}

body.sidebar-collapsed .admin-sidebar .sidebar-footer .d-flex,
html.sidebar-collapsed .admin-sidebar .sidebar-footer .d-flex {
  justify-content: center !important;
}

body.sidebar-collapsed .admin-sidebar .user-avatar,
html.sidebar-collapsed .admin-sidebar .user-avatar {
  width: 36px !important;
  height: 36px !important;
}

/* Floating Flyout Submenu in Squeezed State */
body.sidebar-collapsed .admin-sidebar .collapse,
html.sidebar-collapsed .admin-sidebar .collapse {
  display: none !important;
}

body.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse,
body.sidebar-collapsed .admin-sidebar .nav-item:focus-within > .collapse,
html.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse,
html.sidebar-collapsed .admin-sidebar .nav-item:focus-within > .collapse {
  display: block !important;
  position: absolute;
  left: 70px;
  top: 0;
  min-width: 220px;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0 12px 12px 0;
  box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.5);
  z-index: 1060;
  padding: 0.6rem 0.4rem;
}

body.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu,
body.sidebar-collapsed .admin-sidebar .nav-item:focus-within > .collapse .sidebar-submenu,
html.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu,
html.sidebar-collapsed .admin-sidebar .nav-item:focus-within > .collapse .sidebar-submenu {
  padding: 0 0.25rem;
  margin: 0;
  border-left: none !important;
  list-style: none;
}

body.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu a,
body.sidebar-collapsed .admin-sidebar .nav-item:focus-within > .collapse .sidebar-submenu a,
html.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu a,
html.sidebar-collapsed .admin-sidebar .nav-item:focus-within > .collapse .sidebar-submenu a {
  padding: 0.55rem 0.85rem;
  font-size: 0.825rem;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

body.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu a:hover,
body.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu a.active,
html.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu a:hover,
html.sidebar-collapsed .admin-sidebar .nav-item:hover > .collapse .sidebar-submenu a.active {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

body.sidebar-collapsed .admin-content,
html.sidebar-collapsed .admin-content {
  width: calc(100vw - 74px) !important;
}

/* Quick Action Widgets */
/* Quick Action & Stat Widgets */
.stat-card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

.stat-icon,
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

/* Table Design */
.table-custom {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-custom thead th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
}
.table-custom tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

/* Tabs and Filter Bar Containers Spacing */
.class-filter-container,
#classNavPills,
#tuitionClassTabs,
.class-tabs-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.85rem !important; /* Generous spacing between different tabs */
  padding: 0.85rem 1rem !important;
  margin-bottom: 1.75rem !important;
  align-items: center;
  border-radius: 12px !important;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.class-filter-container {
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Base Class Tab Button with 10px background radius */
.class-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px !important; /* 10px background radius */
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  border-width: 2px !important;
  border-style: solid !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.class-filter-btn .tab-count {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 6px !important;
  transition: all 0.2s ease;
  line-height: 1;
  letter-spacing: 0.02em;
}

.class-filter-btn:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.class-filter-btn.active {
  transform: translateY(-2px);
  font-weight: 800;
}

/* =========================================================
   Distinct Vibrant Colour Themes Per Class / Grade Tab (10px Radius)
   ========================================================= */

/* All Grades / All Classes - Navy Slate Theme */
.class-filter-btn[data-class="all"],
.class-filter-btn[data-class="0"] {
  background-color: #f1f5f9;
  border-color: #475569 !important;
  color: #0f172a;
}
.class-filter-btn[data-class="all"] .tab-count,
.class-filter-btn[data-class="0"] .tab-count {
  background-color: #334155;
  color: #ffffff;
}
.class-filter-btn[data-class="all"]:hover,
.class-filter-btn[data-class="0"]:hover {
  background-color: #e2e8f0;
  border-color: #1e293b !important;
  color: #000000;
}
.class-filter-btn[data-class="all"].active,
.class-filter-btn[data-class="0"].active {
  background: linear-gradient(135deg, #0b2545 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-color: #0b2545 !important;
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.4), 0 0 0 2px rgba(11, 37, 69, 0.2) !important;
}
.class-filter-btn[data-class="all"].active .tab-count,
.class-filter-btn[data-class="0"].active .tab-count {
  background-color: #f59e0b !important;
  color: #0b2545 !important;
}

/* Nursery (-3) - Rose Coral Pink */
.class-filter-btn[data-class="-3"],
.class-filter-btn[data-class*="nursery"],
.class-filter-btn[data-class*="Nursery"],
.class-filter-btn[data-class-name*="Nursery"] {
  background-color: #ffe4e6;
  border-color: #f43f5e !important;
  color: #9f1239;
}
.class-filter-btn[data-class="-3"] .tab-count,
.class-filter-btn[data-class-name*="Nursery"] .tab-count {
  background-color: #e11d48;
  color: #ffffff;
}
.class-filter-btn[data-class="-3"]:hover,
.class-filter-btn[data-class-name*="Nursery"]:hover {
  background-color: #fecdd3;
  border-color: #e11d48 !important;
  color: #881337;
}
.class-filter-btn[data-class="-3"].active,
.class-filter-btn[data-class-name*="Nursery"].active {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border-color: #be123c !important;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4), 0 0 0 2px rgba(244, 63, 94, 0.2) !important;
}
.class-filter-btn[data-class="-3"].active .tab-count,
.class-filter-btn[data-class-name*="Nursery"].active .tab-count {
  background-color: #ffffff !important;
  color: #be123c !important;
}

/* LKG (-2) - Warm Amber Orange */
.class-filter-btn[data-class="-2"],
.class-filter-btn[data-class*="lkg"],
.class-filter-btn[data-class*="LKG"],
.class-filter-btn[data-class-name*="LKG"] {
  background-color: #fef3c7;
  border-color: #f59e0b !important;
  color: #92400e;
}
.class-filter-btn[data-class="-2"] .tab-count,
.class-filter-btn[data-class-name*="LKG"] .tab-count {
  background-color: #d97706;
  color: #ffffff;
}
.class-filter-btn[data-class="-2"]:hover,
.class-filter-btn[data-class-name*="LKG"]:hover {
  background-color: #fde68a;
  border-color: #d97706 !important;
  color: #78350f;
}
.class-filter-btn[data-class="-2"].active,
.class-filter-btn[data-class-name*="LKG"].active {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}
.class-filter-btn[data-class="-2"].active .tab-count,
.class-filter-btn[data-class-name*="LKG"].active .tab-count {
  background-color: #ffffff !important;
  color: #b45309 !important;
}

/* UKG (-1) - Emerald Green */
.class-filter-btn[data-class="-1"],
.class-filter-btn[data-class*="ukg"],
.class-filter-btn[data-class*="UKG"],
.class-filter-btn[data-class-name*="UKG"] {
  background-color: #d1fae5;
  border-color: #10b981 !important;
  color: #065f46;
}
.class-filter-btn[data-class="-1"] .tab-count,
.class-filter-btn[data-class-name*="UKG"] .tab-count {
  background-color: #059669;
  color: #ffffff;
}
.class-filter-btn[data-class="-1"]:hover,
.class-filter-btn[data-class-name*="UKG"]:hover {
  background-color: #a7f3d0;
  border-color: #059669 !important;
  color: #022c22;
}
.class-filter-btn[data-class="-1"].active,
.class-filter-btn[data-class-name*="UKG"].active {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}
.class-filter-btn[data-class="-1"].active .tab-count,
.class-filter-btn[data-class-name*="UKG"].active .tab-count {
  background-color: #ffffff !important;
  color: #047857 !important;
}

/* Class 1 - Vibrant Electric Teal */
.class-filter-btn[data-class="1"],
.class-filter-btn[data-class-name="Class 1"],
.class-filter-btn[data-class-name*="Class 1 "] {
  background-color: #ccfbf1;
  border-color: #14b8a6 !important;
  color: #115e59;
}
.class-filter-btn[data-class="1"] .tab-count,
.class-filter-btn[data-class-name="Class 1"] .tab-count,
.class-filter-btn[data-class-name*="Class 1 "] .tab-count {
  background-color: #0d9488;
  color: #ffffff;
}
.class-filter-btn[data-class="1"]:hover,
.class-filter-btn[data-class-name="Class 1"]:hover,
.class-filter-btn[data-class-name*="Class 1 "]:hover {
  background-color: #99f6e4;
  border-color: #0d9488 !important;
  color: #042f2e;
}
.class-filter-btn[data-class="1"].active,
.class-filter-btn[data-class-name="Class 1"].active,
.class-filter-btn[data-class-name*="Class 1 "].active {
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4), 0 0 0 2px rgba(20, 184, 166, 0.2) !important;
}
.class-filter-btn[data-class="1"].active .tab-count,
.class-filter-btn[data-class-name="Class 1"].active .tab-count,
.class-filter-btn[data-class-name*="Class 1 "].active .tab-count {
  background-color: #ffffff !important;
  color: #0f766e !important;
}

/* Class 2 - Sky Blue */
.class-filter-btn[data-class="2"],
.class-filter-btn[data-class-name="Class 2"],
.class-filter-btn[data-class-name*="Class 2 "] {
  background-color: #e0f2fe;
  border-color: #0ea5e9 !important;
  color: #075985;
}
.class-filter-btn[data-class="2"] .tab-count,
.class-filter-btn[data-class-name="Class 2"] .tab-count,
.class-filter-btn[data-class-name*="Class 2 "] .tab-count {
  background-color: #0284c7;
  color: #ffffff;
}
.class-filter-btn[data-class="2"]:hover,
.class-filter-btn[data-class-name="Class 2"]:hover,
.class-filter-btn[data-class-name*="Class 2 "]:hover {
  background-color: #bae6fd;
  border-color: #0284c7 !important;
  color: #0c4a6e;
}
.class-filter-btn[data-class="2"].active,
.class-filter-btn[data-class-name="Class 2"].active,
.class-filter-btn[data-class-name*="Class 2 "].active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4), 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}
.class-filter-btn[data-class="2"].active .tab-count,
.class-filter-btn[data-class-name="Class 2"].active .tab-count,
.class-filter-btn[data-class-name*="Class 2 "].active .tab-count {
  background-color: #ffffff !important;
  color: #0284c7 !important;
}

/* Class 3 - Royal Sapphire Blue */
.class-filter-btn[data-class="3"],
.class-filter-btn[data-class-name="Class 3"],
.class-filter-btn[data-class-name*="Class 3 "] {
  background-color: #dbeafe;
  border-color: #3b82f6 !important;
  color: #1e40af;
}
.class-filter-btn[data-class="3"] .tab-count,
.class-filter-btn[data-class-name="Class 3"] .tab-count,
.class-filter-btn[data-class-name*="Class 3 "] .tab-count {
  background-color: #2563eb;
  color: #ffffff;
}
.class-filter-btn[data-class="3"]:hover,
.class-filter-btn[data-class-name="Class 3"]:hover,
.class-filter-btn[data-class-name*="Class 3 "]:hover {
  background-color: #bfdbfe;
  border-color: #1d4ed8 !important;
  color: #172554;
}
.class-filter-btn[data-class="3"].active,
.class-filter-btn[data-class-name="Class 3"].active,
.class-filter-btn[data-class-name*="Class 3 "].active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}
.class-filter-btn[data-class="3"].active .tab-count,
.class-filter-btn[data-class-name="Class 3"].active .tab-count,
.class-filter-btn[data-class-name*="Class 3 "].active .tab-count {
  background-color: #ffffff !important;
  color: #1d4ed8 !important;
}

/* Class 4 - Deep Indigo */
.class-filter-btn[data-class="4"],
.class-filter-btn[data-class-name="Class 4"],
.class-filter-btn[data-class-name*="Class 4 "] {
  background-color: #e0e7ff;
  border-color: #6366f1 !important;
  color: #3730a3;
}
.class-filter-btn[data-class="4"] .tab-count,
.class-filter-btn[data-class-name="Class 4"] .tab-count,
.class-filter-btn[data-class-name*="Class 4 "] .tab-count {
  background-color: #4f46e5;
  color: #ffffff;
}
.class-filter-btn[data-class="4"]:hover,
.class-filter-btn[data-class-name="Class 4"]:hover,
.class-filter-btn[data-class-name*="Class 4 "]:hover {
  background-color: #c7d2fe;
  border-color: #4338ca !important;
  color: #1e1b4b;
}
.class-filter-btn[data-class="4"].active,
.class-filter-btn[data-class-name="Class 4"].active,
.class-filter-btn[data-class-name*="Class 4 "].active {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}
.class-filter-btn[data-class="4"].active .tab-count,
.class-filter-btn[data-class-name="Class 4"].active .tab-count,
.class-filter-btn[data-class-name*="Class 4 "].active .tab-count {
  background-color: #ffffff !important;
  color: #4338ca !important;
}

/* Class 5 - Royal Violet */
.class-filter-btn[data-class="5"],
.class-filter-btn[data-class-name="Class 5"],
.class-filter-btn[data-class-name*="Class 5 "] {
  background-color: #ede9fe;
  border-color: #8b5cf6 !important;
  color: #5b21b6;
}
.class-filter-btn[data-class="5"] .tab-count,
.class-filter-btn[data-class-name="Class 5"] .tab-count,
.class-filter-btn[data-class-name*="Class 5 "] .tab-count {
  background-color: #7c3aed;
  color: #ffffff;
}
.class-filter-btn[data-class="5"]:hover,
.class-filter-btn[data-class-name="Class 5"]:hover,
.class-filter-btn[data-class-name*="Class 5 "]:hover {
  background-color: #ddd6fe;
  border-color: #6d28d9 !important;
  color: #2e1065;
}
.class-filter-btn[data-class="5"].active,
.class-filter-btn[data-class-name="Class 5"].active,
.class-filter-btn[data-class-name*="Class 5 "].active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  color: #ffffff !important;
  border-color: #6d28d9 !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4), 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}
.class-filter-btn[data-class="5"].active .tab-count,
.class-filter-btn[data-class-name="Class 5"].active .tab-count,
.class-filter-btn[data-class-name*="Class 5 "].active .tab-count {
  background-color: #ffffff !important;
  color: #6d28d9 !important;
}

/* Class 6 - Electric Purple / Fuchsia */
.class-filter-btn[data-class="6"],
.class-filter-btn[data-class-name="Class 6"],
.class-filter-btn[data-class-name*="Class 6 "] {
  background-color: #f3e8ff;
  border-color: #a855f7 !important;
  color: #6b21a8;
}
.class-filter-btn[data-class="6"] .tab-count,
.class-filter-btn[data-class-name="Class 6"] .tab-count,
.class-filter-btn[data-class-name*="Class 6 "] .tab-count {
  background-color: #9333ea;
  color: #ffffff;
}
.class-filter-btn[data-class="6"]:hover,
.class-filter-btn[data-class-name="Class 6"]:hover,
.class-filter-btn[data-class-name*="Class 6 "]:hover {
  background-color: #e9d5ff;
  border-color: #7e22ce !important;
  color: #3b0764;
}
.class-filter-btn[data-class="6"].active,
.class-filter-btn[data-class-name="Class 6"].active,
.class-filter-btn[data-class-name*="Class 6 "].active {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  border-color: #7e22ce !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4), 0 0 0 2px rgba(168, 85, 247, 0.2) !important;
}
.class-filter-btn[data-class="6"].active .tab-count,
.class-filter-btn[data-class-name="Class 6"].active .tab-count,
.class-filter-btn[data-class-name*="Class 6 "].active .tab-count {
  background-color: #ffffff !important;
  color: #7e22ce !important;
}

/* Class 7 - Orchid Magenta */
.class-filter-btn[data-class="7"],
.class-filter-btn[data-class-name="Class 7"],
.class-filter-btn[data-class-name*="Class 7 "] {
  background-color: #fae8ff;
  border-color: #d946ef !important;
  color: #86198f;
}
.class-filter-btn[data-class="7"] .tab-count,
.class-filter-btn[data-class-name="Class 7"] .tab-count,
.class-filter-btn[data-class-name*="Class 7 "] .tab-count {
  background-color: #c026d3;
  color: #ffffff;
}
.class-filter-btn[data-class="7"]:hover,
.class-filter-btn[data-class-name="Class 7"]:hover,
.class-filter-btn[data-class-name*="Class 7 "]:hover {
  background-color: #f5d0fe;
  border-color: #a21caf !important;
  color: #4a044e;
}
.class-filter-btn[data-class="7"].active,
.class-filter-btn[data-class-name="Class 7"].active,
.class-filter-btn[data-class-name*="Class 7 "].active {
  background: linear-gradient(135deg, #d946ef 0%, #a21caf 100%) !important;
  color: #ffffff !important;
  border-color: #a21caf !important;
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.4), 0 0 0 2px rgba(217, 70, 239, 0.2) !important;
}
.class-filter-btn[data-class="7"].active .tab-count,
.class-filter-btn[data-class-name="Class 7"].active .tab-count,
.class-filter-btn[data-class-name*="Class 7 "].active .tab-count {
  background-color: #ffffff !important;
  color: #a21caf !important;
}

/* Class 8 - Pink Rose */
.class-filter-btn[data-class="8"],
.class-filter-btn[data-class-name="Class 8"],
.class-filter-btn[data-class-name*="Class 8 "] {
  background-color: #fce7f3;
  border-color: #ec4899 !important;
  color: #9d174d;
}
.class-filter-btn[data-class="8"] .tab-count,
.class-filter-btn[data-class-name="Class 8"] .tab-count,
.class-filter-btn[data-class-name*="Class 8 "] .tab-count {
  background-color: #db2777;
  color: #ffffff;
}
.class-filter-btn[data-class="8"]:hover,
.class-filter-btn[data-class-name="Class 8"]:hover,
.class-filter-btn[data-class-name*="Class 8 "]:hover {
  background-color: #fbcfe8;
  border-color: #be185d !important;
  color: #500724;
}
.class-filter-btn[data-class="8"].active,
.class-filter-btn[data-class-name="Class 8"].active,
.class-filter-btn[data-class-name*="Class 8 "].active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4), 0 0 0 2px rgba(236, 72, 153, 0.2) !important;
}
.class-filter-btn[data-class="8"].active .tab-count,
.class-filter-btn[data-class-name="Class 8"].active .tab-count,
.class-filter-btn[data-class-name*="Class 8 "].active .tab-count {
  background-color: #ffffff !important;
  color: #be185d !important;
}

/* Class 9 - Crimson Coral */
.class-filter-btn[data-class="9"],
.class-filter-btn[data-class-name="Class 9"],
.class-filter-btn[data-class-name*="Class 9 "] {
  background-color: #ffe4e6;
  border-color: #f43f5e !important;
  color: #9f1239;
}
.class-filter-btn[data-class="9"] .tab-count,
.class-filter-btn[data-class-name="Class 9"] .tab-count,
.class-filter-btn[data-class-name*="Class 9 "] .tab-count {
  background-color: #e11d48;
  color: #ffffff;
}
.class-filter-btn[data-class="9"]:hover,
.class-filter-btn[data-class-name="Class 9"]:hover,
.class-filter-btn[data-class-name*="Class 9 "]:hover {
  background-color: #fecdd3;
  border-color: #e11d48 !important;
  color: #881337;
}
.class-filter-btn[data-class="9"].active,
.class-filter-btn[data-class-name="Class 9"].active,
.class-filter-btn[data-class-name*="Class 9 "].active {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4), 0 0 0 2px rgba(244, 63, 94, 0.2) !important;
}
.class-filter-btn[data-class="9"].active .tab-count,
.class-filter-btn[data-class-name="Class 9"].active .tab-count,
.class-filter-btn[data-class-name*="Class 9 "].active .tab-count {
  background-color: #ffffff !important;
  color: #e11d48 !important;
}

/* Class 10 - Vibrant Tangerine */
.class-filter-btn[data-class="10"],
.class-filter-btn[data-class-name="Class 10"],
.class-filter-btn[data-class-name*="Class 10"] {
  background-color: #ffedd5;
  border-color: #f97316 !important;
  color: #9a3412;
}
.class-filter-btn[data-class="10"] .tab-count,
.class-filter-btn[data-class-name="Class 10"] .tab-count,
.class-filter-btn[data-class-name*="Class 10"] .tab-count {
  background-color: #ea580c;
  color: #ffffff;
}
.class-filter-btn[data-class="10"]:hover,
.class-filter-btn[data-class-name="Class 10"]:hover,
.class-filter-btn[data-class-name*="Class 10"]:hover {
  background-color: #fed7aa;
  border-color: #ea580c !important;
  color: #7c2d12;
}
.class-filter-btn[data-class="10"].active,
.class-filter-btn[data-class-name="Class 10"].active,
.class-filter-btn[data-class-name*="Class 10"].active {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  border-color: #c2410c !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), 0 0 0 2px rgba(249, 115, 22, 0.2) !important;
}
.class-filter-btn[data-class="10"].active .tab-count,
.class-filter-btn[data-class-name="Class 10"].active .tab-count,
.class-filter-btn[data-class-name*="Class 10"].active .tab-count {
  background-color: #ffffff !important;
  color: #c2410c !important;
}

/* Class 11 - Emerald Green */
.class-filter-btn[data-class="11"],
.class-filter-btn[data-class-name="Class 11"],
.class-filter-btn[data-class-name*="Class 11"] {
  background-color: #dcfce7;
  border-color: #22c55e !important;
  color: #166534;
}
.class-filter-btn[data-class="11"] .tab-count,
.class-filter-btn[data-class-name="Class 11"] .tab-count,
.class-filter-btn[data-class-name*="Class 11"] .tab-count {
  background-color: #16a34a;
  color: #ffffff;
}
.class-filter-btn[data-class="11"]:hover,
.class-filter-btn[data-class-name="Class 11"]:hover,
.class-filter-btn[data-class-name*="Class 11"]:hover {
  background-color: #bbf7d0;
  border-color: #16a34a !important;
  color: #14532d;
}
.class-filter-btn[data-class="11"].active,
.class-filter-btn[data-class-name="Class 11"].active,
.class-filter-btn[data-class-name*="Class 11"].active {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
  color: #ffffff !important;
  border-color: #15803d !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4), 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}
.class-filter-btn[data-class="11"].active .tab-count,
.class-filter-btn[data-class-name="Class 11"].active .tab-count,
.class-filter-btn[data-class-name*="Class 11"].active .tab-count {
  background-color: #ffffff !important;
  color: #15803d !important;
}

/* Class 12 - Deep Cobalt Ultramarine */
.class-filter-btn[data-class="12"],
.class-filter-btn[data-class-name="Class 12"],
.class-filter-btn[data-class-name*="Class 12"] {
  background-color: #dbeafe;
  border-color: #2563eb !important;
  color: #1e3a8a;
}
.class-filter-btn[data-class="12"] .tab-count,
.class-filter-btn[data-class-name="Class 12"] .tab-count,
.class-filter-btn[data-class-name*="Class 12"] .tab-count {
  background-color: #1e40af;
  color: #ffffff;
}
.class-filter-btn[data-class="12"]:hover,
.class-filter-btn[data-class-name="Class 12"]:hover,
.class-filter-btn[data-class-name*="Class 12"]:hover {
  background-color: #bfdbfe;
  border-color: #1d4ed8 !important;
  color: #172554;
}
.class-filter-btn[data-class="12"].active,
.class-filter-btn[data-class-name="Class 12"].active,
.class-filter-btn[data-class-name*="Class 12"].active {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-color: #1e3a8a !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}
.class-filter-btn[data-class="12"].active .tab-count,
.class-filter-btn[data-class-name="Class 12"].active .tab-count,
.class-filter-btn[data-class-name*="Class 12"].active .tab-count {
  background-color: #ffffff !important;
  color: #1e3a8a !important;
}

/* Cyclic Fallback Colors for any custom numbered classes */
.class-filter-btn:nth-child(8n+1):not([data-class]).active {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  color: #fff !important;
  border-color: #0f766e !important;
}
.class-filter-btn:nth-child(8n+2):not([data-class]).active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important;
  border-color: #0284c7 !important;
}
.class-filter-btn:nth-child(8n+3):not([data-class]).active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  color: #fff !important;
  border-color: #6d28d9 !important;
}
.class-filter-btn:nth-child(8n+4):not([data-class]).active {
  background: linear-gradient(135deg, #f43f5e, #be123c) !important;
  color: #fff !important;
  border-color: #be123c !important;
}
.class-filter-btn:nth-child(8n+5):not([data-class]).active {
  background: linear-gradient(135deg, #f97316, #c2410c) !important;
  color: #fff !important;
  border-color: #c2410c !important;
}
.class-filter-btn:nth-child(8n+6):not([data-class]).active {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  color: #fff !important;
  border-color: #15803d !important;
}
.class-filter-btn:nth-child(8n+7):not([data-class]).active {
  background: linear-gradient(135deg, #d946ef, #a21caf) !important;
  color: #fff !important;
  border-color: #a21caf !important;
}
.class-filter-btn:nth-child(8n+8):not([data-class]).active {
  background: linear-gradient(135deg, #6366f1, #4338ca) !important;
  color: #fff !important;
  border-color: #4338ca !important;
}

/* Category & General Nav-Pills Spacing */
.nav-pills {
  display: flex;
  gap: 0.65rem !important; /* Space between different pills */
  padding-bottom: 0.25rem;
}
.nav-pills .nav-link {
  border-radius: 9999px;
  padding: 0.5rem 1.15rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  background-color: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s ease;
}
.nav-pills .nav-link:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

/* Nav Tabs Spacing */
.nav-tabs {
  display: flex;
  gap: 0.5rem !important; /* Space between different tabs */
  border-bottom: 2px solid #e2e8f0;
}
.nav-tabs .nav-link {
  border-radius: 10px 10px 0 0;
  padding: 0.75rem 1.25rem;
  margin-right: 0.25rem;
  transition: all 0.2s ease;
}

/* Countdown Widgets */
.countdown-box {
  min-width: 54px;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 576px) {
  .countdown-box {
    min-width: 68px;
    padding: 0.6rem 0.5rem;
  }
}

/* Helpers */
.min-w-60 {
  min-width: 56px;
}
.pulse-dot {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE SYSTEM
   Supports All Devices: Mobile (320px–480px), Phablets (481px–767px),
   Tablets (768px–1024px), Laptops & High-Resolution Displays
   ========================================================================== */

/* 1. Touch Target & Input Optimization (Prevents iOS Auto-Zoom) */
@media (max-width: 767.98px) {
  input.form-control,
  select.form-select,
  textarea.form-control,
  .form-control,
  .form-select {
    font-size: 16px !important; /* Enforces 16px to prevent iOS Safari auto-zoom on focus */
    min-height: 44px;
    border-radius: 10px;
  }
  
  /* Enforce 0px border-radius for password inputs and password input groups on mobile */
  input[type="password"],
  input[type="password"].form-control,
  .google-input[type="password"],
  .input-group input[type="password"],
  .input-group:has(input[type="password"]),
  .input-group:has(input[type="password"]) *,
  .password-toggle,
  .password-toggle-btn {
    border-radius: 0px !important;
  }
  
  .form-control-sm,
  .form-select-sm {
    font-size: 14px !important;
    min-height: 38px;
  }
  
  .btn:not(.btn-sm):not(.btn-xs):not(.palette-btn):not(.question-palette-btn):not(.navbar-toggler):not(.btn-close):not(.btn-icon) {
    min-height: 44px !important;
    height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-sm,
  .table td .btn {
    min-height: 36px !important;
    height: 36px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 2. Horizontal Swipeable Filter Bars (Class 1-12, Categories, Tabs) */
.class-filter-container,
.nav-pills-scrollable,
.nav-tabs-scrollable,
.horizontal-scroll-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.65rem !important;
  gap: 0.65rem !important;
}

.class-filter-container::-webkit-scrollbar,
.nav-pills-scrollable::-webkit-scrollbar,
.nav-tabs-scrollable::-webkit-scrollbar,
.horizontal-scroll-bar::-webkit-scrollbar {
  display: none !important;
}

.class-filter-container .class-filter-btn,
.nav-pills-scrollable .nav-link,
.horizontal-scroll-bar > * {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

@media (min-width: 992px) {
  .class-filter-container.wrap-on-desktop {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }
}

/* 3. Robust Data Table Responsiveness */
.table-responsive {
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

@media (max-width: 767.98px) {
  .table {
    font-size: 0.85rem;
  }
  .table th, .table td {
    padding: 0.65rem 0.65rem;
    white-space: nowrap;
  }
  .table td.wrap-mobile {
    white-space: normal;
    min-width: 140px;
  }
}

/* 4. Student Portal Mobile & Tablet Optimizations */
.student-navbar-brand-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

@media (max-width: 575.98px) {
  .student-navbar-brand-text {
    font-size: 0.95rem;
  }
}

/* Student Bottom Mobile Quick Nav Bar */
.student-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 1040;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
}

.student-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 0.18s ease;
  min-width: 54px;
}

.student-bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  line-height: 1;
}

.student-bottom-nav-item.active,
.student-bottom-nav-item:hover {
  color: #1e40af;
}

.student-bottom-nav-item.active i {
  color: #1e40af;
  transform: scale(1.1);
}

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

@media (max-width: 991.98px) {
  body.has-student-bottom-nav {
    padding-bottom: 72px !important;
  }
}

/* 5. Exam Runner Mobile & Tablet Engine */
.exam-runner-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #1e293b;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.exam-timer-pill {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.exam-option-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  min-height: 54px;
  cursor: pointer;
  background-color: #ffffff;
}

.exam-option-card:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.exam-option-card.selected {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Sticky Bottom Exam Action Bar on Mobile */
@media (max-width: 991.98px) {
  .exam-runner-actions-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1020;
    border-radius: 14px 14px 0 0;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
}

/* Question Palette Matrix Offcanvas / Drawer */
.question-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .question-matrix-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.question-palette-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  transition: all 0.15s ease;
  padding: 0;
  min-height: 40px;
}

.question-palette-btn:hover {
  border-color: #2563eb;
  background-color: #f1f5f9;
}

.question-palette-btn.current {
  border-color: #1e40af !important;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3) !important;
}

.question-palette-btn.answered {
  background-color: #16a34a !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

.question-palette-btn.marked-review {
  background-color: #8b5cf6 !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
}

.question-palette-btn.answered-review {
  background: linear-gradient(135deg, #16a34a 50%, #8b5cf6 50%) !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
}

/* 6. Admin Portal Mobile Responsiveness Enhancements */
@media (max-width: 991.98px) {
  .admin-topbar {
    padding: 0.65rem 1rem !important;
    gap: 0.5rem;
  }
  
  .admin-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
  }

  .admin-content main {
    padding: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .admin-topbar .breadcrumb {
    font-size: 0.8rem;
  }
  .topbar-right-actions {
    gap: 0.35rem !important;
  }
  .topbar-user-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }
}

/* 7. Public & Auth Responsive Tuning */
/* Logo Sizing & Responsive Scaling */
.navbar-logo-img,
.brand-logo-img {
  height: 62px !important;
  max-height: 75px !important;
  width: auto !important;
  object-fit: contain;
  transition: transform 0.2s ease, height 0.2s ease;
}

.navbar-logo-img:hover {
  transform: scale(1.03);
}

/* Disable Hover & Focus Effects on Hamburger Navigation Button */
.navbar-toggler,
.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.navbar-toggler:hover *,
.navbar-toggler:focus * {
  transform: none !important;
}

@media (max-width: 991.98px) {
  .navbar-logo-img,
  .brand-logo-img {
    height: 52px !important;
    max-height: 60px !important;
  }
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 1.5rem 1.35rem !important;
    border-radius: 16px !important;
  }
  
  .navbar-logo-img,
  .brand-logo-img {
    height: 44px !important;
    max-height: 50px !important;
  }
  
  .hero-heading {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }
  
  .hero-subheading {
    font-size: 0.9rem !important;
  }
  
  .stat-card-number {
    font-size: 1.4rem !important;
  }

  /* Nav Segment Switcher for Hero Login Card */
  .nav-segment-wrapper {
    display: flex;
    gap: 4px;
    padding: 4px;
    position: relative;
    z-index: 10;
    background: #e2e8f0;
  }

  .nav-segment-btn {
    font-size: 0.78rem !important;
    padding: 10px 6px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    text-align: center;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Accordion Button Text Overflow Fix */
  .accordion-button {
    font-size: 0.9rem !important;
    padding: 0.85rem 1rem !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* Badges & Pills Overflow Fix */
  .badge {
    white-space: normal !important;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
  }

  /* Card Inner Padding Adjustments for Mobile */
  .card-body, .card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }
}

/* 8. Utility & Responsive Image Scale Fixes */
img.img-fluid,
.responsive-diagram {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.text-break-word {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 9. Little Scholar Olympiad Bespoke Component Styling */
.ls-hero-section {
  position: relative;
  background: linear-gradient(135deg, #091225 0%, #172554 45%, #1e40af 100%);
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

@media (min-width: 992px) {
  .ls-hero-section {
    padding: 5.5rem 0 6.5rem;
  }
}

.ls-glass-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50rem;
  transition: all 0.3s ease;
}

.ls-subject-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.85rem 1.5rem 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ls-subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color, #2563eb);
}

.ls-subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 8px 15px -6px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.ls-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.ls-subject-card:hover .ls-icon-box {
  transform: scale(1.08) rotate(4deg);
}

.ls-feature-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.ls-feature-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transform: translateX(4px);
}

.ls-award-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.ls-award-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateX(4px);
}

.ls-guideline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.65rem 1.4rem;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.ls-guideline-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 28px -6px rgba(59, 130, 246, 0.12);
  transform: translateY(-4px);
}

.ls-offer-banner {
  background: linear-gradient(135deg, #fffbe6 0%, #fef3c7 50%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 24px;
  padding: 2.75rem 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ls-offer-banner {
    padding: 3.5rem 3rem;
  }
}

.ls-offer-card {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 1.65rem 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.ls-offer-card:hover {
  transform: translateY(-5px);
  border-color: #d97706;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.15);
}

.ls-faq-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.ls-faq-accordion .accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.ls-faq-accordion .accordion-button {
  padding: 1.35rem 1.65rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 1.05rem;
  background: #ffffff;
  box-shadow: none !important;
}

.ls-faq-accordion .accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: #1e40af;
}

.ls-faq-accordion .accordion-body {
  padding: 1.25rem 1.65rem 1.65rem;
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
}

/* Custom Footer Styling */
.footer-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.footer-link:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

.footer-info-item {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem;
}



/* Global Sticky Footer & Vertical Gap Elimination */
html, body {
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
footer {
  margin-top: auto !important;
}

/* Mobile Stacked Card Vertical Gap Enforcement */
@media (max-width: 767.98px) {
  #olympiads .row > [class*="col-"] {
    margin-bottom: 1.15rem;
  }
  #olympiads .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Hero Cartoon Student Mascot Card Styling */
.hero-mascot-card-wrapper {
  transition: none !important;
  transform: none !important;
}

.hero-mascot-card-wrapper:hover {
  transform: none !important;
}

.hero-mascot-img {
  animation: none !important;
  transform: none !important;
}

@media (max-width: 575.98px) {
  .hero-mascot-card-wrapper {
    margin-top: 35px !important;
  }
  .hero-mascot-character-container {
    margin-bottom: -38px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    bottom: auto !important;
    top: auto !important;
    pointer-events: none !important;
  }
  .hero-mascot-img {
    max-height: 145px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    vertical-align: bottom !important;
    pointer-events: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   INDIAN TALENT OLYMPIAD DIRECT TOP HEADER SPECIFICATION (.header-top)
   ========================================================================== */
.header-top {
  background: #000000 !important;
  color: #ffffff;
  padding: 7px 0 !important;
  font-size: 14px;
}

.header-top a {
  color: #ffffff;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.header-top a:hover {
  color: #ffffff;
  opacity: 0.9;
}

.header-top .contact-one i,
.header-top .contact-two i {
  color: #ffffff;
  margin-right: 6px;
}

/* Mobile Right Corner Email Icon */
.header-top .email-corner-icon {
  width: 32px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 13.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-top .email-corner-icon:hover,
.header-top .email-corner-icon:active {
  background: linear-gradient(135deg, #1be3fa, #4bedff) !important;
  color: #000000 !important;
  border-color: #1be3fa !important;
  transform: translateY(-1px);
}

/* Student action buttons: Exact cyan gradient from indiantalent.org + Square (0 radius) */
.header-top .custom-button {
  background: linear-gradient(135deg, #1be3fa, #4bedff);
  color: #000000;
  padding: 8px 14px;
  min-height: 38px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  border-radius: 0 !important;
  border: 1px solid #1be3fa;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.header-top .dropdown-toggle::after {
  margin-left: 6px !important;
  vertical-align: 0.15em !important;
}

/* Top Header Dropdown Menu (for mobile/tablet 'More Links') */
.header-top .dropdown-menu {
  background: #ffffff !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.25) !important;
  min-width: 220px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 6px 0 !important;
  z-index: 1060 !important;
}

.header-top .dropdown-menu .dropdown-item {
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.header-top .dropdown-menu .dropdown-item:hover,
.header-top .dropdown-menu .dropdown-item:focus {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

.header-top .dropdown-menu .dropdown-item i {
  width: 18px !important;
  text-align: center !important;
}

.header-top .custom-button:hover {
  background: linear-gradient(135deg, #ff6a00, #ffa726);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.45);
  color: #000000;
}

/* Continuous Blinking on School & Student Registration (Bulb ON/OFF Effect) */
.header-top .custom-button.blink_me {
  animation: itoBulbBlink 0.8s steps(1, end) infinite;
  box-shadow: none;
}

.header-top .custom-button.blink_me:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

@keyframes itoBulbBlink {
  0%, 100% {
    /* Bulb ON: Vibrant cyan filled background + black text */
    background-color: #1be3fa;
    background-image: linear-gradient(135deg, #1be3fa, #4bedff);
    color: #000000;
    border-color: #1be3fa;
  }
  50% {
    /* Bulb OFF: Black background + cyan outline & text */
    background-color: #000000;
    background-image: none;
    color: #1be3fa;
    border-color: #1be3fa;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-top .custom-button.blink_me {
    animation: none;
  }
}

/* Mobile & Tablet Specific Layout (< 992px) - ALL BUTTONS IN SAME LINE (TALLER HEIGHT) */
@media (max-width: 991.98px) {
  .header-top {
    font-size: 12px;
    padding: 7px 0 !important;
  }
  .header-top .modern-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    row-gap: 7px !important;
  }
  .header-top .header-flex.one {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .header-top .header-flex.two {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .header-top .header-flex.two > .custom-button {
    flex: 1 1 0;
    font-size: clamp(10px, 2.8vw, 12px) !important;
    padding: 8px 6px !important;
    min-height: 36px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    white-space: nowrap !important;
    text-align: center;
    min-width: 0;
  }
  .header-top .header-flex.two > .dropdown {
    flex: 0 0 auto;
  }
  .header-top .header-flex.two > .dropdown .custom-button {
    font-size: clamp(10px, 2.8vw, 12px) !important;
    padding: 8px 10px !important;
    min-height: 36px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    white-space: nowrap !important;
  }
  .header-top .contact-one a,
  .header-top .contact-two a {
    font-size: 12px !important;
  }
  .header-top .contact-one i,
  .header-top .contact-two i {
    font-size: 11px !important;
  }
}

/* Desktop Specific Layout (>= 992px) - STRICT SINGLE LINE (TALLER HEIGHT) */
@media (min-width: 992px) {
  .header-top {
    padding: 8px 0 !important;
    font-size: 14px;
  }
  .header-top .modern-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .header-top .header-flex.one {
    width: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 24px !important;
  }
  .header-top .header-flex.two {
    width: auto !important;
    display: flex !important;
    margin-left: auto !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .header-top .custom-button {
    font-size: 14px !important;
    padding: 9px 16px !important;
    min-height: 42px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    font-weight: 700 !important;
  }
}

/* ==========================================================================
   STRICT NAVBAR & OFFCANVAS ZERO BORDER-RADIUS ENFORCEMENT
   ========================================================================== */
.navbar,
.navbar *,
.navbar .btn,
.navbar .btn-sm,
.navbar .btn-lg,
.navbar .btn-primary,
.navbar .btn-outline-primary,
.navbar .btn-warning,
.navbar .btn-dark,
.navbar .btn-light,
.navbar .dropdown-toggle,
.navbar .dropdown-menu,
.navbar .dropdown-item,
.navbar .navbar-toggler,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .badge,
.navbar .form-control,
.navbar .input-group,
.navbar .input-group-text,
.navbar .rounded-pill,
.navbar .rounded-1,
.navbar .rounded-2,
.navbar .rounded-3,
.navbar .rounded-4,
.navbar .rounded-5,
.navbar .rounded-circle,
.offcanvas,
.offcanvas *,
.offcanvas .btn,
.offcanvas .btn-sm,
.offcanvas .btn-lg,
.offcanvas .list-group-item,
.offcanvas .badge,
.offcanvas .rounded-pill,
.offcanvas .rounded-1,
.offcanvas .rounded-2,
.offcanvas .rounded-3,
.offcanvas .rounded-4,
.offcanvas .rounded-5,
.offcanvas .rounded-circle,
.header-top,
.header-top *,
.header-top .custom-button,
.header-top .dropdown-menu,
.header-top .dropdown-item {
  border-radius: 0 !important;
}

/* ==========================================================================
   PROMINENT BUTTON SIZING (NAVBAR, HERO, AND OFFCANVAS)
   ========================================================================== */
.navbar .btn,
.navbar a.btn {
  min-height: 44px !important;
  height: auto !important;
  padding: 0.65rem 1.45rem !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.25 !important;
  letter-spacing: 0.15px;
}

.navbar .btn i,
.navbar a.btn i {
  font-size: 1rem !important;
}

.navbar-toggler {
  min-height: 46px !important;
  min-width: 48px !important;
  padding: 9px 13px !important;
}

.navbar-toggler i {
  font-size: 1.5rem !important;
}

.offcanvas .btn,
.offcanvas a.btn {
  min-height: 48px !important;
  height: auto !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-submit-btn {
  min-height: 50px !important;
  height: 50px !important;
  font-size: 1rem !important;
  padding: 0 1.85rem !important;
}

/* ==========================================================================
   QUICK ACTION CARDS ZERO BORDER-RADIUS ENFORCEMENT
   ========================================================================== */
.quick-action-card,
.quick-action-card *,
.quick-action-icon-box,
.quick-action-icon-box *,
.quick-action-card .badge,
.quick-action-card .card {
  border-radius: 0 !important;
}

/* ==========================================================================
   HERO MASCOT ZERO-GAP PLACEMENT & MARGIN TUNING:
   - Eliminates gap below mascot: hands rest flush on top of form card (-46px on desktop, -38px on mobile)
   - Eliminates inline image baseline spacing with display: block and line-height: 0
   - Mobile: 30px–40px margin (35px margin-top between slider and mascot)
   ========================================================================== */
.hero-mascot-character-container {
  line-height: 0 !important;
  font-size: 0 !important;
}

.hero-mascot-img {
  display: block !important;
  margin: 0 auto !important;
  vertical-align: bottom !important;
}

@media (min-width: 992px) {
  .hero-col-right .hero-mascot-character-container,
  .hero-mascot-character-container {
    margin-bottom: -46px !important;
  }
  .hero-col-right .hero-mascot-card-wrapper {
    margin-top: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .hero-col-right .hero-mascot-card-wrapper,
  .hero-col-right,
  .hero-mascot-card-wrapper {
    margin-top: 35px !important;
  }
  .hero-col-right .hero-mascot-character-container,
  .hero-mascot-character-container {
    margin-bottom: -38px !important;
  }
}

/* Mobile hero mascot: larger, tighter spacing, sits on top of the form card */
@media (max-width: 991.98px) {
  .hero-col-right .hero-mascot-card-wrapper,
  .hero-col-right,
  .hero-mascot-card-wrapper {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }
  .hero-col-right .hero-mascot-character-container,
  .hero-mascot-character-container {
    position: relative !important;
    z-index: 5 !important;
    margin-bottom: -52px !important;
    padding: 0 !important;
  }
  .hero-col-right .hero-mascot-img,
  .hero-mascot-img {
    max-height: 210px !important;
    width: auto !important;
    max-width: 85% !important;
  }
  .hero-auth-card.google-style-card,
  .hero-col-right .google-style-card {
    margin-top: 0 !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0 !important;
  }
}



