/* ==============================================================================
   SJB INSTITUTE OF HIGHER EDUCATION - MASTER STYLESHEET
   Adheres to institute-website-design.md specifications
   ============================================================================== */

/* Fonts are loaded as parallel <link> tags by includes/head-assets.php rather than by
   @import here, which would create a render-blocking request chain (spec 61). */

/* --- 1. Root Design Tokens --- */
:root {
  /* Brand Colors */
  --primary: #062B63;
  --primary-dark: #031a3d;
  --primary-light: #e8effc;
  --primary-hover: #0b3d8a;
  
  /* Forest Emerald (Signature Brand Accent & Dark Section) */
  --secondary: #F5C800;
  --secondary-dark: #8a6d00;
  --secondary-light: #fff8d6;
  --secondary-hover: #d9ad00;

  /* Academic Gold / Warm Accent */
  --accent: #E8B900;
  --accent-dark: #B89200;
  --accent-light: #fff6cc;

  /* Neutrals & Surfaces */
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-card: #ffffff;
  
  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;

  /* Borders & Dividers */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #2563eb;

  /* Semantic Feedback */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;

  /* Typography Stacks */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 14px 28px rgba(6, 43, 99, 0.12), 0 10px 10px rgba(6, 43, 99, 0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing Scale (spec 7) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 120px;

  /* Elevation Order */
  --z-sticky: 900;
  --z-header: 1000;
  --z-drawer-overlay: 1050;
  --z-drawer: 1100;
  --z-modal: 2000;

  /* Layout */
  --container-max: 1240px;
  --header-height: 96px;
  --topbar-height: 40px;
}

/* --- 2. CSS Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Filtering toggles the hidden property; component display rules must not win. */
[hidden] {
  display: none !important;
}

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

/* Images carry width/height attributes so the browser can reserve space before
   they load. height:auto keeps them from being distorted by those attributes;
   component rules that set an explicit height (object-fit crops) still win. */
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Material Icons Helper */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
}

/* --- 3. Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* --- 4. Layout & Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.section-sm {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* --- 5. Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 43, 99, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 43, 99, 0.35);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: #bfdbfe;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(245, 200, 0, 0.35);
}

.btn-accent:hover {
  background-color: var(--secondary-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn-link {
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-link:hover {
  color: var(--accent);
  gap: 0.6rem;
}

/* --- 6. Header & Navigation --- */
/* Utility Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0.35rem 0;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--accent);
}

.top-bar-item a:hover {
  color: #ffffff;
}

.top-bar-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  color: var(--text-on-dark-muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Main Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: all var(--transition-normal);
  border-bottom: 1px solid var(--border);
}

.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: transparent;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(6, 43, 99, 0.25);
}

.logo-badge .material-symbols-outlined {
  font-size: 26px;
  color: #F5C800;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

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

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: var(--z-drawer-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.drawer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.drawer-nav-link:hover, .drawer-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- 7. Notice Bar --- */
.notice-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #172554 100%);
  color: #ffffff;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notice-label-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.notice-text {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.notice-link:hover {
  color: #ffffff;
}

/* --- 8. Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  padding: clamp(3rem, 5vw, 5rem) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-headline {
  margin-bottom: 1.25rem;
}

.hero-headline span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item .material-symbols-outlined {
  color: var(--secondary-dark);
  font-size: 20px;
}

/* Hero Visual Composition */
.hero-visual {
  position: relative;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
}

.hero-img-wrap {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #cbd5e1;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-main-card:hover .hero-img-wrap img {
  transform: scale(1.03);
}

