/*
Theme Name: NDRF Academy
Theme URI: https://ndrfacademy.gov.in
Author: NDRF Academy
Author URI: https://ndrfacademy.gov.in
Description: Official theme for NDRF Academy Nagpur. Pixel-perfect port of the approved design, with bilingual (EN + HI) support and Custom Post Types for all content.
Version: 1.0.9
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ndrf-academy
Domain Path: /languages
Tags: government, bilingual, custom-post-types, disaster-management
*/

/* ═══════════════════════════════════════════════════════════════
   The rest of this file is the approved site stylesheet (11,420
   lines). It's imported verbatim so the design remains pixel-perfect.
   ═══════════════════════════════════════════════════════════════ */

/* ==========================================================================
   NDRF Academy — Option 3: Prabal (Light Professional Theme)
   Clean, formal government-style design with GSAP/Lenis/SplitType animation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f9;
  --bg-tertiary: #e9ecf1;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --accent: #FF6600;
  --accent-dark: #CC5200;
  --accent-light: rgba(255, 102, 0, 0.1);
  --accent-glow: rgba(255, 102, 0, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;

  /* NDRF Brand Colors (Standardized) */
  --ndrf-blue: #003b75;
  --ndrf-blue-dark: #002a54;
  --ndrf-blue-light: #e3f2fd;
  --ndrf-orange: #FF6600;
  --ndrf-orange-dark: #CC5200;
  --ndrf-orange-light: #fff3e0;
  --off-white: #F5F5F5;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --container-max: 80rem;
  --padding-global: 5%;
  --section-pad-sm: 4rem;
  --section-pad-md: 6rem;
  --section-pad-lg: 2.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.5s;
  --duration-slow: 0.8s;

  /* Misc */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 100px;
  --navbar-height: 6rem;
  --top-bar-height: 2rem;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimeLegibility;
  /* No scroll-behavior — Lenis handles smooth scroll */
}

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

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Feather Icons - Base Styling & Alignment
   -------------------------------------------------------------------------- */
svg.feather {
  width: 1em;
  height: 1em;
  stroke-width: 2.5;
  vertical-align: -0.125em;
  /* Standard alignment for icons next to text */
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  /* Ensure icons don't intercept clicks on buttons */
}

/* Specific Adjustments */
.gov-social svg.feather {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.nav-link svg.feather {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.nav-link[href="#"] svg.feather:first-child {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  margin-left: 0;
}

.btn svg.feather {
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

.card-icon svg.feather {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

/* --------------------------------------------------------------------------
   Important Links Page - Specific Icon Styling
   -------------------------------------------------------------------------- */
.links-tabs .links-tab svg.feather {
  width: 20px;
  height: 20px;
  color: #ff6600;
  stroke-width: 2.5;
}

.admin-link svg.feather {
  width: 28px;
  height: 28px;
  color: #ff6600;
  stroke-width: 2;
  margin-bottom: 0.5rem;
}

.external-link svg.feather:first-child {
  width: 24px;
  height: 24px;
  color: #ff6600;
  stroke-width: 2;
  flex-shrink: 0;
}

.external-link svg.feather.link-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   3. Grain Overlay
   -------------------------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --------------------------------------------------------------------------
   4. Custom Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth);
}

.cursor.is-active {
  width: 50px;
  height: 50px;
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

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

.h1,
h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.h2,
h2 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.h3,
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.h4,
h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 50ch;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   7. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.section-pad-sm {
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

.section-pad-md {
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.section-pad-lg {
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  transition: all var(--duration-fast) var(--ease-smooth);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline-dark:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn i {
  font-size: 0.85em;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn:hover i {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   9. Navbar
   -------------------------------------------------------------------------- */
/* ---- Logo Bar (Row 2) ---- */
.logo-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1000;
}

.logo-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.logo-bar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.logo-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-bar.hidden {
  display: none;
}

/* Government emblem block in logo-bar */
.gov-emblem {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1rem;
  margin-left: 0.75rem;
}

.gov-emblem img {
  height: 4.5rem;
  width: auto;
}

.gov-emblem-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.gov-emblem-hi {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gov-emblem-en {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ---- Menu Bar (Row 3 — replaces .navbar) ---- */
.menu-bar {
  background: var(--ndrf-blue);
  position: relative;
  z-index: 1000;
  height: 3rem;
  display: flex;
  align-items: center;
  transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.menu-bar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.menu-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Search button inside menu-bar */
.menu-bar-search {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.4rem;
  margin-left: 0.75rem;
  display: flex;
  align-items: center;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.menu-bar-search:hover {
  color: #ffffff;
}

.menu-bar-search svg {
  width: 18px;
  height: 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo img {
  height: 5rem;
  width: auto;
  image-rendering: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.1rem;
}

.nav-logo-hi {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ndrf-blue);
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-logo-en {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #6B4F1A;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width var(--duration-fast) var(--ease-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.nav-item .nav-link i {
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.nav-dropdown a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  margin-left: auto;
  white-space: nowrap;
}

/* Nav scaling for mid-range desktops */
@media (max-width: 1400px) {
  .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }

  .container {
    max-width: 1380px;
  }

  .nav-logo-hi {
    font-size: 1.1rem;
  }

  .nav-logo-en {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 0.15rem;
  }

  .nav-logo img {
    height: 3.5rem;
  }
}

@media (max-width: 1200px) {
  .nav-link {
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
  }

  .nav-cta {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
  }

  .gov-emblem-text {
    display: none;
  }

  .nav-logo-hi {
    font-size: 0.85rem;
  }

  .nav-logo-en {
    font-size: 0.75rem;
  }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  transition: all var(--duration-fast) var(--ease-smooth);
  transform-origin: center;
}

.nav-toggle.active span {
  background: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 11rem;
  padding-bottom: 3rem;
  box-sizing: border-box;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-smooth),
    visibility var(--duration-normal) var(--ease-smooth);
  overflow-y: auto;
}

.mobile-menu > a,
.mobile-menu > .mobile-nav-item {
  flex-shrink: 0;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0rem 1rem;
  transition: color var(--duration-fast);
  opacity: 0;
  transform: translateY(20px);
  text-align: center;
  text-decoration: none;
}

.mobile-menu > a {
  width: 100%;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu a.active {
  color: var(--accent);
}

.mobile-nav-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  position: relative;
  min-height: 3rem;
}

.mobile-nav-row a {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-nav-row a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-toggle {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast), transform 0.3s ease, opacity 0.3s ease;
  color: var(--text-secondary);
}

.mobile-menu.active .mobile-nav-toggle {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.open .mobile-nav-toggle {
  color: var(--accent);
}

.mobile-nav-item.open .mobile-nav-toggle svg {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
}

.mobile-nav-item.open .mobile-nav-sub {
  max-height: 500px;
  padding: 0px;
}

.mobile-nav-sub a {
  font-size: clamp(1rem, 3vw, 1.5rem) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  text-align: center;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   10. Hero — Fullscreen (Homepage)
   -------------------------------------------------------------------------- */
/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider .hero-bg video,
.hero-slider .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 14, 26, 0.7) 0%,
      rgba(10, 14, 26, 0.5) 40%,
      rgba(10, 14, 26, 0.85) 100%);
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-slider h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #cbd5e1;
  max-width: 70ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
} 

/* Hero Quote Slide Layout */
.hero-quote-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 40px;
  color: #f1f5f9;
}

.hero-quote-photo {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.hero-quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-quote-content .eyebrow {
  margin-bottom: 1rem;
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 4px;
}

.hero-quote-content>p {
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  line-height: 1.25;
}

.hero-quote-content blockquote {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.35;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left-width: 4px;
}

.hero-quote-content .quote-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.hero-quote-content .quote-title {
  font-size: 1rem;
  margin-top: 0.35rem;
}

/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.hero-dot:hover {
  border-color: #fff;
}

/* Slider Arrows */
.hero-arrow {
  position: absolute;
  top: 87%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-arrow-prev {
  left: 1.5rem;
}

.hero-arrow-next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .hero-quote-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-quote-photo {
    max-width: 200px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .hero-quote-content blockquote {
    border-left: none;
    border-top: 3px solid var(--accent);
    padding-left: 0;
    padding-top: 1rem;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .hero-arrow-prev {
    left: 0.75rem;
  }

  .hero-arrow-next {
    right: 0.75rem;
  }

  /* Add breathing room below all quote-layout slides so dots never overlap */
  .hero-quote-layout {
    padding-bottom: 5rem;
  }
}

@media (max-width: 992px) {


  .hero-quote-photo {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
  }
}

/* Keep legacy .hero for inner pages */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-bg video,
.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 14, 26, 0.7) 0%,
      rgba(10, 14, 26, 0.5) 40%,
      rgba(10, 14, 26, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-global);
  padding-top: calc(var(--navbar-height) + var(--top-bar-height));
  color: #f1f5f9;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 15ch;
  color: #ffffff;
}

.scroll-indicator {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.2rem;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Hero — Page Level */
.hero-page {
  position: relative;
  height: 78vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--section-pad-sm);
  overflow: hidden;
}

.hero-page .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-page .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-page .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 20, 50, 0.75) 30%, rgba(0, 20, 50, 0.35));
  z-index: 1;
}

.hero-page .hero-content {
  padding-top: calc(var(--navbar-height) + var(--top-bar-height) + 2rem);
}

.hero-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.hero-breadcrumb a:hover {
  color: var(--accent);
}

.hero-page h1 {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-page .subtitle {
  font-size: 1.1rem;
  max-width: 50ch;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   11. Top Bar (reserved — merged into gov-bar)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   12. Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-md);
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   12b. NDRFA Brochure Card
   -------------------------------------------------------------------------- */
.brochure-section {
  padding: 2.5rem 0;
}

.brochure-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;

}

.brochure-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ndrf-blue), var(--ndrf-orange));
  color: #fff;
}

.brochure-content {
  flex: 1;
}

.brochure-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}

.brochure-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.brochure-action {
  flex-shrink: 0;
}

.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.brochure-btn:hover{
  background: var(--accent);
  color: var(--ndrf-blue);
}

.brochure-btn svg {
  transition: transform 0.3s ease;
}


/* Responsive */
@media (max-width: 768px) {
  .brochure-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
  }

  .brochure-card::before {
    width: 100%;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .brochure-icon {
    width: 60px;
    height: 60px;
  }

  .brochure-icon svg {
    width: 36px;
    height: 36px;
  }

  .brochure-content h3 {
    font-size: 1.15rem;
  }
}

/* --------------------------------------------------------------------------
    13. Split Layouts
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.split-2-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.split-2-col .testimonial-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap-md);
  min-height: 400px;
}

.split.reverse {
  direction: rtl;
}

/* .split.reverse>* {
  direction: ltr;
} */

.split-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-text h2 {
  margin-top: 0;
}

.split-text p {
  line-height: 1.8;
}

.split-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* History Carousel */
.history-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: var(--shadow-lg);
}

.history-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 400px;
}

.history-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

.history-carousel-slide.active {
  opacity: 1;
}

.history-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10;
  transition: all 0.3s ease;
}

.history-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.history-carousel-btn.prev {
  left: 15px;
}

.history-carousel-btn.next {
  right: 15px;
}

.history-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.history-dot.active {
  background: white;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .history-carousel-track {
    height: 300px;
  }
}

/* Course link items inside split */
.course-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.course-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.course-link-item:hover {
  background: rgba(255, 102, 0, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
}

.course-link-item span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 7rem;
  text-align: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. Section Header
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2rem;
  margin-top: 0;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-left: auto;
  margin-right: auto;
}

.banner-title {
  display: inline-block;
  background: var(--ndrf-orange);
  color: #003399;
  /* Institutional Blue text */
  padding: 0.75rem 3rem;
  /* Institutional rectangle shape */
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 25px rgba(243, 109, 28, 0.25);
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.85rem;
  font-weight: 700;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--ndrf-orange);
  border-radius: 2px;
}

.section-header.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header-pdf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section-header-pdf h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: normal;
  color:var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .section-header-pdf {
    align-items: flex-start;
  }
}


/* --------------------------------------------------------------------------
   15. Cards — Glass-morphism
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.card-link:hover {
  color: var(--accent-dark);
}

.card-link i {
  font-size: 0.75rem;
  transition: transform var(--duration-fast);
}

.card-link:hover i {
  transform: translateX(4px);
}

/* Card grid layouts */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

/* Accent border variant */
.card-accent {
  border-color: var(--accent);
}

.card-accent::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
}

/* Testimonial Split Layout */
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.testimonial-carousel-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-track {
  display: flex;
  height: 100%;
}

.testimonial-carousel .testimonial-card {
  flex: 0 0 100%;
  padding: 0 4rem 1rem 0;
  margin: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.4s var(--ease-smooth);
  text-align: left;
}


