/* ==========================================================================
   SAHKARI P.G. COLLEGE MIHRAWAN - MODERN COMPACT STYLESHEET
   Brand Colors: Imperial Crimson (#9E1244), Royal Gold (#EAB308), Deep Slate (#0F172A)
   Typography: 'Outfit' (Headings) & 'Plus Jakarta Sans' (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --color-primary: #9e1244;
  --color-primary-dark: #730932;
  --color-primary-light: #be185d;
  --color-primary-subtle: #fdf2f8;
  --color-primary-border: #fbcfe8;

  --color-accent: #eab308;
  --color-accent-dark: #ca8a04;
  --color-accent-light: #fef08a;
  --color-accent-subtle: #fefce8;

  --color-navy: #0f172a;
  --color-navy-surface: #1e293b;
  --color-navy-border: #334155;

  /* Neutral Surface & Text */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-info: #0284c7;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --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-glow: 0 10px 30px -10px rgba(158, 18, 68, 0.35);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transition */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1240px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   TOP BAR (SINGLE CLEAN ROW)
   ========================================================================== */
.topbar {
  background-color: var(--color-navy);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-navy-border);
  line-height: 1.35;
}

.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  white-space: nowrap;
}

.topbar-item svg {
  width: 13px;
  height: 13px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.topbar-item a:hover {
  color: #ffffff;
}

.topbar-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-badge {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-links a {
  color: #94a3b8;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.topbar-links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform var(--transition-normal);
}

.brand-logo-link:hover .brand-logo,
.brand:hover .brand-logo {
  transform: scale(1.04) rotate(2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand-hindi {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-name {
  font-size: clamp(0.85rem, 1.05vw, 1.05rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-sub-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1px;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-result-declaration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2b74b9;
  color: #ffffff !important;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  padding: 0.16rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(43, 116, 185, 0.3);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-result-declaration:hover {
  background-color: #1e5a94;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(43, 116, 185, 0.45);
  color: #ffffff !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.4rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(158, 18, 68, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-navy);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--border-subtle);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-navy);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.4);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-navy);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.7rem 1.5rem;
  font-size: 0.975rem;
}

.mobile-toggle {
  display: none;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   1. BANNER / HERO SECTION (COMPACT HEIGHT)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 2.75rem 0 3.25rem; /* COMPACT HEIGHT */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: brightness(0.9) contrast(1.1);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(115, 9, 50, 0.82) 55%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: none;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-accent-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  margin-inline: auto;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: none;
  margin-inline: auto;
}

.hero-title span {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(234, 179, 8, 0.35);
  border-radius: 2px;
  z-index: -1;
}

.hero-description {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 1060px;
  margin-inline: auto;
  text-align: center;
}

/* Hero Stats Strip - Centered Sleek */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.65rem; /* COMPACT */
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.stat-label {
  font-size: 0.775rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================================================
   COMMON SECTION HEADERS & WRAPPERS (COMPACT HEIGHTS)
   ========================================================================== */
.section {
  padding: 3.25rem 0; /* COMPACT HEIGHT (was 5rem) */
}

.section-bg-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem; /* COMPACT (was 3.5rem) */
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-border);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.section-pill svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem); /* COMPACT */
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   2. ABOUT US SECTION (COMPACT HEIGHT)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.75rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-frame img {
  width: 100%;
  height: 380px; /* COMPACT HEIGHT (was 480px) */
  object-fit: cover;
  transition: transform 600ms ease;
}

.about-visual:hover .about-img-frame img {
  transform: scale(1.02);
}

.about-experience-badge {
  position: absolute;
  bottom: -1rem;
  right: -0.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: 1rem 1.35rem; /* COMPACT */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.badge-years {
  font-family: var(--font-heading);
  font-size: 2rem; /* COMPACT */
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}

.badge-text {
  font-size: 0.775rem;
  font-weight: 600;
  line-height: 1.25;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem; /* COMPACT */
  margin: 1.25rem 0; /* COMPACT */
}

.highlight-box {
  background: var(--bg-card);
  padding: 0.85rem 1rem; /* COMPACT */
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.highlight-box:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-sm);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
}

.highlight-box h4 {
  font-size: 0.925rem;
  margin-bottom: 0.15rem;
  color: var(--color-navy);
}

.highlight-box p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ==========================================================================
   3. COURSES SECTION & SLEEK COMPACT CARDS
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem; /* COMPACT (was 2rem) */
}

.course-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-border);
}

.course-header {
  padding: 1.15rem 1.25rem 0.65rem; /* COMPACT */
  border-bottom: 1px dashed var(--border-light);
  position: relative;
}

.course-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
}

.badge-ug {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-pg {
  background-color: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.badge-prof {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-med {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-edu {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-dip {
  background-color: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.course-title {
  font-size: 1.18rem; /* COMPACT */
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.course-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-body {
  padding: 0.85rem 1.25rem; /* COMPACT */
  flex-grow: 1;
}

.course-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem; /* COMPACT */
  background-color: var(--bg-page);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}

.course-subjects-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem; /* COMPACT */
}

.subject-tag {
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.725rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.course-footer {
  padding: 0.85rem 1.25rem; /* COMPACT */
  background-color: #fafafa;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-footer .btn {
  width: 100%;
}

/* Filter Bar for Course Page */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem; /* COMPACT */
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(158, 18, 68, 0.25);
}

/* ==========================================================================
   4. OUR PROCESS SECTION
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: dashed 2px #cbd5e1;
  z-index: 1;
}

.process-card {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 1.75rem 1.25rem 1.35rem; /* COMPACT */
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-border);
}

.process-step-num {
  width: 48px;
  height: 48px;
  margin: -0.75rem auto 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(158, 18, 68, 0.25);
  border: 3px solid #ffffff;
}

.process-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--color-navy);
}

.process-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   5. FAQ SECTION (INTERACTIVE ACCORDION)
   ========================================================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem; /* COMPACT */
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-navy);
  background: none;
  border: none;
  cursor: pointer;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-fast);
  padding: 0 1.25rem;
  background-color: #fafbfc;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0.85rem 1.25rem 1.15rem;
  border-top-color: var(--border-subtle);
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. CTA SECTION (COMPACT HEIGHT)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #4a044e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem; /* COMPACT HEIGHT (was 3.5rem 3rem) */
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.cta-text {
  max-width: 620px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-pill svg {
  width: 14px;
  height: 14px;
}

.cta-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem); /* COMPACT */
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PAGE HERO (INNER PAGES)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1e1b4b 60%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: 2.5rem 0 2.85rem; /* COMPACT (was 3.5rem) */
  position: relative;
}

