/* ====== Home Page Styles ====== */

/* Global styles */
body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "Poppins", sans-serif;
  background-color: #ffffff;
  color: #222;
}

.home-container{
  width: 100%;
  margin: 0 auto;
  padding: 1px;
}

/* ================= HEADER ================= */

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto; /* left / center / right */
  align-items: center;
  gap: 20px;
  padding: 10px 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Emblem containers */
.emblems-left,
.emblems-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emblems-left img,
.emblems-right img {
  height: 100px;
  width: auto;
}

.site-title {
  text-align: center;
}

/* Responsive: when right cannot fit, move it below title */
@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr; /* stack everything */
    grid-template-rows: auto auto auto; /* left / title / right */
    text-align: center;
  }

  .emblems-left,
  .emblems-right {
    justify-content: center;
    margin-bottom: 10px;
  }

  .emblems-left img,
  .emblems-right img {
    height: 70px;
  }
}

.site-title {
  font-size: 35px;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0;
  color: #12083f;
  text-align: center;
}

/* ================= NAVIGATION ================= */

.main-nav {
  background-color: #e9470c;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: none; 
}


.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 25px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 3px 3px 0 0;
  border: 1px solid white;
  white-space: nowrap;
}

.main-nav a:last-child {
  margin-left: auto;
}

.main-nav a.active {
  background-color: #FF9A00;
  color: #004d40;
  border-radius: 0;
}

.main-nav a:hover {
  border: 1px solid white;
  color: white;
}



/* ================= FOOTER ================= */

.site-footer {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffd54f;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-images {
  background: white;
  padding: 20px 0;
  height: auto;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 10px;
}

.footer-logos img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.site-footer-text {
  background: #e0e0e0;
  text-align: center;
  padding: 15px 0;
}


/* =========================================================
   RESPONSIVE SETTINGS
   ========================================================= */

/* Tablet */
@media (max-width: 992px) {

  .site-title {
    font-size: 32px;
    padding: 0 20px;
  }

  .emblem, .emblem1, .emblem2, .emblem3 {
    height: 70px;
  }

  .emblem1 { left: 20%; }
  .emblem3 { right: 110px; }
}

/* Mobile */
@media (max-width: 768px) {

  .site-header {
    padding: 10px 0 10px;
    flex-wrap: wrap;
  }

  /* Move all logos above title */
  .emblem,
  .emblem1,
  .emblem2,
  .emblem3 {
    position: static;
    display: inline-block;
    margin: 5px 10px;
    height: 60px;
  }

  .site-title {
    width: 100%;
    margin-top: 10px;
    font-size: 24px;
  }

  .main-nav {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a {
    padding: 10px 15px;
    height: auto;
    border-radius: 5px;
    margin: 5px;
  }

  .footer-logos img {
    height: 55px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {

  .site-title {
    font-size: 20px;
  }

  .emblem,
  .emblem1,
  .emblem2,
  .emblem3 {
    height: 50px;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}


/* Full-width Carousel (auto responsive) */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: clamp(220px, 45vw, 450px); /* auto-scale height */
  overflow: hidden;
  background: #FF9A00;
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block;
}

/* Images auto-scale */
.carousel img {
  width: 100%;
  height: 97%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Buttons auto scale slightly */
.carousel button {
  position: absolute;
  bottom: 1rem;
background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: clamp(1rem, 2.5vw, 1.6rem); /* flexible */
  padding: clamp(6px, 1.2vw, 10px) clamp(10px, 2vw, 18px);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

/* Both buttons stay at left */
.prevBtn,
.nextBtn {
  bottom: clamp(4px, 1vw, 10px) !important;
  transform: none !important;
}

/* positioning */
.prevBtn {
  left: clamp(10px, 3vw, 30px);  /* डाव्या बाजूला */
  margin-right: 0;                /* spacing आवश्यक नाही */
}

.nextBtn {
  right: clamp(10px, 3vw, 30px); /* उजव्या बाजूला */
  margin-left: 0;                 /* spacing आवश्यक नाही */
}




.content-section {
  padding: 10px clamp(10px, 3vw, 20px); /* top=10px, bottom=10px */
  background-color: #ffffff;
}
/* Section styling with border + background color */
.home-section {
  margin: 0 20px;        /* <-- space OUTSIDE border */
  padding: 20px;         /* inside spacing */
  background-color: #f5f7fa;
  border: 2px solid #d0d5dd;
  border-radius: 10px;
}

/* Wrapper: two columns */
.home-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 17px 17px 17px 17px ;
}

/* PHOTO BOX */
.home-photo-box {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
}

/* Circle image */
.home-profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #b9c2d0; /* border around the photo */
  background-color: #fff;
  padding: 3px;
}
.home-QR-box {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
}
.home-QR-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 5%;
  border: 4px solid #b9c2d0; /* border around the photo */
  background-color: #fff;
  padding: 3px;
}
/* TEXT BOX */
.home-text-box {
  flex: 1;
}

.home-info-text {
  font-size: 1.05rem;
  line-height: 1;
  color: #333;
}

.home-signature {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .home-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .home-profile-photo {
    width: 160px;
    height: 160px;
  }
}



.home-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Heading scales */
.section-title {
  color: #00695c;
  margin-bottom: 10px;
  border-bottom: 2px solid #00695c;
  display: inline-block;
  padding-bottom: 5px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.info-text {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: #333;
}

/* Intro Row */
.intro-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(10px, 3vw, 20px);
  margin-top: 30px;
}

/* Boxes auto fit */
.intro-box,
.population-box {
  flex: 1;
  min-width: 260px;
  background-color: #f1f8e9;
  padding: clamp(12px, 3vw, 20px);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 2px solid #d0d5dd;
}

/* Population overlay */
.population-box {
  position: relative;
  overflow: hidden;
}

.population-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.population-overlay {
  position: absolute;
  bottom: clamp(6px, 1.2vw, 10px);
  right: clamp(6px, 1.2vw, 10px);
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  padding: clamp(6px, 1.2vw, 10px) clamp(8px, 2vw, 15px);
  border-radius: 8px;
}



/* Team / People Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(12px, 3vw, 20px);
  margin-top: 30px;
}

.team-card {
  background-color: #ffffff;
  text-align: center;
  padding: clamp(15px, 3vw, 20px);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Image auto responsive */
.team-card img {
  width: 100%;
  height: clamp(130px, 25vw, 190px);
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Text scales */
.team-card h3 {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #1a237e;
  margin: 8px 0 5px;
}

.team-card p {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: #333;
  margin: 2px 0;
}