.testimonial-controls {
  position: relative;
  margin-top: 0.5rem;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.testimonial-dots {
  display: flex;
  gap: 0.6rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: #ff6600;
  width: 25px;
  border-radius: 5px;
}

.testimonial-quote {
  color: #ff6600;
  /* Institutional Orange */
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #334155;
  /* Slate 700 */
  margin-bottom: 3rem;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6600;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}

.testimonial-name {
  font-weight: 700;
  color: #0f172a;
  /* Slate 900 */
  font-size: 1.2rem;
  margin: 0;
}

.testimonial-role {
  font-size: 0.95rem;
  color: #94a3b8;
  /* Slate 400 */
  margin: 0;
  font-weight: 500;
}

/* Resource Card Styles */
.resource-card {
  position: relative;
  background: #ffffff;
  padding: 3rem;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s var(--ease-smooth);
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: #ffffff;
  border-color: #ff6600;
  transform: translateX(10px);
}

.resource-icon {
  width: 50px;
  height: 50px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6600;
  font-size: 1.25rem;
}

.resource-info {
  flex: 1;
}

.resource-title {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.resource-desc {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
}

.resource-arrow {
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.resource-item:hover .resource-arrow {
  color: #ff6600;
  transform: translateX(5px);
}

/* Resource Dropdown */
.resource-dropdown-trigger {
  cursor: pointer;
}

.resource-dropdown-trigger.active {
  background: #ffffff;
  border-left: 4px solid #ff6600;
}

.resource-dropdown-trigger .resource-arrow {
  transition: transform 0.3s ease;
}

.resource-dropdown-trigger.active .resource-arrow {
  transform: rotate(180deg);
}

.resource-dropdown-content {
  display: none;
  background: #f8fafc;
}

.resource-dropdown-content.active {
  display: block;
}

.resource-dropdown-content .resource-item {
  background: transparent;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-dropdown-content .resource-item:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(5px);
}

.resource-dropdown-content .resource-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.resource-dropdown-content .resource-title {
  font-size: 1rem;
}

@media (max-width: 992px) {
  .testimonial-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   16. Specialized Training Grid (Image overlay cards)
   -------------------------------------------------------------------------- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.training-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.training-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.training-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--duration-normal);
}

.training-card:hover img {
  transform: scale(1.08);
}

.training-card:hover .training-card-overlay {
  background: linear-gradient(to top, rgba(10, 14, 26, 0.98) 0%, rgba(10, 14, 26, 0.4) 60%, rgba(10, 14, 26, 0.1) 100%);
}

.training-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.training-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.training-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16b. Training Highlight Cards (image + text below)
   -------------------------------------------------------------------------- */
.trg-highlight-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.trg-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 59, 117, 0.1);
}

.trg-highlight-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.trg-highlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.trg-highlight-card:hover .trg-highlight-img img {
  transform: scale(1.05);
}

.trg-highlight-info {
  padding: 1.25rem 1.5rem;
}

.trg-highlight-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ndrf-blue);
  margin-bottom: 0.35rem;
}

.trg-highlight-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   17. Services Grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

/* --------------------------------------------------------------------------
   18. Gallery — Horizontal Scroll
   -------------------------------------------------------------------------- */
.gallery-section {
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 var(--padding-global);
  will-change: transform;
}

.gallery-item {
  flex-shrink: 0;
  width: 45vw;
  max-width: 600px;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

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

/* --------------------------------------------------------------------------
   18.1 What's New & Current Training
   -------------------------------------------------------------------------- */
.updates-container {
  display: flex;
  gap: var(--gap-sm);
  align-items: stretch;
}

.updates-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-list,
.training-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.news-card,
.training-status-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  padding: 1.5rem;
  transition: all var(--duration-fast) var(--ease-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Make cards expand to fill vertical space equally if needed */
}

.news-card:hover,
.training-status-item:hover {
  border-color: var(--ndrf-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.news-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Training styles refined */
.training-status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.training-batch-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.training-batch-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.training-count-badge {
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
}

.training-progress-wrapper {
  margin-top: auto;
}

.training-progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.training-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-blue) 100%);
  border-radius: 10px;
}

.training-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .updates-container {
    flex-direction: column;
    gap: var(--gap-md);
  }
}

/* --------------------------------------------------------------------------
   18.2 Media & Updates Strip (3-column: gallery / updates / video)
   -------------------------------------------------------------------------- */
.media-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.media-strip-col {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-strip-header {
  background: linear-gradient(135deg, var(--ndrf-blue) 0%, #0a1628 100%);
  padding: 0.85rem 1.25rem;
  border-bottom: 3px solid var(--accent);
}

.media-strip-header h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
}

.media-strip-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Image Gallery Slider */
.media-gallery-slider {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0;
  flex: 1;
}

.media-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-gallery-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.media-gallery-track img.active {
  opacity: 1;
}

.media-gallery-controls {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.media-gallery-prev,
.media-gallery-next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.media-gallery-prev:hover,
.media-gallery-next:hover {
  background: var(--accent);
}

/* Latest Updates Scrolling List */
.media-updates-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.media-updates-list {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scrollUpdates 20s linear infinite;
}

.media-updates-scroll:hover .media-updates-list {
  animation-play-state: paused;
}

.media-updates-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.media-updates-list li svg.feather {
  width: 12px;
  height: 12px;
  color: var(--accent);
  margin-top: 0.35rem;
  /* Better alignment for multi-line text */
  flex-shrink: 0;
}


.media-updates-list li a {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s;
}

.media-updates-list li a:hover {
  color: var(--accent);
}

@keyframes scrollUpdates {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* Video Gallery */
.media-video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0;
  flex: 1;
}

.media-video-wrapper iframe,
.media-video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: fill;
}

/* View More Link */
.media-strip-link {
  background: #ff6601;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-end;
  transition: color 0.2s;
  padding: 10px 30px;
}

.media-strip-link:hover {
  color: var(--ndrf-blue);
}

/* Flip Card for Latest Updates */
.media-flip-container {
  perspective: 1200px;
  background: transparent;
  border: none;
}

.media-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.media-flip-container.flipped .media-flip-inner {
  transform: rotateY(180deg);
}

.media-flip-front,
.media-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  min-height: 0;
}

.media-flip-back {
  transform: rotateY(180deg);
}

.media-flip-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.media-flip-back-btn:hover {
  color: var(--ndrf-blue);
}

.media-update-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.media-update-detail-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.media-update-detail-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.media-update-detail-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .media-strip-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .media-updates-scroll {
    max-height: 290px;
    border-bottom: 1px solid #dcdcdc45;
  }

  .media-flip-container {
    min-height: 400px;
  }
}

@media (max-width: 992px) {
  .media-strip-footer {
    padding-top: 0.75rem;
    width: 100%;
  }

  .media-strip-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .media-strip-body {
    padding: 0.85rem;
  }

  .media-strip-footer {
    justify-content: center;
    padding: 0.5rem 0 0;
  }

  .media-strip-link {
    padding: 0.65rem 0.9rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   19. Director's Message / Blockquote
   -------------------------------------------------------------------------- */
.quote-section .split {
  grid-template-columns: clamp(280px, 35vw, 420px) 1fr;
}

.quote-photo {
  border-radius: 0px;
  overflow: hidden;
  aspect-ratio: 4/4;
  position: relative;
}

.quote-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s var(--ease-smooth);
  z-index: 1;
}

.quote-photo img.active {
  opacity: 1;
  z-index: 2;
}


.quote-content {
  position: relative;
  padding-top: 2rem;
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.7;
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
}

blockquote {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.quote-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.quote-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   20. Course Accordion
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color var(--duration-fast);
}

.accordion-item.open {
  border-color: var(--accent);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.accordion-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.accordion-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  min-width: 2rem;
}

.accordion-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-duration {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  min-width: 7.5rem;
  text-align: center;
  flex-shrink: 0;
}

.accordion-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform var(--duration-fast);
  margin-left: 1rem;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-smooth);
}

.accordion-body-inner {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.accordion-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.accordion-detail-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  font-weight: 600;
}

.accordion-detail-value {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   21. Calendar Table
   -------------------------------------------------------------------------- */
.calendar-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .calendar-tabs {
    gap: 0.5rem;
  }

  .calendar-tab {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }

  .calendar-tab[data-filter="all"] {
    flex: 1 1 100%;
  }
}

.calendar-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.calendar-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.calendar-tab.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.calendar-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.calendar-table thead {
  background: var(--bg-tertiary);
}

.calendar-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.calendar-table td {
  padding: 0.9rem 1.25rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.calendar-table tbody tr {
  transition: background var(--duration-fast);
}

.calendar-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.calendar-table tbody tr:hover {
  background: rgba(255, 102, 0, 0.05);
}

/* Mobile Responsiveness for Calendar Table */
@media (max-width: 992px) {
  .calendar-table-wrap {
    border: none;
    overflow: visible;
  }

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

  .calendar-table thead {
    display: none;
  }

  .calendar-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--white) !important;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all var(--duration-normal) var(--ease-smooth);
    display: flex;
    flex-wrap: wrap;
  }

  .calendar-table tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.08);
    border-color: var(--accent);
  }

  .calendar-table td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    padding-left: 45%;
    position: relative;
    text-align: right;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 2.25rem;
    width: 100%;
  }

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

  /* Labels for mobile view */
  .calendar-table td::before {
    position: absolute;
    left: 0;
    width: 40%;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
  }

  .calendar-table td:nth-of-type(3),
  .calendar-table td:nth-of-type(4) {
    width: 50%;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-left: 0;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .calendar-table td:nth-of-type(4) {
    padding-left: 6px;
  }

  .calendar-table td:nth-of-type(3) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }

  .calendar-table td:nth-of-type(1)::before {
    content: "Course";
  }

  .calendar-table td:nth-of-type(2)::before {
    content: "Wing";
  }

  .calendar-table td:nth-of-type(3)::before {
    content: "Duration";
  }

  .calendar-table td:nth-of-type(4)::before {
    content: "Capacity";
  }

  .calendar-table td:nth-of-type(5)::before {
    content: "Schedule";
  }

  .calendar-table td:nth-of-type(6)::before {
    content: "Eligibility";
  }

  .calendar-table td:nth-of-type(3)::before,
  .calendar-table td:nth-of-type(4)::before {
    position: static;
    width: 100%;
    text-align: left;
    margin-bottom: 0.2rem;
  }

  /* Premium styling for the Course Name (first cell) */
  .calendar-table td:nth-of-type(1) {
    padding-top: 0;
    padding-bottom: 1rem;
    padding-left: 0;
    text-align: left;
    justify-content: flex-start;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ndrf-blue);
    border-bottom: 2px solid var(--accent-light);
    margin-bottom: 0.15rem;
    line-height: 1.3;
  }

  .calendar-table td:nth-of-type(1)::before {
    display: none;
  }

  /* Badge alignment on mobile */
  .calendar-table td:nth-of-type(2) {
    justify-content: flex-end;
  }

  /* Schedule highlight */
  .calendar-table td:nth-of-type(5) {
    color: var(--accent-blue);
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .calendar-table tr {
    padding: 1rem;
  }

  .calendar-table td {
    font-size: 0.85rem;
    padding-left: 40%;
  }

  .calendar-table td::before {
    font-size: 0.6rem;
  }

  .calendar-table td:nth-of-type(1) {
    font-size: 1.05rem;
  }
}

.wing-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.wing-badge.wing-a {
  background: rgba(255, 102, 0, 0.15);
  color: var(--accent);
}

.wing-badge.wing-b {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   22. Faculty Grid & Premium Bio Cards
   -------------------------------------------------------------------------- */
/* Faculty Sidebar Filter Layout */
.faculty-layout,
.initiatives-layout {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  align-items: flex-start;
}

.faculty-sidebar,
.initiatives-sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faculty-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faculty-filter-btn,
.initiatives-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  text-align: left;
}

.faculty-filter-btn:hover,
.initiatives-filter-btn:hover {
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
}

.faculty-filter-btn.active,
.initiatives-filter-btn.active {
  background: var(--ndrf-blue);
  color: #fff;
  border-color: var(--ndrf-blue);
  font-weight: 600;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  transition: all 0.25s var(--ease-smooth);
}

.faculty-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.faculty-content,
.initiatives-content {
  flex: 1;
  display: block;
  min-width: 0;
}

.initiative-tab-pane {
  display: none;
}

.initiative-tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.initiative-tab-pane > .section-header.center,
.initiative-tab-pane > .section-header.center h2,
.initiative-tab-pane > .section-header.center p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.initiative-tab-pane > h3.h2 {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faculty-bio-card.filter-hidden {
  display: none !important;
}

@media (max-width: 1199px) {

  .faculty-content,
  .initiatives-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {

  .faculty-layout,
  .initiatives-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .faculty-sidebar,
  .initiatives-sidebar {
    flex: none;
    position: static;
    width: 100%;
    padding: 0.75rem;
  }

  .faculty-sidebar nav,
  .initiatives-sidebar nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .faculty-sidebar nav::-webkit-scrollbar,
  .initiatives-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .faculty-filter-btn,
  .initiatives-filter-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    white-space: normal;
    border: 1px solid var(--border-subtle);
  }

  .faculty-content,
  .initiatives-content {
    flex: 1;
    display: block;
    width: 100%;
    min-width: 0;
  }
}

.faculty-bio-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px;
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 35px;
  row-gap: 0;
  align-items: start;
}

/* Supporting staff cards: centered layout */
.faculty-simple-card[data-rank="supporting-staff"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Order supporting staff cards: those with images first */
.faculty-simple-card[data-rank="supporting-staff"]:has(.faculty-photo-img) {
  order: -1;
}
.faculty-simple-card[data-rank="supporting-staff"]:not(:has(.faculty-photo-img)) {
  order: 1;
}

.faculty-bio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(14, 78, 122, 0.12);
}

.faculty-header {
  display: contents;
}

.faculty-photo-box {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center top;
  border: 3px solid var(--ndrf-blue);
  position: relative;
  background-clip: content-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faculty-title-area {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
  padding-bottom: 8px;
}

.faculty-rank-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ndrf-orange);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 8px;
  display: inline-block;
  border-bottom: 2px solid var(--ndrf-orange);
  padding-bottom: 2px;
  width: fit-content;
}

.faculty-bio-card h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ndrf-blue);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.faculty-role-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ndrf-orange);
  margin-bottom: 6px;
  line-height: 1.3;
  font-style: normal;
}

.faculty-bio-body {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
}

