/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* Top Header */
.top-header {
  background-color: #001f3f; /* Blue */
  color: white;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

/* Left Section */
.left-section span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
}

.left-section i {
  margin-right: 6px;
}

/* Right Section */
.right-section a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-size: 16px;
}

.right-section a:hover {
  color: #ddd;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .top-header {
    flex-direction: column;
    text-align: center;
  }

  .left-section,
  .right-section {
    margin-top: 5px;
  }

  .left-section span {
    display: block;
    margin-bottom: 5px;
  }

  .right-section a {
    margin: 0 10px;
  }
}


/* logo and data  */
.header-container {
  display: flex;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
}

.logo img {
  width: 110px;
  height: auto;
  margin-right: 10px;
}

.founder img {
  width: 120px;
  height: 120px;
  margin-right: 10px;
  
}
.trusti img {
  width: 120px;
  height: 120px;
  margin-right: 10px;
}
.institute-info{
    display: block;
    padding-left: 10px;
    justify-content: center;
    text-align: center;
    justify-items: center;
}
.institute-info h1 {
  font-size: 50px;
  color: red;
}

.institute-info h2 {
  font-size: 20px;
  display: flex;
  text-align: center;
  color: #333;
}

.institute-info h3 {
  font-size: 18px;
  font-weight: normal;
  color: blue;
}

.institute-info p {
  font-size: 18px;
  color: blue;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    margin-bottom: 15px;
  }
}


/* navbar  */
.navbar {
  background-color: #002147;
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}


.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px;
  display: block;
}

.nav-links li a:hover {
  color: #ffc107;
}

/* Dropdown styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #004080;
  list-style: none;
  padding: 0;
  z-index: 1000;
  width: 250px;
}

.dropdown-menu li a {
  padding: 10px;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #002147;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: #003366;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Moving images - flicker-free version */
.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateX(100%);
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: white;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }
}
/* left and right div  */
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 30px auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.left-column {
  width: 30%;
  background-color: #e9f0ff;
  padding: 20px;
  border-right: 2px solid #ccc;
}

.right-column {
  width: 70%;
  padding: 20px;
}

h3, h2 {
  margin-bottom: 15px;
  color: #003366;
}

.link-list,
.events-list,
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li,
.quick-links li {
  margin-bottom: 10px;
}

.link-list a,
.quick-links a {
  text-decoration: none;
  background-color: #fff;
  display: block;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #003366;
  transition: background-color 0.3s ease;
}

.link-list a:hover,
.quick-links a:hover {
  background-color: #dce6f7;
}

.events-list li {
  margin-bottom: 15px;
  padding: 10px;
  background: #f0f6ff;
  border-left: 5px solid #003366;
  border-radius: 5px;
}


/* <!-- moving recruiters --> */
.slider-container {
  background-color: #2c3e50;
  padding: 30px 0;
  text-align: center;
}

.slider-container h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 5px;
}

.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slide-track {
  display: flex;
  width: calc(100px * 16); /* 8 images * 2 for duplication */
  animation: scroll 20s linear infinite;
}

.slide {
  height: 150px;
  width: 200px;
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  margin: 0 10px;
}

.slide img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .slide {
    height: 150px;
    width: 150px;
  }
}

@media (max-width: 480px) {
  .slide {
    height: 120px;
    width: 120px;
  }
}

/* our departments */
.ourdept{
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.namesdep{
  justify-content: center;
  color: chocolate;
}
.Department{
  color: white;
}
.cicildep{
  color: white;
  

}
.programs {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
      padding: 0 10px 10px;
    }

    .program {
      width: 300px;
      background-color: #111;
      border-radius: 8px;
      overflow: hidden;
      transition: transform 0.3s;
      border: 2px solid black;
    }

    .program:hover {
      transform: scale(1.03);
    }

    .program img {
      width: 100%;
      height: auto;
      display: block;
    }

    .program p {
      margin: 10px;
      font-size: 16px;
      font-weight: bold;
      text-align: center;
    }

    @media (max-width: 768px) {
      .program {
        width: 100%;
      }
    }

/* contatus and youtube  */
.container {
      display: flex;
      flex-wrap: wrap;
      background-color: #003366;
      justify-content: space-between;
      padding: 30px;
    }

    .contact {
      flex: 1 1 300px;
      padding: 14px;
      width: 300px;
      color: white;
      line-height: 1.5;
    }
    .map {
      flex: 1 1 300px;
      padding: 20px;
      width: 300px;
      color: white;
    }

 
    h2 {
      border-bottom: 2px solid white;
      color: white;
      padding-bottom: 5px;
    }

    .video iframe {
      width: 100%;
      max-width: 200px;
      height: 170px;
      border: none;
    }

    .footer {
      background-color: #29aadd;
      text-align: center;
      padding: 15px;
      font-size: 14px;
    }

    @media (max-width: 768px) {
      .container {
        flex-direction: column;
        align-items: center;
      }

      .contact, .video {
        max-width: 100%;
        padding: 10px;
      }

      .video iframe {
        max-width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
      }
    }

.news-carousel {
  width: 100%;
  max-width: 800px; /* Adjust as needed */
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  width: 100%;
  height: 500px; /* Fixed height for container */
  position: relative;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.image-container {
  width: 95%;
  height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-prev, .carousel-next {
  background: rgba(0, 31, 63, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background: #001f3f;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #001f3f;
  transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .carousel-container {
    height: 300px;
  }
  
  .carousel-prev, .carousel-next {
    width: 35px;
    height: 35px;
  }
}