/*----------- Goole Font Link------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
/*==================================== Default Styles ==================================== */

:root {
  --h1_color: #016B9D;
  --h6_color: #004366;
  --nav_color: rgb(21, 21, 100);
  --orange_color: #E84911;
  --lato: "Lato", sans-serif;
  --icon: #F48829;
  --footer: #003F62;
  --side_bar: rgba(5, 69, 104, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: "Poppins", sans-serif;
  width: 100%;
  overflow-x: hidden;
}

/*----Global Tags---- */

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--h6_color);
}

span {
  font-size: .9rem;
  color: #757373;
}

h6 {
  font-size: 1.1rem;
  color: var(--h6_color);
}

.m {
  margin: 0;
  text-align: center;

}

/*============================================== Header ===========================================================*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}


nav {
  display: flex;
  flex-direction: row;
  margin-top: 50px;
  width: 100%;
  background-color: #fff;
  justify-content: space-between;
  padding: 1vw 8vw;
  align-items: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
}

.scrolled nav {

  display: flex;
  flex-direction: row;
  margin-top: 50px;
  width: 100%;
  background-color: #fff;
  justify-content: space-between;
  padding: 1vw 8vw;
  align-items: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);

}

nav img {
  width: 200px;
  cursor: pointer;
}

nav .navigation {
  display: flex;
}

#menu-btn {
  width: 30px;
  height: 30px;
  display: none;
}

#menu-close {
  display: none;
  cursor: pointer;
}

nav .navigation ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav .navigation ul li {
  list-style: none;
  margin-left: 30px;
}

nav .navigation ul li a {
  font-size: 16px;
  color: var(--nav_color);
  font-weight: 500;
  transition: 0.3s ease;
  gap: 9px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

}

nav .navigation ul li a i {
  color: var(--orange_color);
}

nav .navigation ul li a.active,
nav .navigation ul li a:hover {
  color: var(--h1_color);
}

nav .navigation ul li a.active::after {
  color: var(--orange_color);
  width: 100%;
  bottom: -1px;
}

nav .navigation ul li a:hover:after {
  color: var(--orange_color);
  width: 100%;
  bottom: -1px;
}

/* nav .navigation ul li a.active, */
nav .navigation ul li a:after {
  content: "";
  position: absolute;
  height: 4px;
  width: 0%;
  background-color: var(--orange_color);
  top: 100%;
  left: 0%;
  border-radius: 5px;
  transition: all 0.5s;
  text-decoration: none;
  margin-top: 7px;
}

.top_bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 50px;
  position: absolute;
  top: 0;
  background-color: transparent;
  padding: 5px 10px;
}

.top_bar h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--h6_color);
  margin-right: 7px;
  cursor: pointer;
}

.top_bar h3 i {
  margin-right: 5px;
  color: var(--h1_color);
}

/*---------Scroll Navbar --------*/

.scrolled {
  position: fixed;
  left: 0;
  top: 0;
  background-color: #fff;
  transition: 0.9 ease-in;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  width: 100%;
  scroll-behavior: smooth;
  animation: animate 1.2s ease-in-out;
  z-index: 999;


}


@keyframes animate {
  0% {
    transform: translateY(-100%);
  }

}

.logop img {

  height: 150px;
  width: 150px;
}

.logop {
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  padding-left: 0;
  /* Remove unnecessary padding */
  margin: 0 auto;
  /* Center the whole div */

}

.logo i {
  display: inline-block;
  font-weight: 300;
  padding-left: 40%;
  color: #0e2579;
}

/* Media Query for responsive mode */
@media (max-width: 768px) {
  .logop {
    padding-left: 0;
    /* Remove left padding */
    justify-content: center;
    /* Center the logo container on smaller screens */
  }

  .logop img {
    height: 100px;
    /* Reduce the image size slightly on smaller screens */
    width: 100px;
    /* Reduce the image width for better fit */
  }
}

@media (max-width: 480px) {
  .logop {
    padding-left: 0;
    /* Remove left padding */

    justify-content: center;
    /* Ensure the logo is centered */
  }

  .logop img {
    height: 150px;
    /* Further reduce image size on mobile */
    width: 150px;
    /* Further reduce the image width */
  }
}



.about p {
  font-size: large;
}


.header1 {
  background-color: #fff;
  color: rgb(2, 2, 36);
  padding-top: 200px;

}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  padding-bottom: 10px;
}

