/* ==========================================================================
   Indian Community Health Foundation (ICHF) - Official Stylesheet
   Theme: Official Logo Colors (Royal Blue, Health Green, Medical Red, Accent Gold)
   Fully Responsive & Mobile-Optimized Architecture
   ========================================================================== */

:root {
  --primary: #004b97;
  --primary-dark: #002d62;
  --primary-light: #006ce0;
  --primary-subtle: #e8f2fc;
  
  --secondary: #16a34a;
  --secondary-dark: #0f763e;
  --secondary-light: #22c55e;
  --secondary-subtle: #edf9f0;

  --accent-red: #dc2626;
  --accent-red-subtle: #fef2f2;
  --accent-gold: #f59e0b;
  --accent-gold-subtle: #fffbeb;
  
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 30px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  padding-left: 1.25rem;
}

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

/* Fluid Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.85rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #ffffff !important; }

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.75rem auto;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 75, 151, 0.15);
}

.sub-badge.green {
  background-color: var(--secondary-subtle);
  color: var(--secondary);
  border-color: rgba(22, 163, 74, 0.2);
}

.sub-badge.red {
  background-color: var(--accent-red-subtle);
  color: var(--accent-red);
  border-color: rgba(220, 38, 38, 0.2);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 75, 151, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 75, 151, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary-dark);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

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

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header & Navigation (Fixed, Fluid & Responsive)
   ========================================================================== */

/* Top Bar */
.top-bar {
  background-color: var(--dark);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1010;
}

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

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

.top-bar a {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0.8rem;
}

.top-bar a:hover {
  color: var(--accent-gold);
}

.reg-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.reg-pill strong {
  color: #38bdf8;
}

.verify-top-btn {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
}

.verify-top-btn:hover {
  background: #f59e0b;
  color: #0f172a !important;
}

/* Main Navigation Header */
.header-main {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header-main.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid #ffffff;
  transition: var(--transition);
}

.brand-text h1 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-badge-mobile {
  display: none;
  font-size: 0.65rem;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1;
}

/* Desktop Navigation Menu (Visible >= 1140px) */
.desktop-nav {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-light);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

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

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

/* Modern Animated Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition);
}

.mobile-toggle:hover, .mobile-toggle:focus {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar-2 {
  opacity: 0;
}

.mobile-toggle.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Slide-out Drawer Navigation (Off-canvas)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateX(-340px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.drawer-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--primary-dark);
}

.drawer-subtitle {
  font-size: 0.65rem;
  margin: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
}

.drawer-badge {
  background: var(--primary-subtle);
  padding: 0.5rem 1.25rem;
  font-size: 0.725rem;
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 75, 151, 0.1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.drawer-body {
  padding: 1rem 1.25rem 2.5rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
}

.drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.drawer-nav li {
  margin-bottom: 0.35rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.drawer-link i {
  width: 24px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.drawer-link span {
  flex-grow: 1;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.drawer-link:hover i, .drawer-link.active i {
  color: var(--primary);
}

.badge-mini {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  background: var(--accent-red);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.badge-mini.green {
  background: var(--secondary);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.drawer-contact {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.825rem;
}

.drawer-contact h4 {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.drawer-contact p {
  margin: 0 0 0.25rem 0;
  color: var(--dark-light);
}

/* Notice Bar / Ticker */
.notice-ticker {
  background: linear-gradient(90deg, #002d62, #004b97);
  color: #fff;
  padding: 0.4rem 0;
  font-size: 0.825rem;
  overflow: hidden;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticker-label {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.725rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 28s linear infinite;
}

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

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   Hero Image Carousel Section
   ========================================================================== */
.hero-carousel-section {
  position: relative;
  width: 100%;
  background-color: #06192e;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: clamp(460px, 38vw, 610px);
  max-height: 70vh;
  overflow: hidden;
  user-select: none;
  background-color: #06192e;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Keeps heads, charts and faces fully visible */
  display: block;
}

/* Subtle overlay so captions pop cleanly */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 23, 39, 0.75) 0%, rgba(10, 23, 39, 0.2) 35%, transparent 70%);
  pointer-events: none;
}

