/* ==========================================================================
   KADAPLAMATTOM PRAVASI CHARITABLE TRUST (KPCT)
   Comprehensive Design System & Stylesheet
   ========================================================================== */

:root {
  /* Core Color Palette */
  --primary: #0a4d2e;           /* Deep Kerala Emerald Green */
  --primary-light: #137547;     /* Bright Palm Leaf Green */
  --primary-dark: #06341f;      /* Forest Slate Green */
  --primary-subtle: #e8f4ed;    /* Soft Mint Tint */

  --gold: #d4af37;              /* Rich Metallic Gold */
  --gold-hover: #b89528;
  --gold-light: #fff8e7;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e27a 50%, #cb9b2b 100%);

  /* Neutrals & Surfaces */
  --bg-main: #fbfdfb;
  --bg-light: #f3f7f4;
  --bg-card: #ffffff;
  --text-main: #192a20;
  --text-muted: #57685d;
  --text-light: #899c90;
  --border-light: rgba(10, 77, 46, 0.12);
  --border-glass: rgba(255, 255, 255, 0.2);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 77, 46, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 77, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 77, 46, 0.12);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);

  /* Typography */
  --font-en: 'Manrope', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-ml: 'Noto Sans Malayalam', 'Manrope', sans-serif;

  /* Transitions */
  --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ml);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-en);
}

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

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

ul {
  list-style: none;
}

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

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

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

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

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

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #d1e5db;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.top-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-info i {
  color: var(--gold);
  margin-right: 0.35rem;
}

.top-info .divider {
  opacity: 0.3;
}

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

.top-link {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.top-link i {
  color: #25d366;
}

.top-link:hover {
  color: var(--gold);
}

/* Language Toggle Pill */
.lang-switch-container {
  display: inline-flex;
}

.lang-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
  transition: var(--tr-fast);
}

.lang-pill:hover {
  border-color: var(--gold);
}

.lang-opt {
  position: relative;
  z-index: 2;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  transition: var(--tr-fast);
  border-radius: 50px;
}

.lang-opt.active {
  color: var(--primary-dark);
  background: var(--gold-gradient);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* ==========================================================================
   Header & Navigation (Ultra-Neat, Modern & Responsive)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(10, 77, 46, 0.08);
  transition: all 0.25s ease;
  border-bottom: 1px solid rgba(10, 77, 46, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
  padding: 0.35rem 1.25rem;
}

/* Brand Logo & Title */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.25rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 3px 10px rgba(10, 77, 46, 0.15);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.logo-group:hover .brand-logo {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.2px;
}

/* Nav Menu & List */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.85vw, 1.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #24332a;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(10, 77, 46, 0.06);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(10, 77, 46, 0.09);
}

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

/* Portal Special Links (Service Hub & Care Bank) */
.nav-link-portal {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.nav-link-portal:hover {
  background: rgba(10, 77, 46, 0.08) !important;
}

.nav-tag-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
}

.nav-tag-badge.badge-new {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.nav-tag-badge.badge-care {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Nav Right & CTA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.nav-cta-btn {
  padding: 0.52rem 1.15rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 8px rgba(10, 77, 46, 0.18);
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 77, 46, 0.28);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(10, 77, 46, 0.06);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2.2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--tr-fast);
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--tr-fast);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 77, 46, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 77, 46, 0.4);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0d2818;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-sm {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 30px;
}

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

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(10, 77, 46, 0.2);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(145deg, #06341f 0%, #0a4d2e 60%, #115c38 100%);
  color: #ffffff;
  padding: 5rem 0 7rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(10, 77, 46, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f7e6a4;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 10px #25d366;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.tagline-sub {
  font-size: 1.1rem;
  color: #d1e5db;
  font-weight: 500;
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  color: #e2f0e8;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-btn-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--gold);
}

.highlight-item strong {
  display: block;
  font-size: 0.95rem;
}

.highlight-item small {
  color: #b7d5c5;
  font-size: 0.78rem;
}

/* Hero Glass Emblem Card */
.hero-card-wrapper {
  display: flex;
  justify-content: center;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 380px;
  width: 100%;
}

.emblem-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-emblem-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.glass-card-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.glass-card-info p {
  font-size: 0.9rem;
  color: #c9e2d4;
  margin-bottom: 1.5rem;
}

.card-mini-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 0.9rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
}