.navbar .logo {
  font-size: 2rem;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar ul li {
  margin: 0 1rem;
}

.navbar ul li a {
  color: rgb(2, 2, 36);
  ;
  text-decoration: none;
  font-size: 1.1rem;
}

.navbar ul li a:hover {
  color: #ffcc00;
}

.hero {
  background: linear-gradient(to right, #016B9D, #e05d2d);
  color: #fff;
  ;
  text-align: center;
  padding: 5rem 2rem;
  animation: fadeIn 2s ease-in-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta {
  padding: 1rem 2rem;
  background-color: #ffcc00;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta:hover {
  background-color: #e5a900;
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: rgb(21, 21, 100);
}


.about-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.content-box {
  background-color: #f4f4f4;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 30%;
}

.program-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.program-card {
  background-color: #f4f4f4;
  border-color: #0e2579;
  border-style: groove;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 30%;
  transition: transform 0.3s;
}

.program-card:hover {
  transform: translateY(-10px);
}

.event-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.event {

  background-color: #f4f4f4;
  padding: 2rem;
  border-style: groove;
  border-color: #0e2579;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 30%;
}

/*=========*/
.dept-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight {
  display: flex;
  background-color: #f0f0f0;
  border-radius: 8px;
  align-items: flex-start;
  gap: 15px;
}

.number {
  font-size: 28px;
  color: var(--h6_color);
  font-weight: bold;
  background: #f0f0f0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text h3 {
  font-size: 18px;
  color: var(--h6_color);
  margin-bottom: 5px;
}

.text p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .dept-highlights {
    grid-template-columns: 1fr;
  }
}


/* ========================= about nss ==================================*/
#cs-department {
  padding-bottom: 100px;
  padding: 40px;
  background-color: #f4f7fb;

}

.cs-container {
  max-width: 1000px;
  text-align: justify;
}

.cs-container span {
  margin: 0 10px;
  font-size: 1rem;
  color: #000;
  font-weight: 500;
}

#cs-department h2 {
  font-size: 32px;
  color: var(--h6_color);
  margin-bottom: 20px;
}

#cs-department h3 {
  margin-top: 30px;
  color: var(--h6_color);
  font-size: 28px;
}

#cs-department p {
  padding: 8px;
  font-size: 16px;
  color: black;
  line-height: 1.6;
}

#cs-department ul {
  color: #333;
  padding-left: 20px;
  padding-top: 8px;
  line-height: 1.6;
  list-style-type: disc;
}


/*===================================== Missions section ==========================*/
.mission-section {
  background-color: #ffffff;
  padding: 70px 30px;
  border-top: 1px solid #ddd;
}

.mission-container {
  max-width: 1000px;
  margin: 0 auto;
  color: #2a2a2a;
}

.mission-container h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #003366;
  text-align: center;
  border-bottom: 2px solid #003366;
  display: inline-block;
  padding-bottom: 6px;
}

.mission-container p {
  font-size: 16.5px;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.mission-list li strong {
  color: #002147;
}

.np {
  text-align: center;
}

.np img {
  padding-left: 400px;
  clip-path: circle(50%);
}




/*===============================Company-container Course Section  ================================== */

.if {
  text-align: center;
}

#counters {
  width: 100%;
  height: 60vh;
  background-color: var(--side_bar);
  margin-bottom: 20px;

}

/* .counters{
  padding: 8vw 8vw 2vw 8vw;
} */
.counters_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* padding: 8vw 8vw 2vw 8vw; */
  width: 100%;
  height: 60vh;
  background-color: var(--side_bar);
  margin-bottom: 20px;
  /* background-image:url('../images/bg-01.jpg'); */
  background-image: linear-gradient(rgba(99, 112, 168, 0.5), rgba(81, 91, 233, 0.5)), url("../images/Back_View-5.JPG");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

}

.counters_box .counter {
  text-align: center;
  padding: 13px 33px;
  background: rgba(255, 225, 225, 0.25);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 5px;
  margin: 0 5px 10px 5px;
  width: 280px;
  height: 100px;
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

.counters_box .counter p {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 8px;
  color: var(--icon);

}

.counters_box .counter h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;

}

.counters_box .counter p span {
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 5px;
  color: var(--icon);
  text-shadow: 8px 8px 32px 8px rgba(0, 0, 0, 0.37);

  .image-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 30px;
    gap: 20ppx;
    margin: 20px;
  }


}


/* === Counters Section Responsive Styles === */

