/* ============================================================================
   SMT. SONI DEVI (SD) SHIKSHAN AND SEWA SANSTHAN, SEWARI
   Custom Responsive Design System
   Palette derived directly from official Logo & Letterhead
   ============================================================================ */

:root {
  --navy: #0B245B;
  --navy-dark: #06163B;
  --navy-light: #163880;
  --saffron: #E86F12;
  --saffron-light: #FF8C2E;
  --gold: #F3A712;
  --maroon: #7A121C;
  --green: #1E6B2B;
  --green-light: #25D366;
  --cream: #FAF8F4;
  --cream-dark: #F1ECE3;
  --white: #FFFFFF;
  --ink: #172033;
  --muted: #5A6478;
  --border: #E4DFD5;
  --shadow-sm: 0 4px 14px rgba(11, 36, 91, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 36, 91, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 36, 91, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.22;
  margin-top: 0;
}

.hindi-text {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Decorative Top Accent Ribbon ---------- */
.header-accent-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--gold) 35%, var(--maroon) 68%, var(--green) 100%);
}

/* ---------- Tier 1: Top Utility Bar ---------- */
.topbar {
  background: linear-gradient(90deg, #05112E 0%, var(--navy-dark) 55%, #0D2660 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 0;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-divider {
  opacity: 0.3;
}

.topbar-badge-reg,
.topbar-badge-darpan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.topbar-badge-reg i,
.topbar-badge-darpan i {
  color: var(--gold);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.topbar a:hover {
  color: var(--gold);
}

.topbar-admin-link {
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.topbar-admin-link:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white) !important;
}

/* ---------- Tier 2: Grand Institutional Masthead ---------- */
.masthead {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF8 58%, #FDF4E7 100%);
  border-bottom: 1px solid rgba(232, 111, 18, 0.22);
  overflow: hidden;
}

.masthead-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 92% 20%, rgba(243, 167, 18, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 8% 90%, rgba(11, 36, 91, 0.06) 0%, transparent 38%);
  pointer-events: none;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-crest {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--white);
  padding: 5px;
  box-shadow: 0 8px 24px rgba(11, 36, 91, 0.14), 0 0 0 2px rgba(243, 167, 18, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.brand:hover .brand-crest {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(232, 111, 18, 0.25), 0 0 0 3px var(--saffron);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 2px;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.12rem, 2.05vw, 1.56rem);
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.brand-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 5px;
}

.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--maroon);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tagline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  background: rgba(30, 107, 43, 0.09);
  padding: 2px 10px;
  border-radius: 999px;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 10px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: 0 6px 18px rgba(11, 36, 91, 0.07);
  transition: var(--transition);
}

.contact-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 36, 91, 0.14);
}

.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--white);
  flex-shrink: 0;
}

