/* Banner Slideshow Styles */
.banner-con .carousel-inner {
  height: 100%;
}

.banner-con .carousel-item {
  height: 80vh;
}

.banner-con .carousel-indicators {
  bottom: 20px;
}

.banner-con .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
}

.banner-con .carousel-indicators li.active {
  background-color: #fff;
}

/* Fade animation for slides */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Enhanced Image Styling */
.slide-image {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 1s ease;
  /* height: 100vh; */
  margin-top: 30px;
}

.slide-image img {
  transform: scale(2.02);
  transition: transform 1s ease;
  /* width: 100vh; */

}

.carousel-item.active .slide-image img {
  transform: scale(1);
}

/* Custom Navigation Controls */
.custom-control {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.banner-con:hover .custom-control {
  opacity: 1;
}

.custom-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Custom Indicators */
.custom-indicators {
  bottom: 30px;
}

.custom-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.custom-indicators li.active {
  background: #fff;
  transform: scale(1.2);
  border-color: #007bff;
}

/* Animation Effects */
.carousel-item {
  transition: transform 0.8s ease, opacity 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .slide-title {
    font-size: 2.5rem;
  }

  .slide-description {
    font-size: 1rem;
  }

  .custom-indicators {
    bottom: 20px;
  }
}

/* Enhanced Navigation Buttons */
.custom-nav-button {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button-circle {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-nav-button {
    width: 40px;
    height: 40px;
  }

  .nav-button-circle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .custom-nav-button {
    width: 36px;
    height: 36px;
  }

  .nav-button-circle {
    width: 36px;
    height: 36px;
  }
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: #e6f3f5;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button span {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-wrapper {
  transform: translate(3px, -3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-button {
    padding: 10px 20px;
  }

  .cta-button span {
    font-size: 1rem;
  }
}

.responsive-img {
  width: 100%;
  /* Ensures the image fits the container */
  height: auto;
  /* Maintains aspect ratio */
  object-fit: cover;
  /* Ensures the image fills its space properly */
  max-width: 100%;
  /* Prevents image overflow */
  border-radius: 50px;
}

@media (max-width: 768px) {
  .responsive-img {
    /* object-fit: contain; */
    /* Ensures the whole image is visible on smaller screens */

      border-radius: 20px;
  }
}

/* Enhanced Carousel Indicators */
.carousel-indicators.custom-indicators {
  bottom: 40px;
  gap: 15px;
}

.carousel-indicators.custom-indicators li {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.carousel-indicators.custom-indicators li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transition: left 0.6s ease;
}

.carousel-indicators.custom-indicators li:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scaleX(1.2);
}

.carousel-indicators.custom-indicators li.active {
  background-color: #e6f3f5;
  width: 40px;
  transform: scaleX(1);
  animation: indicator-glow 2s infinite;
}

.carousel-indicators.custom-indicators li.active::before {
  left: 100%;
}


@keyframes indicator-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 243, 245, 0.4);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(230, 243, 245, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 243, 245, 0.4);
  }
}

@media (max-width: 768px) {
  .carousel-indicators.custom-indicators {
    bottom: 20px;
    gap: 10px;
  }

  .carousel-indicators.custom-indicators li {
    width: 20px;
    height: 3px;
  }

  .carousel-indicators.custom-indicators li.active {
    width: 25px;
  }
}

/* Bottom-aligned Compact Controls */
.custom-nav-button {
  width: 40px;
  height: 40px;
  bottom: 30vh;
  top: auto;
  transform: none;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-button-circle {
  width: 40px;
  height: 40px;
  /* background: rgba(230, 243, 245, 0.1); */
  background: #0f84af62;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 243, 245, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev.custom-nav-button {
  left: 20px;
}

.carousel-control-next.custom-nav-button {
  right: 20px;
}

.custom-nav-button svg {
  width: 18px;
  height: 18px;
  stroke: #e6f3f5;
  stroke-width: 1.5;
}

/* Hover Effects */
.custom-nav-button:hover .nav-button-circle {
  background: rgba(230, 243, 245, 0.2);
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.custom-nav-button:active .nav-button-circle {
  transform: scale(0.95);
}

/* Position Animation */
.custom-nav-button {
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.banner-con:hover .custom-nav-button {
  transform: translateY(0);
}
























/* Responsive Adjustments */
@media (max-width: 768px) {
  .custom-nav-button {
    width: 36px;
    height: 36px;
    bottom: 25px;
  }

  .nav-button-circle {
    width: 36px;
    height: 36px;
  }

  .custom-nav-button svg {
    width: 16px;
    height: 16px;
  }

  .carousel-control-prev.custom-nav-button {
    left: 15px;
  }







  .carousel-inner {
    touch-action: pan-y;
  }
  .carousel-inner img {
    user-select: none;
  }
.nav-button-circle {
    /* make it glassy and dark */
    background: rgba(0, 0, 0, 0.685);
  }


.carousel-control-prev.custom-nav-button,
.carousel-control-next.custom-nav-button {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }


  .carousel-control-next.custom-nav-button {
    right: 15px;
  }

  .banner-title {
    margin-top: 50px;
  }

  .slide-image {
    border-radius: 20px;
  }


  .formation-title{
    font-size: 10px;
  }

}

@media (max-width: 480px) {
  .custom-nav-button {
    width: 32px;
    height: 32px;
    bottom: 20px;
  }

  .nav-button-circle {
    width: 32px;
    height: 32px;
  }

  .custom-nav-button svg {
    width: 14px;
    height: 14px;
  }

  .formation-title{
  font-size: 30px !important;
}
}



/* Responsive Adjustments */
@media only screen and (max-width: 1900px) {

  .banner-details {
    margin-left: 100px;
  }

  /* .slide-image{
    border-radius: 100px;
  } */

  .banner-con{
    width: 100%;
  }

  /* .rtl-img {
    margin-left: 100px;
  } */
}


/* Responsive Adjustments */
@media  (max-width: 768px) {

  .banner-details {
    margin-left: 0px;
  }
}



@media only screen and (max-width: 1800px) {
  .banner-details .doctor-img {
    margin-top: 200px;
  }
}



@media  (max-width: 575px) {

  .client-review {
      display: none !important;
    }
}

















/* Diploma badge styling */
.diploma-text {
  background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-left: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.diploma-text::before {
  content: '🎓';
  margin-right: 8px;
  font-size: 1.2em;
}

.diploma-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #207cca 0%, #2989d8 100%);
}

/* Make the banner buttons container flex */
.banner-btn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .banner-btn {
    flex-direction: column;
    align-items: flex-start;
  }

  .diploma-text {
    margin-left: 0;
    margin-top: 10px;
    font-size: 0.85em;
    padding: 6px 12px;
  }
}

/* Animation for the badge */
@keyframes badgeGlow {
  0% {
    box-shadow: 0 0 5px rgba(32, 124, 202, 0.5);
  }

  50% {
    box-shadow: 0 0 15px rgba(32, 124, 202, 0.8);
  }

  100% {
    box-shadow: 0 0 5px rgba(32, 124, 202, 0.5);
  }
}

.diploma-text {
  animation: badgeGlow 2s infinite;
}


