/* Minimal Floating Caption */
.carousel-caption {
  position: absolute;
  bottom: 2.25rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 5;
  color: #ffffff;
  pointer-events: none;
  max-width: 800px;
}

.caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.carousel-caption h3 {
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  color: #ffffff;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

/* Navigation Arrow Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: 1.5rem;
}

.next-btn {
  right: 1.5rem;
}

/* Dots Indicators */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dots .dot.active {
  width: 28px;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Section 8 Legal Highlight Bar */
.gov-banner-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

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

.gov-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.gov-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.gov-item.green .gov-item-icon {
  background: var(--secondary-subtle);
  color: var(--secondary);
}

.gov-item.red .gov-item-icon {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
}

.gov-item-text span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gov-item-text strong {
  font-size: 0.925rem;
  color: var(--dark);
  font-weight: 700;
  word-break: break-word;
}

/* ==========================================================================
   Priority Pillars
   ========================================================================== */
.pillar-section {
  padding: 4.5rem 0;
  background-color: var(--bg-alt);
}

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

.pillar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.pillar-card-img {
  height: 190px;
  overflow: hidden;
  position: relative;
}

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

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

.pillar-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

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

.pillar-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--dark);
}

.pillar-card-body p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.pillar-card-body li {
  font-size: 0.875rem;
  color: var(--dark-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.pillar-card-body li i {
  color: var(--secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Content Sections General
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
}

.section-padding-sm {
  padding: 2.5rem 0;
}

.bg-white {
  background-color: #ffffff;
}

.bg-light {
  background-color: var(--bg-body);
}

.bg-alt {
  background-color: var(--bg-alt);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
  color: #fff;
}

/* Two Column Layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-list li i {
  color: var(--secondary);
  background: var(--secondary-subtle);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.85rem;
}

/* Stat Counters */
.stats-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 0;
}

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

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: #bfdbfe;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* Objectives Grid */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.objective-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.objective-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.obj-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-subtle);
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  line-height: 1;
}

.objective-card h4 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  padding-right: 1.5rem;
}

.objective-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Cards Grid */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

/* News & Notices Cards */
.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.news-category {
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.725rem;
}

.news-date {
  color: var(--text-light);
  font-size: 0.775rem;
}

.news-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Important Disclaimer Banner */
.disclaimer-banner {
  background-color: var(--accent-red-subtle);
  border-left: 5px solid var(--accent-red);
  padding: 1.25rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.disclaimer-banner h4 {
  color: var(--accent-red);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disclaimer-banner p {
  color: #7f1d1d;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Info Box */
.info-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.25rem 0;
}

.info-box h4 {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.info-box p {
  color: var(--primary-dark);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Page Banners (Internal Pages)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: #bfdbfe;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #bfdbfe;
}

.breadcrumb-nav a:hover {
  color: #fff;
}

.breadcrumb-nav span {
  opacity: 0.6;
}

.page-title {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  color: #fff;
  margin-bottom: 0.4rem;
  word-break: break-word;
}

.page-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #e2e8f0;
  max-width: 720px;
  line-height: 1.55;
}

/* ==========================================================================
   Certificate Verification Component
   ========================================================================== */
.verify-container {
  max-width: 860px;
  margin: 0 auto;
}

.verify-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.certificate-result-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  border: 2px solid #004b97;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 75, 151, 0.03) 0%, transparent 70%);
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  width: 280px;
}

.cert-header {
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.cert-header img {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.65rem auto;
}

.cert-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid #86efac;
}

.cert-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
}

.cert-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.cert-field p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  word-break: break-word;
}

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

.cert-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Table Component (Smooth Scrollable on Mobile)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: 1.25rem 0;
  position: relative;
}

.table-scroll-hint {
  display: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.4rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 540px;
}

