/* General body and typography improvements */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Disaster Preparedness Section */
#children-program .container,
#children-program .container-fluid.sai {
  padding: 2rem 3rem;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#children-program p,
#children-program .row > .col-lg-12 > p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
    font-weight: 600;
  line-height: 1.6;
}

#children-program ul.list-group {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#children-program ul.list-group li.list-group-item {
  font-weight: 600;
  color: #18a960;
  border: none;
  padding-left: 2.5rem;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: default;
}

#children-program ul.list-group li.list-group-item::before {
  content: "\f058"; /* FontAwesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #18a960

}

#children-program ul.list-group li.list-group-item:hover {
  background-color: #18a960;
  color: #004d40;
}

#children-program hr.my-5 {
  border-color: #18a960;
  border-width: 2px;
  margin: 3rem 0;
}

/* Highlight box for Cleft Lip Surgery subsection */
#children-program .cleft-lip-highlight {
  background-color: #c8e6c9;
  border-left: 6px solid #388e3c;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(56, 142, 60, 0.3);
  margin-top: 2rem;
  transition: background-color 0.3s ease;
}

#children-program .cleft-lip-highlight:hover {
  background-color: #a5d6a7;
}

#children-program h3,
#children-program h3.text-success {
  color: #388e3c;
  font-family: "Georgia", serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 1px 1px 2px #2e7d32;
  padding: 1rem 0;
  border-bottom: 2px solid #81c784;
}

#children-program .row {
  align-items: center;
}

#children-program img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

#children-program .row > .col-lg-12 > p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}


html {
  overflow-x: hidden;
}

/* Header improvements */
.head {
  background-color: #309e41;
  padding: 0;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 8px rgb(245, 245, 245);
  transition: background 0.3s ease;
  overflow: hidden;
  margin: 0;
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
}

/* Adjust body to remove default margins */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Ensure container takes full width */
.container-fluid {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* Adjust the row spacing */
.row.gx-0 {
  margin: 0;
  padding: 0;
}
.header{
  color: #ffffff;
}

.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 300%; /* 100% per image × 3 images */
  animation: slide 120s infinite;
  animation-delay: 0s;
}

.slides img {
  width: 100%;
  height: 25vh;
  object-fit: cover;
}

/* Animation keyframes */
@keyframes slide {
  0% {
    transform: translateX(0%);
  }
  33% {
    transform: translateX(-100%);
  }
  66% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0%);
  }
}

.demo-cont,
.fnc-slider,
.fnc-slider__slides {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw); /* Center full-width section */
  position: relative;
  left: 0;
  right: 0;
  padding: 0;
}

.fnc-slider {
  height: 25vh;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  margin: 30px auto;
  max-width: 1200px;
  min-height: 00px;
  background: #000;
}

.fnc-slide,
.fnc-slide__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fnc-slider__slides {
  position: relative;
  width: 100%;
  height: 400px; /* adjust as needed */
  min-height: 200px;
  overflow: hidden;
}

/* Image fits the slide and does not overflow */
.fnc-slide__inner img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
  overflow-x: hidden;
}

.fnc-slide__inner {
  height: 100%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: 15px;
  filter: brightness(0.7);
  transition: filter 0.5s ease;
  background-attachment: fixed !important;
  background-attachment: fixed;
}

.slide1-bg {
  background: url(ss.jpg);
  background-size: cover;
  height: 50%;
  width: 100%;
  filter: brightness(0.6);
  border-radius: 20px;
}

.slide2-bg {
  background: url(image.png) no-repeat center center;
  background-size: cover;
  height: 50%;
  width: 100%;
  filter: brightness(0.6);
  border-radius: 20px;
}

.slide3-bg {
  background: url(ss.jpg) no-repeat center center;
  background-size: cover;
  height: 50%;
  width: 100%;
  filter: brightness(0.6);
  border-radius: 20px;
}

.fnc-slide {
  position: absolute;
  width: 100%;
  height: 50%;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
  top: 0;
  left: 0;
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
  background-color: transparent; /* Remove any background color */
}

.fnc-slide.m--active-slide {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  transition: opacity 1.5s ease-in-out;
  background-color: transparent; /* Remove any background color */
}

.fnc-slide__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 0 30px;
  max-width: 700px;
}

.fnc-slide__content a.btn {
  background-color: #ffd700;
  color: #1f8a70;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  font-size: 16px;
  display: inline-block;
  margin-top: 20px;
}

.fnc-slide__content a.btn:hover {
  background-color: #1f8a70;
  color: #ffd700;
  text-decoration: none;
}

