

: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: #333;
    padding: 20px;
}

.top-banner-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.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: 50vh; /* Responsive height based on viewport */
    background-color: #f4f4f4;
    background-image: url('/images/head_banners/saber-mas-head.jpg');
    background-position: 20% 55%;
    text-shadow: 1px 1px #eaeaea;
    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;
    }
    

    .site-footer{
      margin: 0 !important;
    }
  

/*creating main*/
.custom-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family:  "Josefin Sans", sans-serif;
  font-size: 2.4rem; /* or adjust as needed for responsiveness */
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center; /* optional, for centered titles */
  max-width: 100%;
  margin-bottom: 40px;
  color: #0056b3;
}



.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-right: 5%;
  margin-left: 5%;
  margin-bottom: 20px;
}

.image-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  padding: 2%;
  border-radius: #111;
}

.image-gallery img:hover {
  transform: scale(1.8);
}

.toggle-image {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.toggle-image.visible {
  opacity: 1;
  max-height: 1000px;
  margin-top: 20px;
}



.toggleImagesBtn:hover {
  background-color: #0056b3;
}

.section-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #232323;
  text-align: justify;
  padding:8px;
  max-width: 80%;
  align-content: center;
  justify-content: center;
  margin: 50px auto;
  
}

.p-text{
  font-family: "Roboto", sans-serif;
  font-size: 2.4vh;
}

@media (max-width: 768px) {
  .section-text {
    font-size: 1.1rem;
    line-height: 1;
    color: #232323;
    text-align: justify;
    max-width: 90%;
    margin: 20px auto;
  }

  .image-gallery img:hover {
  transform: none;
}

}


/*svg4 titles*/

.custom-section {
        text-align: center;
        padding: 50px 0;
    }

    .animated-title-svg {
        width: 100%;
        height: auto;
        max-width: 1200px; /* IMPORTANT: Match this to your viewBox width or slightly larger */
    }

    /* Styles for the SVG text within the mask */
    #text-mask text {
        font-family: 'Arial', sans-serif;
        fill: rgb(0, 0, 0);
    }

    /* Styles for the actual visible text */
    .animated-title-svg > text {
        font-family: 'Arial', sans-serif;
        fill: #07b4ff;
    }

    .animated-line {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        animation: draw-line 3s linear forwards infinite alternate;
    }

    .line-1 {
        animation-delay: 0s;
    }

    .line-2 {
        animation-delay: 1s;
    }

    .line-3 {
        animation-delay: 0.5s;
    }

    @keyframes draw-line {
        to {
            stroke-dashoffset: 0;
        }
    }


    