/* static/css/home.css
   Theme-aware home page styles for Sankalp dashboard.
   Uses variables from variables.css (dark/light theme).
*/

/* --------------------------
   Base / Page
   -------------------------- */


/* @import url("./variables.34d525624261.css"); */


* { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
}

/* small utility */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}




.banner {
  width: 100%;
  position: relative;
  margin-top: 8vh; /* offset for fixed navbar */
  overflow: hidden;
  /* border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); */
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps image proportions */
  display: block;
  /* filter: brightness(0.9); */
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* Dark theme: darken or make image black */
body.dark-theme .banner img {
  filter: brightness(0) invert(1); /* makes white areas black */
  /* or just darken slightly: filter: brightness(0.4); */
}

.banner img:hover {
  transform: scale(1.03);
  /* filter: brightness(1); */
}

/* --------------------------
   SLIDER
   -------------------------- */
.slider-section {
  position: relative;
  height: 66vh;
  min-height: 320px;
  max-height: 720px;
  overflow: hidden;
  background: var(--gradient-surface);
}

.slider-container { position: relative; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 850ms cubic-bezier(.2,.9,.3,1), transform 850ms ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

#slide1{
background-image: url("/static/img/slider1.7636485bf631.jpg");
}

#slide2{
background-image: url("/static/img/slider2.b6399d1a4008.jpg");
}

#slide3{
background-image: url("/static/img/slider3.695ab6caae0d.jpg");
}


/* text card overlay */
.slider-text-overlay {
  max-width: 640px;
  background: linear-gradient(180deg, rgba(0,0,0,0.46), rgba(0,0,0,0.26));
  color: var(--color-white);
  padding: 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
}

.slider-text-overlay h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--color-white);
  line-height: 1.08;
}
.slider-text-overlay p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
}

/* dots */
.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.dot.active {
  background: var(--color-accent);
  transform: scale(1.18);
}

/* --------------------------
   HERO SECTION
   -------------------------- */
.hero-section {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.01), transparent);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-content h1 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 1.9rem;
  line-height: 1.12;
}
.hero-content p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  max-width: 700px;
}

/* stats */
.hero-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 130px;
  /* width: 10rem; */
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.stat-card h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.4rem;
}
.stat-card p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* right preview - optional */
.hero-preview {
  display: none;
}

/* --------------------------
   ABOUT / OVERVIEW
   -------------------------- */
.about-overview {
  padding: 44px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.01), transparent);
}
.about-overview h2 {
  color: var(--color-heading);
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.about-overview p {
  color: var(--color-text-muted);
  margin: 0 auto 18px;
  max-width: 900px;
}

/* overview grid */
.overview-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.overview-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  width: 300px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.overview-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
}
.overview-card h3 { color: var(--color-heading); margin-bottom: 8px; }
.overview-card p { color: var(--color-text-muted); }
/* --------------------------
   FEATURES
   -------------------------- */
.features-section {
  padding: 80px 0;
  background: var(--gradient-surface);
}

.features-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;         /* keeps it centered */
  margin: 0 auto;            /* centers horizontally */
  padding: 0 24px;           /* responsive spacing */
}

.feature-content h2 {
  color: var(--color-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* feature list */
.feature-content ul {
  padding-left: 0;
  margin-top: 12px;
}
.feature-content li {
  list-style: none;
  margin: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text);
  font-weight: 400;
}
.feature-content li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 700;
}

.features-section .feature-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.features-section .feature-visual img:hover {
  transform: scale(1.02);
}

/* Button styles (reuse theme colors) */
.btn-primary {
  margin-top: 20px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
}
/* --------------------------
   UPDATES SECTION (Redesigned)
   -------------------------- */
.updates-section {
  padding: 80px 0;
  background: var(--color-bg);
  text-align: center;
}

.updates-section h2 {
  color: var(--color-heading);
  font-size: 1.9rem;
  margin-bottom: 32px;
}

.updates-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  gap: 28px;
}

.update-card {
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  padding: 10px 10px;
  box-shadow: var(--shadow-dark);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.update-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.update-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}


#upd-img1{
background-image: url("/static/img/slider1.7636485bf631.jpg");
}

#upd-img2{
background-image: url("/static/img/slider2.b6399d1a4008.jpg");
}

#upd-img3{
background-image: url("/static/img/slider3.695ab6caae0d.jpg");
}



.update-card h3 {
  color: var(--color-heading);
  font-size: 1.1rem;
  padding: 14px 16px 6px;
}
.update-card p {
  padding: 0 16px 16px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/*.  MAP SECTION */


.map-title {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
}


.map-section {
  padding: 2rem;
  display: flex;
  gap: 40px;
  margin: 80px;
  align-items: flex-start;
  background: var(--gradient-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}


.map-container {
  position: relative;
  width: 60%;
  max-width: 700px;
}


.map-info-panel {
  width: 35%;
  
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  text-align: left;
  min-height: 250px;
}


.map-info-panel h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

.map-info-panel p {
  color: var(--color-text);
  font-size: 0.95rem;
}

.info-highlight {
  font-weight: bold;
  color: var(--color-heading);
}



.map-container {
  position: relative;
  max-width: 700px;
  /* margin: 0 auto; */
}

.map-image {
  width: 100%;
  height: auto;
  opacity: 0.95;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 8px var(--color-border));
}

.map-image:hover {
  opacity: 1;
}

/* 🔵 City Points */
.map-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary), 0 0 15px var(--color-primary);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-point:hover {
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--color-accent), 0 0 25px var(--color-accent);
  z-index: 999; /* ✅ Bring the hovered point (and its ::after) above all others */
}