.chip-call .chip-icon {
  background: linear-gradient(135deg, var(--navy), #1C47A6);
}

.chip-call:hover {
  border-color: var(--navy);
}

.chip-whatsapp .chip-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.chip-whatsapp:hover {
  border-color: #1FA855;
}

.chip-body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chip-body small {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.chip-body strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- Tier 3: Sticky Royal Navigation Bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(90deg, #071940 0%, var(--navy) 52%, #13357B 100%);
  box-shadow: 0 6px 24px rgba(6, 22, 59, 0.22);
  border-bottom: 2px solid rgba(243, 167, 18, 0.55);
  transition: var(--transition);
}

.site-header.is-scrolled {
  background: rgba(7, 25, 64, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(6, 22, 59, 0.32);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.sticky-mini-brand {
  display: none;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.sticky-mini-brand img {
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 50%;
  padding: 2px;
}

.site-header.is-scrolled .sticky-mini-brand {
  display: inline-flex;
}

.main-nav {
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.nav-links a i {
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.9;
  transition: var(--transition);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--saffron), #D95B00);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(232, 111, 18, 0.42);
}

.nav-links a.active i {
  color: var(--white);
}

.mobile-only-actions {
  display: none;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(243, 167, 18, 0.16);
  border: 1.5px solid var(--gold);
  color: #FFD97D;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-inquiry-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), #D95B00);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 111, 18, 0.30);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 111, 18, 0.42);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(11, 36, 91, 0.22);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-whatsapp {
  background: #1FA855;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 168, 85, 0.28);
}

.btn-whatsapp:hover {
  background: #178C45;
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

/* ---------- Live Notice Ticker Strip ---------- */
.notice-ticker-bar {
  background: linear-gradient(90deg, var(--maroon), #9B1B27);
  color: var(--white);
  font-size: 0.88rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker-wrap {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.ticker-label {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 6px;
  margin-right: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-track-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 36s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
}

.ticker-item:hover {
  color: var(--gold);
  text-decoration: underline;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero Banner Slider ---------- */
.hero-slider {
  position: relative;
  min-height: 580px;
  background: var(--navy-dark);
  overflow: hidden;
}

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

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  min-height: 580px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(6, 22, 59, 0.92) 0%, rgba(11, 36, 91, 0.74) 52%, rgba(11, 36, 91, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 84px 0 96px;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 167, 18, 0.20);
  border: 1px solid rgba(243, 167, 18, 0.65);
  color: #FFD26F;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.45rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
}

.hero-content p {
  font-size: 1.07rem;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 28px;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 5;
}

.hero-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dot.active {
  width: 34px;
  background: var(--saffron);
  border-color: var(--saffron);
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(6, 22, 59, 0.55);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* ---------- Section Headers & Layout ---------- */
.section {
  padding: 78px 0;
}

.section-alt {
  background: var(--white);
}

.section-tinted {
  background: linear-gradient(180deg, #F6F2EA 0%, #FAF8F4 100%);
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- Impact Stats Strip ---------- */
.stats-band {
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--saffron);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:nth-child(2) { border-top-color: var(--navy); }
.stat-card:nth-child(3) { border-top-color: var(--green); }
.stat-card:nth-child(4) { border-top-color: var(--maroon); }

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(232, 111, 18, 0.12);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card:nth-child(2) .stat-icon { background: rgba(11, 36, 91, 0.10); color: var(--navy); }
.stat-card:nth-child(3) .stat-icon { background: rgba(30, 107, 43, 0.12); color: var(--green); }
.stat-card:nth-child(4) .stat-icon { background: rgba(122, 18, 28, 0.10); color: var(--maroon); }

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

/* ---------- Home Split: About Intro + Notice Board ---------- */
.home-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: start;
}

.pillar-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 28px;
}

.pillar-mini {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar-mini i {
  font-size: 1.25rem;
  color: var(--saffron);
  margin-top: 2px;
}

.pillar-mini strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pillar-mini span {
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------- Notice Board Widget ---------- */
.notice-board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.notice-board-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-board-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-live-badge {
  background: var(--saffron);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

.notice-list {
  max-height: 430px;
  overflow-y: auto;
  padding: 10px 0;
}

.notice-item {
  padding: 16px 24px;
  border-bottom: 1px dashed var(--border);
  transition: background 0.2s ease;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  background: #FBF9F4;
}

.notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.notice-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(11, 36, 91, 0.10);
  color: var(--navy);
}

.notice-tag.pinned {
  background: rgba(232, 111, 18, 0.16);
  color: #C25300;
}

.notice-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.notice-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.96rem;
  margin: 0 0 5px;
  line-height: 1.4;
}

.notice-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.notice-links a {
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notice-links a:hover {
  color: var(--navy);
}

/* ---------- Cards Grid (Programs, Projects, Team, Docs) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-dark);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.status-upcoming { background: var(--saffron); }
.status-ongoing { background: var(--green); }
.status-completed { background: var(--navy); }

.category-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
}

.project-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.81rem;
  color: var(--muted);
  font-weight: 600;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-meta i {
  color: var(--saffron);
}

/* ---------- Filter Pills ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(11, 36, 91, 0.2);
}

/* ---------- Page Hero Banner (Inner Pages) ---------- */
.page-hero {
  background: linear-gradient(125deg, var(--navy-dark) 0%, var(--navy) 60%, #1B3F8A 100%);
  color: var(--white);
  padding: 68px 0 62px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 111, 18, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
  margin: 0;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

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

/* ---------- Program / Focus Area Cards ---------- */
.focus-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 111, 18, 0.45);
}

.focus-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 36, 91, 0.08), rgba(232, 111, 18, 0.14));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.focus-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.focus-card p {
  font-size: 0.91rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Gallery Grid & Lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-zoom {
  position: absolute;
  inset: 0;
  background: rgba(11, 36, 91, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-zoom {
  opacity: 1;
}

.brochure-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.brochure-preview {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #F4F4F4;
  cursor: pointer;
}

.brochure-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.brochure-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brochure-info h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  display: block;
}

.video-card-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-card-body span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 16, 40, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--saffron);
  border-color: var(--saffron);
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ---------- Credentials & Documents ---------- */
.credential-strip {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cred-item {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.cred-item small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.cred-item strong {
  font-size: 1.04rem;
  color: var(--white);
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--saffron);
  transform: translateY(-3px);
}

.doc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(122, 18, 28, 0.10);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-info h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.doc-info p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--saffron));
  color: var(--white);
  font-weight: 800;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  background: rgba(232, 111, 18, 0.12);
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Contact Form & Map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: start;
}

.contact-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--border);
}

.contact-info-item i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.contact-info-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #D9D3C7;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #FCFBF9;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 36, 91, 0.08);
}

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

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #E8F7EC;
  color: #155E2A;
  border: 1px solid #B5E4C2;
}

.alert-error {
  background: #FDECEC;
  color: #9A1B25;
  border: 1px solid #F5C2C7;
}

.map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 40px;
  background: var(--white);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 410px;
  border: 0;
  display: block;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #173D8A 65%, var(--maroon) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 600px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.84);
  padding-top: 66px;
  border-top: 4px solid var(--saffron);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.95fr 1.15fr;
  gap: 34px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
}

.site-footer h4 {
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--saffron);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Floating WhatsApp & Call CTA Buttons ---------- */
.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.fab-btn i {
  font-size: 1.4rem;
}

.fab-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  animation: softPulse 2.8s infinite;
}

.fab-call {
  background: linear-gradient(135deg, var(--navy), #1C47A6);
}

.fab-btn:hover {
  transform: translateY(-3px) scale(1.03);
  color: var(--white);
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 26px rgba(0, 0, 0, 0.24); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 10px 26px rgba(0, 0, 0, 0.24); }
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1080px) {
  .stats-grid,
  .grid-4,
  .gallery-grid,
  .credential-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .masthead-actions .chip-call {
    display: none;
  }
}

@media (max-width: 820px) {
  .masthead-actions {
    display: none;
  }
  .brand-crest {
    width: 64px;
    height: 64px;
  }
  .sticky-mini-brand {
    display: inline-flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-inquiry-btn {
    padding: 7px 13px;
    font-size: 0.8rem;
  }
  .main-nav {
    flex: 0;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    border-bottom: 3px solid var(--saffron);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    border-radius: 10px;
    padding: 12px 14px;
  }
  .mobile-only-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .mobile-only-actions a {
    justify-content: center;
    padding: 10px 12px;
  }
  .hero-slider,
  .hero-slide.active {
    min-height: 500px;
  }
  .hero-content {
    padding: 64px 0 88px;
  }
  .cta-banner {
    padding: 34px 24px;
  }
}

@media (max-width: 600px) {
  .topbar-right,
  .topbar-divider,
  .topbar-badge-darpan {
    display: none;
  }
  .masthead-inner {
    padding: 12px 0;
  }
  .brand-crest {
    width: 56px;
    height: 56px;
  }
  .brand-kicker {
    font-size: 0.65rem;
  }
  .brand-name {
    font-size: 0.96rem;
  }
  .brand-tagline {
    font-size: 0.72rem;
  }
  .stats-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .pillar-mini-grid,
  .form-grid,
  .credential-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .section {
    padding: 56px 0;
  }
  .floating-cta {
    right: 14px;
    bottom: 16px;
  }
  .fab-btn span {
    display: none;
  }
  .fab-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}
