


/* infrastructure part*/

#infrastructure {
  padding: 5px 5px;
  margin-top: 5px;
  text-align: center;
  background-color: #eeecec;
}

#infrastructure h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.media-gallery {
  margin-top: 10px;

}

.media-gallery h3 {
  padding-bottom: 4px;
  padding-top: 10px;
  color: #333;
  font-family: "Times New Roman", Times, serif;
  ;
  margin-bottom: 20px;
  font-size: 2em;
}

.videos {
  display: flex;
  margin-bottom: 30px;
  justify-content: center;

}

.images {
  display: flex;
  margin-bottom: 50px;
  margin-top: 80px;
  justify-content: center;

}





.images img {
  align-items: center;
}



.videos h4,
.images h4 {
  color: #007bff;
  margin-bottom: 15px;
  font-size: 1.6em;
}

.video-container {
  display: flex;
  margin: 2px;
  border-radius: 8px;
  height: 400px;
  width: 100%;
  padding-right: 100px;
  overflow: hidden;
  /* Clip content to the border-radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
  /* Smsooth hover effect */
}


.video-container {
  position: relative;
  display: flex;
  justify-content: start;
  align-items: start;
}

.decoration {
  padding-top: 10px;
  padding-bottom: 50px;
  width: 800px;
  border-radius: 20px;
  text-align: center;

}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  width: 80px;
  /* Set a fixed width */
  height: 80px;
  /* Set the same height */
  border-radius: 50%;
  /* Makes it a perfect circle */
  cursor: pointer;
  display: flex;
  /* Aligns arrow icon properly */
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease-in-out;
  font-weight: bold;
  /* Make the arrow more solid */
  line-height: 0;
  /* Helps keep arrow centered */
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.8);
}



.image-container {

  width: 500px;
  height: 300px;
  margin-right: 30px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transfrom 0.3s ease-in-out;
}

.video-container:hover,
.image-container:hover {
  transform: scale(1.05);
}

.styled-video {
  background-color: red;
  text-align: start;
}

.media-gallery .row-2 {
  display: none;
}

.styled-image {
  display: block;
  width: 100%;
  height: auto;
  margin-left: 0;
  margin-bottom: 15px;
  object-fit: cover;
  /* Maintain aspect ratio and cover the container */
  transition: opacity 0.3s ease-in-out;
}

.styled-video:hover,
.styled-image:hover {
  opacity: 0.9;
}

.styled-video {
  pointer-events: auto;
  /* Ensure video is interactive */
}


.caption {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  position: relative;
  /* For potential overlay animations */
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}




/* Responsive Design */
@media (max-width: 768px) {
  .about-section2 {
    flex-direction: column;
    padding: 10px;
  }

  .about-content2 {
    max-width: 100%;
    padding: 10px;
  }

  .about-image2 img {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  
}

@media (max-width: 480px) {
  .about-content2 h2 {
    font-size: 1.5rem;
  }

  .about-content2 p {
    font-size: 1rem;
  }

  
}






/* --- Small Screens (max-width: 768px) --- */
@media (max-width: 768px) {

  /* Navbar adjustments */
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    /* Hide the full navigation */
    flex-direction: column;
    position: absolute;
    top: 50px;
    /* Below the header */
    left: 0;
    background-color: #2c3e50;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    z-index: 10;
    /* Ensure it's on top */
  }

  .nav-links.active {
    display: flex;
    /* Show the navigation when active class is applied (via JavaScript) */
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links a {
    padding: 0.7rem 1rem;
    display: block;
  }

  .menu-toggle {
    display: block;
    /* Show the menu toggle button */
  }

  .top-section {
    display: none;
    /* Optionally hide the top section on smaller screens */
  }

  .decoration {
    width: 350px;
  }

  /* Infrastructure adjustments */
  .videos,
  .images {
    flex-direction: column;
    border-radius: 10px;
    align-items: center;
  }

  .video-container,
  .image-container {
    width: 90%;
    margin: 15px 0;
  }
}

/* --- Extra Small Screens (max-width: 576px) --- */
@media (max-width: 576px) {
  #infrastructure h2 {
    font-size: 2em;
  }

  .media-gallery h3 {
    font-size: 1.8em;
  }

  .videos h4,
  .images h4 {
    font-size: 1.4em;
  }

  .video-container,
  .image-container {
    width: 100%;
  }



@media (max-width: 992px) {
  .media-gallery .row-1 {
    display: none;
  }

  .media-gallery .row-2 {
    display: flex;
  }
}

/* --- Small Screens (max-width: 768px) --- */
@media (max-width: 768px) {

  /* Navbar adjustments */
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    /* Hide the full navigation */
    flex-direction: column;
    position: absolute;
    top: 50px;
    /* Below the header */
    left: 0;
    background-color: #2c3e50;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    z-index: 10;
    /* Ensure it's on top */
  }

  .nav-links.active {
    display: flex;
    /* Show the navigation when active class is applied (via JavaScript) */
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links a {
    padding: 0.7rem 1rem;
    display: block;
  }

  .menu-toggle {
    display: block;
    /* Show the menu toggle button */
  }

  .top-section {
    display: none;
    /* Optionally hide the top section on smaller screens */
  }

  /* Infrastructure adjustments */
  .videos,
  .images {
    flex-direction: column;
    align-items: center;
  }

  .video-container,
  .image-container {
    width: 90%;
    margin: 15px 0;
  }

}



/* --- Extra Small Screens (max-width: 576px) --- */
@media (max-width: 576px) {
  #infrastructure h2 {
    font-size: 2em;
  }

  .media-gallery h3 {
    font-size: 1.8em;
  }

  .videos h4,
  .images h4 {
    font-size: 1.4em;
  }

  .video-container,
  .image-container {
    width: 100%;
  }

  .footer-content {
    padding-top: 30px;
  }

  .social-icons a {
    font-size: 20px;
  }

  .footer-links a {
    font-size: 14px;
    margin: 0 10px;
  }

  .call-icon {
    font-size: 22px;
  }
}

@media (max-width: 344px) {
  .decoration {
    width: 317px;
}
}

@media (max-width: 320px) {
  .decoration {
    width: 300px;
  }
}
}