/* 🏷️ City Label Tooltip */
.map-point::after {
  content: attr(data-city);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.map-point:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* 🌙 Dark Theme Enhancements */
[data-theme="dark"] .map-section {
  background: var(--color-surface-dark);
}


[data-theme="dark"] .map-point {
  box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.map-point.red {
  background: rgb(140, 24, 24) !important;
  box-shadow: 0 0 8px rgb(153, 26, 26), 0 0 15px rgb(147, 14, 14) !important;
}


.p-adilabad { top: 59%; left: 35%; }
.p-ambala { top: 23%; left: 28%; }
.p-dungarpur { top: 45%; left: 18%; }
.p-haridwar { top: 24%; left: 33%; }
.p-khargone { top: 51%; left: 26%; }
.p-murshidabad { top: 44%; left: 68%; }
.p-koppal { top: 74%; left: 27%; }
.p-purnea { top: 38%; left: 65%; }
.p-unnao { top: 35%; left: 42%; }
.p-varansi { top: 39%; left: 50%; }


.status-active {
  color: green;
  font-weight: bold;
}

.status-closed {
  color: red;
  font-weight: bold;
}


/* --------------------------
   CTA
   -------------------------- */
.cta-section {
  padding: 56px 0;
  display: flex;
  justify-content: center;
}
.cta-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 30px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  max-width: 920px;
  text-align: center;
}
.cta-buttons { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: baseline;}
.btn-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

/* --------------------------
   Footer spacer
   -------------------------- */
.page-footer-spacer { height: 48px; }

/* --------------------------
   Responsive
   -------------------------- */
/* --------------------------
   RESPONSIVENESS (Enhanced)
   -------------------------- */

/* ----- Medium Screens (Tablets, ≤1200px) ----- */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }
  .features-container {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }
  .feature-content h2 {
    font-size: 1.6rem;
  }
  .feature-content p {
    font-size: 0.95rem;
  }
  .updates-grid {
    gap: 22px;
  }
}

/* ----- Small Laptops & Large Tablets (≤980px) ----- */
@media (max-width: 980px) {

  .map-section {
    flex-direction: column;
    align-items: center;
  }
  
  .map-container,
  .map-info-panel {
    width: 100%;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p {
    max-width: 90%;
    margin: 0 auto;
  }
  .hero-stats {
    justify-content: center;
  }

  .features-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .feature-visual img {
    max-width: 90%;
    margin: 0 auto;
  }

  .about-overview {
    padding: 40px 0;
  }

  .updates-section h2 {
    font-size: 1.6rem;
  }

  .cta-content {
    padding: 24px 20px;
  }
}

/* ----- Tablets (≤768px) ----- */
@media (max-width: 768px) {
  .slider-section {
    height: 52vh;
  }
  .slider-text-overlay {
    padding: 16px;
    font-size: 0.9rem;
  }
  .slider-text-overlay h2 {
    font-size: 1.2rem;
  }

  .overview-grid {
    gap: 16px;
  }
  .overview-card {
    width: 85%;
    margin: 0 auto;
  }

  .features-section {
    padding: 60px 0;
  }
  .feature-content h2 {
    font-size: 1.4rem;
  }

  .updates-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

  .cta-section {
    padding: 50px 0;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ----- Mobile (≤600px) ----- */
@media (max-width: 600px) {
  .slider-section {
    height: 46vh;
    min-height: 200px;
  }
  .slider-text-overlay {
    left: 4%;
    right: 4%;
    bottom: 6%;
    max-width: calc(100% - 32px);
  }
  .slider-text-overlay h2 {
    font-size: 1rem;
  }
  .slider-text-overlay p {
    font-size: 0.85rem;
  }

  .hero-section {
    padding: 24px 0;
  }
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .stat-card{
    width: 90%;
  }

  .overview-card,
  .update-card {
    width: 100%;
    max-width: 360px;
  }

  .features-container {
    padding: 0 16px;
  }

  .feature-content ul {
    text-align: left;
  }

  .updates-container {
    padding: 0 16px;
  }

  .cta-content {
    max-width: 95%;
    padding: 20px 16px;
  }

  .cta-content h2 {
    font-size: 1.3rem;
  }
  .cta-content p {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 260px;
  }
}

/* ----- Very Small Devices (≤400px) ----- */
@media (max-width: 400px) {
  .slider-section {
    height: 42vh;
  }
  .hero-content h1 {
    font-size: 1.25rem;
  }
  .overview-card,
  .update-card {
    padding: 16px;
    /* width: 80%; */
  }
  .update-img {
    height: 140px;
  }
  .feature-content h2 {
    font-size: 1.2rem;
  }
}