/* Floating Badges */
.floating-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.floating-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.floating-stat-card .stat-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.floating-badge-top {
  position: absolute;
  top: 20px;
  right: -20px;
  background: rgba(6, 43, 99, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.floating-badge-top .material-symbols-outlined {
  color: #F5C800;
  font-size: 18px;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --- 9. Quick Access Feature Grid (Section 13) --- */
.quick-links-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-link-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border);
  transition: background var(--transition-fast);
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.quick-link-card:hover::before {
  background: var(--primary);
}

.quick-link-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.quick-link-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.quick-link-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.quick-link-card .card-action {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-link-card:hover .card-action {
  color: var(--accent);
  gap: 0.6rem;
}

/* --- 10. Asymmetric About Section (Section 14) --- */
.about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img-frame {
  position: relative;
}

.about-main-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.about-exp-badge .years {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #F5C800;
}

.about-exp-badge .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.feature-check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-check-item .material-symbols-outlined {
  color: var(--secondary-dark);
  font-size: 20px;
}

/* --- 11. Quick Stats Section (Section 15) --- */
.stats-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-metric-card .stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.stat-metric-card .stat-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-metric-card .stat-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --- 12. Courses Cards (Section 16) --- */
.courses-grid-32 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* In a 5 course layout, row 2 has 2 centered cards */
.courses-grid-32 > :nth-child(4) {
  grid-column: 1 / 2;
}

/* 1025px, not 992px: the max-width:1024px block later in this file forces a
   2-column grid, and being the later rule it would otherwise win between
   992 and 1024px, breaking the 3+2 layout in that range. */
@media (min-width: 1025px) {
  .courses-grid-32 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
  }
  .courses-grid-32 > :nth-child(1),
  .courses-grid-32 > :nth-child(2),
  .courses-grid-32 > :nth-child(3) {
    grid-column: span 2;
  }
  .courses-grid-32 > :nth-child(4) {
    grid-column: 2 / 4;
  }
  .courses-grid-32 > :nth-child(5) {
    grid-column: 4 / 6;
  }
}

.course-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.course-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #cbd5e1;
  overflow: hidden;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-card-thumb img {
  transform: scale(1.05);
}

.course-badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(6, 43, 99, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

.course-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.course-card-meta .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary);
}

.course-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.course-card-title a:hover {
  color: var(--primary);
}

.course-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.course-eligibility-chip {
  background: var(--surface-alt);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
}

.course-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-fee-info {
  display: flex;
  flex-direction: column;
}

.course-fee-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.course-fee-amount {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-dark);
  line-height: 1.1;
}

/* --- 13. Course Spotlight Section (Section 17) --- */
.course-spotlight-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.spotlight-img-side {
  position: relative;
  background: #cbd5e1;
}

.spotlight-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-content-side {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.spotlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.spotlight-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 22px;
}

