/* ============================================================
   MISSION SAMARTHYA — PUBLIC LANDING SITE DESIGN SYSTEM
   District Administration, Baran, Rajasthan
   ============================================================ */

:root {
  --color-primary: #0e2a47;
  --color-primary-light: #1a426f;
  --color-navy: #0f2347;
  --color-saffron: #f59e0b;
  --color-saffron-dark: #d97706;
  --color-crimson: #be185d;
  --color-crimson-light: #f43f5e;
  --color-purple: #6b21a8;
  --color-purple-light: #9333ea;
  --color-teal: #0d9488;
  --color-emerald: #059669;
  --color-bg: #f8fafc;
  --color-bg-warm: #fffbf5;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-subtle: rgba(226, 232, 240, 0.7);

  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Outfit', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(14, 42, 71, 0.12);
  --shadow-xl: 0 20px 40px -6px rgba(14, 42, 71, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

section[id], div[id] {
  scroll-margin-top: 85px;
}

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

[lang="hi"] body, .devanagari {
  font-family: var(--font-hindi);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.top-bar {
  background: #091a2d;
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-bar-left .gov-emblem {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.accessibility-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.accessibility-controls button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.accessibility-controls button:hover {
  background: var(--color-saffron);
  color: #000;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.lang-switch a {
  padding: 2px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

.lang-switch a.active {
  background: var(--color-saffron);
  color: #091a2d;
}

/* ============================================================
   TOP GOVERNMENT DIGNITARY MASTHEAD (HON'BLE PM & HON'BLE CM)
   ============================================================ */
.top-dignitary-masthead {
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid rgba(16, 42, 84, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tricolor-accent-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #138808 66.6%, #138808 100%);
  display: block;
}

.masthead-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

/* Left Brand Block */
.masthead-brand-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.emblem-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emblem-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-separator {
  width: 1.5px;
  height: 62px;
  background: linear-gradient(180deg, rgba(16, 42, 84, 0.08), rgba(16, 42, 84, 0.3), rgba(16, 42, 84, 0.08));
  flex-shrink: 0;
}

.mission-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.govt-subline {
  font-size: 0.78rem;
  font-weight: 700;
  color: #102a54;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.govt-subline .bullet-sep {
  color: #ea580c;
  font-size: 0.9rem;
}

.portal-heading-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.mission-logo-symbol {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.title-text-group {
  display: flex;
  flex-direction: column;
}

.main-portal-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: #102a54;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
}

.main-portal-motto {
  font-size: 0.76rem;
  font-weight: 700;
  color: #c2410c;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* Right Dignitaries Block */
.masthead-leaders-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.top-leader-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(16, 42, 84, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-leader-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 42, 84, 0.08);
  border-color: #cbd5e1;
}

.leader-portrait-frame {
  position: relative;
  width: 60px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 2px solid #ffffff;
  flex-shrink: 0;
  background: #f1f5f9;
}

.leader-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.leader-gold-ring {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #eab308, #22c55e);
}

.leader-gold-ring.state-ring {
  background: linear-gradient(90deg, #eab308, #22c55e, #0284c7);
}

.leader-details {
  display: flex;
  flex-direction: column;
}

.leader-designation-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
  line-height: 1.3;
}

.national-badge {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.state-badge {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.leader-display-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 1px;
  line-height: 1.2;
}

.leader-jurisdiction {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.leaders-divider {
  width: 1px;
  height: 48px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .masthead-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .masthead-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .masthead-brand-block {
    flex-direction: column;
    gap: 0.6rem;
  }
  .brand-separator {
    display: none;
  }
  .portal-heading-link {
    flex-direction: column;
    text-align: center;
  }
  .masthead-leaders-block {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }
  .top-leader-card {
    padding: 0.35rem 0.6rem;
  }
  .leader-portrait-frame {
    width: 50px;
    height: 60px;
  }
  .leader-display-name {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .masthead-leaders-block {
    flex-direction: column;
    width: 100%;
  }
  .top-leader-card {
    width: 100%;
    justify-content: flex-start;
  }
  .leaders-divider {
    display: none;
  }
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-text .nav-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  display: block;
  letter-spacing: -0.01em;
}

.brand-text .nav-brand-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.4rem 0.55rem;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-crimson));
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-crimson);
  background: rgba(190, 24, 93, 0.05);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-crimson);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-purple) 0%, #4c1d95 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(107, 33, 168, 0.3);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 33, 168, 0.45);
  color: #fff;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  padding: 0.25rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #fffbf2 0%, #fdf2f8 50%, #f0f9ff 100%);
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.04;
  background-image: radial-gradient(var(--color-primary) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-badge-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-sub-pill {
  display: inline-block;
  background: linear-gradient(90deg, #be185d, #e11d48);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.25);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-title .highlight-text {
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-saffron) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-mantra {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.hero-mantra span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-saffron);
  display: inline-block;
}

.hero-description {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
  transition: all var(--transition-normal);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.45);
  color: #fff;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-secondary-outline:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
}

/* Hero Visual Card */
.hero-visual-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 20px 45px rgba(14, 42, 71, 0.15);
  border: 1px solid var(--color-border);
}

.hero-visual-card img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-floating-badge.badge-top-right {
  top: -15px;
  right: -15px;
  color: var(--color-crimson);
}

.hero-floating-badge.badge-bottom-left {
  bottom: -15px;
  left: -15px;
}

/* ============================================================
   THREE DOMAINS SECTION
   ============================================================ */
.domains-section {
  padding: 5rem 0;
  background: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-saffron-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

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

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

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--card-accent);
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--card-accent);
}

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

.domain-number {
  font-size: 2rem;
  font-weight: 900;
  color: #cbd5e1;
  line-height: 1;
}

.domain-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--card-accent);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

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

.domain-card-title-hi {
  font-family: var(--font-hindi);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.domain-card-title-en {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--card-accent);
  margin-bottom: 1rem;
}

.domain-card-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.domain-features-list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.domain-features-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.domain-features-list li i {
  color: var(--card-accent);
  font-size: 1rem;
}

.domain-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.domain-card:hover .domain-card-btn {
  background: var(--card-accent);
  color: #fff;
  border-color: var(--card-accent);
}

/* ============================================================
   LIVE PORTAL STATISTICS BAR
   ============================================================ */
.stats-banner-section {
  position: relative;
  background: linear-gradient(135deg, #091a2d 0%, #0e2a47 60%, #153e66 100%);
  color: #fff;
  padding: 4.5rem 0;
  overflow: hidden;
}

.stats-banner-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.stat-item-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

.stat-item-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

.stat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.stat-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.stats-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-top: 2rem;
}

.stats-live-tag .live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ============================================================
   VISION & MISSION STATEMENT
   ============================================================ */
.vision-section {
  padding: 5rem 0;
  background: var(--color-bg-warm);
}

.vision-card-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.vision-quote-box {
  background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border-left: 6px solid var(--color-crimson);
  position: relative;
}

.vision-quote-box i.quote-icon {
  font-size: 2.5rem;
  color: rgba(190, 24, 93, 0.25);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
}

.vision-quote-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.vision-quote-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-crimson);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vision-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.vision-content p {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.vision-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vision-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
}