.custom-table th {
  background-color: var(--bg-alt);
  color: var(--dark);
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.custom-table td {
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.custom-table tr:hover td {
  background-color: var(--primary-subtle);
}

/* ==========================================================================
   Forms (Touch-Optimized for Mobile)
   ========================================================================== */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem; /* 16px to prevent iOS auto-zoom */
  font-family: inherit;
  color: var(--dark);
  transition: var(--transition);
  background-color: #fff;
  min-height: 44px; /* Accessible touch target */
}

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

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

/* Alerts */
.alert {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Gallery & Activities
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.gallery-thumb {
  height: 220px;
  overflow: hidden;
}

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

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

.gallery-caption {
  padding: 1.15rem;
}

.gallery-caption h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.gallery-caption p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0a1727;
  color: #94a3b8;
  padding-top: 4rem;
  border-top: 4px solid var(--primary);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
}

.footer-tagline {
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  font-style: italic;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

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

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.footer-contact-list i {
  color: #38bdf8;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.footer-contact-list a {
  color: #cbd5e1;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-legal-bar {
  background: #060e19;
  padding: 1.35rem 0;
  font-size: 0.8rem;
  color: #64748b;
}

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

.footer-legal-note {
  max-width: 760px;
  line-height: 1.5;
}

/* ==========================================================================
   Mobile Bottom Floating Bar (< 768px)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  height: 60px;
  z-index: 1050;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dark-light);
  font-size: 0.7rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  gap: 0.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.bottom-bar-item i {
  font-size: 1.15rem;
  color: var(--primary);
}

.bottom-bar-item:active {
  transform: scale(0.94);
}

.bottom-bar-item.whatsapp i {
  color: #25D366;
}

.bottom-bar-item.highlight {
  color: var(--primary-dark);
}

.bottom-bar-item.highlight i {
  color: var(--accent-gold);
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 75px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 75, 151, 0.35);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Print Styles for Certificate
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  .certificate-result-card, .certificate-result-card * {
    visibility: visible;
  }
  .certificate-result-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 2px solid #000;
    box-shadow: none;
  }
  .cert-actions, .header-main, .top-bar, .site-footer, .mobile-bottom-bar, .back-to-top, .notice-ticker {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Tablet / Medium Desktops (< 1140px) */
@media (max-width: 1140px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

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

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

/* Tablets (< 992px) */
@media (max-width: 992px) {
  .carousel-container {
    height: clamp(340px, 38vw, 440px);
  }

  .carousel-slide img {
    object-position: center 15%;
  }

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

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

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

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for mobile floating bottom bar */
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-padding {
    padding: 3.25rem 0;
  }

  /* Compact Top Bar on Mobile */
  .top-bar {
    padding: 0.35rem 0;
  }

  .top-bar-inner {
    justify-content: space-between;
  }

  .reg-pill {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .top-contact-link {
    font-size: 0.75rem;
  }

  .verify-top-btn {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
  }

  /* Header Branding */
  .brand-logo {
    width: 44px;
    height: 44px;
  }

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

  .brand-sub {
    display: none;
  }

  .brand-badge-mobile {
    display: block;
  }

  /* Carousel Mobile Adjustments */
  .carousel-container {
    height: clamp(260px, 48vw, 350px);
  }

  .carousel-slide img {
    object-position: center 15%;
  }

  .carousel-caption {
    left: 1rem;
    right: 1rem;
    bottom: 2rem;
  }

  .carousel-caption h3 {
    font-size: 1.15rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .prev-btn {
    left: 0.65rem;
  }

  .next-btn {
    right: 0.65rem;
  }

  /* Gov Banner Grid */
  .gov-banner-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .gov-item {
    padding: 0.35rem 0;
  }

  /* Pillars and Cards */
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-grid-3, .card-grid-4 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .gallery-thumb {
    height: 200px;
  }

  /* Tables */
  .table-scroll-hint {
    display: block;
  }

  .custom-table th, .custom-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  /* Forms */
  .form-card {
    padding: 1.35rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Certificate Card */
  .certificate-result-card {
    padding: 1.35rem;
  }

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

  .cert-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cert-actions {
    flex-direction: column;
  }

  .cert-actions .btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding-top: 2.75rem;
  }

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

  .footer-legal-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Smart Phones (< 400px) */
@media (max-width: 400px) {
  .carousel-container {
    height: clamp(210px, 55vw, 260px);
  }

  .carousel-slide img {
    object-position: center 15%;
  }

  .carousel-caption {
    bottom: 1.8rem;
  }

  .carousel-caption h3 {
    font-size: 0.95rem;
  }

  .caption-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

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

  .mobile-drawer {
    width: 290px;
  }

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