/* Tablets (768px – 1023px) */
@media (max-width: 1023px) {

  #counters,
  .counters_box {
    height: auto;
    padding: 40px 20px;
  }

  .counters_box .counter {
    width: 40%;
    margin: 10px;
    height: 100px;
  }

  .counters_box .counter p {
    font-size: 1.3rem;
  }

  .counters_box .counter h3 {
    font-size: 1.1rem;
  }
}

/* Mobiles (≤767px) */
@media (max-width: 767px) {

  #counters,
  .counters_box {
    height: auto;
    padding: 30px 15px;
    flex-direction: column;
  }

  .counters_box .counter {
    width: 90%;
    height: auto;
    padding: 15px 20px;
    margin: 12px auto;
  }

  .counters_box .counter p {
    font-size: 1.2rem;
  }

  .counters_box .counter p span {
    font-size: 1.5rem;
  }

  .counters_box .counter h3 {
    font-size: 1rem;
  }
}


/*=============================== Footer Section  ================================== */

footer {
  padding: 4vw;
  background-color: var(--footer);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

footer .footer-col {
  padding-bottom: 40px;
}

footer h3 {
  color: #ff9900;
  font-weight: 600;
  padding-bottom: 20px;

}

footer h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-left: 15px;
  background-color: #ff9900;
  border-radius: 2px;
}

footer li a {
  color: #ffffff;
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;

}

footer li a:hover {
  color: rgb(51, 0, 255);
}

footer p {
  color: #7b838a;
}

footer .subscribe {
  margin-top: 20px;
}

footer input {
  width: 220px;
  padding: 15px 12px;
  background: var(--h1_color);
  border: none;
  outline: none;
  color: #fff;
  border-radius: 5px;
}

footer input::placeholder {
  color: #7b838a;
  font-size: 15px;
}

footer .subscribe a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 13px 15px;
  background-color: #fff;
  font-weight: 600;
  border-radius: 5px;
  margin-left: 9px;
}

footer .subscribe a.Yellow_button {
  color: var(--h1_color);
  background: var(--icon);
  transition: 0.3s ease;
}


footer .subscribe a.Yellow_button:hover {
  color: var(--footer);
  background: #fff;
}

footer .copyright {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;

}

footer .copyright p {
  color: #fff;
}

footer .copyright .pro-links {
  margin-top: 0px;
}

footer .copyright .pro-links i {
  background-color: #5f7185;
  color: #fff;
  cursor: pointer;
  border-radius: 3px;
  transition: 0.3s ease;
  border: none;

}

footer .copyright .pro-links i:hover {
  background-color: var(--icon);
  color: #fff;
  color: var(--footer);
}


/* === Footer Responsive Styles === */

/* Tablets (768px – 1023px) */
@media (max-width: 1023px) {
  @media (max-width: 1023px) {
    footer {
      padding: 5vw 3vw;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      /* 2 columns */
      gap: 20px;
      align-items: start;
    }

    footer h3::after {
      content: "";
      display: block;
      width: 60px;
      height: 3px;
      background-color: #ff9900;
      border-radius: 2px;
    }

    footer .footer-col {
      width: 100%;
      margin-bottom: 0;
    }

    footer input {
      width: 100%;
      margin-bottom: 10px;
    }

    footer .subscribe {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    footer .subscribe a {
      margin-left: 0;
      margin-top: 10px;
    }

    footer .copyright {
      grid-column: span 2;
      /* make copyright full width */
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-top: 20px;
    }
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  footer {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column grid */
    gap: 20px;
    padding: 8vw 4vw;
    text-align: center;
    align-items: center;
  }

  footer .footer-col {
    width: 100%;
    padding-bottom: 0;
  }

  footer h3 {
    font-size: 1.3rem;
  }

  footer h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    background-color: #ff9900;
    border-radius: 2px;
  }

  footer li a {
    font-size: 18px;
  }

  footer input {
    width: 100%;
    font-size: 14px;
  }

  footer .subscribe {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  footer .subscribe a {
    width: 100%;
    text-align: center;
  }

  footer .copyright {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  footer .copyright .pro-links {
    margin-top: 10px;
  }
}



/*==================Others===================*/

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Container for the images */
.image-container {

  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
  overflow: hidden;
}

/* Style for individual images */
.image {
  border-radius: 5px;
  border-color: #0e2579;
  border-style: groove;
  width: 600px;
  height: 400px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  position: absolute;
  animation: fade 9s infinite;
}

/* Image 1 background */
#image1 {
  background-image: url('../images/english.jpg');
  animation-delay: 0s;
}

/* Image 2 background */
#image2 {
  background-image: url('../images/nss.png');
  animation-delay: 3s;
}

/* Image 3 background */
#image3 {
  background-image: url('../images/english.jpg');
  animation-delay: 6s;
}