/* ============================================================
   CAPABILITIES / FOCUS AREAS
   ============================================================ */
.capabilities-section {
  padding: 4.5rem 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

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

.capability-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition-fast);
}

.capability-card:hover {
  background: #fff;
  border-color: var(--color-saffron);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.capability-card .cap-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.85rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.capability-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.capability-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   DEEP-DIVE PROGRAMME SECTIONS
   ============================================================ */
.program-feature-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--color-border);
}

.program-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.program-feature-grid.reverse {
  direction: rtl;
}

.program-feature-grid.reverse > * {
  direction: ltr;
}

.program-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.program-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.program-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.program-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.program-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}

.program-bullets li i {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.program-media-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.program-media-card img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.program-media-caption {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  padding: 0.5rem 0.25rem 0;
  font-style: italic;
}

/* ============================================================
   SUCCESS STORIES & TESTIMONIALS
   ============================================================ */
.stories-section {
  padding: 5rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.story-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast);
}

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

.story-quote-mark {
  font-size: 2.5rem;
  color: var(--color-saffron);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.story-quote-body {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.story-author {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.author-role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.story-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--color-primary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.press-clippings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  padding: 5rem 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

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

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

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

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 1.25rem 0.85rem 0.75rem;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.gallery-overlay h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.gallery-overlay span {
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* Lightbox Carousel Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 15, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem 5rem;
}

.gallery-modal.show {
  display: flex;
  animation: fadeInModal 0.2s ease-out forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-modal-content {
  max-width: 960px;
  width: 100%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-modal-media-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.gallery-modal-content img {
  max-height: 72vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-modal-content img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.gallery-modal-footer {
  width: 100%;
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(15, 35, 71, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
}

.gallery-modal-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 80%;
}

.gallery-modal-category {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-saffron);
  color: #091a2d;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.gallery-modal-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.gallery-modal-counter {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  z-index: 2010;
}

.gallery-modal-close:hover {
  background: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  z-index: 2010;
}

.gallery-modal-nav.modal-prev {
  left: 1.5rem;
}

.gallery-modal-nav.modal-next {
  right: 1.5rem;
}

.gallery-modal-nav:hover {
  background: var(--color-saffron);
  color: #091a2d;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}

.gallery-modal-nav.disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ============================================================
   LEADERSHIP & VISION
   ============================================================ */
.leadership-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #fffbf5 100%);
  border-top: 1px solid var(--color-border);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 920px;
  margin: 0 auto;
}

.leader-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

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

.leader-photo-container {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-saffron);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.leader-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leader-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.leader-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-crimson);
  margin-bottom: 0.25rem;
}

.leader-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ============================================================
   CONTACT & DISTRICT ADMINISTRATION
   ============================================================ */
.contact-section {
  padding: 5rem 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.contact-card-box {
  background: linear-gradient(135deg, #0e2a47 0%, #153e66 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.contact-info-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.contact-info-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.98rem;
  color: #f1f5f9;
}

.contact-detail-item i {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-saffron);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-actions-box {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  text-align: center;
}

.contact-actions-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-actions-box p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #061423;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  font-size: 0.9rem;
}

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

.footer-brand h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

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

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE DESIGN ACROSS ALL DEVICE BREAKPOINTS
   Laptops, Tablets, Phablets, Phones (Portrait & Landscape)
   ============================================================ */

/* 1. Large Displays & Small Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.35rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.4rem;
  }
  .btn-login {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 2.85rem;
  }
  .domain-cards-grid {
    gap: 1.5rem;
  }
}

/* 2. Compact Laptops & Tablets in Landscape / Drawer activation (max-width: 1140px) */
@media (max-width: 1140px) {
  .main-header {
    position: sticky;
    top: 0;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--color-crimson);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
  }

  .nav-menu.show {
    display: flex;
    animation: slideDownMenu 0.25s ease-out forwards;
  }

  @keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
    justify-content: space-between;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--color-crimson);
    background: rgba(190, 24, 93, 0.06);
    font-weight: 700;
    padding-left: 0.85rem;
    border-left: 4px solid var(--color-crimson);
  }

  .mobile-toggle {
    display: block;
    font-size: 1.75rem;
    color: var(--color-primary);
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    line-height: 1;
  }

  .mobile-toggle:hover {
    background: #f1f5f9;
  }
}

/* 3. Medium Screens & Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.75rem;
  }

  .hero-badge-group {
    align-items: center;
    justify-content: center;
  }

  .hero-mantra {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual-card {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .domain-cards-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .program-feature-grid, 
  .program-feature-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr !important;
  }

  .program-feature-grid.reverse > * {
    direction: ltr !important;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

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

  .contact-card-box {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
  }

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

  .vision-card-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem 1.75rem;
  }
}

/* 4. Small Tablets & Phablets (max-width: 768px) */
@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
    width: 100%;
  }

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

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .brand-text .brand-tagline {
    font-size: 0.68rem;
  }

  .brand-text .district-sub {
    font-size: 0.65rem;
  }

  .btn-login span {
    display: none;
  }

  .btn-login {
    padding: 0.55rem 0.75rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }

  .hero-section {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .hero-mantra {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }

  .hero-visual-card img {
    height: auto;
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .hero-floating-badge {
    position: static !important;
    display: flex !important;
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 0.65rem 0 0 !important;
    animation: none !important;
    box-shadow: none !important;
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
  }

  .hero-floating-badge.badge-top-right,
  .hero-floating-badge.badge-bottom-left {
    position: static !important;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .vision-card-container {
    padding: 1.75rem 1.25rem;
    gap: 1.75rem;
  }

  .vision-quote-box {
    padding: 1.5rem;
  }

  .vision-quote-text {
    font-size: 1.2rem;
  }

  .vision-content h3 {
    font-size: 1.5rem;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 440px;
    margin: 0 auto;
  }

  .press-clippings-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .program-media-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .gallery-modal {
    padding: 3.5rem 0.5rem 1rem;
  }

  .gallery-modal-content img {
    max-height: 58vh;
  }

  .gallery-modal-nav {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .gallery-modal-nav.modal-prev {
    left: 0.5rem;
  }

  .gallery-modal-nav.modal-next {
    right: 0.5rem;
  }

  .gallery-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .gallery-modal-footer {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gallery-modal-info {
    max-width: 100%;
  }

  .gallery-modal-counter {
    align-self: flex-end;
  }
}

/* 5. Standard Mobile Phones (max-width: 576px) */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-description {
    font-size: 0.92rem;
  }

  .hero-tagline-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    white-space: normal;
    text-align: center;
  }

  .hero-sub-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    white-space: normal;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary-gradient,
  .btn-secondary-outline {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item-box {
    padding: 1.5rem 1.25rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .gallery-filters {
    gap: 0.35rem;
    margin-bottom: 1.5rem;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.38rem 0.8rem;
  }

  .contact-card-box {
    padding: 1.75rem 1.25rem;
  }

  .contact-info-title {
    font-size: 1.35rem;
  }

  .contact-detail-item {
    font-size: 0.88rem;
  }

  .contact-detail-item i {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* 6. Compact Mobile Screens (max-width: 380px) */
@media (max-width: 380px) {
  .top-bar {
    font-size: 0.72rem;
  }

  .top-bar-left span {
    font-size: 0.7rem;
  }

  .brand-wrapper {
    gap: 0.5rem;
  }

  .brand-logo {
    height: 38px;
    width: 38px;
  }

  .brand-text h1 {
    font-size: 0.95rem;
  }

  .brand-text .district-sub {
    display: none;
  }

  .hero-tagline-badge,
  .hero-sub-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .hero-mantra {
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    padding: 1.5rem 1rem;
  }

  .leader-photo-container {
    width: 125px;
    height: 125px;
  }

  .contact-card-box {
    padding: 1.5rem 1rem;
  }
}

/* 7. Landscape Mobile Orientation Support */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    max-height: 75vh;
    overflow-y: auto;
  }

  .gallery-modal-content img {
    max-height: 70vh;
  }

  .hero-section {
    padding: 2rem 0;
  }
}

/* 8. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
