/* ------------------- Carousel ------------------- */
.carousel-item img {
  height: 180px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .carousel-item img {
    object-position: center;
    object-fit: fill;
    height: 81vh;
  }
}



.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  flex: 0 0 100%;
  padding: 10px;
}

.carousel-card .card {
  box-shadow: 4px 4px 10.9px 0 #0000001a;
  border-radius: 0 0 80px 0;
  height: 250px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.container-xxl {
  display: flex;
  flex-direction: column;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.course-tag {
  font-size: 0.875rem;
}

.carousel-card .card-img img {
  height: 40px;
  width: 40px;
}

.carousel-card .card-title {
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  height: 64px;
  margin-bottom: .5rem;
  font-size: 18px;
  color: rgb(7, 7, 86);
}

.enquary {
  margin-bottom: 20px;
  margin-top: 10px;
  background: #0095ff46;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.enquary h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}


.enquary-form label {
  font-weight: bold;
  margin: 8px 0 0;
  display: block;
  color: #444;
}

.enquary-form input,
.enquary-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.enquary-form input:focus,
.enquary-form select:focus {
  border-color: #007bff;
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

.btn-submit {
  width: 100%;
  background: #007bff;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #0056b3;
}

.container-carousel {
  width: 95% !important;
  max-width: 95% !important;
  margin: auto;
}

/* ✅ Responsive for carousel */
@media (min-width: 576px) {
  .carousel-card {
    flex: 0 0 50%;
  }

}

@media (min-width: 992px) {
  .carousel-card {
    flex: 0 0 25%;
  }


}


/* ------------------- Tabs ------------------- */
.nav {
  background-color: #007bff;
}

.custom-tabs .nav-link {
  font-weight: 700;
  border-radius: 20px 20px 0 0;
  background: #007bff;
  color: white;
  margin: 0 10px;
  padding: 8px 15px;
  position: relative;
  overflow: visible;
}

.custom-tabs .nav-link.active {
  background: white;
  color: #333;
  border: 2px solid #007bff;
  border-bottom: none;
}

.custom-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 30px;
  background: white;
  border-radius: 0 0 50% 50%;
  z-index: -1;
}

.main-section {
  border-bottom: 0 solid var(--white);
  width: 100%;
  justify-content: center;
  background: #2684D6;
  gap: 30px;
  align-items: center;
  height: 40px;
  display: flex;
  overflow: hidden;
  padding: 0;
  width: 100%;
  border-radius: 0 10px 0 0;
  background-color: rgb(26 123 206);
  position: relative;
}

.main-section ul {
  display: flex;
}

.individual {
  display: inline-block;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(.68, -.55, .265, 1.55);
  background-color: var(--white);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  left: 988.219px;
  width: 247.094px;
}


nav.home-primary-tabs.home-bg-tab {
  overflow: hidden;
  position: relative;
  padding: 0;
  width: 100%;
  border-radius: 0 10px 0 0;
  background-color: rgb(26 123 206);
  position: relative;
}

.home-bg-tab ul.nav.nav-tabs {
  background: none;
  overflow: hidden;
}

.home-primary-tabs .nav-tabs {
  border-bottom: 0 solid var(--white);
  width: 100%;
  justify-content: center;
  background: #2684D6;
}

.nav-tabs {
  --bs-nav-tabs-border-width: var(--bs-border-width);
  --bs-nav-tabs-border-color: var(--bs-border-color);
  --bs-nav-tabs-border-radius: var(--bs-border-radius);
  --bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);
  --bs-nav-tabs-link-active-color: var(--bs-emphasis-color);
  --bs-nav-tabs-link-active-bg: var(--bs-body-bg);
  --bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);
  border-bottom: var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color);
}