/* Animation for fading in and out */
@keyframes fade {

  0%,
  33%,
  100% {
    opacity: 0;
  }

  16%,
  50% {
    opacity: 1;
  }
}

.pa {
  position: absolute;
  text-align: left;
  color: black;
}


.pic {
  padding-top: 200px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding-left: 230px;

}

.pic img {
  height: 200px;
  width: 250px;
  border-radius: 5px;
  border-color: #0e2579;
  border-style: groove;
}

.f {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*=============================== @media Query Section  ================================== */

/*-------- Max-Width:769--------- */
@media (max-width:769px) {
  body {
    width: 100%;
  }

  /* -----Header------- */

  nav {
    padding: 15px 20px;
    width: 100%;
    margin-top: 0;
    z-index: 999;
    overflow: hidden;
  }

  nav img {
    width: 160px;
  }

  #menu-btn {
    display: initial;
    z-index: 999;

  }

  #menu-close {
    display: initial;
    font-size: 1.6rem;
    color: var(--icon);
    padding: 30px 0px 20px 20px;
    font-weight: 500;
    cursor: pointer;
    z-index: 999;
    z-index: 999;

  }

  nav .navigation ul {
    position: absolute;
    top: 0;
    /* right: -300px; */
    right: 0;
    display: none;
    width: 220px;
    height: 100vh;
    background: var(--side_bar);
    backdrop-filter: blur(4.5px);
    border: 1px solid rgba(255, 225, 225, 0.25);
    /* display: flex; */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    scroll-behavior: smooth;
    animation: Sidebar 0.5s ease-in;
  }

  @keyframes Sidebar {
    0% {
      transform: translateX(100%);
    }

  }


  nav .navigation ul.active {
    /* right: 0; */
    display: flex;
  }

  nav .navigation ul li {
    padding: 20px 0 20px 40px;
    margin-left: 0;
  }

  nav .navigation ul li a {
    color: #fff;
  }

  #Contect_Info {
    display: block;
  }

  .top_bar h3 {
    display: none;
  }

  .scrolled nav {
    margin-top: 0;
    z-index: 999;
  }


  /* ------Home------- */
  #home h2 {
    color: #fff;
    font-size: 2rem;
    width: 60%;
    letter-spacing: 1px;
  }

  #home p {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    width: 100%;
    line-height: 20px;
    margin-top: 7px;
  }



  /* Register */

  #registration {
    padding: 6vw 4vw 6vw 4vw;
    height: auto;
  }

  #registration .reminder .time {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  /* Footer */

  footer .subscribe {
    margin-top: 15px;


  }

  footer .subscribe input {
    margin-bottom: 10px;
  }

  footer .copyright {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;

  }

  footer .copyright .pro-links {
    margin-top: 15px;
    text-align: center;
  }

  #features {
    padding: 8vw 4vw 0px 4vw;
  }

  #course {
    padding: 8vw 4vw 0px 4vw;

  }

  #about-container {
    padding: 8vw 4vw 2vw 4vw;
  }

  #about-container .about-img img {

    padding-right: 30px;

  }


}

/*-------- Max-Width:980--------- */

@media (max-width:980px) {
  body {
    width: 100%;
  }

  nav img {
    width: 180px;
  }

  /* -----Header------- */
  nav {
    padding: 15px 30px;
    width: 100%;
    /* margin-top: 0; */
    z-index: 999;
  }

  #menu-btn {
    display: initial;
    z-index: 999;

  }

  #menu-close {
    display: initial;
    font-size: 1.6rem;
    color: var(--icon);
    padding: 30px 0px 20px 20px;
    font-weight: 500;
    cursor: pointer;
    z-index: 999;

  }

  nav .navigation ul {
    position: absolute;
    top: 0;
    /* right: -300px; */
    right: 0;
    width: 220px;
    height: 100vh;
    background: var(--side_bar);
    backdrop-filter: blur(4.5px);
    border: 1px solid rgba(255, 225, 225, 0.25);
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    scroll-behavior: smooth;
    animation: Sidebar 0.5s ease-in;
  }

  @keyframes Sidebar {
    0% {
      transform: translateX(100%);
    }

  }

  nav .navigation ul.active {
    right: 0;

    display: flex;
  }

  nav .navigation ul li {
    padding: 20px 0 20px 40px;
    margin-left: 0;
  }


  nav .navigation ul li a {
    color: #fff;
  }

  nav .navigation ul #Contect_Info {
    display: block;
  }

  .scrolled nav {
    margin-top: 50;
    top: 0;
    z-index: 9999;

  }

  /* ------Home------- */

  #home h2 {
    color: #fff;
    font-size: 1.8rem;
    width: 60%;
    letter-spacing: 0.5;
  }

  #home p {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: 100%;
    line-height: 20px;
    margin-top: 7px;
  }



  /* Register */

  #registration {
    height: auto;
  }


  /* Footer */


}

