/* common */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Montserrat", serif;
}

section {
  background-color: #f7f7f7;
}


.top-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust height as needed */
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.swiper-slide img,
.swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images/videos cover the container properly */
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: left;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  min-width: 300px;
  max-width: 600px;
}
.overlay-text h2{
  font-size: 2.25rem;
  font-weight: 800;
  
}
.overlay-text p{
  font-size: 1.5rem;
}

.custom-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: none;
    border: 2px solid #fff;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.custom-button:hover {
    background-color: #1F547A;
    transform: translateY(-2px);
}

/* Navbar on Top of Video */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(255, 255, 255, 0.6); 
}
/* Zoom-in effect for images */
@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* Fade-in effect for overlay text */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Default state for animations */
.swiper-slide img {
  transform: scale(1);
  transition: transform 1.5s ease-in-out;
}

.swiper-slide .overlay-text {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

@media (max-width:1024px) {
  .top-content{
    max-width: 100%;
    height: auto;
  }
}
@media (min-width: 769px) {
  .mobile-section {
    display: none;
  }
}
/* Responsive Design for mobile devices */
@media (max-width: 768px) {
  .overlay-text {
    font-size: 1rem; /* Smaller text for mobile */
    padding: 10px;
    width: 90%; /* Ensure text block isn't too wide */
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for better readability */
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Ensure text is above the image */
    opacity: 1 !important; /* Override opacity */
  }

  .overlay-text h2 {
    font-size: 1.25rem;
  }

  .overlay-text p {
    font-size: 0.875rem;
  }

  .desktop-view {
    display: none;
  }
  .mobile-section {
    display: block;
    background-color: white;
  }

  .top-content h1{
    font-size: 1.75rem;
  }
  .top-content p{
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .overlay-text h2{
    font-size: 1.125rem;
  }
  .overlay-text p{
    font-size: 0.875rem;
  }
  .swiper-button-next, .swiper-button-prev{
    display: none;
  }

}
.top-content {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  padding: 60px;
}

.content {
  max-width: 100%;
  text-align: center;
}

.content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.content h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #2A6C96;
  margin: 10px auto;
  border-radius: 2px;
}

.content p {
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: justify;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  font-weight: 400;
}

.content span {
  font-weight: bold;
  color: #2A6C96;
}

@media (max-width: 768px) {
  .top-content {
    padding: 20px;
  }

  .content h1 {
    margin-top: 50px;
    font-size: 2rem;
    text-align: left;
  }

  .content p {
    font-size: 1rem;
    padding: 0;
    margin-bottom: 50px;
  }
  .content h1::after {
    margin: 0px;
  }
}