/* 
  BISE Rawalpindi 9th Class Result 2026 - Premium Design System
  Clean, modern, responsive typography, glassmorphism cards & interactive widgets.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary: #0f172a;
  --primary-light: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  --accent: #10b981;
  --accent-light: #d1fae5;
  --brand-green: #059669;
  --brand-green-light: #10b981;
  --brand-green-dark: #047857;
  --brand-green-subtle: #ecfdf5;
  --brand-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

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

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

/* Universal White Heading Override for Dark Containers, Heroes & Gradients */
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
.hssc-hero h1, .hssc-hero h2, .hssc-hero h3, .hssc-hero h4, .hssc-hero h5, .hssc-hero h6,
.flagship-hero h1, .flagship-hero h2, .flagship-hero h3, .flagship-hero h4, .flagship-hero h5, .flagship-hero h6,
.report-hero h1, .report-hero h2, .report-hero h3, .report-hero h4, .report-hero h5, .report-hero h6,
.rwp-hero h1, .rwp-hero h2, .rwp-hero h3, .rwp-hero h4, .rwp-hero h5, .rwp-hero h6,
.rwp-hero-amber h1, .rwp-hero-amber h2, .rwp-hero-amber h3, .rwp-hero-amber h4, .rwp-hero-amber h5, .rwp-hero-amber h6,
.board-hero h1, .board-hero h2, .board-hero h3, .board-hero h4,
.directory-hero h1, .directory-hero h2, .directory-hero h3, .directory-hero h4,
.hero-banner h1, .hero-banner h2, .hero-banner h3, .hero-banner h4, .hero-banner h5, .hero-banner h6,
.hero-title, .hero-title-main,
[class*="hero"] h1, [class*="hero"] h2, [class*="hero"] h3, [class*="hero"] h4, [class*="hero"] h5, [class*="hero"] h6,
[style*="linear-gradient"] h1, [style*="linear-gradient"] h2, [style*="linear-gradient"] h3, [style*="linear-gradient"] h4,
[style*="background: linear-gradient"] h1, [style*="background: linear-gradient"] h2, [style*="background: linear-gradient"] h3,
[style*="background: #0f172a"] h1, [style*="background: #0f172a"] h2, [style*="background: #0f172a"] h3,
[style*="background:#0f172a"] h1, [style*="background:#0f172a"] h2, [style*="background:#0f172a"] h3,
[style*="background: #1e293b"] h1, [style*="background: #1e293b"] h2, [style*="background: #1e293b"] h3,
[style*="background:#1e293b"] h1, [style*="background:#1e293b"] h2, [style*="background:#1e293b"] h3,
[style*="background: #1e3a8a"] h1, [style*="background: #1e3a8a"] h2, [style*="background: #1e3a8a"] h3,
[style*="background:#1e3a8a"] h1, [style*="background:#1e3a8a"] h2, [style*="background:#1e3a8a"] h3,
[style*="background: #064e3b"] h1, [style*="background: #064e3b"] h2, [style*="background: #064e3b"] h3,
[style*="background:#064e3b"] h1, [style*="background:#064e3b"] h2, [style*="background:#064e3b"] h3,
[style*="background: #78350f"] h1, [style*="background: #78350f"] h2, [style*="background: #78350f"] h3,
[style*="background:#78350f"] h1, [style*="background:#78350f"] h2, [style*="background:#78350f"] h3,
[style*="background: #7c2d12"] h1, [style*="background: #7c2d12"] h2, [style*="background: #7c2d12"] h3,
[style*="background:#7c2d12"] h1, [style*="background:#7c2d12"] h2, [style*="background:#7c2d12"] h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero p,
.hero-section p,
.hssc-hero p,
.flagship-hero p,
.report-hero p,
.rwp-hero p,
.rwp-hero-amber p,
.board-hero p,
.directory-hero p,
.hero-banner p,
.hero-subtitle,
.hero-lead,
[class*="hero"] p,
[style*="linear-gradient"] p,
[style*="background: #0f172a"] p,
[style*="background:#0f172a"] p,
[style*="background: #1e293b"] p,
[style*="background:#1e293b"] p,
[style*="background: #1e3a8a"] p,
[style*="background:#1e3a8a"] p,
[style*="background: #064e3b"] p,
[style*="background:#064e3b"] p,
[style*="background: #78350f"] p,
[style*="background:#78350f"] p,
[style*="background: #7c2d12"] p,
[style*="background:#7c2d12"] p {
  color: #e2e8f0 !important;
}

