/* 1. Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Root Variables (NO quotes) */
:root {
  --primary-color: #4a2c82;
  --secondary-color: #f5c518;
  --background-color: #fef7ff;
  --tertiary-color :#5A3700;
  --second-background-color:#F2ECF4;
  --text-color: #7a757d;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-ui: 'Inter', sans-serif;

  --font-family: system-ui, -apple-system, sans-serif;
  --transition: all 0.25s ease;
}

/* 3. HTML */


/* 4. Body */
body {
  font-family: var(--font-family);
  font-size: 1.6rem;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.translating {
  opacity: 0.6;
  pointer-events: none;
}

.notranslate {
  user-select: none;
}
/* Top Header Start */



/* citizen_service_section */


.citizen_service_section{
  padding: 7rem 4rem;
}
.citizen_service_section .containerr{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.cs_heading_od{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs_heading_od  p{
  margin: 0px;
  padding: 0px;
}
.cs_heading_od .heading{
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}
.cs_heading_od .sub_heading{
  color: var(--text-color);
  font-family: var(--font-body);
  text-align: center;
}
.cs_card_od{
  display: grid;
  grid-template-columns: 15.5% 15.5% 15.5% 15.5% 15.5% 15.5%;
  gap: 1.4%;
  width: 100%;
}
.cs_card{
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 3.6rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  transition: all 0.3s ease;
}
.cs_card:hover{
  border-color: #4A2C82;
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cs_card .cs_card_icon_od{
  background-color: var(--second-background-color);
  border-radius: 8px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs_card .cs_card_icon_od span{
  font-size: 3rem;
}
.cs_card .cs_card_name{
  white-space: nowrap;
  font-size: 1.2rem;
}


/* ========= Base (Mobile First) ========= */
/* default CSS = small phones (S24 etc.) */


/* ========= Small Phones ========= */
/* up to ~480px */
@media (max-width: 480px) {
  /* S24, small Android phones */
  .citizen_service_section{
    padding: 7rem 1rem;
  }
  .cs_card_od{
    grid-template-columns: 48% 48%;
    gap: 1.4%;
  }
  .cs_card .cs_card_name{
    white-space: nowrap;
    font-size: 1.2rem;
  }
  
}


/* ========= Large Phones ========= */
/* 481px – 767px */
@media (min-width: 481px) and (max-width: 767px) {
  /* iPhone Pro Max, big phones */
   .citizen_service_section{
    padding: 7rem 2rem;
  }
  .cs_card_od{
    grid-template-columns: 48% 48%;
    gap: 1.4%;
  }
  .cs_card .cs_card_name{
    white-space: nowrap;
    font-size: 1.2rem;
  }
}


/* ========= Tablets ========= */
/* 768px – 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  /* iPads, tablets */
  .nav_header{
    padding-inline: 6.5rem;
  }
   .cs_card_od{
    grid-template-columns: 33% 33% 33%;
    gap: 1.4%;
  }
  .cs_card .cs_card_name{
    white-space: nowrap;
    font-size: 2rem;
  }
}


/* ========= Small Laptops ========= */
/* 1025px – 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  /* small laptops */
}


/* ========= Desktop ========= */
/* 1281px – 1600px */
@media (min-width: 1281px) and (max-width: 1600px) {
  /* normal desktop */
}


/* ========= Large Desktop ========= */
/* 1601px+ */
@media (min-width: 1601px) {
}


/* Our Leader Section */

.our_leaders_services{
  padding: 7rem 4rem;
  background-color: var(--second-background-color);
}
.ol_inner_div{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
}
.ol_inner_div .ol_heading{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ol_inner_div .ol_heading p{
  margin: 0px;
  padding: 0px;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: bold;
}
.ol_image_od{
  display: grid;
  grid-template-columns: auto auto auto;
  width: 100%;
}

.ol_image_od .ol_od{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}
.ol_od .ol_image_div{
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px #dbdbdb;
  transition: all 0.3s ease;
  cursor: pointer;
}
.ol_od .ol_image_div:hover{
  border: 3px solid var(--tertiary-color);
  transform: translateY(-4px);
  border-radius: 10px;
}
.ol_od img{
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
}

.ol_od p{
  margin: 0px;
  padding: 0px;
}
.ol_od .ol_name{
  color: var(--primary-color);
  font-family: var(--font-ui);
}
.ol_post_name{
  text-transform: uppercase;
  color: var(--tertiary-color);
  font-family: var(--font-ui);
  font-size: 1.3rem;
}



/* ========= Base (Mobile First) ========= */
/* default CSS = small phones (S24 etc.) */


/* ========= Small Phones ========= */
/* up to ~480px */
@media (max-width: 480px) {
  /* S24, small Android phones */
  .our_leaders_services{
    padding: 7rem 1rem;
  }
  .ol_image_od{
    grid-template-columns: auto;
    row-gap: 1rem;
  }
  
}


/* ========= Large Phones ========= */
/* 481px – 767px */
@media (min-width: 481px) and (max-width: 767px) {
  /* iPhone Pro Max, big phones */
   .our_leaders_services{
    padding: 7rem 1rem;
  }
  .ol_image_od{
    grid-template-columns: auto;
  }
}


/* ========= Tablets ========= */
/* 768px – 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  /* iPads, tablets */
  .ol_image_od{
    grid-template-columns: auto auto auto;
  }
}


/* ========= Small Laptops ========= */
/* 1025px – 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  /* small laptops */
}


/* ========= Desktop ========= */
/* 1281px – 1600px */
@media (min-width: 1281px) and (max-width: 1600px) {
  /* normal desktop */
}


/* ========= Large Desktop ========= */
/* 1601px+ */
@media (min-width: 1601px) {
}


/* Notice Section */

.notice_section{

}



/* =============================
   Announcements Section CSS
   Matches existing index.css style
   ============================= */

/* ===== Section Wrapper ===== */
.announcements_section {
  padding: 7rem 4rem;
  background-color: var(--background-color, #fef7ff);
}

/* ===== Main Container: Left card + Right grid ===== */
.ann_container {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 2rem;
  width: 100%;
  align-items: stretch;
}

/* ===== Left Info Card ===== */
.ann_info_card {
  background-color: #4a2c82;
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.ann_info_text h2 {
  color: #ffffff;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.2rem 0;
  line-height: 1.3;
}

.ann_info_text p {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0;
}

/* Visit Notice Board Button */
.ann_visit_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--secondary-color, #f5c518);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition, all 0.25s ease);
  margin-top: 3rem;
}

.ann_visit_btn:hover {
  opacity: 0.85;
  gap: 0.8rem;
}

.ann_visit_btn .material-symbols-outlined {
  font-size: 2rem;
  color: var(--secondary-color, #f5c518);
}


/* ===== Right Cards Grid (2x2) ===== */
.ann_cards_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
}

/* ===== Individual Announcement Card ===== */
.ann_card {
  background-color: #ffffff;
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-left: 4px solid #745B00;
  transition: var(--transition, all 0.25s ease);
}

.ann_card:hover {
  border-left-color: var(--primary-color, #4a2c82);
  box-shadow: 0 4px 12px rgba(74, 44, 130, 0.1);
  transform: translateY(-2px);
}

/* ===== Card Top: Badge + Date ===== */
.ann_card_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* NEW Badge */
.ann_badge {
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ann_badge.new {
  background-color: #ffe4e4;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

/* Date */
.ann_date {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.3rem;
  color: var(--text-color, #7a757d);
  margin-left: auto;
}

/* Card has no badge — date still aligns right */
.ann_card_top:only-child .ann_date {
  margin-left: 0;
}


/* ===== Card Title ===== */
.ann_title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color, #4a2c82);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

/* ===== Download Link ===== */
.ann_download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--tertiary-color);
  transition: var(--transition, all 0.25s ease);
}

.ann_download:hover {
  color: var(--secondary-color, #f5c518);
}

.ann_download .material-symbols-outlined {
  font-size: 1.8rem;
  color: var(--tertiary-color);
  transition: var(--transition, all 0.25s ease);
}

.ann_download:hover .material-symbols-outlined {
  color: var(--secondary-color, #f5c518);
}


/* =============================================
   RESPONSIVE
   ============================================= */

/* ===== Small Phones (up to 480px) ===== */
@media (max-width: 480px) {
  .announcements_section {
    padding: 5rem 1.2rem;
  }

  /* Stack info card on top, cards below */
  .ann_container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Info card shorter on mobile */
  .ann_info_card {
    min-height: auto;
    padding: 2.5rem 2rem;
  }

  /* Cards: single column */
  .ann_cards_grid {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: 1.2rem;
  }
}


/* ===== Large Phones (481px – 767px) ===== */
@media (min-width: 481px) and (max-width: 767px) {
  .announcements_section {
    padding: 5rem 2rem;
  }

  .ann_container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ann_info_card {
    min-height: auto;
    padding: 2.5rem 2rem;
  }

  /* 1 column on phones */
  .ann_cards_grid {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: 1.2rem;
  }
}


/* ===== Tablets (768px – 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .announcements_section {
    padding: 6rem 3rem;
  }

  .ann_container {
    grid-template-columns: 35% 1fr;
    gap: 1.5rem;
  }

  .ann_cards_grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}


/* ===== Small Laptops (1025px – 1280px) ===== */
@media (min-width: 1025px) and (max-width: 1280px) {
  .announcements_section {
    padding: 6rem 3rem;
  }

  .ann_container {
    grid-template-columns: 28% 1fr;
  }
}


/* ===== Desktop (1281px – 1600px) ===== */
@media (min-width: 1281px) and (max-width: 1600px) {
  .announcements_section {
    padding: 7rem 6rem;
  }
}


/* ===== Large Desktop (1601px+) ===== */
@media (min-width: 1601px) {
  .announcements_section {
    padding: 8rem 10rem;
  }
}


/* ===========================
   Stats Section
   =========================== */

.stats_section {
  background-color: var(--primary-color, #4a2c82);
  padding: 2.2rem 4rem;
}

.stats_container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 1rem;
}

.stat_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.stat_number {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat_count {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-color, #f5c518);
  letter-spacing: -0.02em;
  line-height: 1;
  /* Smooth count-up effect */
  transition: color 0.3s ease;
}

.stat_label {
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.6rem 0 0 0;
}

/* Vertical divider between stat items */
.stat_divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Animate-in class — added by JS when in viewport */
.stats_section.animated .stat_count {
  animation: statFadeIn 0.4s ease forwards;
}

@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===========================
   Gallery Section
   =========================== */

.gallery_section {
  margin-top: 1rem;
  padding: 6rem 4rem;
  background-color: var(--second-background-color);
}

.gallery_heading_od {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery_title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color, #4a2c82);
  margin: 0 0 0.4rem 0;
}

.gallery_sub {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.4rem;
  color: var(--text-color, #7a757d);
  margin: 0;
}

/* 3-column masonry-style grid */
.gallery_grid {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery_item {
  overflow: hidden;
  border-radius: 0.8rem;
  cursor: pointer;
  position: relative;
}

.gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  min-height: 180px;
}

.gallery_item:hover img {
  transform: scale(1.06);
  filter: brightness(0.88);
}

/* Overlay on hover */
.gallery_item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 44, 130, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.8rem;
}

.gallery_item:hover::after {
  opacity: 1;
}


/* =============================
   RESPONSIVE
   ============================= */

/* Small Phones (max 480px) */
@media (max-width: 480px) {
  .stats_section {
    padding: 2rem 1.2rem;
  }
  .stats_container {
    flex-wrap: wrap;
    gap: 1.5rem 0;
  }
  .stat_item {
    flex: 0 0 48%;
  }
  .stat_divider {
    display: none;
  }
  .stat_count {
    font-size: 2.4rem;
  }

  .gallery_section {
    padding: 5rem 1.2rem;
  }
  .gallery_grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Large Phones (481px – 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .stats_section {
    padding: 2rem 2rem;
  }
  .stats_container {
    flex-wrap: wrap;
    gap: 1.5rem 0;
  }
  .stat_item {
    flex: 0 0 48%;
  }
  .stat_divider {
    display: none;
  }

  .gallery_section {
    padding: 5rem 2rem;
  }
  .gallery_grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .stats_section {
    padding: 2rem 3rem;
  }
  .gallery_section {
    padding: 6rem 3rem;
  }
}

/* Small Laptops (1025px – 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .stats_section {
    padding: 2.2rem 3rem;
  }
}

/* Large Desktop (1601px+) */
@media (min-width: 1601px) {
  .stats_section {
    padding: 2.5rem 10rem;
  }
  .gallery_section {
    padding: 8rem 10rem;
  }
}









/* ===========================
   Ward Map Section
   =========================== */

.ward_map_section {
  padding: 7rem 4rem;
  background-color: var(--background-color, #fef7ff);
}

/* Heading */
.ward_map_heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ward_map_title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color, #4a2c82);
  margin: 0 0 0.6rem 0;
}

.ward_map_sub {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.5rem;
  color: var(--text-color, #7a757d);
  margin: 0;
}

/* ===========================
   Map Wrapper
   =========================== */
.ward_map_wrapper {
  position: relative;
  width: 100%;
  background: #f0ecf7;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid #e2d9f3;

  /* Fixed height so it doesn't expand forever */
  height: 560px;
}

/* ===========================
   Live Badge
   =========================== */
.ward_live_badge {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  pointer-events: none;
}

.ward_live_dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: livePulse 1.8s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ===========================
   PDF Canvas Container
   =========================== */
/* .ward_pdf_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
} */
 .ward_pdf_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;

  user-select: none;
}


.ward_pdf_container.dragging {
  cursor: grabbing;
}

#wardPdfCanvas {
  /* JS controls transform: translate + scale */
  transform-origin: 0 0;
  display: block;
  max-width: none; /* must not be constrained */
}

/* ===========================
   Loading / Error states
   =========================== */
.ward_pdf_loading,
.ward_pdf_error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: #f0ecf7;
  color: var(--primary-color, #4a2c82);
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.5rem;
}

.ward_pdf_loading p,
.ward_pdf_error p {
  margin: 0;
  color: var(--primary-color, #4a2c82);
}

.ward_pdf_error small {
  font-size: 1.2rem;
  color: var(--text-color, #7a757d);
}

.ward_pdf_error code {
  background: rgba(74,44,130,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 1.1rem;
}

.ward_pdf_error .material-symbols-outlined {
  font-size: 4rem;
  opacity: 0.5;
}

.ward_spin {
  font-size: 3.5rem !important;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===========================
   Zoom Controls
   =========================== */
.ward_controls {
  position: absolute;
  right: 1.6rem;
  top: 79%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10;
}

.ward_ctrl_btn {
  width: 42px;
  height: 42px;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(74,44,130,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  color: var(--primary-color, #4a2c82);
}

.ward_ctrl_btn:hover {
  background: var(--primary-color, #4a2c82);
  color: #fff;
  border-color: var(--primary-color, #4a2c82);
  transform: scale(1.05);
}

.ward_ctrl_btn:active {
  transform: scale(0.97);
}

.ward_ctrl_btn .material-symbols-outlined {
  font-size: 2rem;
}

/* Center button — slightly distinct */
.ward_ctrl_btn--center {
  margin-top: 0.4rem;
  border-top: 2px solid rgba(74,44,130,0.12);
}

/* ===========================
   Page Controls (multi-page PDF)
   =========================== */
.ward_page_controls {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 10;
}

.ward_page_btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(74,44,130,0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color, #4a2c82);
  transition: all 0.2s ease;
}

.ward_page_btn:hover {
  background: var(--primary-color, #4a2c82);
  color: #fff;
}

.ward_page_btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ward_page_btn .material-symbols-outlined {
  font-size: 1.8rem;
}

.ward_page_label {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
  min-width: 48px;
  text-align: center;
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Small Phones */
@media (max-width: 480px) {
  .ward_map_section {
    padding: 5rem 1.2rem;
  }
  .ward_map_wrapper {
    height: 340px;
    border-radius: 1rem;
  }
  .ward_map_title {
    font-size: 2rem;
  }
  .ward_map_sub {
    font-size: 1.3rem;
  }
  .ward_ctrl_btn {
    width: 36px;
    height: 36px;
  }
}

/* Large Phones */
@media (min-width: 481px) and (max-width: 767px) {
  .ward_map_section {
    padding: 5rem 2rem;
  }
  .ward_map_wrapper {
    height: 400px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .ward_map_section {
    padding: 6rem 3rem;
  }
  .ward_map_wrapper {
    height: 480px;
  }
}

/* Large Desktop */
@media (min-width: 1601px) {
  .ward_map_section {
    padding: 8rem 10rem;
  }
  .ward_map_wrapper {
    height: 640px;
  }
}



/* ===========================
   Government Schemes Section
   =========================== */

.schemes_section {
  padding: 6rem 4rem;
  background-color: var(--background-color, #fef7ff);
}

/* ===== Header row ===== */
.schemes_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.schemes_header_left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schemes_title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color, #4a2c82);
  margin: 0;
}

.schemes_sub {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.4rem;
  color: var(--text-color, #7a757d);
  margin: 0;
}

.schemes_view_all {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color, #c8960c);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition, all 0.25s ease);
  padding-top: 0.3rem;
}

.schemes_view_all:hover {
  color: var(--primary-color, #4a2c82);
  text-decoration: underline;
}

/* Divider line */
.schemes_divider {
  width: 100%;
  height: 1px;
  background-color: #e2d9f3;
  margin-bottom: 3rem;
}

/* ===========================
   Cards Grid — 4 columns
   =========================== */
.schemes_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ===========================
   Individual Card
   =========================== */
.scheme_card {
  background: #ffffff;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid #ede8f5;
  display: flex;
  flex-direction: column;
  transition: var(--transition, all 0.25s ease);
  box-shadow: 0 2px 8px rgba(74, 44, 130, 0.06);
}

.scheme_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(74, 44, 130, 0.14);
  border-color: #c9b8e8;
}

/* ===== Card image ===== */
.scheme_card_img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e8e0f5;
  flex-shrink: 0;
}

.scheme_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.scheme_card:hover .scheme_card_img img {
  transform: scale(1.05);
}

/* ===== Card body ===== */
.scheme_card_body {
  padding: 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

/* Titles block */
.scheme_card_titles {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.scheme_name {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color, #4a2c82);
  margin: 0;
  line-height: 1.3;
}

.scheme_name_hin {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.25rem;
  color: var(--secondary-color, #c8960c);
  margin: 0;
  font-weight: 500;
}

/* Description */
.scheme_desc {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.35rem;
  color: var(--text-color, #7a757d);
  line-height: 1.65;
  margin: 0;
  flex: 1;

  /* 3 line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA link */
.scheme_link {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color, #4a2c82);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition, all 0.25s ease);
  margin-top: auto;
}

.scheme_link:hover {
  color: var(--secondary-color, #c8960c);
  gap: 0.7rem;
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Small Phones (max 480px) */
@media (max-width: 480px) {
  .schemes_section {
    padding: 5rem 1.5rem;
  }
  .schemes_header {
    flex-direction: column;
    gap: 0.8rem;
  }
  .schemes_grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .scheme_card_img {
    height: 200px;
  }
}

/* Large Phones (481–767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .schemes_section {
    padding: 5rem 2rem;
  }
  .schemes_header {
    flex-direction: column;
    gap: 0.8rem;
  }
  .schemes_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}

/* Tablets (768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .schemes_section {
    padding: 6rem 3rem;
  }
  .schemes_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

/* Small Laptops (1025–1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .schemes_section {
    padding: 6rem 3rem;
  }
  .schemes_grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
  .scheme_card_img {
    height: 160px;
  }
}

/* Large Desktop (1601px+) */
@media (min-width: 1601px) {
  .schemes_section {
    padding: 8rem 10rem;
  }
  .scheme_card_img {
    height: 200px;
  }
}

/* PDF Model */


/* ===========================
   PDF Modal
   =========================== */

/* Overlay */
.pdf_modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pdf_modal_overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.pdf_modal_box {
  background: #ffffff;
  border-radius: 1.4rem;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  height: 90vh;          /* ← YEH ADD KARO */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.pdf_modal_overlay.active .pdf_modal_box {
  transform: translateY(0) scale(1);
}

/* ===== Header ===== */
.pdf_modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid #ede8f5;
  background: #faf7ff;
  gap: 1rem;
  flex-shrink: 0;
}

.pdf_modal_header_left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.pdf_modal_icon {
  font-size: 2.2rem !important;
  color: #e53935;
  flex-shrink: 0;
}

.pdf_modal_filename {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d2d2d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.pdf_modal_header_right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Page controls */
.pdf_modal_pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0ecf7;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.pdf_modal_page_btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #4a2c82);
  transition: background 0.2s ease;
}

.pdf_modal_page_btn:hover {
  background: rgba(74, 44, 130, 0.12);
}

.pdf_modal_page_btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pdf_modal_page_btn .material-symbols-outlined {
  font-size: 1.8rem;
}

.pdf_modal_page_label {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.3rem;
  color: #555;
  min-width: 44px;
  text-align: center;
}

/* Zoom controls */
.pdf_modal_zoom_od {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0ecf7;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.pdf_modal_ctrl {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #4a2c82);
  transition: background 0.2s ease;
}

.pdf_modal_ctrl:hover {
  background: rgba(74, 44, 130, 0.12);
}

.pdf_modal_ctrl .material-symbols-outlined {
  font-size: 1.8rem;
}

.pdf_modal_ctrl_reset {
  margin-left: 0.2rem;
  border-left: 1px solid #d8ceed;
  border-radius: 0;
  padding-left: 0.6rem;
  width: auto;
  border-radius: 0 999px 999px 0;
}

.pdf_modal_zoom_label {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.3rem;
  color: #555;
  min-width: 40px;
  text-align: center;
}

/* Close button */
.pdf_modal_close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0d6eb;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pdf_modal_close:hover {
  background: var(--primary-color, #4a2c82);
  color: #fff;
  border-color: var(--primary-color, #4a2c82);
  transform: rotate(90deg);
}

.pdf_modal_close .material-symbols-outlined {
  font-size: 2rem;
}

/* ===== Body ===== */
.pdf_modal_body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f0ecf7;
  cursor: grab;
  min-height: 0;
  height: 100%;          /* ← YEH ADD KARO */
}

.pdf_modal_body.dragging {
  cursor: grabbing;
}

#pdfModalCanvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  display: block;
}

/* Loading */
.pdf_modal_loading,
.pdf_modal_error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: #f0ecf7;
  z-index: 2;
}

.pdf_modal_loading p,
.pdf_modal_error p {
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 1.5rem;
  color: var(--primary-color, #4a2c82);
  margin: 0;
}

.pdf_modal_error .material-symbols-outlined {
  font-size: 4rem;
  color: #e53935;
  opacity: 0.6;
}

/* Spinner */
.pdf_spin {
  font-size: 3.5rem !important;
  color: var(--primary-color, #4a2c82);
  animation: pdfSpin 1s linear infinite;
}

@keyframes pdfSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Small Phones */
@media (max-width: 480px) {
  .pdf_modal_overlay {
    padding: 0;
    align-items: flex-end;
  }
  .pdf_modal_box {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 1.4rem 1.4rem 0 0;
  }
  .pdf_modal_header {
    padding: 1.2rem 1.4rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .pdf_modal_filename {
    max-width: 140px;
    font-size: 1.3rem;
  }
  .pdf_modal_zoom_label,
  .pdf_modal_page_label {
    display: none;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .pdf_modal_box {
    max-width: 100%;
    max-height: 92vh;
  }
  .pdf_modal_filename {
    max-width: 180px;
  }
}

#pdfModalFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}