

:root {
  --scroll-speed: 22s; /* Default speed */
}

.container {
  width: 100%;
  overflow: hidden; /* Hide overflowing images */
  white-space: nowrap;
}

.wrapper {
  display: flex;
  width: calc(200%); /* Ensure enough space for duplicate images */
  animation: slide var(--scroll-speed) linear infinite;
}

.wrapper img {
  width: auto; /* Maintain aspect ratio */
  height: 120px; /* Adjust as needed */
  flex-shrink: 0; /* Prevent images from shrinking */
  margin: 0 2px;
  border-radius: 15px 0 15px 0;
}

@keyframes slide {
  from {
      transform: translateX(0%);
  }
  to {
      transform: translateX(-50%); /* Move by half since images are duplicated */
  }
}

.svg-container{
margin-top: 7%;
}

.top-banner {
  background-color: #f0f4f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 450px;
  text-align: center;
  padding: 20px;
  position: relative; /* Make sure the container is a positioning context */
  overflow: hidden;  /*hide the overflowed svg */
}

.top-banner-content {
  z-index: 1; /* Ensure text is above the SVG */
  color: #f0f4f8;
  padding: 20px;
}

.top-banner-content h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #f0f4f8;
}

.top-banner-content p {
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto;
}

.svg-container {
  position: absolute; /* Position the SVG container absolutely */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicks to go through the SVG */
}

#svg-strips {
  width: 100%;
  height: 100%;
}

#rect1, #rect2, #rect3 {
 /* No need to set width/height here, it's done in the HTML */
  opacity: 2; /* Adjust opacity as needed */
}

/*top-banner*/
.top-banner {
  width: 100%;
  max-height: 450px;
  height: 55vh; /* Responsive height based on viewport */
  background-color: #f4f4f4;
  background-image: url('/images/head_banners/conv_med_cov.jpg');
  background-position: 20% 10%;
  text-shadow: 3px 2px #111111;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  color: rgb(17, 17, 17); /* Text color - adjust as needed */
}

.top-banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.0); /* Optional: dark overlay for better text visibility */
  z-index: 1;
}

.top-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.top-banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.top-banner-content p {
  font-size: 1.2rem;
}
/*top-banner-end*/


.svg-background-1{
    margin-top: 45px;
}
.svg-background {
    position: relative;
    overflow: hidden;
    background-color: #f0f8ff;
    padding: 4rem 1rem;
  }
  

  /*main section*/
.my-h2{
  margin-bottom: 5%;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  color: rgb(28, 28, 142);
  
}

.my-p{
  font-family: "Josefin Sans", sans-serif;
  line-height: 1.3;
  font-size: 1.2rem;
}

  .main-gallery-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 5rem;
    flex-wrap: wrap; /* allows wrap on smaller screens */
  }
  
  .gallery-container {
    position: relative;
    width: 680px;
    height: 440px;
    overflow: hidden;
  }
  
  .gallery-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .gallery-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    object-position: 50% 80%; /* X (left–right), Y (top–bottom) */
  }
  
  .gallery-image.active {
    display: block;
  }
  
  .gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1;
  }
  
  .left-btn {
    left: 10px;
  }
  
  .right-btn {
    right: 10px;
  }
  
  .gallery-text {
    max-width: 400px;
  }
  
  @media (max-width: 768px) {
    .main-gallery-section {
      flex-direction: column;
      text-align: center;
    }
  
    .gallery-container {
      width: 100%;
      height: 250px;
    }
  
    .gallery-text {
      max-width: 100%;
    }

    .gallery-btn {
      display: none;
    }
  }
  

  .site-footer{
    margin: 0 !important;
  }