/* Frequently Asked Questions: Open Normal Text (No Collapsed Accordions) */
details, .faq-item {
  display: block !important;
}
details[open], details:not([open]) {
  display: block !important;
}
details > summary, .faq-item > summary {
  list-style: none !important;
  cursor: default !important;
  pointer-events: none !important;
}
details > summary::-webkit-details-marker {
  display: none !important;
}
.faq-accordion details {
  display: block !important;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* -------------------------------------------------------------
   UTILITY TOPBAR & SESSION SWITCHER
------------------------------------------------------------- */
.top-utility-bar {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.8125rem;
  border-bottom: 1px solid #1e293b;
  position: relative;
  z-index: 105;
}

.utility-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 2.375rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  gap: 0.75rem;
}

.utility-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.utility-brand-link:hover {
  color: #ffffff;
}

.utility-brand-link svg {
  transition: transform 0.2s ease;
}

.utility-brand-link:hover svg {
  transform: translateX(-3px);
}

.session-switcher {
  display: inline-flex;
  align-items: center;
  background: #1e293b;
  padding: 0.2rem;
  border-radius: var(--radius-full);
  border: 1px solid #334155;
  gap: 0.25rem;
}

.session-pill {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.session-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.session-pill.active {
  background: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.session-pill.active.emerald {
  background: #059669;
}

.session-pill.active.amber {
  background: #d97706;
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* -------------------------------------------------------------
   NAVBAR & HEADER
------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: var(--transition);
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-gradient);
  box-shadow: 0 2px 6px -1px rgba(5, 150, 105, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-icon-box {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px -1px rgba(5, 150, 105, 0.45);
}

.brand-icon-box svg {
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.4px;
}

.brand-dot {
  color: var(--brand-green);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.885rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  text-decoration: none;
}

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

.nav-link.active {
  color: var(--primary);
  background: #e0e7ff;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  z-index: 101;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-link:hover {
  background: var(--primary-subtle);
  color: var(--primary-light);
  padding-left: 1.05rem;
}

.dropdown-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem 0.2rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.65rem;
  font-size: 1.25rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: var(--border-light);
}

/* -------------------------------------------------------------
   HERO BANNER
------------------------------------------------------------- */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
}

.btn-white:hover {
  background: #f1f5f9;
  color: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* -------------------------------------------------------------
   BREADCRUMBS
------------------------------------------------------------- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary-light);
}

.breadcrumbs span.current {
  color: var(--text-main);
  font-weight: 600;
}

/* -------------------------------------------------------------
   STAT CARDS & KPI GRID
------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-card p {
  flex-grow: 1;
}

.stat-card .card-actions,
.stat-card div[style*="justify-content: center"],
.stat-card div[style*="display: flex; gap: 0.5rem"],
.stat-card > div:last-child {
  margin-top: auto;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.stat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.stat-badge-success { background: var(--accent-light); color: #065f46; }
.stat-badge-danger { background: var(--danger-light); color: #991b1b; }
.stat-badge-info { background: var(--primary-subtle); color: #1e40af; }
.stat-badge-warning { background: var(--warning-light); color: #92400e; }

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   CONTENT SECTIONS & CARDS
------------------------------------------------------------- */
.section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  margin-bottom: 0.35rem;
  display: block;
}

.section-title {
  font-size: 1.85rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.02);
  margin-bottom: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.02);
  border-color: #cbd5e1;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modern Callout Box (replaces harsh vibe-coded border stripes) */
.callout-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Category & Status Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-pill.badge-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-pill.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-pill.badge-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-pill.badge-purple {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.badge-pill.badge-slate {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* -------------------------------------------------------------
   INSTITUTE ON-PAGE SEARCH FILTER BAR
------------------------------------------------------------- */
.institute-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.search-input-wrapper {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-light);
  pointer-events: none;
}

.institute-search-bar .table-search-input {
  width: 100%;
  padding: 0.6rem 2.2rem 0.6rem 2.5rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.institute-search-bar .table-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--brand-green-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  display: none;
  transition: color 0.15s ease;
}

.search-clear-btn:hover {
  color: var(--dark);
}

.btn-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
  white-space: nowrap;
}

.btn-search-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
  filter: brightness(1.05);
}

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

.search-results-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.table-empty-row td {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--text-muted);
  background: #f8fafc;
}

.table-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.table-empty-box svg {
  color: var(--text-light);
}

