@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

/* About Section */
.about-section {
  padding: 150px 0 100px 20%; /* Adjust padding-left to shift section right */
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* About Description */
.about-description {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2vw; /* Use vw to scale text dynamically */
  color: #000000;
  margin-top: 0;
  padding-left: 15%; /* Shift buttons to the right */
}

/* About Buttons */
.about-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding-left: 20%; /* Shift buttons to the right */
}

.about-buttons .btn {
  width: auto;
  height: 45px;
  border: 1px solid #001F62;
  border-radius: 45px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  font-size: 1.2vw; /* Use vw to scale button text dynamically */
  font-weight: 510;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.about-buttons .btn-primary.btn-appointment {
  width: auto;
}

.about-buttons .btn i {
  margin-right: 10px;
  font-size: 1.8vw; /* Use vw to scale icons */
  color: #001F62;
}

.about-buttons .btn:hover {
  background: #1c3694;
  color: white;
  font-size: 1.1em; /* Hover effect */
}

.about-buttons .btn-primary:hover i {
  color: white;
}

/* About Image */
.about-image img {
  width: 100%;
  max-width: 40vw; /* Use vw to ensure the image scales with screen size */
  margin-left: 80px; /* Adjust margin-left to move the image to the right */
  margin-top: -45px;
}

/* Image Section */
.image-section {
  margin-top: 40px;
  padding-left: 15%; /* Shift the image section to the right */
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img.main-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.image-wrapper img.overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-wrapper:hover img.overlay-img {
  opacity: 1;
}

.image-wrapper:hover img.main-img {
  opacity: 0;
}

/* Specific styles for the three images */
.image-wrapper img {
  max-width: 18vw; /* Scale images according to screen width */
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(192, 192, 192, 0.4);
  border-top: 1px solid rgba(192, 192, 192, 0.4);
  border-right: none;
  border-bottom: none;
  transition: transform 0.3s ease-in-out;
}

.image-wrapper img:hover {
  transform: scale(1.05);
}

/* Responsive Adjustments for Tablet and Mobile */
@media (max-width: 991.98px) {
  .about-section {
    padding: 100px 0 80px 0;
    min-height: 100%;
  }

  .about-title {
    font-size: 1.5vw; /* Adjust font size for medium screens */
  }

  .about-description {
    font-size: 1.6vw; /* Adjust font size for medium screens */
  }

  .about-buttons {
    flex-direction: column;
    align-items: center;
    gap: auto;
    padding-left: 0; /* Reset padding for smaller screens */
  }

  .about-buttons .btn,
  .about-buttons .btn-primary.btn-appointment {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 1.5vw; /* Adjust button text size */
  }

  .about-image img {
    max-width: 50vw; /* Scale image down for medium screens */
    margin-left: auto;
  }

  .image-wrapper img {
    max-width: 20vw; /* Adjust image size for medium screens */
  }
}

@media (max-width: 767.98px) {
  .about-section {
    padding: 50px 0; /* Reduce padding for mobile screens */
    padding-left: 0; /* Reset padding for mobile */
  }

  .about-description {
    font-size: 3.5vw; /* Adjust font size for mobile */
  }

  .about-buttons {
    flex-direction: column;
    align-items: center;
    gap: auto;
  }

  .about-buttons .btn,
  .about-buttons .btn-primary.btn-appointment {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 3.2vw; /* Adjust button size for mobile */
  }

  .about-image img {
    max-width: 80vw; /* Make image larger for mobile */
    margin: 0 auto; /* Center the image */
    display: block; /* Ensure it's centered */
  }

  .image-section {
    margin-top: auto !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 0; /* Reset padding for mobile */
  }

  .image-section .col-sm-4 {
    padding: 0 5px;
    width: 33.33%;
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }

  .image-wrapper {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -23px;
  }

  .image-wrapper img {
    max-width: 30vw; /* Adjust image size for mobile */
    height: auto;
    margin-bottom: auto;
    margin-top: -4px;
  }

  .image-wrapper .title {
    font-size: 2.5vw; /* Adjust title font size for mobile */
    font-weight: bold;
    color: #ff0000;
    margin: 5px 0 2px;
    text-transform: uppercase;
  }

  .image-wrapper .value {
    font-size: 2.2vw; /* Adjust value font size for mobile */
    font-weight: bold;
    margin: 0;
    line-height: 1;
  }
}

@media (max-width: 560px) {
  .about-section {
    padding: 60px 0; /* Reduce padding for mobile screens */
    padding-left: 0; /* Reset padding for mobile */
  }

  .about-description {
    margin-top: 10px;
    font-size: 3.5vw; /* Adjust font size for mobile */
    margin-right: 30px;
  }

  .about-buttons {
    flex-direction: column;
    align-items: center;
    gap: auto;
  }

  .about-buttons .btn,
  .about-buttons .btn-primary.btn-appointment {
    width: 100%;
    max-width: 100%;
    text-align: center;
    height: 50%;
    font-size: 3.2vw; /* Adjust button size for mobile */
    border: 1px solid #001F62;
  }

  .about-buttons .btn i {
    margin-right: 10px;
    font-size: 3.8vw; /* Use vw to scale icons */
    color: #001F62;
  }

  .about-image img {
    max-width: 70vw; /* Make image larger for mobile */
    margin: 0 auto; /* Center the image */
    display: block; /* Ensure it's centered */
  }

  .image-section {
    margin-top: auto !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 0; /* Reset padding for mobile */
  }

  .image-section .col-sm-4 {
    padding: 0 5px;
    width: 33.33%;
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }

  .image-wrapper {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -23px;
  }

  .image-wrapper img {
    max-width: 30vw; /* Adjust image size for mobile */
    height: auto;
    margin-bottom: auto;
    margin-top: -4px;
  }

  .image-wrapper .title {
    font-size: 2.5vw; /* Adjust title font size for mobile */
    font-weight: bold;
    color: #ff0000;
    margin: 5px 0 2px;
    text-transform: uppercase;
  }

  .image-wrapper .value {
    font-size: 2.2vw; /* Adjust value font size for mobile */
    font-weight: bold;
    margin: 0;
    line-height: 1;
  }
}


@media (min-width: 1920px) and (max-width: 2559px) {
  .about-description {
    font-size: 1.4vw; /* Slightly smaller font size to ensure the text fits in 3 lines */
    line-height: 1.9; /* Adjusted line-height for better spacing */
    max-width: 100%; /* Constrain width to make sure the text wraps into 3 lines */
    padding-left: 20%;
  }

  /* About Buttons */
  .about-buttons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    padding-left: 20%; /* Shift buttons to the right */
  }

  .about-buttons .btn {
    font-size: 1.1vw; /* Increase button text size */
    min-width: 350px;
    padding-left: 5%;
    min-height: 60px;
  }

  .about-buttons .btn i {
    font-size: 1.5vw; /* Increase icon size */
  }

  .about-buttons .btn:hover {
    background: #1c3694;
    color: white;
    font-size: 1.4em !important; /* Hover effect */
  }
  
  .about-buttons .btn-primary:hover i {
    color: white;
  }

  /* Increase image size */
  .image-wrapper img {
    margin-top: 10px;
    max-width: 22vw; /* Increase image size for 1920px screen */
    margin-left: 10%;
  }

  .image-wrapper:hover img {
    transform: scale(1.07); /* Slightly larger scale on hover */
  }
}