.header.container-fluid.sai:hover {
  background: linear-gradient(135deg, #1e5799, #0b3d91);
}

/* Main content container */
.container.my-5.p-4.shadow.rounded.bg-white {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem !important;
}

/* Headings */
h1.text-success {
  color: #18a960 !important;
  font-family: "Georgia", serif;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

/* Paragraphs */
p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Lists */
.shg-section ul {
  list-style: none;
  padding-left: 0;
}

.shg-section ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: #18a960;
}

.shg-section ul li::before {
  content: "\f058"; /* FontAwesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #f6ad55;
}

/* Footer */
.header {
  background: linear-gradient(135deg ,  #18a960,#5be29e);
  color: #fff;
  padding: 30px 30px;
  text-align: left;
  border-radius: 20px 20px 0 0;
  max-width: 100%;
  margin: 0 auto 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  bottom: auto;
  left: auto;
  width: 100%;
}
.phone{
  color: white;
  padding-bottom: 10px;
}
.header.container-fluid.sai {
  background-color: #2c7a7b;
  color: #e6f1f2;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.header.container-fluid.sai h3 {
  color: #3fe702;
  font-weight: 700;
  margin-bottom: 1rem;
}

.header.container-fluid.sai p,
.header.container-fluid.sai .address p,
.header.container-fluid.sai .phone p,
.header.container-fluid.sai .user p,
.header.container-fluid.sai .Email {
  color: #e6f1f2;
  font-weight: 400;
}

.header.container-fluid.sai i {
  color: #38d730;
  margin-right: 0.5rem;
}

.header.container-fluid.sai hr {
  border-color: #f6ad55;
  margin: 1rem 0;
}

.sai.row {
  font-size: 0.85rem;
}

.sai.row .col-8 {
  color: #e6f1f2;
}

.sai.row .col-3 i {
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Social icons in header */
.icon i {
  font-size: 1.2rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

/* Donate Now button */
.Get {
  background-color: #f6ad55;
  color:#0b5b33 !important;
  font-weight: 700;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.Get:hover {
  background-color: #18a960 !important;
  
}

/* Navbar multi-line and beautify */
.navbar-nav  {
  gap: 0.5rem;
  border-radius: 100px 0 0 0;
  overflow-x: visible;
  max-width: auto;
  margin-top: 0;
  height: auto;
  padding: 10px 20px;
  margin: 0;
}

.navbar .navbar-brand img:hover,
.navbar .navbar-brand img:active {
  transform: scale(1.1);
}

.container-fluid.navr{
  padding: 0%;
  height: 70%;
}
/* Reset navbar styles */
.navbar {
  margin-top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: white;
  padding: 0;
  margin: 0;
  margin-top:0;
}

/* Fix navbar collapse */
.navbar-collapse {
  background-color: white;
}

/* Adjust navr class */
.navr {
  border-radius: 100px 0 0 0;
  background-color: #187227;
  height: auto;
  min-height: 70px;

  margin: 0;
  padding: 0;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}


/* Fix mobile toggle button */
.navbar-toggler {
  margin-right: 15px;
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Adjust logo container */
.navbar-brand {
  background-color: white;
  padding: 0;
  margin: 0;
  height: 100px;
}

.navbar-nav .nav-link {
  padding-left: 70%;
  font-size: 0.95rem;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  top: auto;
  left: 0;
  z-index: 1050;
  display: none;
  float: left;
  min-width: 15rem;
  margin: 0.125rem 0 0;
  padding: 0.5rem 0;
  font: 1rem/1.5 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #212529;
  text-align: left;
  list-style: none;
  background: #16d313 padding-box;
  border: none;
  border-radius: 0.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-nav .dropdown-menu.show {
  display: block;
}

.navbar-nav .dropdown-menu .dropdown-item {
  color: #282929;
  font-weight: 500;
  top:auto;
  transition: background-color 0.3s ease;
}
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #7ff579;
  border-radius: 5px;
  overflow: visible;
}

.navbar .navbar-brand img {
  max-height: 100px; 
  transition: transform 0.3s ease;
}

.navbar .navbar-brand img:hover,
.navbar .navbar-brand img:active {
  transform: scale(1.1);
}
.navbar-logo {
  background-color: white;
}
.navbar-nav .nav-link {
  color: #e6f1f2 !important;
  font-weight: 600;
  padding: 0.8rem 1rem;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  padding-left: 80%;
  font-size: 0.95rem;
}

.logo-wrapper {
  background-color: #fff;
  border-radius: 0 !important;
  padding: 0 10px; /* fine‑tune spacing */
  z-index: 2;      /* stay above navbar */
}
.logo-img {
  filter: brightness(0) invert(1); /* white for SVG/text */
  height: 100px;
  width: auto;
}

.navbar {
  margin-left: -10px; /* shift left to sit flush next to logo */
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  /* other properties already present */
}

.navbar-nav > .nav-item.dropdown {
  position: relative;
  width: auto;
  height: auto;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#navlink{
  padding-left: 50%;
}

.navbar-nav > .nav-item {
  margin-bottom: 0.3rem
}

.navbar-nav > .nav-item.dropdown:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* About Section with light green background */
#About.container.my-5.p-4.rounded.shadow {
  background-color: #e9f7ef;
  padding: 2rem 1rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#About .about-text {
  text-align: left;
  padding: 0 2rem;
}

#About .about_text p {
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

#About .about_text h1,
#About .about_text h6 {
  color: #2c7a7b;
  font-family: "Georgia", serif;
}

#About .about_text h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#About .about_text h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

#About .more {
  color: #1f8a70;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

#About .more:hover {
  color: #285e61;
  text-decoration: underline;
}

#About .slidecontainer {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

#About .slider {
  width: 100%;
  height: 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, #1f8a70, #18a960);
  outline: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  cursor: pointer;
}

#About .slider:hover {
  opacity: 1;
}

#About .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;

  cursor: pointer;
  transition: background-color 0.3s ease;
}

#About .slider::-webkit-slider-thumb:hover {
  background: #285e61;
}

#About .slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  /* background: #f6ad55; */
  cursor: pointer;
  box-shadow: 0 0 5px #30ee6f;
  transition: background-color 0.3s ease;
}

#About .slider::-moz-range-thumb:hover {
  background: #285e61;
}

#About .count p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f8a70;
  margin-top: 0.5rem;
}

#About .btn-primary {
  background-color: #1f8a70;
  border-color: #1f8a70;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 138, 112, 0.4);
}

.gallery-img {
  min-width: 180px;
  min-height: 180px;
  max-width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-navbar .navbar-nav .nav-link {
  line-height: 100px; /* Match navbar height */
}
.navbar .dropdown-menu {
  background-color: #96f8c2;
  border: none;
 
  width: fit-content;
  height: auto;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  background-color: #1dab37fa;
  color: #000;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(239, 229, 229, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {transform: scale(0.1);}
  to {transform: scale(1);}
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}