.btn-reset-search {
  margin-top: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--brand-green);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset-search:hover {
  background: var(--brand-green-subtle);
  border-color: var(--brand-green-light);
}

/* -------------------------------------------------------------
   DATA TABLES
------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: #f1f5f9;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

.data-table tr:last-child td {
  border-bottom: none;
}

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

.table-rank {
  font-weight: 700;
  color: var(--primary-light);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

.pass-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.pass-pill-high { background: #dcfce7; color: #166534; }
.pass-pill-med { background: #fef9c3; color: #854d0e; }
.pass-pill-low { background: #fee2e2; color: #991b1b; }

.table-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* -------------------------------------------------------------
   INTERACTIVE GRAPHS & CHARTS
------------------------------------------------------------- */
.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 420px;
}

/* -------------------------------------------------------------
   INTERACTIVE TOOLS: CALCULATORS & RULE SELECTORS
------------------------------------------------------------- */
.tool-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 1.25rem;
}

.calc-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.calc-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.calc-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.calc-result-box {
  background: var(--primary-subtle);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.calc-grade {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.calc-desc {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.calc-percentile {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Interactive Tabs */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary-light);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* -------------------------------------------------------------
   SUBJECT FAILURE MATRIX & GRID
------------------------------------------------------------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.subject-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subject-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.subject-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.subject-title {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 700;
}

.subject-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.subject-fails {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 0.25rem;
}

.subject-rate {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   DISTRICT & CITY CARDS
------------------------------------------------------------- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.district-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.district-card p {
  flex-grow: 1;
}

.district-card .btn {
  margin-top: auto;
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.district-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Universal Clickable Cards */
.card, .stat-card, .district-card, .clickable-card {
  cursor: pointer;
}
.card a, .card button, .stat-card a, .stat-card button, .district-card a, .district-card button {
  cursor: pointer;
}
.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Quick Finder Bar */
.quick-finder-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: -1.75rem;
  position: relative;
  z-index: 20;
}
.quick-finder-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  white-space: nowrap;
}
.quick-finder-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  flex-wrap: wrap;
}
.quick-finder-select {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #f8fafc;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  min-width: 180px;
}
.quick-finder-select:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.quick-finder-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.quick-finder-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Site Directory / Bird's Eye View Styles */
.directory-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem;
}
.directory-search-wrapper {
  max-width: 650px;
  margin: 1.5rem 0 0.5rem;
  position: relative;
}
.directory-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  outline: none;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.directory-search-input::placeholder {
  color: #cbd5e1;
}
.directory-search-input:focus {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.directory-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.directory-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.dir-pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}
.dir-pill:hover, .dir-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.directory-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.directory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}
.dir-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.district-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.district-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.75rem 0 1.25rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-disclaimer {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: #f59e0b;
}

/* -------------------------------------------------------------
   COMING SOON BADGES & CARDS
------------------------------------------------------------- */
.stat-badge-soon {
  background: #f1f5f9;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-coming-soon {
  position: relative;
  border: 1px dashed #cbd5e1 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  opacity: 0.95;
  transition: var(--transition);
}

.card-coming-soon:hover {
  border-color: #94a3b8 !important;
  transform: translateY(-2px);
}

.btn-coming-soon {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: var(--transition);
}

.btn-coming-soon:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

/* -------------------------------------------------------------
   LEGAL, TERMS, ABOUT & CONTACT PROSE
------------------------------------------------------------- */
.prose-section {
  padding: 3rem 0;
}

.prose-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.prose-card h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card h3 {
  font-size: 1.2rem;
  color: var(--dark-surface);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-card p, .prose-card li {
  font-size: 0.975rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-card ul, .prose-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.disclaimer-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #92400e;
}

.disclaimer-callout h4 {
  color: #b45309;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disclaimer-callout p {
  color: #78350f;
  margin: 0;
  font-size: 0.925rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Toast Notification */
.pass-toast, .pakedu-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pass-toast.show, .pakedu-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & TABLET)
------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2rem; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-menu { gap: 0.2rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}

@media (max-width: 768px) {
  .utility-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.4rem 0;
  }

  .session-switcher {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.25rem;
  }

  .nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 3rem;
    gap: 0.35rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    display: none;
    z-index: 99;
  }

  .nav-menu.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.25rem;
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .hero { padding: 2.25rem 0 1.75rem; }
  .hero h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose-card { padding: 1.5rem; }
  .pakedu-toast { left: 1rem; right: 1rem; bottom: 1rem; }
}