.mini-stat .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.mini-stat .stat-lbl {
  font-size: 0.78rem;
  color: #d1e5db;
}

.mini-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* ==========================================================================
   STATS BAR SECTION
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  padding-bottom: 2rem;
}

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

.stat-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.stat-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-box:nth-child(2) .stat-icon-wrapper {
  background: #fff4e5;
  color: #d97706;
}

.stat-box:nth-child(3) .stat-icon-wrapper {
  background: #eef2ff;
  color: #4f46e5;
}

.stat-box:nth-child(4) .stat-icon-wrapper {
  background: #fdf2f8;
  color: #db2777;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.image-stack {
  position: relative;
  padding-bottom: 2rem;
  padding-right: 2rem;
}

.stack-main-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.stack-badge-card {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.25rem 1.6rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-light);
}

.stack-badge-card i {
  font-size: 2.2rem;
  color: #e11d48;
}

.stack-badge-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stack-badge-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.experience-ribbon {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--gold-gradient);
  color: #0e291b;
  padding: 0.75rem 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  font-weight: 800;
}

.exp-yr {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
}

.exp-text {
  font-size: 0.75rem;
}

.about-text-column .section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.point-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.point-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.point-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-action {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   KEY INITIATIVES (4 PILLARS)
   ========================================================================== */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.initiative-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  display: flex;
  flex-direction: column;
}

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

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.card-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 77, 46, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

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

.card-features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-features li {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-features li i {
  color: #16a34a;
  font-size: 0.75rem;
}

/* ==========================================================================
   ABOUT KADAPLAMATTOM PANCHAYAT (FROM PDF)
   ========================================================================== */
.kadaplamattom-section {
  background: #ffffff;
}

.village-summary-pills {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}

.v-pill {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(10, 77, 46, 0.15);
}

.v-pill i {
  color: var(--primary-light);
}

.panchayat-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.p-tab-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--tr-fast);
}

.p-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(10, 77, 46, 0.25);
}

.panchayat-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.panchayat-tab-content.active {
  display: block;
}

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

.tab-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-light);
  transition: transform var(--tr-fast);
}

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

.tab-card.highlight-card {
  background: linear-gradient(145deg, #eef9f2, #e0f2e7);
  border-color: var(--primary-light);
}

.tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.tab-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.tab-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 5 Regions Grid */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.region-box {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 1.8rem 1.25rem;
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--tr-fast);
}

.region-box:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.region-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(10, 77, 46, 0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.region-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.region-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 52, 31, 0.9) 0%, rgba(6, 52, 31, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.gallery-overlay i {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: #d1e5db;
}

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

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

/* ==========================================================================
   CALL TO ACTION (CTA)
   ========================================================================== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #06341f 0%, #0a4d2e 100%);
  padding: 5rem 0;
  color: #ffffff;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  color: #f7e6a4;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.cta-desc {
  font-size: 1.15rem;
  color: #dbebe2;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

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

.info-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  gap: 1.25rem;
  border: 1px solid var(--border-light);
  transition: transform var(--tr-fast);
}

.info-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.info-details p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-info-card {
  background: var(--primary-subtle);
  border-color: rgba(10, 77, 46, 0.25);
}

/* Form Styles */
.form-wrapper {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
  outline: none;
  transition: var(--tr-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 77, 46, 0.15);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.col-md-6 {
  flex: 1;
}

.form-status-msg {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status-msg.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #042013;
  color: #b7cebf;
  padding: 5rem 0 2rem;
  border-top: 3px solid var(--gold);
}

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

.brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.f-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.f-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-fast);
}

.footer-socials a:hover {
  background: var(--gold-gradient);
  color: #042013;
  transform: translateY(-3px);
}

.f-col-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.f-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.f-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.f-links a {
  font-size: 0.88rem;
  color: #b7cebf;
}

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

.f-addr {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.6rem;
}

.f-addr i {
  color: var(--gold);
  margin-top: 0.25rem;
}

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

.f-copyright {
  color: #a3c2b1;
  font-size: 0.88rem;
}

.f-credit {
  color: #a3c2b1;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}

.toptier-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transition: var(--tr-fast);
}

.toptier-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.3s ease;
}

.modal-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.8rem;
}

/* Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #ffffff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  z-index: 2500;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: right var(--tr-fast);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--primary);
}

.drawer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.drawer-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drawer-link:hover, .drawer-link.active {
  background: rgba(10, 77, 46, 0.08);
  color: var(--primary);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2400;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* Floating Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: var(--tr-fast);
}

.scroll-top-btn:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.scroll-top-btn.visible {
  display: flex;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .initiatives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tab-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .regions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1080px) {
  .nav-menu, .nav-cta-btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .section-padding {
    padding: 4rem 0;
  }
  .hero-section {
    padding: 3.5rem 0 5.5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-desc {
    margin: 0 auto 1.8rem;
  }
  .hero-btn-group {
    justify-content: center;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .highlight-item {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .image-stack {
    padding-right: 0;
    padding-bottom: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
  }
  .stack-main-img img {
    height: 380px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .tab-card-grid {
    grid-template-columns: 1fr;
  }
  .regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    padding: 0 1rem;
  }

  /* Compact single-row top announcement bar on mobile */
  .top-bar {
    padding: 0.35rem 0;
  }
  .top-bar-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
  .top-info {
    display: none; /* Hide long emails and tagline on mobile phones */
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .top-link {
    font-size: 0.75rem;
  }

  /* Sleek navbar */
  .nav-container {
    min-height: 3.8rem;
    padding: 0.25rem 0.75rem;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.65rem;
  }

  /* Hero Section */
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
  .tagline-sub {
    font-size: 0.9rem;
  }
  .hero-desc {
    font-size: 0.92rem;
  }
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-btn-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
  .hero-glass-card {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }
  .hero-emblem-img {
    width: 120px;
    height: 120px;
  }
  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }

  /* Stats Cards */
  .stats-section {
    margin-top: -1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .stat-box {
    padding: 1.15rem;
  }

  /* About & Image Stack */
  .image-stack {
    max-width: 100%;
    padding: 0 0 2.5rem;
    margin: 0 auto;
  }
  .stack-main-img img {
    height: 240px;
    border-radius: 16px;
  }
  .stack-badge-card {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    bottom: -1rem;
    right: 0.25rem;
  }
  .stack-badge-card i {
    font-size: 1.5rem;
  }
  .stack-badge-card h4 {
    font-size: 0.9rem;
  }

  /* Initiatives Grid */
  .initiatives-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Panchayat Section */
  .village-summary-pills {
    gap: 0.5rem;
    margin: 1.25rem 0 1.75rem;
  }
  .v-pill {
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    width: 100%;
    justify-content: center;
  }
  .panchayat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.6rem;
    gap: 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .panchayat-tabs::-webkit-scrollbar {
    display: none;
  }
  .p-tab-btn {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }
  .tab-card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .gallery-item {
    height: 210px;
  }
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(6, 52, 31, 0.95) 0%, rgba(6, 52, 31, 0.4) 70%, transparent 100%);
  }

  /* CTA Banner */
  .cta-title {
    font-size: 1.65rem;
  }
  .cta-desc {
    font-size: 0.92rem;
  }
  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }
  .cta-btn-group .btn {
    width: 100%;
  }

  /* Contact Form */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-wrapper {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-control, input, select, textarea {
    font-size: 16px !important; /* Prevents mobile iOS safari zoom on focus */
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  /* Universal Modal Mobile Optimization */
  .modal-overlay, .modal-backdrop {
    padding: 0.5rem !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
  }
  .modal-box, .modal-dialog {
    width: 96% !important;
    max-width: 96% !important;
    margin: 1.25rem auto !important;
    max-height: calc(100vh - 2.5rem) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .modal-header-hub, .modal-header {
    padding: 0.9rem 1.15rem !important;
    flex-shrink: 0 !important;
  }
  .modal-header-hub h3, .modal-title {
    font-size: 1.15rem !important;
  }
  .modal-header-hub p, .modal-sub {
    font-size: 0.78rem !important;
  }
  .modal-body-hub, .modal-body {
    padding: 1.15rem !important;
    max-height: calc(100vh - 7rem) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  /* Force all 2-column form grids in modals to 1 column on mobile */
  .modal-body-hub div[style*="grid-template-columns"],
  .modal-body div[style*="grid-template-columns"],
  .modal-box form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .lightbox-content img {
    max-height: 60vh;
  }
  .lightbox-close {
    top: -2.5rem;
    right: 0.5rem;
  }
}

/* ==========================================================================
   KERALA KAUMUDI SPECIAL FEATURE SECTION & NEWSPAPER READER
   ========================================================================== */
.special-feature-section {
  background: linear-gradient(180deg, #f8faf9 0%, #edf4ef 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(10, 77, 46, 0.08);
  border-bottom: 1px solid rgba(10, 77, 46, 0.08);
}

.newspaper-badge {
  background: linear-gradient(135deg, #0a4d2e, #137547);
  color: #f6e27a !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(10, 77, 46, 0.18);
  margin-bottom: 1rem;
}

.feature-banner-highlight {
  background: #ffffff;
  border: 1px solid rgba(10, 77, 46, 0.12);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 3rem;
  position: relative;
}

.feature-banner-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  border-radius: 20px 20px 0 0;
}

.leadership-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.leader-badge-pill {
  background: #f0f7f3;
  border: 1.5px solid rgba(10, 77, 46, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  text-align: center;
  flex: 1;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(10, 77, 46, 0.06);
  transition: transform var(--tr-fast);
}

.leader-badge-pill:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.leader-badge-pill .role-tag {
  display: inline-block;
  background: var(--primary);
  color: #f6e27a;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.leader-badge-pill .leader-name {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.leader-badge-pill .panchayat-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.leader-quote-box {
  flex: 2;
  min-width: 280px;
  background: #fafcfb;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.75rem;
  position: relative;
}

.leader-quote-box i {
  color: var(--gold);
  font-size: 1.5rem;
  opacity: 0.6;
  margin-bottom: 0.4rem;
  display: block;
}

.leader-quote-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin: 0;
}

/* 4 Newspaper Edition Cards Grid */
.newspaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.news-edition-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(10, 77, 46, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.news-edition-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(10, 77, 46, 0.14);
}

.news-page-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 77, 46, 0.9);
  color: #f6e27a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  z-index: 3;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #eef2ef;
}

.news-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.news-edition-card:hover .news-thumb-wrapper img {
  transform: scale(1.05);
}

.news-hover-action {
  position: absolute;
  inset: 0;
  background: rgba(6, 52, 31, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-edition-card:hover .news-hover-action {
  opacity: 1;
}

.btn-read-page {
  background: #ffffff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.news-edition-card:hover .btn-read-page {
  transform: translateY(0);
}

.news-card-body {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.news-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.news-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-points li {
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}

.news-points li i {
  color: #16a34a;
  font-size: 0.72rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(10, 77, 46, 0.15);
}

.btn-text-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.news-edition-card:hover .btn-text-link {
  gap: 0.5rem;
  color: #cb9b2b;
}

/* ==========================================================================
   STORY CARDS VIEW & MODAL READER
   ========================================================================== */
.paper-pages-quick-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.paper-quick-btn {
  background: #ffffff;
  border: 1.5px solid rgba(10, 77, 46, 0.2);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.35rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.paper-quick-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 77, 46, 0.2);
}

.paper-quick-btn i {
  color: var(--gold);
}

.paper-quick-btn:hover i {
  color: #f6e27a;
}

.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.story-card-item {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(10, 77, 46, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.story-card-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(10, 77, 46, 0.14);
}

.story-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #eef3ef;
}

.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.story-card-item:hover .story-card-media img {
  transform: scale(1.06);
}

.story-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 77, 46, 0.92);
  color: #f6e27a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.story-card-content {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-kicker-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.story-card-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.story-card-snippet {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.story-pill-stat {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f0f7f3;
  color: var(--primary-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(10, 77, 46, 0.1);
}

.story-card-cta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(10, 77, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-open-story {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.story-card-item:hover .btn-open-story {
  color: #cb9b2b;
  transform: translateX(3px);
}

/* Modal Dialog Large for Stories */
.modal-dialog-large {
  max-width: 820px;
  width: 95%;
  border-radius: 20px;
  background: #ffffff;
}

.story-modal-media-wrap {
  position: relative;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #0a4d2e;
}

.story-modal-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.story-modal-overlay-action {
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.story-meta-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: #f0f7f3;
  border-radius: 12px;
  border: 1px solid rgba(10, 77, 46, 0.15);
}

.story-meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.story-full-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.story-full-text p {
  margin-bottom: 0.85rem;
}

.story-points-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.story-points-list li {
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-main);
}

.story-points-list li i {
  color: #16a34a;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.story-quote-highlight {
  background: #fffdf5;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
  font-style: italic;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .story-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .story-cards-grid {
    grid-template-columns: 1fr;
  }
  .story-card-media {
    height: 180px;
  }
  .story-modal-media-wrap {
    height: 170px;
    margin-bottom: 1rem;
  }
  .story-modal-media-wrap .story-modal-overlay-action {
    bottom: 8px;
    right: 8px;
  }
  .story-meta-stats-bar {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .story-meta-stat {
    font-size: 0.78rem;
  }
  .story-full-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .story-detail-modal-footer {
    flex-direction: column !important;
    gap: 0.6rem !important;
    align-items: stretch !important;
  }
  .story-detail-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   PANCHAYAT GOVERNING BODY (ഭരണസമിതി അംഗങ്ങൾ)
   ========================================================================== */
.council-header-banner {
  background: linear-gradient(135deg, #06341f, #0a4d2e);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.council-card {
  background: #ffffff;
  border: 1px solid rgba(10, 77, 46, 0.12);
  border-radius: 14px;
  padding: 1.35rem 1.15rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
  position: relative;
}

.council-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 77, 46, 0.1);
  border-color: var(--primary);
}

.council-card.council-chief {
  background: linear-gradient(145deg, #f2faf5, #e7f5ed);
  border: 2px solid var(--primary);
  box-shadow: 0 6px 18px rgba(10, 77, 46, 0.12);
}

.council-card.council-vice {
  background: linear-gradient(145deg, #fffdf2, #fbf6de);
  border: 2px solid var(--gold);
}

.council-avatar-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: rgba(10, 77, 46, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid rgba(10, 77, 46, 0.15);
}

.council-card.council-chief .council-avatar-icon {
  background: var(--primary);
  color: #f6e27a;
  border-color: var(--gold);
}

.council-card.council-vice .council-avatar-icon {
  background: #c9931b;
  color: #ffffff;
  border-color: #f6e27a;
}

.council-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: rgba(10, 77, 46, 0.1);
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.council-card.council-chief .council-role-badge {
  background: var(--primary);
  color: #ffffff;
}

.council-card.council-vice .council-role-badge {
  background: #c9931b;
  color: #ffffff;
}

.council-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.council-portfolio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.council-ward {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: #f0f7f3;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

/* ==========================================================================
   DREAM PROJECTS & TOURISM CARDS (ഡ്രീം പ്രൊജക്ടുകൾ)
   ========================================================================== */
.projects-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-feat-card {
  background: #ffffff;
  border: 1px solid rgba(10, 77, 46, 0.12);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 1.25rem;
  transition: transform var(--tr-fast), border-color var(--tr-fast);
}

.project-feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(10, 77, 46, 0.1);
}

.project-feat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a4d2e, #137547);
  color: #f6e27a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 77, 46, 0.2);
}

.project-feat-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.project-feat-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.project-stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: #eef7f2;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

/* ==========================================================================
   LOCAL BUSINESS & TRADE DIRECTORY SHOWCASE
   ========================================================================== */
.local-dir-section {
  margin-top: 3.5rem;
  background: #fdfdfd;
  border: 1px solid rgba(10, 77, 46, 0.1);
  border-radius: 20px;
  padding: 2.25rem;
}

.local-dir-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dir-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dir-item-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--tr-fast);
}

.dir-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dir-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f0f7f3;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dir-item-info h5 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.dir-item-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}

.dir-item-info .dir-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b48518;
  background: #fff9e6;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

/* Lightbox reader enhancement for newspaper */
.lightbox-modal.active .lightbox-content {
  max-width: 900px;
  width: 95%;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 16px;
  position: relative;
}

.lightbox-content img {
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
  border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .newspaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .newspaper-grid {
    grid-template-columns: 1fr;
  }
  .news-thumb-wrapper {
    height: 320px;
  }
  .feature-banner-highlight {
    padding: 1.25rem;
  }
  .leader-badge-pill {
    min-width: 100%;
  }
  .projects-feature-grid {
    grid-template-columns: 1fr;
  }
}