.spotlight-item h4 {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.spotlight-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- 14. Signature Dark Brand Section (Section 21) --- */
.dark-brand-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.dark-brand-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dark-brand-section h2, .dark-brand-section h3 {
  color: #ffffff;
}

.dark-brand-section p {
  color: var(--text-on-dark-muted);
}

.brand-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.brand-pillar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.brand-pillar-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.brand-pillar-card .pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  color: #F5C800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.brand-pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.brand-pillar-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --- 15. University Section (Section 18) --- */
.universities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.university-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.university-thumb {
  aspect-ratio: 16 / 9;
  background: #cbd5e1;
  overflow: hidden;
  position: relative;
}

.university-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.university-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.university-body {
  padding: 1.5rem;
}

.university-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.university-body .recognition {
  font-size: 0.8125rem;
  color: var(--secondary-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.university-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- 16. Why Choose Us (Section 19) --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.why-feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-feature-card .why-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- 17. Placement & Recruiters (Section 20) --- */
.placement-story-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
}

.story-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-student-name {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.story-placement-org {
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.quote-bubble {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* Recruiters Marquee / Grid */
.recruiters-strip {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.recruiters-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.recruiter-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.recruiter-badge {
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

/* --- 18. Gallery Grid & Lightbox (Sections 26 & 35) --- */
.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Year tabs read as a tab strip, distinct from the pill-shaped category filter */
.gallery-year-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
}

.gallery-year-tabs .filter-btn {
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-heading);
}

.gallery-year-tabs .filter-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #cbd5e1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-item-tag {
  font-size: 0.75rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  padding: 1rem;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  margin: 0 auto;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- 19. Testimonials (Section 27) --- */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testi-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testi-stars .material-symbols-outlined {
  font-size: 18px;
}

.testi-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  overflow: hidden;
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.testi-course {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- 20. Conversion CTA Banner (Section 28) --- */
.admission-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.admission-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(245, 200, 0, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.admission-cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.admission-cta-banner p {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- 21. Contact & Branches (Sections 29 & 37) --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-row .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-row h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info-row p, .contact-info-row a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Branch Hubs */
.branch-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.branch-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.branch-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.branch-card .badge-campus {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.branch-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.branch-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Map Embed */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 380px;
  background: #cbd5e1;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 22. Form Controls (Section 42) --- */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-label .req {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
  color: var(--text-light);
}

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

.form-error {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--danger);
}

.form-group.has-error .form-error {
  display: block;
}

/* --- 23. Footer (Section 30) --- */
.site-footer {
  background-color: #091322;
  color: #94a3b8;
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-contact-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent);
  margin-top: 2px;
}

.footer-bottom {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

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

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --- 24. Internal Page Hero & Breadcrumb --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 200, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 650px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #93c5fd;
  margin-bottom: 1rem;
}

.breadcrumb-trail a {
  color: #cbd5e1;
}

.breadcrumb-trail a:hover {
  color: #ffffff;
}

.breadcrumb-trail .material-symbols-outlined {
  font-size: 14px;
}

/* --- 25. Multi-Step Admission Form Wizard (Section 34) --- */
.wizard-container {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.wizard-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.step-node-bubble {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.wizard-step-node.active .step-node-bubble {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 43, 99, 0.2);
}

.wizard-step-node.completed .step-node-bubble {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

.step-node-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step-node.active .step-node-label {
  color: var(--primary);
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.wizard-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Success Application Confirmation Screen */
.success-confirmation-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--secondary-light);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon-circle .material-symbols-outlined {
  font-size: 40px;
}

.app-id-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--primary);
  margin: 1.25rem 0;
}

/* --- 26. Shared Chrome Helpers (rendered by includes/header.php / includes/footer.php) --- */
.logo-badge-sm { width: 36px; height: 36px; }
.logo-badge-sm .material-symbols-outlined { font-size: 20px; }
.logo-badge-md { width: 40px; height: 40px; }
.logo-badge-md .material-symbols-outlined { font-size: 22px; }

.mobile-drawer .brand-name { font-size: 1.1rem; }

.nav-link-portal { color: var(--accent); }
.nav-link-portal .material-symbols-outlined {
  font-size: 16px;
  margin-right: 2px;
}

.mobile-nav-toggle .material-symbols-outlined { font-size: 28px; }

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
}

.drawer-contact {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-block { width: 100%; }

.footer-brand { margin-bottom: 1.25rem; }
.footer-brand .brand-name { color: #ffffff; font-size: 1.15rem; }
.footer-brand .brand-tagline { color: var(--text-light); }

.footer-blurb {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* --- 27. Data Table (shared with the admin portal) --- */
.table-responsive { overflow-x: auto; }

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

.data-table th {
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr:hover { background-color: var(--surface-alt); }

/* --- 28. Course Detail Components (was inline in course-details.html) --- */
.course-nav-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.course-pill-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.course-pill-btn.active,
.course-pill-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.semester-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.semester-box h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.semester-box ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.semester-box li { margin-bottom: 0.35rem; }

/* Affiliating university panel */
.affiliation-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.affiliation-panel img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.affiliation-body { padding: 2rem 2.25rem 2rem 0; }

/* Career outcomes */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-xs);
}

.outcome-card .material-symbols-outlined {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.outcome-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.outcome-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- 29. File Upload (was inline in admission.html) --- */
.upload-box-card {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: var(--surface-alt);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.upload-box-card:hover,
.upload-box-card:focus-within {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-box-card.has-file {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-bg);
}

.upload-box-card.has-error {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.upload-filename {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.6rem;
  word-break: break-all;
}

.upload-box-card.has-file .upload-filename { display: flex; }

.upload-remove {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

.upload-error {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
  margin-top: 0.5rem;
}

/* --- 30. Resources / Useful Links Panel (spec 22) --- */
.resource-link-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.resource-link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 0.35rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.resource-link-item:hover {
  color: var(--primary);
  padding-left: 0.85rem;
  background: var(--primary-light);
}

.resource-link-item .resource-icon {
  color: var(--primary);
  font-size: 22px;
}

.resource-link-item .resource-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 20px;
}

/* --- 31. Editorial Information Cards (spec 24) --- */
.info-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.info-editorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

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

.info-editorial-card .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--secondary-dark);
  margin-bottom: 1rem;
}

.info-editorial-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.info-editorial-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --- 32. Testimonial Avatars (initials, pending real headshots) --- */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.avatar-initials.avatar-secondary { background: var(--secondary); color: var(--primary); }
.avatar-initials.avatar-accent { background: var(--accent); }

/* --- 33. FAQ Accordion (spec 60) --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question:hover { color: var(--primary); }

.faq-question .material-symbols-outlined {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-question .material-symbols-outlined { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* --- 34. Empty & Loading States (spec 56, 57) --- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .material-symbols-outlined {
  font-size: 44px;
  color: var(--border);
  margin-bottom: 0.75rem;
}

.empty-state h4 {
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.empty-state p {
  font-size: 0.9375rem;
  max-width: 380px;
  margin: 0 auto 1.25rem;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--border-light) 37%, var(--surface-alt) 63%);
  background-size: 400% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  height: 12px;
  margin-bottom: 0.6rem;
}

@keyframes skeleton-sweep {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* --- 35. Long-form Legal / Editorial Content --- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

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

.prose li { margin-bottom: 0.45rem; }

.prose-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- 36. Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .hero-grid, .about-split-grid, .course-spotlight-box, .placement-story-box, .contact-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .courses-grid-32 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-links, .header-actions .btn {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid-32, .universities-grid, .why-grid, .testimonials-track, .gallery-grid, .branch-cards-grid {
    grid-template-columns: 1fr;
  }
  .wizard-steps-nav {
    display: none;
  }
  .mobile-wizard-progress {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-stat-card {
    left: 10px;
    bottom: -10px;
  }
}

/* Small phones (spec 43, 64: layout must hold at 320px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Single column everywhere at this size */
  .grid-2, .grid-3, .grid-4,
  .curriculum-grid,
  .outcome-grid,
  .info-editorial-grid,
  .stats-grid,
  .mission-vision-grid,
  .fee-collection-grid {
    grid-template-columns: 1fr;
  }

  .affiliation-panel {
    grid-template-columns: 1fr;
  }

  .affiliation-body {
    padding: 0 1.35rem 1.75rem;
  }

  /* Full-width, touch-friendly actions */
  .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
  }

  .btn-sm {
    width: auto;
    min-height: 40px;
  }

  .hero-actions,
  .cta-actions,
  .wizard-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  /* Larger touch targets */
  .drawer-nav-link,
  .filter-btn,
  .course-pill-btn,
  .faq-question {
    min-height: 44px;
  }

  .form-control {
    min-height: 48px;
    font-size: 1rem; /* keeps iOS from zooming on focus */
  }

  /* Tables become stacked cards */
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    padding: 0.35rem 0;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    text-align: right;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-light);
  }

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

  /* Paired with data-label attributes on the cells */
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-align: left;
  }

  /* Decorative overlays crowd small screens */
  .floating-stat-card,
  .floating-badge-top,
  .about-exp-badge {
    display: none;
  }

  .notice-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .notice-text {
    white-space: normal; /* two-line wrap beats microscopic text (spec 12) */
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

/* --- 37. Print (application slip, receipts) --- */
@media print {
  .top-bar,
  .main-header,
  .mobile-drawer,
  .drawer-overlay,
  .notice-bar,
  .site-footer,
  .admission-cta-banner,
  .wizard-steps-nav,
  .wizard-actions-bar,
  .mobile-wizard-progress,
  .btn,
  .lightbox-modal {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .section {
    padding: 0;
  }

  .success-confirmation-card,
  .app-id-badge {
    box-shadow: none;
    border: 1px solid #000000;
  }

  a[href]::after {
    content: none; /* URLs would clutter a receipt */
  }

  /* Never split a record across pages */
  .success-confirmation-card,
  .data-table tr {
    page-break-inside: avoid;
  }
}

/* --- 38. Reduced Motion (spec 59) --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Hover lifts are motion too */
  .btn:hover,
  .course-card:hover,
  .info-editorial-card:hover,
  .quick-link-card:hover {
    transform: none;
  }
}

/* Image logo (assets/logo.png) */
.brand-logo-img { height: 80px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.brand-logo-img-sm { height: 56px; }
.brand-logo-img-md { height: 96px; }

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #ffffff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.page-loader-logo {
  width: 110px;
  height: auto;
  animation: loader-pulse 1.2s ease-in-out infinite;
}
.page-loader-bar {
  width: 140px;
  height: 4px;
  border-radius: 4px;
  background: var(--primary-light);
  overflow: hidden;
}
.page-loader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: var(--secondary);
  animation: loader-slide 1s ease-in-out infinite;
}
@keyframes loader-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.8; } }
@keyframes loader-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .page-loader-logo, .page-loader-bar span { animation: none; }
}