.faculty-bio-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  text-align: left;
}

@media (max-width: 768px) {
  .faculty-bio-card {
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    align-items: center;
    text-align: center;
  }

  .faculty-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .faculty-photo-box {
    width: 150px;
    height: 150px;
    margin-bottom: 0;
  }

  .faculty-bio-card h3 {
    font-size: 1.6rem;
  }

  .faculty-bio-body {
    display: block;
  }
}

.commandant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.commandant-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.commandant-card-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.commandant-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.commandant-card:hover .commandant-card-photo img {
  transform: scale(1.05);
}

.commandant-card-info {
  padding: 1.25rem;
}

.commandant-card-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.commandant-card-info .role {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.commandant-card-info p {
  font-size: 0.8rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   22b. Staff Cards
   -------------------------------------------------------------------------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.staff-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  height: 100%;
  border-radius: 0.75rem;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.staff-card:hover {
  border-color: var(--ndrf-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.staff-role {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ndrf-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.staff-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ndrf-blue);
  margin-bottom: 0.25rem;
}

.staff-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.staff-email:hover {
  color: var(--ndrf-blue);
}

/* --------------------------------------------------------------------------
   22c. Features Grid (Core Values)
   -------------------------------------------------------------------------- */
.padding-section {
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}


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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--ndrf-blue);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--ndrf-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--ndrf-blue);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   22d. Faculty Featured (Director) & Commandant Grid (Hierarchy)
   -------------------------------------------------------------------------- */
.faculty-featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--ndrf-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  margin: 3rem auto 2rem;
  box-shadow: 0 10px 40px rgba(14, 78, 122, 0.2);
}

.faculty-featured-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.faculty-featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-featured-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.faculty-featured-info .role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.faculty-featured-info p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

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

/* --------------------------------------------------------------------------
   23. Contact Section
   -------------------------------------------------------------------------- */


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

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

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

.contact-detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-detail-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   24. Contact Info Cards (Contact page)
   -------------------------------------------------------------------------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

.contact-card h3 {
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

/* Map */
.map-wrap {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 100%;
  min-height: 350px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  filter: saturate(0.8);
}

/* Social icons row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Emergency strip */
.emergency-strip {
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 2rem;
}

.emergency-strip h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.emergency-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.emergency-item strong {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   24b. Contact Page — Campus Locations + Reimagined Layout
   -------------------------------------------------------------------------- */
.campus-locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.campus-location-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  position: relative;
}

.campus-location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.campus-location-accent {
  height: 5px;
}

.campus-blue .campus-location-accent {
  background: linear-gradient(90deg, var(--ndrf-blue), var(--ndrf-blue-dark));
}

.campus-orange .campus-location-accent {
  background: linear-gradient(90deg, var(--ndrf-orange), var(--ndrf-orange-dark));
}

.campus-location-map {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.campus-location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.85);
  transition: filter 0.3s;
}

.campus-location-card:hover .campus-location-map iframe {
  filter: saturate(1);
}

.campus-location-info {
  padding: 1.75rem;
}

.campus-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.campus-badge-blue {
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
}

.campus-badge-orange {
  background: var(--ndrf-orange-light);
  color: var(--ndrf-orange);
}

.campus-location-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.campus-location-address {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.campus-location-address i {
  margin-right: 6px;
  color: var(--text-muted);
}

.campus-location-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.campus-location-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  background: var(--bg-secondary);
  transition: all 0.2s;
  text-decoration: none;
}

.campus-location-contacts a:hover {
  color: var(--ndrf-blue);
  background: var(--ndrf-blue-light);
}

.campus-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

.campus-dir-blue {
  background: var(--ndrf-blue);
  color: #fff;
}

.campus-dir-blue:hover {
  background: var(--ndrf-blue-dark);
  color: #fff;
}

.campus-dir-orange {
  background: var(--ndrf-orange);
  color: #fff;
}

.campus-dir-orange:hover {
  background: var(--ndrf-orange-dark);
  color: #fff;
}

/* Contact Details Grid */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-info-block {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.contact-info-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.contact-info-list a {
  font-size: 0.95rem;
  color: var(--ndrf-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-info-list a:hover {
  color: var(--ndrf-blue-dark);
  text-decoration: underline;
}

/* Social links in contact */
.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-social-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.contact-social-item i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.contact-social-item:hover {
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
}

/* Emergency Banner */
.emergency-contact-section {
  background: linear-gradient(135deg, #fff5f0 0%, #ffeee6 100%);
}

.emergency-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--white);
  border: 2px solid var(--ndrf-orange);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.08);
  flex-wrap: wrap;
}

.emergency-banner-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ndrf-orange-light);
  color: var(--ndrf-orange);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.emergency-banner-content {
  flex: 1;
  min-width: 200px;
}

.emergency-banner-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ndrf-orange);
  margin: 0 0 0.35rem;
}

.emergency-banner-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.emergency-banner-numbers {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 2;
  min-width: 0;
}

.emergency-number {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.emergency-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.emergency-number a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ndrf-orange);
  text-decoration: none;
  transition: color 0.2s;
}

.emergency-number a:hover {
  color: var(--ndrf-orange-dark);
  text-decoration: underline;
}

/* Contact form 2-column row */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 576px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* Contact page responsive */
@media (max-width: 991px) {
  .campus-locations-grid {
    grid-template-columns: 1fr;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .emergency-banner {
    flex-direction: column;
    padding: 1.5rem;
  }

  .emergency-banner-numbers {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .campus-location-map {
    height: 200px;
  }

  .campus-location-info {
    padding: 1.25rem;
  }

}

/* High contrast: Contact page */
html.high-contrast .campus-location-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .campus-location-info h3 {
  color: #fff;
}

html.high-contrast .contact-info-block {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .contact-info-icon {
  background: #2a2a2a;
  color: #90caf9;
}

html.high-contrast .emergency-contact-section {
  background: #000;
}

html.high-contrast .emergency-banner {
  background: #1a1a1a;
  border-color: var(--ndrf-orange);
}

html.high-contrast .contact-social-item {
  background: #2a2a2a;
  color: #ccc;
}

/* --------------------------------------------------------------------------
   25. E-LMS Specific
   -------------------------------------------------------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-item i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
  max-width: 800px;
  margin: 0 auto;
}

.portal-cards .card {
  text-align: center;
}

.portal-cards .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.portal-cards .card .btn {
  margin-top: 0.5rem;
}

/* Links page tabs */
.links-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.links-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.links-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.links-tab.active {
  background: var(--ndrf-blue);
  border-color: var(--ndrf-blue);
  color: #fff;
}

.links-panel {
  display: none;
}

.links-panel.active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.admin-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--duration-fast);
}

.admin-link i {
  font-size: 1.5rem;
  color: var(--accent);
}

.admin-link:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   26. Resources Specific (Tables & Expandable Rows)
   -------------------------------------------------------------------------- */
.precis-table-container {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 59, 117, 0.08);
  background: white;
}

.precis-table {
  width: 100%;
  border-collapse: collapse;
  word-wrap: break-word;
}

.precis-table thead tr {
  background: linear-gradient(90deg, var(--ndrf-blue) 0%, var(--ndrf-orange) 100%);
}

.precis-table th {
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  background: transparent;
  /* Allow row gradient to show through */
}

.precis-table th.sno {
  width: 80px;
  text-align: center;
}

.precis-table th.name {
  padding-left: 2rem;
}

.precis-table td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-primary);
  font-weight: 500;
  transition: background 0.2s;
}

.precis-table td.sno-cell {
  text-align: center;
  font-weight: 700;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  color: var(--ndrf-blue);
  white-space: nowrap;
}

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

@media (max-width: 768px) {

  .precis-table,
  .precis-table thead,
  .precis-table tbody,
  .precis-table th,
  .precis-table td,
  .precis-table tr:not(.expanded-content) {
    display: block;
    width: 100%;
  }

  /* Keep expanded-content hidden on mobile; show as block when folder is expanded */
  .precis-table tr.expanded-content {
    display: none;
    width: 100%;
  }

  .precis-table tr.row-expanded + .expanded-content {
    display: block;
  }

  .precis-table thead {
    display: none;
  }

  .precis-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
  }

  .precis-table tr:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.08);
  }

  .precis-table tr:last-child {
    margin-bottom: 0;
  }

  .precis-table td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

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

  .precis-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
  }

  .precis-table td.sno-cell {
    display: none;
  }

  .precis-table tr:not(.expanded-content) td:nth-of-type(2) {
    padding-top: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ndrf-blue);
    border-bottom: 2px solid var(--accent-light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .precis-table td:nth-of-type(2)::before {
    display: none;
  }

  /* Merge expanded folder row and expanded content row into a single card on mobile */
  .precis-table tr.table-expand-row.row-expanded {
    margin-bottom: 0;
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
  }

  .precis-table tr.expanded-content {
    margin-top: 0;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
    background: var(--ndrf-blue-light);
  }
}

/* Expandable Row Style */
.expand-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.expand-trigger .folder-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.expand-trigger i.chevron {
  transition: transform 0.3s ease;
  color: #94a3b8;
}

.row-expanded .chevron {
  transform: rotate(180deg);
  color: var(--ndrf-orange);
}

.expanded-content {
  display: none;
  background: var(--ndrf-blue-light);
}

.row-expanded+.expanded-content {
  display: table-row;
}

.sub-resource-list {
  padding: 0;
  list-style: none;
}

.sub-resource-item {
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(0, 59, 117, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ndrf-blue);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 600;
  word-break: break-word;
  white-space: normal;
}

.sub-resource-item:hover {
  background: white;
  color: var(--ndrf-orange);
  padding-left: 2.5rem;
}

.sub-resource-item i {
  width: 16px;
  height: 16px;
  color: var(--ndrf-orange);
}

.precis-link {
  color: var(--ndrf-blue);
  text-decoration: none;
  font-weight: 600;
}

.precis-link:hover {
  color: var(--ndrf-orange);
  text-decoration: underline;
}

.lang-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.75rem;
}

.lang-en {
  background: #e2e8f0;
  color: #475569;
}

.lang-hi {
  background: #fff3e0;
  color: #e65100;
}

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

.external-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.external-link:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.external-link i {
  color: var(--accent);
}

.external-link .link-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.external-link-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Evolution Timeline — Horizontal (Above/Below Center Line, No Overflow)
   -------------------------------------------------------------------------- */
.evolution-section {
  position: relative;
  overflow: hidden;
}

.tl-container {
  width: 100%;
  overflow: visible;
  padding: 0;
}

/* Grid track - top and bottom cards use staggered column positions */
.tl-track {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  position: relative;
  height: 440px;
  width: 100%;
}

/* The horizontal center line */
.tl-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--ndrf-orange), var(--ndrf-blue), var(--ndrf-orange));
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 100px;
}

/* Each timeline point. Top cards occupy odd two-column slots; bottom cards use
   the alternate two-column slots so the two rows do not share the same columns. */
.tl-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: span 2;
}

.tl-item:nth-child(1) {
  grid-column: 1 / span 2;
}

.tl-item:nth-child(2) {
  grid-column: 3 / span 2;
}

.tl-item:nth-child(3) {
  grid-column: 5 / span 2;
}

.tl-item:nth-child(4) {
  grid-column: 7 / span 2;
}

.tl-item:nth-child(5) {
  grid-column: 9 / span 2;
}

.tl-item:nth-child(6) {
  grid-column: 11 / span 2;
}

.tl-item:nth-child(7) {
  grid-column: 13 / span 2;
}

.tl-item:nth-child(8) {
  grid-column: 15 / span 2;
}

.tl-item:nth-child(9) {
  grid-column: 17 / span 2;
}

.tl-bottom {
  transform: translateX(10%);
}

.tl-item::before,
.tl-item::after {
  content: none;
}

/* Dot on the center line */
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ndrf-blue);
  border: 3px solid var(--bg-primary);
  z-index: 3;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 3px var(--ndrf-blue), 0 0 10px rgba(14, 78, 122, 0.35);
}

.tl-item:nth-child(odd) .tl-dot {
  background: var(--ndrf-orange);
  box-shadow: 0 0 0 3px var(--ndrf-orange), 0 0 10px rgba(255, 102, 0, 0.35);
}

.tl-item:hover .tl-dot {
  transform: scale(1.4);
}