.page-hero-content {
  max-width: 750px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #64748b;
}

.page-hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.page-hero-subtitle {
  font-size: 0.98rem;
  color: #e2e8f0;
  line-height: 1.55;
}

/* ==========================================================================
   ABOUT PAGE ELEMENTS
   ========================================================================== */
.principal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}

.principal-avatar {
  text-align: center;
}

.principal-avatar-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  margin: 0 auto 0.85rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 3px solid #ffffff;
}

.principal-avatar-img svg {
  width: 70px;
  height: 70px;
}

.principal-quote {
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  position: relative;
}

.principal-sign-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.principal-sign-role {
  font-size: 0.825rem;
  color: var(--color-primary);
  font-weight: 600;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.facility-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal);
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.facility-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.facility-content {
  padding: 1.15rem;
}

.facility-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.facility-content p {
  font-size: 0.825rem;
  line-height: 1.45;
}

/* ==========================================================================
   CONTACT PAGE ELEMENTS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-card {
  background: #ffffff;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--color-primary-border);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details h4 {
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.contact-details p,
.contact-details a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.contact-details a:hover {
  color: var(--color-primary);
}

.contact-form-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background-color: #fafbfc;
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(158, 18, 68, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
}

.map-wrapper {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: 320px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: #94a3b8;
  padding: 3.5rem 0 1.25rem; /* COMPACT (was 4.5rem) */
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name,
.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.footer-brand-hindi,
.footer-brand .brand-hindi {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.footer-brand-sub,
.footer-brand .brand-sub {
  font-size: 0.685rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.35;
}

.footer-about-text {
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0.85rem 0 1rem;
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #e2e8f0;
}

.affiliation-badge img {
  width: 22px;
  height: 22px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.825rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   MODAL & TOAST SYSTEMS (.open and .active supported)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.open,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  padding: 1.75rem;
  position: relative;
}

.modal-overlay.open .modal-box,
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  animation: slideInRight 300ms ease;
  border-left: 4px solid var(--color-primary);
  max-width: 360px;
}

.toast.toast-success {
  border-left-color: var(--color-success);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .facilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }
  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 0.5rem 0;
  }
  .header-actions .btn {
    display: none;
  }
  .hero-section {
    padding: 2.25rem 0 2.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .principal-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.25rem;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
}