.nav {
  --bs-nav-link-padding-x: 1rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-font-weight: ;
  --bs-nav-link-color: var(--bs-link-color);
  --bs-nav-link-hover-color: var(--bs-link-hover-color);
  --bs-nav-link-disabled-color: var(--bs-secondary-color);
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.hori-selector {
  left: 988.219px;
  width: 247.094px;
  display: inline-block;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(.68, -.55, .265, 1.55);
  background-color: var(--white);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}



nav.home-primary-tabs.home-bg-tab .nav-link.active {

  font-weight: 1000;
  font-size: 20px;
  background: none;
  padding-top: 7px;
}

.primary-tabs-section {
  height: 45px;
}

nav.home-primary-tabs.home-bg-tab .nav-link {
  position: relative;
}

.home-primary-tabs .nav-link.active {
  background-color: var(--white);
  border-radius: .625rem .625rem 0 0;
  position: relative;
  color: var(--font-color);
  margin-bottom: -1px;
}

nav.home-primary-tabs.home-bg-tab .nav-link {
  font-weight: 700;
  font-size: 20px;
  position: relative;
}

.home-primary-tabs .nav-link {
  font-size: 30px;
  color: var(--white);
  padding: .5rem 2rem;
  border: 0;
  margin-bottom: 0;
}

.tab-content {
  padding-top: 20px;
  border-radius: 0 0 10px 10px;
  background: white;
  margin-top: -2px;
}

@media (min-width: 768px) {
  .custom-tabs .nav-link {
    font-size: 16px;
    padding: 10px 30px;
  }

  .enquary {
    width: 385px;

  }
}


/* ------------------- Box Find ------------------- */
.box-find {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 20px;
  background-color: #5997d85e;
  text-align: center;
}

.box-find .main-text-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.box-find .text-area h1 {
  font-weight: 400;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .box-find .main-text-img {
    flex-direction: row;
    text-align: left;
    gap: 30px;
  }
}


/* ------------------- Centers Section ------------------- */
.centers {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 40px;
  padding: 20px;
}

.center-places {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.center-places div {
  background-color: #00ff081f;
  border-radius: 10px;
  border: 0.5px solid white;
  text-align: center;
  box-shadow: 4px 4px 10.9px 0 #cee3ec42;
  height: 120px;
  width: 130px;
  max-width: 600px;
}

.basopatti-one {
  padding-top: 15px;
}

.umgaon-one {
  padding-top: 15px;
}

.saharghat-one {
  padding-top: 15px;
}

.center-places h5 {
  font-size: 0.8em;
}

@media (min-width: 768px) {
  .container-xxl {
    flex-direction: row;
  }

  .enquary {
    margin-bottom: 0px;
    margin-left: 10px;
    height: 79vh;
  }

  .centers {
    flex-direction: row;
    align-items: center;
    height: 250px;
  }

  .center-places {
    flex-direction: row;
    justify-content: center;
    gap: 25px;
  }

  .text-area {
    padding-left: 125px;
  }
}

/* ------------------- Grid Buttons ------------------- */
.d-grid {
  display: grid;
  gap: 6px;
}

.d-grid button {
  width: 80px;
  font-size: 15px;
  border-radius: 55px;
}



/* ------------------- Carousel Indicators ------------------- */
.carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #007bff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #ff5733;
  opacity: 1;
  transform: scale(1.2);
}

.success-story {
  height: 500px;
  margin: 50px auto;
  animation: floatUp 2s ease-in-out;
}

@keyframes floatUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.swiper {
  padding-bottom: 50px;
}

.swiper-slide {
  height: 200px;
  background: #ffffff;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  border-radius: 10px;
}

.swiper-pagination-bullet {
  background: #007bff;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #0056b3;
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
  font-weight: bold;
}


/* Hiding navigation on smaller screens to prevent clutter */
@media (max-width: 767.98px) {

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (min-width: 768px) {
  .d-grid {
    gap: 45px;
  }

  .widget-row-two {
    height: 100px;
  }

  .d-grid button {
    margin-left: 20px;
    width: 80px;
    font-size: 12px;
  }
}

.first-slide {
  flex-direction: column;
  /* This will stack the image and text vertically */
  padding: 20px;
  text-align: center;
  /* Center the text */
}

.second-slide {
  flex-direction: column;
  /* This will stack the image and text vertically */
  padding: 30px;
  text-align: center;
  /* Center the text */
}

.first-slide .slide-image {
  width: 100px;
  object-fit: cover;
  height: 100px;
  margin-bottom: 20px;
  /* Add some space below the image */
  border-radius: 10px;
}

.second-slide .slide-image {
  width: 150px;
  object-fit: cover;
  height: 180px;
  margin-bottom: 40px;
  border-radius: 10px;
}

.first-slide .slide-text {
  margin: 0;
  font-size: 16px;
}

.second-slide .slide-text {
  margin: 0;
  font-size: 16px;
}

.swiper-slide img {

  animation: zoom 6s infinite alternate ease-in-out;
  /* 6s = speed of zoom */
}

@keyframes zoom {
  from {
    transform: scale(1);
    /* normal */
  }

  to {
    transform: scale(1.3);
    /* zoom 30% */
  }
}