footer .copyright {
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .copyright .pro-links {
  margin-top: 15px;
  text-align: center;
}


/*-------- Max-Width:1080--------- */

@media (max-width:1080px) {
  nav .navigation ul li {
    list-style: none;
    margin-left: 15px;
  }
}

/*-------- Max-Width:475px--------- */


@media (max-width:475px) {
  .foot {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-col {
    width: 100%;
  }

  .copyright {
    width: 100%;
  }

  .counters_box {
    height: auto;
  }

  #counters {
    height: auto;

  }

  #about div {
    padding-bottom: 200px;
  }

  .program-cards,
  .event-list {
    flex-direction: column;
    align-items: center;
  }

  .program-card,
  .event {
    width: 100%;
    max-width: 90%;
  }


  #about-container {
    flex-direction: column-reverse;
  }

  #about-container .about-img {
    width: 100%;
  }

  #about-container .about-img img {
    width: 100%;
    height: auto;
    padding-right: 0px;
  }

  #about-container .about-text {
    width: 100%;
    padding-bottom: 20px;
  }
}

@media (max-width:407px) {
  #footer .subscribe {
    /* margin-top: 15px; */
    display: flex;
    /* padding: 10px; */


    /* padding: 10px 10px; */
    /* flex-wrap: wrap; */
  }

  #home .btn {
    display: flex;
    /* flex-wrap: wrap; */
  }

  .counters_box {
    height: auto;
  }

  #counters {
    height: auto;

  }
}
/*===================================== nss card =====================*/
.nss-card {
  display: flex;
  max-width: 900px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 20px auto;
}

.nss-card img {
  width: 250px;
  height: auto;
  object-fit: cover;
}

.nss-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nss-card-content h2 {
  color: var(--h1_color);
  margin: 0;
  font-size: 24px;
  font-family: 'Lato', sans-serif;
}

.nss-card-content h4 {
  color: #E84911;
  margin-top: 5px;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
}