/* Vertical stem */
.tl-stem {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 36px;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.tl-top .tl-stem {
  bottom: calc(50% + 7px);
}

.tl-bottom .tl-stem {
  top: calc(50% + 7px);
}

/* Cards — absolutely positioned above or below */
.tl-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 50px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0.6rem;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.terms-hero{
  background-color: var(--bg-secondary);
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.terms-title{
  color: #000000;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

.terms-hero .container {
  max-width: none;
  width: 100%;
}

.tl-top .tl-card {
  bottom: calc(50% + 43px);
  top: auto;
}

.tl-bottom .tl-card {
  top: calc(50% + 43px);
  bottom: auto;
}

.tl-top .tl-card:hover {
  transform: translateX(-50%) translateY(-4px);
  border-color: var(--ndrf-blue);
  box-shadow: 0 10px 24px rgba(14, 78, 122, 0.13);
}

.tl-bottom .tl-card:hover {
  transform: translateX(-50%) translateY(4px);
  border-color: var(--ndrf-blue);
  box-shadow: 0 10px 24px rgba(14, 78, 122, 0.13);
}

/* Year badge */
.tl-year {
  display: inline-block;
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  border-radius: 100px;
}

.tl-item:nth-child(odd) .tl-year {
  background: var(--ndrf-orange-light);
  color: var(--ndrf-orange);
}

.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.tl-p {
  font-size: 0.7rem;
}

.tl-md-break {
  display: none;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .tl-md-break {
    display: block;
  }
}

.tl-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Mobile: single-column vertical stack */
@media (max-width: 768px) {
  .tl-track {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0;
  }

  .tl-track::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 3px;
    height: 100%;
    transform: none;
  }

  .tl-item,
  .tl-item:nth-child(n) {
    grid-column: auto;
    transform: none;
    height: auto;
    justify-content: flex-start;
    padding: 1rem 0 1rem 3.5rem;
    min-height: 90px;
  }

  .tl-dot {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
  }

  .tl-stem {
    display: none;
  }

  .tl-card {
    position: static;
    transform: none;
    width: 100%;
    text-align: left;
  }

  .tl-top .tl-card:hover,
  .tl-bottom .tl-card:hover {
    transform: translateY(-2px);
  }
}



/* --------------------------------------------------------------------------
   26b. Director General's Message
   -------------------------------------------------------------------------- */
.dg-message-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dg-message-photo {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.dg-message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dg-message-content blockquote {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent, #FF6600);
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
  font-style: italic;
}

.dg-message-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ndrf-blue);
  margin: 0;
}

.dg-message-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

@media (max-width: 768px) {
  .dg-message-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .dg-message-photo {
    max-width: 180px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .dg-message-content blockquote {
    border-left: none;
    border-top: 3px solid var(--accent, #FF6600);
    padding-left: 0;
    padding-top: 1rem;
    font-size: 0.95rem;
  }
}

html.high-contrast .dg-message-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .dg-message-content blockquote {
  color: #e2e8f0;
}

html.high-contrast .dg-message-name {
  color: #90caf9;
}

/* --------------------------------------------------------------------------
   27. Vision/Mission Cards
   -------------------------------------------------------------------------- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vision-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.vision-card.accent {
  border: 1.5px solid var(--ndrf-orange);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.02) 0%, var(--bg-card) 100%);
}

.scrollable-card {
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.scrollable-card h3,
.scrollable-card p {
  padding-left: 2rem;
  padding-right: 2rem;
}

.scrollable-card .resource-list {
  width: 100%;
  height: 480px;
  overflow-y: auto;
  padding-left: 2rem;
  padding-right: 1rem;
  padding-bottom: 3.5rem;
  margin-top: 1.5rem !important;
  text-align: left;
}

.scrollable-card .resource-list::-webkit-scrollbar {
  width: 6px;
}

.scrollable-card .resource-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scrollable-card .resource-list::-webkit-scrollbar-thumb {
  background: var(--ndrf-orange);
  border-radius: 10px;
}

.scrollable-card .resource-list::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

.vision-card-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF4E6;
  /* Very light peach/orange */
  color: var(--ndrf-orange);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.vision-card h3 {
  color: var(--ndrf-orange);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.vision-card p {
  color: var(--ndrf-blue);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 90%;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   28. Infrastructure Grid
   -------------------------------------------------------------------------- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

/* --------------------------------------------------------------------------
   29. Marquee (Collaborations)
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 95s linear infinite;
  width: max-content;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  min-width: 280px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-smooth);
  color: inherit;
  text-decoration: none;
}

.marquee-item:hover {
  border-color: var(--ndrf-blue);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.marquee-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.marquee-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.marquee-text strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
}

.marquee-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   30. Footer (CRPF/GIGW-compliant, 5-Row)
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
}

/* Row 1: Government Initiatives Logos (white bg, scrolling) */
.footer-initiatives {
  background: #fff;
  padding: 1rem 0;
  overflow: hidden;
  border-top: 3px solid var(--ndrf-blue, #003b75);
  border-bottom: 2px solid #dee2e6;
}

.footer-initiatives-track {
  display: flex;
  flex-shrink: 0;
  will-change: transform;
}

.footer-initiatives-set {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  padding-right: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .footer-initiatives-set {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

.footer-initiatives-track a {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 80px;
}

.footer-initiatives-track img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--duration-fast);
}

.footer-initiatives-track a:hover img {
  opacity: 1;
}

/* Row 2: Quick Links — Header bar (blue) + Table grid (white) */
.footer-quicklinks {
  border-bottom: 2px solid #dee2e6;
}

.footer-quicklinks-header {
  background: var(--ndrf-blue, #003b75);
  padding: 0.5rem 0;
}

.footer-quicklinks-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-quicklinks-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  color: #fff;
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social a svg {
  width: 14px;
  height: 14px;
}

/* Quick Links table grid (white bg, bordered cells) */
.footer-quicklinks-grid {
  background: #fff;
  padding: 0;
}

.footer-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.footer-table td {
  border: 1px solid #dee2e6;
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.footer-table td a {
  font-size: 0.82rem;
  color: #1a237e;
  font-weight: 500;
  transition: color var(--duration-fast);
  display: block;
}

.footer-table td a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Row 3: Related Organisations (blue bg, equal cells) */
.footer-orgs {
  background: var(--ndrf-blue, #003b75);
  padding: 0;
}

.footer-orgs-row {
  display: flex;
  flex-wrap: wrap;
}

.footer-orgs-row a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--duration-fast);
}

.footer-orgs-row a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Row 4: Policy Links (dark bg, pipe-separated) */
.footer-policies {
  background: #1e293b;
  padding: 0.6rem 0;
}

.footer-policies-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-policies-row a {
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 0.2rem 0.6rem;
  transition: color var(--duration-fast);
}

.footer-policies-row a:hover {
  color: var(--accent);
}

.footer-policies-row .pipe {
  color: #475569;
  font-size: 0.72rem;
  user-select: none;
}

/* Row 5: Copyright Bar (darkest bg, 3-col) */
/* Visitor Counter */
.footer-visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0;
  font-size: 1.5rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
}

.footer-visitor-counter span {
  display: inline-flex;
  align-items: center;
}

.visitor-count {
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  margin-right: 1rem;
}

.visitor-count:last-child {
  margin-right: 0;
}

.footer-copyright {
  background: #0f172a;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copyright-row p {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0;
}

.footer-copyright-row p:nth-child(2) {
  text-align: center;
}

.footer-copyright-row p:last-child {
  text-align: right;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-quicklinks-header-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Quick Links table → 2-column grid */
  .footer-table {
    display: block;
  }

  .footer-table tbody {
    display: block;
  }

  .footer-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-table td {
    display: block;
    padding: 0.5rem 0.65rem;
  }

  .footer-table td a {
    font-size: 0.75rem;
  }

  /* Orgs → 3 per row */
  .footer-orgs-row a {
    flex: 1 1 calc(33.33% - 2px);
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
  }

  /* Policies → wrap nicely */
  .footer-policies-row {
    gap: 0.1rem;
  }

  .footer-policies-row a {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .footer-policies-row .pipe {
    font-size: 0.6rem;
  }

  /* Visitor counter */
  .footer-visitor-counter {
    font-size: 1rem;
  }

  /* Copyright → stacked, centered */
  .footer-copyright-row {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }

  .footer-copyright-row p,
  .footer-copyright-row p:nth-child(2),
  .footer-copyright-row p:last-child {
    text-align: center;
  }
}

@media (max-width: 480px) {

  /* Quick Links table → single column */
  .footer-table tr {
    grid-template-columns: 1fr;
  }

  .footer-table td {
    border-bottom: 1px solid #dee2e6;
    border-right: none;
  }

  .footer-table td a {
    font-size: 0.72rem;
  }

  /* Orgs → 2 per row */
  .footer-orgs-row a {
    flex: 1 1 50%;
    font-size: 0.68rem;
    padding: 0.45rem 0.4rem;
  }

  /* Policies → vertical list, no pipes */
  .footer-policies-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .footer-policies-row .pipe {
    display: none;
  }

  .footer-policies-row a {
    padding: 0.3rem 0;
    font-size: 0.65rem;
  }

  /* Visitor counter */
  .footer-visitor-counter {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  .visitor-count {
    padding: 0.1rem 0.4rem;
    font-size: 0.85rem;
  }

  /* Copyright */
  .footer-copyright-row p {
    font-size: 0.6rem;
  }

  .footer-initiatives-track a {
    width: 100px;
    height: 36px;
  }
}

/* --------------------------------------------------------------------------
   31. Scroll Reveal Base States
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

[data-reveal-img] {
  clip-path: inset(0 100% 0 0);
}

[data-split] {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   32. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .logo-bar-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .menu-bar {
    position: relative;
    z-index: 1010;
  }

  .menu-bar .nav-toggle span {
    background: #ffffff;
  }

  .menu-bar.fixed {
    position: fixed;
    top: 0;
    z-index: 1010;
  }
}

@media (max-width: 991px) {

  .hero-quote-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .split {
    grid-template-columns: 1fr !important;
    gap: var(--gap-md);
  }

  .split.reverse {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item:nth-child(3)::after {
    display: none;
  }

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

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

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

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

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

  .faculty-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .faculty-featured-photo {
    margin: 0 auto;
  }

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

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

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

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

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

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

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

  .portal-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    width: 70vw;
  }

  .hero-content {
    padding-top: 3rem !important;
  }
}

@media (max-width: 768px) {
  .menu-bar {
    position: relative;
    z-index: 1010;
  }

  .menu-bar.fixed {
    position: fixed;
    top: 0;
    z-index: 1010;
  }

  .hero-slide:first-child .hero-content-wrapper {
    padding-top: 6rem !important;
  }

  .hero-slider {
    min-height: 860px;
  }

  .hero-slide {
    align-items: flex-start !important;
  }

  .stats-bar {
    overflow: hidden;
  }

  .stats-grid {
    display: flex;
    gap: 0;
    padding-bottom: 0;
    animation: statsMarquee 12s linear infinite;
    width: max-content;
  }

  .stat-item {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 0 1.5rem;
  }

  .stat-item:not(:last-child)::after {
    height: 100%;
    top: 0;
    transform: none;
  }

  @keyframes statsMarquee {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  /* Evolution Timeline Mobile */
  .tl-container::before {
    left: 20px;
    transform: none;
  }

  .tl-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
    text-align: left;
  }

  .tl-right {
    margin-left: 0;
  }

  .tl-item::before {
    left: 13px;
    right: auto;
  }

  .tl-item::after {
    left: 27px;
    right: auto;
    width: 20px;
  }

  .stat-item::after {
    display: none;
  }

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

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

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .accordion {
    gap: 0;
  }

  .accordion-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .accordion-item+.accordion-item {
    border-top: none;
  }

  .accordion-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .accordion-header-left {
    gap: 0.65rem;
  }

  .accordion-number {
    font-size: 0.95rem;
    min-width: 1.5rem;
  }

  .accordion-title {
    font-size: 0.9rem;
  }

  .accordion-duration {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    min-width: auto;
  }

  .accordion-icon {
    margin-left: 0.5rem;
  }

  .accordion-body-inner {
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
  }

  .accordion-detail-label {
    font-size: 0.8rem;
  }

  .accordion-detail-value {
    font-size: 0.85rem;
  }

  .gallery-item {
    width: 85vw;
  }

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

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

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

  .faculty-featured {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .links-tabs {
    gap: 0.5rem;
  }

  .links-tab {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }

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

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

/* --------------------------------------------------------------------------
   33. prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

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

  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="scale"] {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-reveal-img] {
    clip-path: none !important;
  }

  [data-split] {
    opacity: 1 !important;
  }

  .cursor {
    display: none;
  }

  .marquee-track {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   34. Government Identity Bar (merged top bar)
   -------------------------------------------------------------------------- */
.gov-bar {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.7rem;
  position: relative;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.gov-bar.hidden {
  display: none;
}

/* Constrain gov-bar contents like the menu-bar */
.gov-bar .container-fluid {
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hide pipe dividers — replaced by box borders */
.gov-bar-right .gov-divider {
  display: none;
}

/* Left cell: Hindi welcome text */
.gov-bar-left {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.75rem;
}

/* Right group */
.gov-bar-right {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

/* Every direct child in the right group is a bordered cell */
.gov-bar-right>a,
.gov-bar-right>button,
.gov-bar-right>.gov-lang,
.gov-bar-right>.gov-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border: 0px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.gov-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border: 0px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  flex-direction: column;
}

.gov-bar-right>a:hover,
.gov-bar-right>button:hover,
.gov-bar-right>.gov-lang:hover,
.gov-bar-right>.gov-social:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.gov-bar-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, background 0.2s;
}

.gov-bar-link:hover {
  color: #ffffff;
}

/* Social icons share one cell */
.gov-social {
  gap: 1rem !important;
  position: fixed;
  z-index: 99999;
  background: rgb(2 60 118 / 52%) !important;
  top: 40%;
  right: 0;
}

.gov-social a {
  font-size: 1rem;
  border: none;
  padding: 0;
  line-height: 1;
}

.gov-social a svg,
.gov-social a img {
  width: 30px;
  height: 30px;
}

/* Skip-to-content icon in gov-bar */
.gov-skip svg {
  width: 24px;
  height: 24px;
}

/* Language dropdown in gov-bar */
.gov-lang {
  position: relative;
}

.gov-lang-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.gov-lang-toggle:hover {
  color: #ffffff;
}

.gov-lang-toggle svg {
  width: 12px;
  height: 12px;
}

.gov-lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 0.25rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.2s, visibility 0.2s;
}

.gov-lang.open .gov-lang-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gov-lang-option {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.gov-lang-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.gov-lang-option.active {
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .gov-bar .container-fluid {
    flex-wrap: wrap;
  }

  .hero-slider-dots {
    bottom: 2rem;
  }

  .gov-bar-left {
    flex: 1 1 100%;
    justify-content: center;
    border-bottom: none;
  }

  .gov-bar-right {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .gov-bar-right>a,
  .gov-bar-right>button,
  .gov-bar-right>.gov-lang,
  .gov-bar-right>.gov-social {
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 480px) {
  .gov-bar-left {
    font-size: 0.6rem;
  }

  .gov-bar-right>a,
  .gov-bar-right>button,
  .gov-bar-right>.gov-lang,
  .gov-bar-right>.gov-social {
    font-size: 0.6rem;
    padding: 0.3rem 0.5rem;
  }

  .gov-social a {
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Sitemap Page
   -------------------------------------------------------------------------- */
.sitemap-page {
  padding: 4rem 0 5rem;
  background: var(--bg-primary);
}

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

.sitemap-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sitemap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.sitemap-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--ndrf-blue, #003b75);
  color: #ffffff;
}

.sitemap-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
}

.sitemap-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.sitemap-card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
  color: #fff;
}

.sitemap-card-links {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.sitemap-card-links li {
  border-bottom: 1px solid var(--border-subtle);
}

.sitemap-card-links li:last-child {
  border-bottom: none;
}

.sitemap-card-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.sitemap-card-links a svg {
  width: 14px;
  height: 14px;
  stroke: var(--ndrf-blue, #003b75);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sitemap-card-links a:hover {
  background: rgba(0, 59, 117, 0.06);
  color: var(--ndrf-blue, #003b75);
  padding-left: 1.5rem;
}

.sitemap-card-links a:hover svg {
  transform: translateX(3px);
}

/* Sitemap responsive */
@media (max-width: 1024px) {
  .sitemap-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sitemap-page {
    padding: 2.5rem 0 3rem;
  }

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

@media (max-width: 480px) {
  .sitemap-cards {
    grid-template-columns: 1fr;
  }

  .sitemap-card-links a {
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
  }
}

/* High contrast — sitemap */
html.high-contrast .sitemap-card {
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .sitemap-card-header {
  background: #001a3a;
}

html.high-contrast .sitemap-card-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   35. Accessibility Buttons (flat inline in gov-bar)
   -------------------------------------------------------------------------- */
.a11y-btn {
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
}

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

.a11y-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.a11y-btn.a11y-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid #ffffff;
}

/* Screen Reader Access Modal */
.sr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.sr-modal.open {
  display: flex;
}

.sr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.sr-modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.sr-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.sr-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.2s;
}

.sr-modal-close:hover {
  color: var(--text-primary);
}

.sr-modal-body {
  padding: 1.5rem;
}

.sr-modal-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.sr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.sr-table th,
.sr-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.sr-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sr-table td a {
  color: var(--ndrf-blue);
  font-weight: 500;
}

.sr-table td a:hover {
  text-decoration: underline;
}

/* Sitemap modal grid */
.sitemap-body {
  padding: 1.5rem;
}

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

.sitemap-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--ndrf-blue);
}

.sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-col li {
  margin-bottom: 0.3rem;
}

.sitemap-col a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.sitemap-col a:hover {
  color: var(--ndrf-blue);
}

@media (max-width: 640px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   36. Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  max-width: none;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn-decline {
  background: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.cookie-btn-decline:hover {
  border-color: #94a3b8;
  color: #334155;
}

.cookie-btn-accept {
  background: var(--accent, #FF6600);
  color: #ffffff;
  border: 1px solid var(--accent, #FF6600);
}

.cookie-btn-accept:hover {
  background: var(--accent-dark, #CC5200);
  border-color: var(--accent-dark, #CC5200);
}

/* Cookie banner responsive */
@media (max-width: 768px) {
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   37. High Contrast Mode
   -------------------------------------------------------------------------- */
html.high-contrast {
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #2a2a2a;
  --border-subtle: rgba(255, 255, 255, 0.3);
  --border-hover: rgba(255, 255, 255, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --text-dark: #ffffff;
  --white: #000000;
  --black: #ffffff;
}

html.high-contrast body {
  background: #000000;
  color: #ffffff;
}

html.high-contrast a {
  color: #ffff00;
}

html.high-contrast a:hover {
  color: #ffffff;
}

/* High contrast: precis-tables — make ndrf-blue visible on black */
html.high-contrast .precis-table {
  --ndrf-blue: #ffffff;
  --ndrf-blue-light: #2a2a2a;
}

html.high-contrast .precis-table thead tr {
  background: linear-gradient(90deg, #002a54 0%, var(--ndrf-orange) 100%);
}

html.high-contrast .precis-table td.sno-cell {
  background: #1a1a1a;
  border-right-color: rgba(255, 255, 255, 0.2);
}

html.high-contrast .precis-table-container {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .precis-table tr:hover td {
  background: #2a2a2a;
}

/* High contrast: screen reader modal */
html.high-contrast .sr-modal-content {
  background: #1a1a1a;
}

html.high-contrast .sr-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

html.high-contrast .sr-modal-close {
  color: #e0e0e0;
}

html.high-contrast .sr-modal-body p {
  color: #e0e0e0;
}

html.high-contrast .sr-table th {
  background: #2a2a2a;
  color: #ffffff;
}

html.high-contrast .sr-table td {
  color: #e0e0e0;
}

html.high-contrast .sr-table td a {
  color: #ffff00;
}

html.high-contrast .sr-table td a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  html.high-contrast .precis-table tr {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
  }

  html.high-contrast .precis-table tr:hover {
    border-color: #ffff00;
    box-shadow: 0 0 0 1px #ffff00;
  }
}

html.high-contrast .sub-resource-item {
  color: #ffffff;
}

html.high-contrast .sub-resource-item:hover {
  background: #2a2a2a;
  color: #ffff00;
}

html.high-contrast .sub-resource-item i {
  color: #ffff00;
}

html.high-contrast .expanded-content {
  background: #1a1a1a;
}

html.high-contrast .expand-trigger i.chevron {
  color: #b0b0b0;
}

html.high-contrast .gov-lang-dropdown {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .gov-lang-option {
  color: #e0e0e0;
}

html.high-contrast .gov-lang-option:hover {
  background: #2a2a2a;
  color: #ffffff;
}

html.high-contrast .gov-lang-option.active {
  color: #ffffff;
}

/* High contrast: partner cards */
html.high-contrast .partner-tab {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
}

html.high-contrast .partner-tab:hover {
  border-color: #ffff00;
  color: #ffff00;
}

html.high-contrast .partner-tab.active {
  background: #ffff00;
  border-color: #ffff00;
  color: #000000;
}

html.high-contrast .partner-tab-logo {
  background: #1a1a1a;
}

html.high-contrast .partner-image {
  background: #2a2a2a;
}

html.high-contrast .partner-panel-heading h3 {
  color: #ffffff;
}

html.high-contrast .gov-lang-toggle {
  color: rgba(255, 255, 255, 0.8);
}

html.high-contrast .row-expanded .chevron {
  color: #ffff00;
}

html.high-contrast .menu-bar {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* High contrast: header dropdowns */
html.high-contrast .nav-dropdown {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .nav-dropdown a {
  color: #e0e0e0;
}

html.high-contrast .nav-dropdown a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

html.high-contrast .mobile-menu {
  background: rgba(0, 0, 0, 0.98);
}

html.high-contrast .mobile-menu a,
html.high-contrast .mobile-nav-row a {
  color: #e0e0e0;
}

html.high-contrast .mobile-menu a.active,
html.high-contrast .mobile-nav-row a.active {
  color: #ffff00;
}

html.high-contrast .mobile-nav-sub {
  background: rgba(255, 255, 255, 0.08);
}

html.high-contrast .mobile-nav-toggle {
  color: #e0e0e0;
}

html.high-contrast .logo-bar {
  background: #1a1a1a;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .nav-logo {
  color: #ffffff;
}

html.high-contrast .top-bar {
  background: #1a1a1a;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .footer-initiatives {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .footer-initiatives-track img {
  opacity: 1;
  filter: brightness(1.2) contrast(1.3);
}

html.high-contrast .footer-quicklinks-header {
  background: #001a3a;
}

html.high-contrast .footer-quicklinks-grid {
  background: #1a1a1a;
}

html.high-contrast .footer-table td {
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .footer-table td a {
  color: #e2e8f0;
}

html.high-contrast .footer-orgs {
  background: #001a3a;
}

html.high-contrast .footer-orgs-row a {
  border-color: rgba(255, 255, 255, 0.4);
}

html.high-contrast .footer-policies {
  background: #111;
}

html.high-contrast .footer-policies-row a {
  color: #e2e8f0;
}

html.high-contrast .footer-copyright {
  background: #000;
  border-top-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .footer-copyright-row p {
  color: #94a3b8;
}

html.high-contrast .footer-visitor-counter {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

html.high-contrast .visitor-count {
  background: rgba(255, 255, 255, 0.15);
}

html.high-contrast .card,
html.high-contrast .contact-card,
html.high-contrast .vision-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .cookie-banner {
  background: #1a1a1a;
  border-top-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .cookie-text {
  color: #e0e0e0;
}

html.high-contrast .a11y-btn {
  color: #e0e0e0;
}

/* High-contrast: Timeline overrides */
html.high-contrast .tl-card {
  background: #1a1a1a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #fff;
  color: #fff;
}

html.high-contrast .tl-card p,
html.high-contrast .tl-title {
  color: #fff;
}

html.high-contrast .tl-container::before {
  background: #fff;
}

html.high-contrast .tl-year {
  background: transparent;
  border: 2px solid var(--ndrf-blue);
  color: #90caf9;
}

html.high-contrast .tl-item::after {
  background: #fff;
}

/* --------------------------------------------------------------------------
   38. Policy Page Content
   -------------------------------------------------------------------------- */
.policy-content {
  max-width: 50rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: none;
}

.policy-content ul,
.policy-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content ol {
  list-style: decimal;
}

.policy-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.policy-content table th,
.policy-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.policy-content table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.policy-content table td {
  color: var(--text-secondary);
}

/* Policy table mobile scroll */
.policy-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
  .policy-content table {
    font-size: 0.8rem;
  }

  .policy-content table th,
  .policy-content table td {
    padding: 0.5rem 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   20.0 Organogram (Hierarchy Chart) - Stable 1-to-4 Tree
   -------------------------------------------------------------------------- */
.tree-wrapper {
  width: 100%;
  padding: 5rem 0;
  display: flex;
  justify-content: center;
}

.tree-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Director Box */
.director-node {
  position: relative;
  margin-bottom: 60px;
  /* Space for the trunk */
  margin-bottom: 60px;
  /* Space for the trunk */
}

/* Trunk from Director to the horizontal bar */
.director-node::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 60px;
  background: var(--ndrf-blue);
  transform: translateX(-50%);
}

/* The Horizontal Branching Bar */
.commandants-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  position: relative;
  padding-top: 40px;
  /* Space for the branch lines */
  padding-top: 40px;
  /* Space for the branch lines */
}

/* --------------------------------------------------------------------------
   Organisational Chart — 4-Column CSS Grid (Pixel-Perfect Alignment)
   -------------------------------------------------------------------------- */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-family: var(--font-heading);
}

/* Director row */
.org-dir-row {
  display: flex;
  justify-content: center;
}

/* Connector: short vertical stem + horizontal bar */
.org-connector {
  position: relative;
  width: 100%;
  height: 48px;
}

.org-connector::after {
  /* vertical stem from Director */
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 48px;
  background: #000;
  transform: translateX(-50%);
}

.org-connector::before {
  /* horizontal bar spanning all 4 cols */
  content: '';
  position: absolute;
  bottom: 0;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #000;
}

/* Removed Director stem arrow */

/* Shared 4-column grid */
.org-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  width: 100%;
  position: relative;
}

/* Each column */
.org-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  position: relative;
  /* needed for ::before absolute stem */
}

/* Vertical stem at TOP: drawn as absolute line above the card */
.org-grid-4:not(.org-level3) .org-col {
  padding-top: 25px;
  /* Reserve space for the top stem */
}

.org-grid-4:not(.org-level3) .org-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 25px;
  background: #000;
  z-index: 1;
  /* Behind the card */
}

/* Stems from bottom of T1 and T2 going down to ∪ bracket */
.org-grid-4:not(.org-level3) .org-col:nth-child(1) .org-node::after,
.org-grid-4:not(.org-level3) .org-col:nth-child(2) .org-node::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 35px;
  /* must match .org-level3 margin-top */
  background: #000;
  z-index: 1;
}

/* Stems from bottom of Commandant Administration (col3) and Works (col4) */
.org-grid-4:not(.org-level3) .org-col:nth-child(3) .org-node::after,
.org-grid-4:not(.org-level3) .org-col:nth-child(4) .org-node::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 35px;
  /* bridges the 35px margin-top gap */
  background: #000;
  z-index: 1;
}

/* Level 3 grid: explicit gap for Training ∪ bracket to render in */
.org-level3 {
  margin-top: 35px;
}

/* NO in-flow stem for col3/col4 — the margin gap + card stem above handles spacing */
/* Only col-span2 (Training) needs a ::before stem */


/* Training spans columns 1+2 */
.org-col-span2 {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Center vertical stem: ∪ bracket center → Training Officer */
.org-level3 .org-col-span2::before {
  content: '';
  display: block;
  width: 2px;
  height: 20px;
  background: #000;
  flex-shrink: 0;
}

/* ∪ bracket: uprights at T1-center and T2-center, crossbar at bottom */
.org-level3 .org-col-span2::after {
  content: '';
  position: absolute;
  top: -35px;
  /* = negative of margin-top on org-level3 */
  left: 25%;
  /* = horizontal center of col 1 (within span of 2) */
  right: 25%;
  /* = horizontal center of col 2 (from right) */
  height: 35px;
  border-bottom: 2px solid #000;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  z-index: 2;
}


/* Stem between Training Officer and Course Directors */
.org-vstem {
  width: 2px;
  height: 20px;
  background: #000;
  position: relative;
}

/* Removed vstem arrow */

/* ── Node styles ── */
.org-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 0px;
  text-align: center;
  width: calc(100% - 16px);
  max-width: 220px;
  min-height: 60px;
  background: #fff;
  /* Solid background */
  /* box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2); */
  z-index: 10;
  /* Sit ABOVE the stems */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.org-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  display: block;
}

/* Director node */
.org-dir-row .org-node {
  min-width: 210px;
  max-width: 280px;
  padding: 1rem 2.5rem;
  min-height: 66px;
  /* border-radius: 14px; */
}

.org-dir-row .org-title {
  font-size: 1.35rem;
}

/* Level-3 nodes (sub-nodes) */
.org-node-sm {
  max-width: 175px;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border-radius: 0px;
}

.org-node-sm .org-title {
  font-size: 0.85rem;
}

/* Colour variants */
.node-orange {
  background: #FF8C00;
  /* Rich Orange */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.node-orange .org-title {
  color: #000080;
  /* Navy blue text */
  font-weight: 800;
}

.node-navy {
  background: #000080;
  /* Brighter Navy */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

.node-navy .org-title {
  color: #ffff00;
  /* Yellow Text */
  font-weight: 700;
}

.node-olive {
  background: #4B5320;
  /* Darker Olive */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.node-olive .org-title {
  color: #ffff00;
  /* Yellow Text */
  font-weight: 700;
}

/* Force vertical flow for nodes that have arrows before them */
.org-col .org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Admin matrix: Central spine layout ── */
.org-admin-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  gap: 30px 0;
  /* Vertical gap between rows */
  padding-top: 20px;
}

/* The central column that forms the spine */
.org-admin-spine {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical Spine Line */
.org-admin-spine::before {
  content: '';
  position: absolute;
  top: -30px;
  bottom: -30px;
  left: 50%;
  width: 2px;
  background: #000;
  transform: translateX(-50%);
  z-index: 1;
}

/* Connect first row to the top level stem */
.org-admin-matrix>div:nth-child(2).org-admin-spine::before {
  top: -50px;
}

/* Stop the spine at the last horizontal connector */
.org-admin-matrix>div:nth-last-child(2).org-admin-spine::before {
  bottom: 50%;
}

/* Horizontal connectors branching from the spine */
.org-arr-h-left,
.org-arr-h-right {
  position: absolute;
  top: 50%;
  height: 2px;
  background: #000;
  width: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.org-arr-h-left {
  right: 50%;
}

.org-arr-h-right {
  left: 50%;
}

/* Removed Admin matrix horizontal arrows */

/* Cards inside the matrix: ensure consistent sizing */
.org-admin-matrix .org-node {
  width: 100%;
  max-width: 200px;
  min-height: 60px;
  border-radius: 0px;
}



/* Responsive — tablet */
@media (max-width: 900px) {
  .org-node {
    max-width: 155px;
    padding: 0.6rem 0.7rem;
    min-height: 50px;
  }

  .org-title {
    font-size: 0.8rem;
  }

  .org-node-sm {
    max-width: 125px;
    padding: 0.5rem 0.55rem;
  }

  .org-node-sm .org-title {
    font-size: 0.72rem;
  }

  .org-dir-row .org-node {
    max-width: 200px;
    padding: 0.8rem 1.5rem;
  }

  .org-dir-row .org-title {
    font-size: 1.1rem;
  }
}

/* Responsive — mobile: simplify into a single vertical list grouped by color */
@media (max-width: 640px) {
  .org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  /* Add a single central vertical line connecting all cards */
  .org-chart::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 25px;
    left: 50%;
    width: 2px;
    background: #000;
    transform: translateX(-50%);
    z-index: 0;
  }

  /* Flatten the layout completely to allow flex ordering */
  .org-level1,
  .org-grid-4,
  .org-col,
  .org-col-span2,
  .org-admin-matrix {
    display: contents;
  }

  /* Hide all connecting lines and spines */
  .org-connector,
  .org-vstem,
  .org-admin-spine,
  .org-grid-4::before,
  .org-grid-4::after,
  .org-col::before,
  .org-node::after,
  .org-col-span2::after,
  .org-col-span2::before {
    display: none !important;
  }

  .org-node {
    width: 100%;
    max-width: 280px;
    margin: 0 !important;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
  }

  /* Reorder by color */
  .node-orange {
    order: 1;
  }

  .node-navy {
    order: 2;
  }

  .node-olive {
    order: 3;
  }
}



/* --------------------------------------------------------------------------
   Infrastructure — Campus Tabs Layout
   -------------------------------------------------------------------------- */

/* Campus Tabs */
.campus-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.campus-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 2px solid var(--border-subtle);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.campus-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.campus-tab.active[data-campus="civil-line"] {
  background: var(--ndrf-blue);
  border-color: var(--ndrf-blue);
  color: #fff;
}

.campus-tab.active[data-campus="sura-devi"] {
  background: var(--ndrf-orange);
  border-color: var(--ndrf-orange);
  color: #fff;
}

/* Campus Panel */
.campus-panel {
  display: none;
}

.campus-panel.active {
  display: block;
}

/* Campus Hero */
.campus-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 2.5rem;
}

.campus-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campus-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #fff;
}

.campus-hero-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 0 0 0.25rem 0;
}

.campus-hero-overlay p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.85;
}

/* Facility Group */
.facility-group {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border-subtle);
}

.campus-blue .facility-group {
  border-left-color: var(--ndrf-blue);
}

.campus-orange .facility-group {
  border-left-color: var(--ndrf-orange);
}

.facility-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.facility-header i {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.campus-blue .facility-header i {
  color: var(--ndrf-blue);
}

.campus-orange .facility-header i {
  color: var(--ndrf-orange);
}

.facility-header h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-primary);
}

/* Facility Grid */
.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.facility-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  pointer-events: none;
  z-index: 2;
}

.facility-img:hover .facility-overlay {
  opacity: 1;
}

.facility-name {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(5px);
  transition: transform 0.3s var(--ease-smooth);
}

.facility-img:hover .facility-name {
  transform: translateY(0);
}

.facility-img:hover img {
  transform: scale(1.05);
}

.facility-img:hover {
  box-shadow: var(--shadow-md);
}

/* Partners Tabs */
.partner-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.partner-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  min-height: 84px;
  padding: 0rem 1rem;
  border: 1px solid transparent;
  background: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
  overflow: hidden;
}

.partner-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: transparent;
  transition: background var(--duration-fast);
}

.partner-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
  transform: translateY(-2px);
}

.partner-tab-logo {
  width: 64px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.partner-tab.active {
  border-color: var(--ndrf-blue);
  background-color: var(--ndrf-blue);
  color: #fff;
  transform: translateY(-2px);
}


.partner-panel {
  display: none;
  padding: 1.5rem 0rem;
}

.partner-panel.active {
  display: block;
}

.partner-panel-heading {
  margin-bottom: 1.25rem;
}

.partner-panel-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.partner-heading-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.partner-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.partner-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.partner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partner-image:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .partner-tabs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .partner-tab {
    width: 100%;
    min-height: 76px;
    font-size: 0.95rem;
  }

  .partner-tab-logo {
    width: 58px;
    height: 48px;
  }

  .partner-panel {
    padding: 1rem;
  }

  .partner-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .partner-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Infrastructure Responsive */
@media (max-width: 768px) {
  .campus-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .campus-tab {
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }

  .campus-hero {
    aspect-ratio: 16 / 9;
  }

 
  .facility-group {
    padding-left: 1rem;
  }
}

/* Infrastructure High Contrast */
html.high-contrast .campus-tab {
  border-color: #fff;
  color: #fff;
}

html.high-contrast .campus-tab.active[data-campus="civil-line"],
html.high-contrast .campus-tab.active[data-campus="sura-devi"] {
  border: 2px solid #fff;
}

html.high-contrast .campus-panel {
  backdrop-filter: none;
}

html.high-contrast .facility-group {
  border-left-width: 4px;
  border-left-color: #fff;
}

html.high-contrast .facility-img {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

html.high-contrast .campus-hero-overlay {
  background: rgba(0, 0, 0, 0.85);
}

.container-md,
.container-sm,
.container-xl,
.container-xxl {
  width: 1500px !important;
}

/* --------------------------------------------------------------------------
   39. Gallery Page — Masonry Grid + Lightbox
   -------------------------------------------------------------------------- */
.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-tabs .filter-tab {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.gallery-filter-tabs .filter-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.gallery-filter-tabs .filter-tab.active {
  background: var(--ndrf-blue);
  color: var(--white);
  border-color: var(--ndrf-blue);
}

.masonry-grid {
  column-count: 4;
  column-gap: 1rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.masonry-header {
  column-span: all;
  width: 100%;
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem 0 0.5rem;
  border-bottom: 2px solid var(--ndrf-blue);
  break-after: avoid;
  background: var(--bg-primary);
  z-index: 5;
}

.masonry-header h3 {
  color: var(--ndrf-blue);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.masonry-header-orange {
  border-bottom-color: var(--ndrf-orange);
}

.masonry-header-orange h3 {
  color: var(--ndrf-orange);
}

.masonry-item.hide {
  opacity: 0;
  transform: scale(0.95);
  display: none;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

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

.masonry-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
  z-index: 10;
}

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  z-index: 10;
}

/* Gallery responsive */
@media (max-width: 1200px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* --------------------------------------------------------------------------
   40. News Page — Ticker + Featured + Grid
   -------------------------------------------------------------------------- */
.news-ticker-bar {
  background: var(--ndrf-blue);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.news-ticker-label {
  background: var(--accent);
  color: var(--white);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.news-ticker-track {
  overflow: hidden;
  flex: 1;
  margin-left: 1rem;
}

.news-ticker-content {
  display: inline-block;
  animation: tickerScroll 40s linear infinite;
  padding-left: 100%;
}

.news-ticker-bar:hover .news-ticker-content {
  animation-play-state: paused;
}

.news-ticker-content span {
  color: var(--white);
  font-size: 0.8rem;
  margin-right: 3rem;
}

.news-ticker-content span::after {
  content: '•';
  margin-left: 3rem;
  opacity: 0.4;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Featured article */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.news-featured-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.news-featured:hover .news-featured-image img {
  transform: scale(1.03);
}

.news-featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.news-tag-news {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.news-tag-training {
  background: rgba(255, 102, 0, 0.1);
  color: var(--accent);
}

.news-tag-events {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-featured-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-featured-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ndrf-blue);
}

.news-read-more:hover {
  color: var(--accent);
}

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

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast),
    box-shadow var(--duration-fast);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--ndrf-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.25rem;
}

.news-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News filter tabs — reuse gallery pattern */
.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.news-filter-tabs .filter-tab {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.news-filter-tabs .filter-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.news-filter-tabs .filter-tab.active {
  background: var(--ndrf-blue);
  color: var(--white);
  border-color: var(--ndrf-blue);
}

.news-card.hide {
  display: none;
}

.news-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 14.4px;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.news-no-results.hide {
  display: none;
}

/* News responsive */
@media (max-width: 992px) {
  .news-featured {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   41. Videos Page — Grid + Modal Player
   -------------------------------------------------------------------------- */
.video-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.video-featured-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

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

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: transform 0.3s var(--ease-smooth), background 0.3s;
}

.video-featured-thumb:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-dark);
}

.video-featured-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.video-featured-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.video-subscribe-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s;
}

.video-subscribe-inline:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* Video filter tabs */
.video-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.video-filter-tabs .filter-tab {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.video-filter-tabs .filter-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.video-filter-tabs .filter-tab.active {
  background: var(--ndrf-blue);
  color: var(--white);
  border-color: var(--ndrf-blue);
}

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

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast),
    box-shadow var(--duration-fast);
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--ndrf-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.video-card.hide {
  display: none;
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

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

.video-card-thumb .video-play-btn {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.video-card-body {
  padding: 1rem;
}

.video-card-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.video-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Subscribe CTA banner */
.video-subscribe-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  margin-top: 3rem;
}

.video-subscribe-banner i {
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
}

.video-subscribe-banner span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.video-subscribe-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s;
}

.video-subscribe-banner a:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.video-modal.open {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 960px;
}

.video-modal-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Video responsive */
@media (max-width: 992px) {
  .video-featured {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-subscribe-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   42. Director's Message
   -------------------------------------------------------------------------- */
.director-section {
  background: var(--bg-secondary);
}

.director-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--gap-lg);
  align-items: center;
}

.director-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.director-photo:hover img {
  transform: scale(1.03);
}

.director-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ndrf-blue) 0%, var(--ndrf-blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.director-photo-placeholder i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.25);
}

.director-content .eyebrow {
  margin-bottom: 0.5rem;
}

.director-content h2 {
  margin-bottom: 1.5rem;
}

.director-quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}

.director-quote p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}

.director-quote em {
  color: var(--ndrf-blue);
  font-weight: 600;
}

.director-meta {
  margin-bottom: 1.5rem;
}

.director-name {
  display: block;
  font-size: 1.1rem;
  color: var(--ndrf-blue);
  font-family: var(--font-heading);
}

.director-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.director-cta {
  border: 1px solid var(--ndrf-blue);
  color: var(--ndrf-blue);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.director-cta:hover {
  background: var(--ndrf-blue);
  color: var(--white);
}

@media (max-width: 992px) {
  .director-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .director-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .director-quote {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--accent);
    padding-top: 1.5rem;
  }

  .director-cta {
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   High Contrast Overrides — Gallery, News, Video
   -------------------------------------------------------------------------- */
.high-contrast .gallery-filter-tabs .filter-tab,
.high-contrast .news-filter-tabs .filter-tab,
.high-contrast .video-filter-tabs .filter-tab {
  border-color: #fff;
  color: #fff;
}

.high-contrast .gallery-filter-tabs .filter-tab.active,
.high-contrast .news-filter-tabs .filter-tab.active,
.high-contrast .video-filter-tabs .filter-tab.active {
  background: #fff;
  color: #000;
}

.high-contrast .news-card,
.high-contrast .video-card {
  border-color: #fff;
}

.high-contrast .lightbox,
.high-contrast .video-modal {
  background: rgba(0, 0, 0, 0.97);
}

.high-contrast .news-ticker-bar {
  background: #000;
  border: 1px solid #fff;
}

.high-contrast .news-tag {
  border: 1px solid currentColor;
}

/* --------------------------------------------------------------------------
   Academy Services — Glassmorphism Enhancement
   -------------------------------------------------------------------------- */
.services-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14, 78, 122, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 102, 0, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #f0f4f8 0%, #e8edf5 100%);
}

.services-section .section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Card glassmorphism */
.services-grid .card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* Top accent bar — hidden by default, animates in on hover */
.services-grid .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ndrf-orange), var(--ndrf-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-smooth);
  pointer-events: none;
  z-index: 1;
}

/* Card hover */
.services-grid .card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--ndrf-blue);
  transform: translateY(-6px);
  box-shadow:
    0 8px 32px rgba(14, 78, 122, 0.12),
    0 0 0 1px rgba(14, 78, 122, 0.1);
}

.services-grid .card:hover::after {
  transform: scaleX(1);
}

/* Icon enhancement */
.services-grid .card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(14, 78, 122, 0.08));
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.services-grid .card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* Link color on card hover */
.services-grid .card:hover .card-link {
  color: var(--ndrf-blue);
}

/* High contrast override */
html.high-contrast .services-section {
  background: #000;
}

html.high-contrast .services-grid .card {
  background: #1a1a1a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* High contrast: Marquee collaboration cards */
html.high-contrast .marquee-item {
  background: #1a1a1a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .marquee-icon {
  background: #2a2a2a;
  color: #90caf9;
}

/* --------------------------------------------------------------------------
   Resource Document Cards
   -------------------------------------------------------------------------- */
.resource-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--ndrf-blue-light);
  border-left: 4px solid var(--ndrf-blue);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resource-notice-icon {
  color: var(--ndrf-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.resource-notice a {
  color: var(--ndrf-blue);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.resource-filter-tabs .filter-tab {
  padding: 0.5rem 1.5rem;
  margin-top: 30px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.resource-filter-tabs .filter-tab:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.resource-filter-tabs .filter-tab.active {
  background: var(--ndrf-blue);
  color: var(--white);
  border-color: var(--ndrf-blue);
}

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

.resource-doc-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.resource-doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14, 78, 122, 0.1);
  border-color: var(--ndrf-blue);
}

.resource-doc-card.hide {
  display: none;
}

.resource-doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
  font-size: 1.35rem;
}

.resource-doc-body {
  flex: 1;
  padding: 1.25rem;
  min-width: 0;
}

.resource-doc-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ndrf-orange);
  margin-bottom: 0.35rem;
}

.resource-doc-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.resource-doc-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.resource-doc-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.resource-doc-meta i {
  margin-right: 4px;
  color: var(--ndrf-orange);
}

.resource-doc-download {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  background: var(--ndrf-blue);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s var(--ease-smooth);
  text-decoration: none;
}

.resource-doc-download:hover {
  background: var(--ndrf-blue-dark);
}

.resource-source-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resource-source-note a {
  color: var(--ndrf-blue);
  font-weight: 500;
}

@media (max-width: 991px) {
  .resource-docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .resource-doc-icon {
    flex: 0 0 48px;
    font-size: 1.1rem;
  }

  .resource-doc-download {
    flex: 0 0 48px;
  }

  .resource-doc-body h3 {
    font-size: 0.9rem;
  }

  .resource-doc-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* High contrast: Resource cards */
html.high-contrast .resource-notice {
  background: #1a1a1a;
  border-color: #90caf9;
  color: #fff;
}

html.high-contrast .resource-doc-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .resource-doc-icon {
  background: #2a2a2a;
  color: #90caf9;
}

html.high-contrast .resource-doc-download {
  background: #333;
}

html.high-contrast .resource-filter-tabs .filter-tab {
  border-color: #fff;
  color: #fff;
}

html.high-contrast .resource-filter-tabs .filter-tab.active {
  background: #fff;
  color: #000;
}

/* --------------------------------------------------------------------------
   Resource Data Tables (Training Materials, PPTs, Pamphlets, etc.)
   -------------------------------------------------------------------------- */
.resource-section {
  padding: var(--section-pad-lg, 5rem) 0;
}

.resource-section:nth-child(even) {
  background: var(--bg-secondary, #f4f6f9);
}

.resource-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.resource-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 500px;
}

.resource-data-table thead {
  background: var(--ndrf-blue, #003b75);
  color: #fff;
}

.resource-data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

.resource-data-table tbody tr:hover {
  background: var(--bg-card-hover, #f8f9fb);
}

.resource-data-table td a {
  color: var(--ndrf-blue, #003b75);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.resource-data-table td a:hover {
  color: var(--accent, #FF6600);
  text-decoration: underline;
}

.resource-data-table .dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.3rem;
  background: var(--ndrf-blue-light, #e3f2fd);
  color: var(--ndrf-blue, #003b75);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.resource-data-table .dl-btn:hover {
  background: var(--ndrf-blue, #003b75);
  color: #fff;
  text-decoration: none;
}

.resource-data-table .dl-btn svg {
  width: 14px;
  height: 14px;
}

.resource-section .section-header {
  margin-bottom: 2.5rem;
}

.resource-sub-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent, #FF6600);
  display: inline-block;
}

/* Resource Pagination */
.resource-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.resource-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary, #fff);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-pagination button:hover {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.resource-pagination button.active {
  background: var(--ndrf-blue);
  color: #fff;
  border-color: var(--ndrf-blue);
}

.resource-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.resource-pagination button:disabled:hover {
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

html.high-contrast .resource-pagination button {
  border-color: rgba(255, 255, 255, 0.3);
  background: #1a1a1a;
  color: #e2e8f0;
}

html.high-contrast .resource-pagination button.active {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .resource-section {
    padding: 3rem 0;
  }

  .resource-data-table {
    font-size: 0.82rem;
    min-width: 400px;
  }

  .resource-data-table th,
  .resource-data-table td {
    padding: 0.55rem 0.65rem;
  }

  .resource-pagination {
    gap: 0.3rem;
  }

  .resource-pagination button {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* High contrast: resource data tables */
html.high-contrast .resource-table-wrap {
  border-color: rgba(255, 255, 255, 0.3);
  background: #1a1a1a;
}

html.high-contrast .resource-data-table thead {
  background: #111;
}

html.high-contrast .resource-data-table td {
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

html.high-contrast .resource-data-table tbody tr:hover {
  background: #2a2a2a;
}

html.high-contrast .resource-data-table td a {
  color: #90caf9;
}

html.high-contrast .resource-data-table .dl-btn {
  background: #333;
  color: #90caf9;
}

/* High contrast: Faculty sidebar */
html.high-contrast .faculty-sidebar {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

html.high-contrast .faculty-filter-btn {
  color: #ccc;
}

html.high-contrast .faculty-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

html.high-contrast .faculty-filter-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness Overhaul
   -------------------------------------------------------------------------- */

/* --- Phase 2: High Priority UX --- */

/* 8. Card padding on small screens */
@media (max-width: 576px) {
  .card {
    padding: 1.25rem;
  }
}

/* 9. Nav logo size */
@media (max-width: 768px) {}

@media (max-width: 480px) {
  .nav-logo span {
    font-size: 0.75rem;
  }

  .nav-logo img {
    height: 3rem;
  }
}

/* 10. Section padding on small phones */
@media (max-width: 480px) {
  :root {
    --section-pad-sm: 2rem;
    --section-pad-md: 3rem;
    --section-pad-lg: 3.5rem;
  }
}

/* 11. Campus hero overlay padding */
@media (max-width: 576px) {
  .campus-hero-overlay {
    padding: 1rem 1.25rem;
  }

  .campus-hero-overlay h3 {
    font-size: 1.25rem;
  }
}

/* --- Phase 3: Medium Priority Polish --- */

/* 12. Links tabs layout */
@media (max-width: 576px) {
  .links-tabs {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .links-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1.25rem;
  }
}

/* 13. Gallery filter tabs at 480px */
@media (max-width: 480px) {
  .gallery-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }

  .gallery-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-tabs .filter-tab {
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* 14. Lightbox nav buttons on small screens */
@media (max-width: 480px) {
  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.9rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* 15. Cookie banner at 480px */
@media (max-width: 480px) {
  .cookie-text {
    font-size: 0.75rem;
  }

  .cookie-btn {
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
  }
}

/* 17. Marquee at 576px */
@media (max-width: 576px) {

  .marquee::before,
  .marquee::after {
    width: 50px;
  }

  .marquee-item {
    min-width: 220px;
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }

  .marquee-icon {
    width: 40px;
    height: 40px;
  }

  .marquee-text strong {
    font-size: 0.85rem;
  }

  .marquee-text span {
    font-size: 0.7rem;
  }
}

/* 19. Gallery track mobile fallback */
@media (max-width: 768px) {
  .gallery-track {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .gallery-item {
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* ===================================================================
   Search Overlay
   =================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start; /* Changed from center to allow scrolling */
  justify-content: center;
  overflow-y: auto; /* Allow overlay to scroll if needed */
  padding: 8vh 0; /* Add vertical space */
}

.search-overlay.open {
  display: flex;
}

.search-overlay-close {
  position: fixed; /* Keep close button fixed */
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.search-overlay-close:hover {
  opacity: 1;
}

.search-overlay-inner {
  text-align: center;
  width: 100%;
  max-width: 800px; /* Wider results */
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-overlay-inner h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.search-overlay-input {
  width: 100%;
  padding: 1rem 0;
  font-size: 1.25rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.search-overlay-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-overlay-input:focus {
  border-bottom-color: #fff;
}

.search-results {
  margin-top: 2rem;
  text-align: left;
  padding-right: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
  width: 100%;
}

.search-results::-webkit-scrollbar {
  width: 5px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.search-result-item {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  transition: all var(--duration-fast) var(--ease-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  border-color: var(--accent);
}

.search-result-title {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.search-result-snippet {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.search-result-snippet strong,
.search-result-title strong {
  color: var(--accent); /* Highlight matching words */
  font-weight: 700;
}

.search-result-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  display: block;
}

.search-no-results {
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem;
  font-style: italic;
}

@media (min-width: 1400px) {
  .hero-page h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }

  .hero-slider h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  }

  .hero-quote-layout {

    padding-top: calc(var(--navbar-height) 6rem + var(--top-bar-height));

  }

  .hero-quote-content blockquote {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.5;
  }

  .hero-quote-layout {
    grid-template-columns: 380px 1fr;
  }

  .hero-quote-content>p {
    font-size: clamp(1rem, 1.6vw, 1.35rem) !important;
    line-height: 1.6;
  }

  .scroll-indicator {
    display: flex;
  }

  .hero-slider-dots {
    bottom: 7.5rem;
  }

  .menu-bar {
    height: 4rem;
  }

  .media-updates-scroll {
    flex: 1;
    max-height: 340px;
  }

  .h2,
  h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
  }

  .h3,
  h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  }
}

.media-strip-footer {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.media-nav-btn.media-prev,
.media-nav-btn.media-next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

/* --- Horizontal Stepper Styles --- */


.stepper-nav-wrap {
  overflow-x: auto;
  padding: 1rem 0 2rem 0;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.stepper-nav-wrap::-webkit-scrollbar {
  display: none;
}

.stepper-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-width: 900px;
  padding: 0 3rem;
}

.stepper-nav::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.stepper-tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s var(--ease-smooth);
  width: 140px;
  padding: 0;
}

.stepper-tab .step-badge {
  background: var(--bg-primary);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 0 0 6px var(--bg-primary);
}

.stepper-tab .step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-smooth);
}

.stepper-tab:hover .step-badge {
  border-color: var(--ndrf-blue);
  color: var(--ndrf-blue);
}

.stepper-tab.active .step-badge {
  background: var(--ndrf-blue);
  border-color: var(--ndrf-blue);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 10px 20px rgba(0, 59, 117, 0.15), 0 0 0 6px var(--bg-primary);
}

.stepper-tab.active .step-label {
  color: var(--ndrf-blue);
  font-weight: 700;
}

@media (max-width: 992px) {
  .stepper-nav {
    min-width: 800px;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .elms-horizontal-stepper {
    margin: 2rem 0;
  }

  .stepper-nav-wrap {
    overflow: hidden;
    /* Prevent scrolling */
    padding-bottom: 1rem;
  }

  .stepper-nav {
    min-width: auto;
    width: 100%;
    padding: 0 0.5rem;
  }

  .stepper-tab {
    width: auto;
    flex: 1;
    gap: 0;
  }

  .stepper-tab .step-label {
    display: none;
  }

  .stepper-tab .step-badge {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    box-shadow: 0 0 0 3px var(--bg-primary);
  }

  .stepper-nav::before {
    top: 19px;
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 400px) {
  .stepper-tab .step-badge {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .stepper-nav::before {
    top: 16px;
  }
}

.stepper-panes {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1rem 0;
  min-height: auto;
  box-shadow: none;
}

.step-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.step-pane-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ndrf-blue-light);
  padding-bottom: 1rem;
}

.step-icon-large {
  background: var(--ndrf-blue-light);
  color: var(--ndrf-blue);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon-large svg {
  width: 28px;
  height: 28px;
}

.step-pane-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.guidance-step-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.guidance-alert-pane {
  background: transparent;
}

.guidance-alert-pane .step-icon-large {
  background: #fff4e6;
  color: #ea580c;
}

/* Bulleted Points */
.step-bullets {
  list-style-type: none !important;
  margin: 2rem 0 0 0 !important;
  padding: 0 !important;
}

.step-bullets li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  font-size: 14.4px;
}

.step-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ndrf-blue);
  font-weight: 700;
}

@media (max-width: 768px) {
  .stepper-panes {
    padding: 0rem;
  }

  .step-pane-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .step-pane-header h3 {
    font-size: 1.75rem;
  }
}



/* Links inside guidance */
.guidance-step-body a {
  text-decoration: underline;
  font-weight: 600;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Alert Step */
.guidance-alert {
  border-top: 4px solid #f59e0b;
  padding-top: 2rem;
  margin-top: 2rem;
}

.guidance-alert .step-badge {
  background: #f59e0b;
}

.guidance-alert h3 {
  color: #92400e;
}

/* Registration Details Grid (UI inspired by reference image) */
.registration-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem 0;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.detail-item {
  padding: 0.5rem 1.5rem;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ndrf-blue);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.detail-item:hover {
  background: var(--ndrf-blue-light);
  padding-left: 1.75rem;
}

@media (max-width: 992px) {
  .registration-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .registration-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guidance-step-item {
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
  }

  .guidance-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .guidance-step-header h3 {
    font-size: 1.4rem;
  }
}

/* Portal Quick Links (Non-Card Style) */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 3rem;
}

.portal-cards .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-left: 4px solid var(--brand-primary);
  padding-left: 2rem;
}

span.accordion-number.blue {
  color: var(--accent-blue);
}

span.eyebrow.blue {
  color: var(--accent-blue);
}

button.calendar-tab.blue.active {
  background: var(--accent-blue) !important;
  border: 1px solid var(--accent-blue) !important;
}

@media(min-width:768px) {
  .container {
    width: 748px !important;
  }
}

@media(min-width:992px) {
  .container {
    width: 968px !important;
  }
}

@media(min-width:1100px) {
  .container {
    width: 1098px !important;
  }
}

@media(min-width:1300px) {
  .container {
    width: 1298px !important;
  }
}


@media(min-width:1500px) {
  .container {
    width: 1498px !important;
  }
}

/* --------------------------------------------------------------------------
   25. Training Highlights Grid (index.html)
   -------------------------------------------------------------------------- */
.trg-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trg-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trg-highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--ndrf-blue);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.trg-highlight-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.trg-highlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.trg-highlight-card:hover .trg-highlight-img img {
  transform: scale(1.05);
}

.trg-highlight-info {
  padding: 1.25rem;
  flex: 1;
}

.trg-highlight-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ndrf-blue);
}

.trg-highlight-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .trg-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .trg-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .trg-highlight-info {
    padding: 1rem;
  }

  .trg-highlight-info h3 {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   26. Other Instructors / Supporting Staff (Non-Photo Cards)
   -------------------------------------------------------------------------- */
.faculty-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.faculty-simple-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem !important;
  transition: all var(--duration-normal) var(--ease-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: none !important;
}

.faculty-simple-card:hover {
  border-color: var(--ndrf-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.faculty-simple-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ndrf-blue);
  margin-bottom: 0.5rem;
}

.faculty-simple-card .faculty-role-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.faculty-simple-card.faculty-with-photo,
.faculty-simple-card:has(.faculty-photo-img) {
  align-items: center;
  text-align: center;
  gap: 15px;
}

.faculty-simple-card.faculty-with-photo .faculty-photo-box,
.faculty-simple-card:has(.faculty-photo-img) .faculty-photo-box {
  width: 150px;
  height: 150px;
  border: 3px solid var(--ndrf-blue);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(14, 78, 122, 0.08), rgba(255, 102, 1, 0.1));
  background-size: cover;
  background-position: center top;
  background-clip: content-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: block;
  box-sizing: border-box;
  object-fit: cover;
}

.faculty-simple-card.faculty-with-photo .faculty-photo-img,
.faculty-simple-card:has(.faculty-photo-img) .faculty-photo-img {
  object-fit: cover;
}

.faculty-simple-card:has(.faculty-photo-img) .faculty-title-area {
  align-items: center;
  padding-bottom: 0;
}

.faculty-photo-placeholder {
  position: relative;
  color: var(--ndrf-blue);
}

.faculty-photo-placeholder svg,
.faculty-photo-placeholder i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 0;
  transform: translate(-50%, -50%);
  stroke-width: 1.75;
}

.faculty-photo-placeholder span {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ndrf-blue);
  letter-spacing: 0;
}

.faculty-simple-card.faculty-with-photo h3 {
  margin-top: 0.15rem;
}


@media (max-width: 992px) {
  .faculty-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gov-social a svg,
  .gov-social a img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 600px) {
  .faculty-grid-3 {
    grid-template-columns: 1fr;
  }

  .faculty-simple-card.faculty-with-photo .faculty-photo-box {
    width: 112px;
    height: 112px;
  }

  .faculty-photo-placeholder span {
    font-size: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   Apply Form Feedback
   -------------------------------------------------------------------------- */
.apply-feedback-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.apply-feedback-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 578px) {
  .director-photo {
    max-width: 100%;
    margin: 0 auto;
  }
}
/* --- Resource Filter Bar Styles --- */
.resource-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 1.25rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-search-wrap {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.filter-search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.filter-input:focus {
  outline: none;
  border-color: var(--ndrf-blue);
  box-shadow: 0 0 0 4px rgba(0, 59, 117, 0.1);
}

.filter-stats {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .resource-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .filter-search-wrap {
    max-width: none;
  }
}

/* Highlight matching text in resource lists */
.highlight-match {
  background: rgba(255, 165, 0, 0.2);
  color: var(--ndrf-orange);
  font-weight: 600;
  border-radius: 2px;
  padding: 0 2px;
}


/* ============================================================
   BILINGUAL — Devanagari / Hindi support
   ============================================================ */

/* Load Noto Sans Devanagari only when Hindi is active to keep English fast */
html[lang="hi"] {
  --font-sans: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

html[lang="hi"] body,
html[lang="hi"] button,
html[lang="hi"] input,
html[lang="hi"] textarea,
html[lang="hi"] select {
  font-family: 'Noto Sans Devanagari', 'Poppins', system-ui, sans-serif;
  letter-spacing: 0;
  font-feature-settings: 'kern' 1;
}

/* Devanagari grapheme clusters break with letter-spacing > 0 and uppercase
   does not apply. Reset any English-only spacing/transforms. */
html[lang="hi"] .eyebrow,
html[lang="hi"] .hero-eyebrow,
html[lang="hi"] .section-eyebrow,
html[lang="hi"] [class*="eyebrow"],
html[lang="hi"] .badge,
html[lang="hi"] .chip,
html[lang="hi"] .tag,
html[lang="hi"] .caption,
html[lang="hi"] .section-tag,
html[lang="hi"] .filter-btn,
html[lang="hi"] .nav-link,
html[lang="hi"] .menu-link,
html[lang="hi"] .gov-bar-link,
html[lang="hi"] .btn,
html[lang="hi"] .cta-btn,
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3,
html[lang="hi"] h4, html[lang="hi"] h5, html[lang="hi"] h6 {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[lang="hi"] body {
  line-height: 1.65;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4 {
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* Hindi text is often 20-40% longer — allow wrap on tight CTAs */
html[lang="hi"] .btn,
html[lang="hi"] .cta-btn,
html[lang="hi"] .nav-link,
html[lang="hi"] .menu-link,
html[lang="hi"] .gov-bar-link {
  white-space: normal;
  word-break: keep-all;
}

/* Numerals stay in Latin for clarity (Hindi numerals are visually different) */
html[lang="hi"] .stat-num,
html[lang="hi"] .counter,
html[lang="hi"] time,
html[lang="hi"] [data-no-translate] {
  font-family: 'Poppins', sans-serif;
}

/* Slightly smaller hero titles in Hindi to prevent line-break overflow */
@media (min-width: 768px) {
  html[lang="hi"] .hero-title,
  html[lang="hi"] .page-hero h1 {
    font-size: 92%;
  }
}

/* ============================================================
   Hindi review banner (machine-translation disclaimer)
   ============================================================ */
.hindi-review-banner {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  border-bottom: 1px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 50;
}

.hindi-review-banner span {
  max-width: 1100px;
}

.hindi-review-banner__close {
  background: transparent;
  border: 0;
  color: #78350f;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}

.hindi-review-banner__close:hover {
  color: #422006;
}

@media (max-width: 640px) {
  .hindi-review-banner {
    font-size: 0.75rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    text-align: left;
  }
}

/* ============================================================
   RTI REPLIES PAGE SPECIFIC STYLES
   ============================================================ */

.replies-filter-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.replies-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: flex-end;
}

.replies-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.replies-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ndrf-blue);
}

.replies-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  background: white;
  color: var(--text-primary);
  transition: all 0.2s ease;
  height: 48px;
}

.replies-input:focus {
  outline: none;
  border-color: var(--ndrf-blue);
  box-shadow: 0 0 0 3px rgba(0, 59, 117, 0.15);
}

.replies-btn-search {
  height: 48px;
  padding: 0 2rem;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.replies-btn-search:hover {
  background: var(--accent-dark);
}

.replies-btn-reset {
  height: 48px;
  padding: 0 1.5rem;
  background: var(--ndrf-blue);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.replies-btn-reset:hover {
  background: var(--ndrf-blue-dark);
}

.replies-filter-actions {
  display: flex;
  gap: 0.75rem;
}

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

.replies-entries-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.replies-entries-selector select {
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  background: white;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}

.replies-table-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.replies-table-search input {
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  background: white;
  outline: none;
  font-size: 0.9rem;
}

.replies-table-search input:focus {
  border-color: var(--ndrf-blue);
}

/* Table customizations */
.precis-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.precis-table th.sortable:hover {
  background: rgba(0, 0, 0, 0.1);
}

.precis-table th .sort-icon {
  margin-left: 4px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ndrf-orange);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}

.pdf-btn:hover {
  color: var(--ndrf-orange-dark);
  background: var(--ndrf-orange-light);
  border-color: rgba(255, 102, 0, 0.2);
}

.replies-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #cbd5e1;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pagination-buttons {
  display: flex;
  gap: 0.25rem;
}

.pagination-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  background: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}


.pagination-btn.active {
  background: var(--ndrf-blue);
  color: white;
  border-color: var(--ndrf-blue);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .replies-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .replies-filter-actions {
    grid-column: span 2;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .replies-filter-grid {
    grid-template-columns: 1fr;
  }
  
  .replies-filter-actions {
    grid-column: span 1;
    justify-content: stretch;
  }
  
  .replies-filter-actions button {
    flex: 1;
  }
  
  .replies-table-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

.high-contrast p, .high-contrast h3{
  color:#fff !important
}
.high-contrast .brochure-content p, .high-contrast .brochure-content h3{
  color: #000 !important;
}

.high-contrast .brochure-content.in-dark p, .high-contrast .brochure-content.in-dark h3{
  color: #fff !important;
}
.high-contrast .initiative-points li {
  color: #fff !important;
  opacity: 0.65;
}
.high-contrast .outreach-stat-label {
   color: #fff !important;
  opacity: 0.65;
}
.high-contrast .chart-label {
    color: #fff !important;
}
.high-contrast ul li {
  color: #fff !important;
  opacity: 0.65;
}
.high-contrast .takeaway-bar {
 background: #0f172a !important;
  border: 1px solid #fed7aa;
}
.high-contrast .accordion-detail-label {
  color: #fff !important;
}
.high-contrast .org-connector::before,
.high-contrast .org-connector::after ,
.high-contrast .org-grid-4:not(.org-level3) .org-col::before, 
.high-contrast .org-admin-spine::before, .high-contrast .org-arr-h-left, 
.high-contrast .org-arr-h-right,.high-contrast .org-grid-4:not(.org-level3) .org-col:nth-child(3) .org-node::after,
.high-contrast .org-grid-4:not(.org-level3) .org-col:nth-child(3) .org-node::after, .org-grid-4:not(.org-level3) .org-col:nth-child(4) .org-node::after,
.high-contrast .org-level3 .org-col-span2::before,
.high-contrast .org-vstem 
 {
    background: #fff;

}
.high-contrast .blog-card {
    border: 1px solid #fff;
}
.high-contrast .org-level3 .org-col-span2::after {
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
}

.high-contrast .terms-title {
  color: #fff;
}
@media (max-width: 1200px) {
    .nav-link {
        font-size: 0.72rem !important;
    }
}
.menu-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
}


@media(min-width:768px){
  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media(min-width:1024px){
    .facility-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media(min-width:1440px){
  .facility-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
/* ─────────────────────────────────────────────────────────────
 * WCAG 2.1 Level AA — Success Criterion 2.4.7 (Focus Visible)
 * Every interactive element must have a visible focus indicator
 * for keyboard users. `:focus-visible` targets keyboard focus only
 * so mouse clicks don't produce the same outline.
 * ────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #f97316;         /* NDRF accent orange */
    outline-offset: 2px;
    border-radius: 2px;
}

/* Preserve custom form styling that already indicates focus. */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}
