
@import url('https://fonts.cdnfonts.com/css/copperplate-gothic-std');
@import url('https://fonts.cdnfonts.com/css/noto-serif-tangut-2');

.leave-review {
  margin-top: 2rem;
  text-align: center;
}

.leave-review a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #005eb8;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.leave-review a:hover {
  background-color: #004080;
}


@media(min-width: 1050px) {

.main {
    position: relative;
    z-index: 1;
    text-align: left;
    
    }

.bgimg {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(40%);
   
}


.bgimgm {
    display:none;
   
}
 
.maintext {
    position: absolute;
    top: 30%;
    left: 10%; /* Adjust this value to move the text horizontally */
    
    color: white;
    font-family: 'Copperplate Gothic', sans-serif;
    text-align: left;
}

.maintext h1 {
    font-size: 3vw; /* Adjust the font size as needed */
}

.maintext p {
    font-size: 1.5vw; /* Adjust the font size as needed */
}

.maintext a {

    background-color: #ffffff; /* Button background color */
    color: #000000; /* Button text color */
    padding: 1% 2%;
    text-decoration: none;
    font-size: 1vw; /* Adjust the font size as needed */
    border-radius: 50px;
    margin-top: 10px;
    
}

.maintext a:hover{
   
    cursor:pointer;
    
}

.maintext a:hover {
  /* border-bottom: 1px solid rgb(28, 121, 184); */
  color: rgb(28, 121, 184);
  transition: all 1s ease;
  -webkit-transition: all 1s ease;
}

/* Animated Bottom Line */
.maintext a:before, .maintext li a:after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -5px;
  background: rgb(13, 26, 38);
}

.maintext a:before {
  left: 1.5%;
  transition: 0.5s;
}

.maintext a:after {
  background: rgb(13, 26, 38);
  right: 0;
  /* transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); */
}

.maintext a:hover:before {
  background: rgb(13, 26, 38);
  width: 9.8%;
  transition: width 0.5s cubic-bezier((0.22, 0.61, 0.36, 1));
}

.maintext a:hover:after {
  background: transparent;
  width: 8.5%;
  /* transition: 0s; */
}


.double {
    display: flex;
    flex-wrap: wrap;
    padding: 60px 40px;
    
    margin: 0 auto;
    box-sizing: border-box;
}

/* 50% Split */
.text, .image-container {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding: 20px;
    text-align:center;
}

/* Text Styling */
.text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111;
}

.text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #333;
}

/* Button Styling */
.service-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-links a {
    display: inline-block;
    padding: 16px 24px;
    font-size: 1rem;
    text-align: center;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.service-links a:hover {
    background-color: #000;
    color: #fff;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.image-container img {
    max-width: 100%;
    max-height: 500px; /* control vertical size */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.testimonials {
  padding: 3rem 1rem;

  text-align: center;
  align-items: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.testimonial {

  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.testimonial p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  align-items: center;
}

.testimonial h4 {
  font-weight: bold;
  color: #333;
}



.esa-safe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 2rem auto;
  gap: 1.5rem;
  text-align: center;
}

.esa-logo {
  max-width: 180px;
  height: auto;
  border-radius: 8px;
}

.esa-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.esa-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.esa-link {
  color: #005eb8;
  font-weight: bold;
  text-decoration: none;
}

.esa-link:hover {
  text-decoration: underline;
}


.carousel {
  position: relative;
  max-width: 80%;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  height: 900px; /* fixed height for better layout */
}

.carousel .slides {
  display: flex;
  transition: transform 1s ease;
  height: 100%;
}

.carousel img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover; /* fills the container, cropping if necessary */
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }


}



@media(max-width: 1050px) {
    
    body{
        font-family: 'Noto Serif Tangut', sans-serif;
        
    }
    
      .esa-safe {
        flex-direction: column;
        text-align: center;
      }
    
    .main {
        position: relative;
        z-index: 1;
        text-align: left;
    }
    
    .carousel {
      position: relative;
      max-width: 80%;
      margin: 2rem auto;
      overflow: hidden;
      max-height:1200px;
      border-radius: 12px;
    }
    
    .carousel .slides {
      display: flex;
      transition: transform 1s ease;
    }
    
    .carousel img {
      width: 100%;
      flex-shrink: 0;
      object-fit: cover;
    }
    
    .carousel button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-size: 2rem;
    }
    
    .carousel .prev { left: 10px; }
    .carousel .next { right: 10px; }

    
    .bgimgm {
        
        
        width: 100%;
      
        display: block;
        filter: brightness(40%);
   
    }
    
    .bgimg {
        display:none;
    }
    
    .maintext {
        position: absolute;
        top: 30%;
        left: 10%;
        color: white;
        width:90%;
       
        text-align: left;
    }
    
    .maintext h1 {
        font-size: 5.5vw; /* Adjust the font size as needed */
        font-family: 'Noto Serif Tangut', sans-serif;
    }
    
    .maintext p {
        font-size: 3.5vw; /* Adjust the font size as needed */
        font-family: 'Noto Serif Tangut', sans-serif;
    }
    
    .maintext a {
        font-family: 'Noto Serif Tangut', sans-serif;
        display: inline-block;
        background-color: #ffffff; /* Button background color */
        color: #000000; /* Button text color */
        padding: 3% 8%;
        text-decoration: none;
        font-size: 2.5vw; /* Adjust the font size as needed */
        border-radius: 50px;
        margin-top: 10px;
        border: 2px solid black;
    }
    
    .maintext a:hover{
   
    cursor:pointer;
    
}

.maintext a:hover {
  /* border-bottom: 1px solid rgb(28, 121, 184); */
  color: rgb(28, 121, 184);
  transition: all 1s ease;
  -webkit-transition: all 1s ease;
}



.maintext a:before {
  left: 1%;
  transition: 0.5s;
}

.maintext a:after {
  background: rgb(13, 26, 38);
  right: 0;
  /* transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); */
}

.maintext a:hover:before {
  background: rgb(13, 26, 38);
  width: 8.5%;
  transition: width 0.5s cubic-bezier((0.22, 0.61, 0.36, 1));
}

.maintext a:hover:after {
  background: transparent;
  width: 8.5%;
  /* transition: 0s; */
}
   

    
    
 .double {
        flex-direction: column;
        padding: 40px 20px;
    }

    .text, .image-container {
        flex: 0 0 100%;
        padding: 10px 0;
        text-align: center;
    }

    .text h2 {
        font-size: 2rem;
    }

    .text p {
        font-size: 1rem;
    }

    .service-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .service-links a {
        display: inline-block;
        padding: 16px 24px;
        font-size: 1rem;
        text-align: center;
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
        border-radius: 6px;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .image-container img {
        max-width: 100%;
        max-height: 500px; /* control vertical size */
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        display: block;
    }
    
    
    .testimonials {
      padding: 3rem 1rem;
     
      text-align: center;
    }
    
    .testimonials h2 {
      font-size: 2rem;
      margin-bottom: 2rem;
    }
    
    .testimonial-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .testimonial {

      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .testimonial:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    
    .testimonial p {
      font-size: 1rem;
      line-height: 1.5;
      margin-bottom: 1rem;
    }
    
    .testimonial h4 {
      font-weight: bold;
      color: #333;
    }

    
    
}