.nss-card-content p {
  margin-top: 10px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

@media (max-width: 768px) {
  .nss-card {
    flex-direction: column;
    text-align: center;
  }

  .nss-card img {
    width: 100%;
    height: 250px;
  }

  .nss-card-content {
    padding: 15px;
  }
}

/* ===== Responsive tweaks for .nss-card section ===== */

/* For tablets & medium screens */
@media (max-width: 992px) {
  .nss-card {
    flex-direction: column;
    text-align: center;
  }

  .nss-card img {
    width: 100%;
    height: 250px;
  }

  .nss-card-content {
    padding: 18px;
  }

  .nss-card-content h2 {
    font-size: 22px;
  }

  .nss-card-content p {
    font-size: 14px;
  }
}

/* For mobile devices */
@media (max-width: 600px) {
  .nss-card img {
    height: 200px;
  }

  .nss-card-content {
    padding: 15px;
  }

  .nss-card-content h2 {
    font-size: 20px;
  }

  .nss-card-content p {
    font-size: 13.5px;
  }
}

/* For very small devices */
@media (max-width: 400px) {
  .nss-card-content {
    padding: 12px;
  }

  .nss-card img {
    height: 180px;
  }

  .nss-card-content h2 {
    font-size: 18px;
  }

  .nss-card-content p {
    font-size: 13px;
  }
}

/*=========================== gallery ====================== */
.gallery {
  display: grid;
  padding: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery {
    margin-left: auto;
    padding: 20px;
    /* Slightly reduced padding */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* Still flexible for medium screens */

  }

  .gallery-item img {
    height: 160px;
    /* Adjust image height for better fit */
  }

  .gallery-item {
    height: 250px;
  }
}

/* Media Query for max-width: 480px (Mobile screens) */
@media (max-width: 480px) {
  .gallery {
    padding: 10px;
    /* Reduced padding for mobile */
  }

  .gallery-item img {
    height: 140px;
    /* Adjust image height further on mobile */
  }

  .gallery-item {
    border-radius: 8px;
    /* Slightly reduce border radius on mobile */
  }

  .gallery-item:hover {
    transform: scale(1);
    /* Disable hover effect on mobile for better accessibility */
  }
}

/*============================== split-wrapper========================*/
.caption {
  padding: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.cs-gallery img:hover {
  transform: scale(1.05);
}

.cs-split-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background-color: var(--footer);
  padding: 60px 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.cs-text {
  flex: 1 1 600px;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cs-image {
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* ===== Responsive tweaks for .cs-split-wrapper section ===== */

/* For tablets & medium screens */
@media (max-width: 992px) {
  .cs-split-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 40px 15px;
  }

  .cs-text, .cs-image {
    flex: 1 1 100%;
  }

  .cs-text {
    padding: 30px;
  }

  .cs-image img {
    max-width: 100%;
  }
}

/* For mobile devices */
@media (max-width: 600px) {
  .cs-split-wrapper {
    padding: 30px 10px;
    gap: 15px;
  }

  .cs-text {
    padding: 20px;
  }

  .cs-image img {
    max-width: 100%;
    border-radius: 12px;
  }

  .caption {
    font-size: 0.9rem;
    padding: 10px;
  }
}

/* For very small devices */
@media (max-width: 400px) {
  .cs-text {
    padding: 15px;
  }

  .cs-image img {
    border-radius: 10px;
  }

  .caption {
    font-size: 0.85rem;
    padding: 8px;
  }
}


/*======================================= abouthome ===============================*/
#about-home {
  background-image: linear-gradient(rgba(9, 5, 54, 0.3), rgba(5, 4, 46, 0.7)), url('../images/Front_view-7.JPG');
  width: 100%;
  height: 75vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 5px 10px;
  padding-top: 60px;

}

#about-home h2 {
  color: #fbfdfe;
  font-size: 2.7rem;
  font-weight: 700;

}

.map-container {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
}

.map-image {
  width: 100%;
  display: block;
}

.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #E84911;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

.map-pin:hover .pin-tooltip {
  display: block;
}

.pin-tooltip {
  display: none;
  position: absolute;
  top: -80px;
  left: -60px;
  background: #fff;
  color: #000;
  padding: 8px 10px;
  width: 160px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 10;
}

/* ===== Responsive tweaks for #about-home ===== */
@media (max-width: 992px) {
  #about-home {
    height: 60vh;
    padding-top: 40px;
    text-align: center;
  }

  #about-home h2 {
    font-size: 2.2rem;
  }
}

/* For mobile devices */
@media (max-width: 600px) {
  #about-home {
    height: 50vh;
    padding: 20px 10px;
    text-align: center;
  }

  #about-home h2 {
    padding-top: 100px;
    font-size: 1.8rem;
  }
}

/* For very small devices */
@media (max-width: 400px) {
  #about-home {
    height: 45vh;
    padding: 15px 5px;
  }

  #about-home h2 {
    padding-top: 100px;
    font-size: 1.5rem;
  }
}

/* ===== Responsive tweaks for .map-container ===== */
@media (max-width: 768px) {
  .map-container {
    max-width: 100%;
    margin: 20px 10px;
  }

  .pin-tooltip {
    width: 140px;
    font-size: 12px;
    left: -50px;
    top: -70px;
  }
}

@media (max-width: 480px) {
  .pin-tooltip {
    width: 120px;
    font-size: 11px;
    left: -45px;
    top: -65px;
  }

  .map-pin {
    width: 16px;
    height: 16px;
  }
}


/*================== frames of volunteerring ==========================*/
.facilities-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.facilities-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--h6_color);
}

.facilities-intro {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 cards per row on desktop */
  gap: 20px;
}

.facility-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.facility-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.facility-card h3 {
  font-size: 1.2rem;
  margin: 15px 10px 8px;
  color: var(--h6_color);
}

.facility-card p {
  font-size: 0.95rem;
  color: #666;
  padding: 0 10px 15px;
  line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .facility-card img {
    height: 180px;
  }

  .facility-card h3 {
    font-size: 1.1rem;
  }

  .facility-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .facility-card img {
    height: 150px;
  }

  .facility-card h3 {
    font-size: 1rem;
  }

  .facility-card p {
    font-size: 0.85rem;
  }
}

/* Tablet (up to 992px) - 2 cards per row */
@media (max-width: 992px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (up to 576px) - 1 card per row */
@media (max-width: 576px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}