#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
  /* Faster transition */
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.3s ease-out, visibility 0s linear 0s;
  /* No delay on visibility */
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 99;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-weight: 200;
  font-family: "Montserrat", sans-serif;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
}

.display-4,
.display-5,
.display-6 {
  font-weight: 600;
}

.wow,
.animated {
  animation-duration: 2s !important;
}

.form-control::placeholder {
  color: white;
  opacity: 1;
}

.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square {
  width: 32px;
  height: 32px;
}

.btn-sm-square {
  width: 34px;
  height: 34px;
}

.btn-md-square {
  width: 44px;
  height: 44px;
}

.btn-lg-square {
  width: 56px;
  height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn.btn-primary {
  border: 0;
  color: white;
  background-color: #464196;
}

.btn.btn-primary:hover {
  color: white;
  background-color: black;
}

.btn-border-radius {
  border-radius: 25% 10%;
}

.img-border-radius {
  border-radius: 50% 20% / 10% 40%;
}

.title-border-radius {
  border-radius: 10% 30%;
}

.topbar .top-info {
  font-size: medium;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.topbar .top-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar .top-link a {
  margin-right: 10px;
}

.topbar .top-link a:hover {
  background: var(--bs-secondary) !important;
}

.topbar .top-link a:hover i {
  color: #464196;
}

/* topbar on white background: subtle shadow and darker navbar divider */
.topbar { background: #fff; box-shadow: 0 6px 18px rgba(8,24,48,0.06); }

.navbar { border-bottom: 1px solid rgba(17,24,39,0.04); }

.navbar .navbar-nav .nav-link {
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
  color: #464196;
}

.navbar .dropdown-toggle::after {
  border: 0;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  vertical-align: middle;
  margin-left: 8px;
}

@media (min-width: 1200px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    font-weight: 400;
    font-family: "Fredoka", sans-serif;
    transform: rotateX(-75deg);
    transform-origin: 0 0;
    border: 0;
    transition: 0.5s;
    opacity: 0;
  }
}

.dropdown .dropdown-menu a:hover {
  background: var(--bs-secondary);
  color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  background: var(--bs-light) !important;
  border-radius: 10px !important;
  transition: 0.5s;
  opacity: 1;
}

#searchModal .modal-content {
  background: rgba(255, 255, 255, 0.8);
}

/* .hero-header,
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

.hero-header video {
    z-index: 0;
}

.hero-header .z-1 {
    z-index: 1;
} */

.hero-header {
  height: 100vh;
  position: relative;
}

.hero-header video {
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  /* prevent accidental clicks */
}

.hero-header .z-1 {
  z-index: 0;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
  z-index: -1;
}

.why-choose {
  height: 100vh;
  position: relative;
}

@media screen and (max-width: 768px) {
  .why-choose {
    height: 50vh;
  }

  .hero-header {
    height: 30vh;
  }

  .video-heading-low {
    font-size: 1rem;
  }

  .video-heading-hight {
    font-size: 1.4rem;
  }

  .video-btn {
    font-size: 0.8rem;
  }

  .custom-btn {
    margin-top: 1px;
    margin-inline: 10px;
  }
}

.why-choose video {
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  /* prevent accidental clicks */
}

.why-choose .z-1 {
  z-index: 0;
}

.why-choose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0, 0, 0);
  z-index: -1;
}

.achieve {
  height: 100vh;
  position: relative;
}

.achieve video {
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  /* prevent accidental clicks */
}

.achieve .z-1 {
  z-index: 0;
}

.achieve::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0, 0, 0);
  z-index: -1;
}

.video {
  position: relative;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1)
    ),
    url(../img/about.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
}

.video .btn-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  box-sizing: content-box;
  display: block;
  width: 32px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  outline: 0;
  padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 100px;
  height: 100px;
  background: var(--bs-secondary);
  border-radius: 50%;
  animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 100px;
  height: 100px;
  background: var(--bs-primary);
  border-radius: 50%;
  transition: all 200ms;
}

.video .btn-play img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  width: auto;
  height: auto;
}

.video .btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 32px solid var(--bs-white);
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

#videoModal {
  z-index: 99999;
}

#videoModal .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

#videoModal .modal-body {
  position: relative;
  padding: 0;
}

#videoModal .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #fff;
  background: #000;
  opacity: 1;
}

.video.border {
  border-radius: 50% 20% / 10% 40%;
}

.about {
  background: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url(../img/background.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* .service {
    background: linear-gradient(rgba(255, 72, 128, 0.05), rgba(255, 72, 128, 0.2))
} */

.service .service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  border-radius: 50% 20% / 10% 40%;
  transition: 0.5s;
  position: relative;
}

.service-content::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  right: auto;
  background: transparent;
  border-radius: 50% 20% / 10% 40%;
  transition: 0.5s;
}

.service-item:hover {
  border: 1px solid var(--bs-secondary) !important;
}

.service-item:hover .service-content::after {
  background: #464196;
  /* background: var(--bs-secondary); */
  width: 100%;
  opacity: 1;
  z-index: 1;
}

.service-item .service-content .service-content-inner {
  position: relative;
  z-index: 2;
}

.service-item .service-content-inner i,
.service-item .service-content-inner p,
.service-item .service-content-inner a.h4 {
  transition: 0.5s;
}

.service-item:hover .service-content-inner i,
.service-item:hover .service-content-inner p {
  color: var(--bs-white) !important;
}

.service-item:hover .service-content-inner a.h4 {
  /* color: var(--bs-primary) */
  color: var(--bs-white) !important;
}

.service-item:hover .service-content-inner a.btn-primary {
  background: var(--bs-white) !important;
  /* color: var(--bs-primary) !important */
  color: #000 !important;
}

.service-item .service-content-inner a.btn-primary:hover {
  background: #000 !important;
  color: var(--bs-white) !important;
}

/* .program {
    background: linear-gradient(rgba(255, 72, 128, 0.1), rgba(255, 72, 128, 0.1))
} */

.program .program-item .program-img .program-rate {
  background: #464196 !important;
  position: absolute;
  width: 100px;
  top: -20px;
  left: 50%;
  margin-left: -50px;
  border-radius: 10% / 50%;
}

.program .program-item .program-text {
  padding-top: 150px;
  margin-top: -125px;
}

.program .program-item .program-img img,
.program .program-item .program-teacher img,
.program .program-item:hover .program-text-inner a.h4 {
  transition: 0.5s;
}

.program .program-item:hover .program-img img,
.program .program-item:hover .program-teacher img {
  transform: scale(1.2);
}

.program .program-item:hover .program-text-inner a.h4 {
  /* color: var(--bs-primary) !important */
  color: #000 !important;
}

.events .events-item {
  width: 100%;
  height: 100%;
  border-radius: 30%;
  position: relative;
}

.events .events-item .events-inner .events-rate {
  position: absolute;
  width: 120px;
  top: -20px;
  left: 50%;
  margin-left: -60px;
  border-radius: 10% / 50%;
}

.events .events-item .events-inner .events-img .event-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.5s;
  z-index: 1;
  opacity: 0;
}

.events .events-item .events-inner .events-img:hover .event-overlay {
  opacity: 1;
}

.events .events-item .events-img::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  bottom: auto;
  background: rgba(77, 101, 249, 0.7);
  border-radius: 10px;
  transition: 0.5s;
}

.events .events-item:hover .events-img::after {
  height: 100%;
  opacity: 1;
}

.events .events-item .events-text a.h4,
.events .events-item .events-img img {
  transition: 0.5s;
}

.events .events-item:hover .events-text a.h4 {
  color: var(--bs-primary) !important;
}

.events .events-item:hover .events-img img {
  transform: scale(1.3);
}

.blog .blog-item .blog-img::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  bottom: auto;
  background: rgba(77, 101, 249, 0.7);
  border-radius: 10px 10px 0 0;
  transition: 0.5s;
}

.blog .blog-item:hover .blog-img::after {
  height: 100%;
  opacity: 1;
}

.blog .blog-item .blog-date-comments {
  padding-top: 150px !important;
  margin-top: -125px;
}

.blog .blog-item .blog-img img,
.blog .blog-item .blog-content img,
.blog .blog-item .blog-text-inner a.h4 {
  transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
  transform: scale(1.3);
}

.blog .blog-item:hover .blog-content img {
  transform: scale(1.3);
}

.blog .blog-item:hover .blog-text-inner a.h4 {
  /* color: var(--bs-primary) !important */
  color: #000 !important;
}

.team .team-item {
  position: relative;
  width: 100%;
  height: 100%;
}

.team .team-item .team-icon {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
}

.team .team-item .team-icon a.share-link {
  opacity: 0;
  transition: 0.5s;
}

.team .team-item:hover .team-icon a.share-link {
  opacity: 1;
}

.team .team-item .team-content,
.team .team-item .team-content h4,
.team .team-item .team-content p {
  transition: 0.5s;
}

.team .team-item:hover .team-content {
  background-color: #464196;
  border-radius: 0 0 10px 10px;
}

.team .team-item:hover .team-content h4 {
  color: var(--bs-white) !important;
}

.team .team-item:hover .team-content p {
  color: var(--bs-white) !important;
}

.testimonial .testimonial-carousel {
  position: relative;
}

.testimonial .testimonial-carousel .owl-dots {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial .testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background-color: #464196;
  border-radius: 10px;
  transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-dot.active {
  width: 30px;
  background-color: #000;
}

.footer {
  /* background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 1)), url(../img/background.jpg); */
  background: linear-gradient(
      rgba(240, 240, 255, 0.9),
      rgba(255, 255, 255, 0.95)
    ),
    url(../img/background.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.footer .footer-galary-img img {
  width: 100%;
  border-style: dotted;
  border-color: #464196;
  transition: 0.5s;
}

.footer .footer-galary-img img:hover {
  transform: scale(1.3);
}

.footer-item a.text-body:hover {
  color: var(--bs-secondary) !important;
}

.copyright a {
  color: white;
  font-weight: bolder;
}

.copyright a:hover {
  color: #000;
}

.card-registration .select-input.form-control[readonly]:not([disabled]) {
  font-size: 1rem;
  line-height: 2.15;
  padding-left: 0.75em;
  padding-right: 0.75em;
}

.card-registration .select-arrow {
  top: 13px;
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.card-body .display-4 {
  transition: all 0.3s ease;
}

.card:hover .card-body .display-4 {
  transform: scale(1.1);
}

.program_carousel {
  background: linear-gradient(rgba(255, 72, 128, 0.1), rgba(255, 72, 128, 0.1));
}

.program_carousel
  .program_carousel-item
  .program_carousel-img
  .program_carousel-rate {
  position: absolute;
  width: 100px;
  top: -20px;
  left: 50%;
  margin-left: -50px;
  border-radius: 10% / 50%;
}

.program_carousel .program_carousel-item .program_carousel-text {
  padding-top: 150px;
  margin-top: -125px;
}

.program_carousel .program_carousel-item .program_carousel-img img,
.program_carousel .program_carousel-item .program_carousel-teacher img,
.program_carousel
  .program_carousel-item:hover
  .program_carousel-text-inner
  a.h4 {
  transition: 0.5s;
}

.program_carousel .program_carousel-item:hover .program_carousel-img img,
.program_carousel .program_carousel-item:hover .program_carousel-teacher img {
  transform: scale(1.2);
}

.program_carousel
  .program_carousel-item:hover
  .program_carousel-text-inner
  a.h4 {
  color: var(--bs-primary) !important;
}

.program-title:hover {
  color: #007bff;
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.program-img {
  transition: transform 0.3s ease-in-out;
}

.program-img:hover {
  transform: scale(1.05);
}

.company-logo {
  transition: transform 0.4s ease-in-out;
}

.company-logo:hover {
  transform: scale(1.2);
}

.owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}

.owl-nav button {
  background-color: #007bff;
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #000;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.owl-nav button:hover {
  background-color: #0056b3;
}

.owl-dots {
  margin-top: 20px;
  text-align: center;
}

.owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  margin: 5px;
  background-color: #464196;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.owl-dots .owl-dot.active {
  background-color: #464196;
  transform: scale(1.2);
}

.card .program-title {
  color: #000;
}

.card .program-title:hover {
  color: #464196;
}

.c-card {
  background: rgba(255, 255, 255, 0);
  border-radius: 30px;
  border: 5px solid #47419600;
}

.c-text-b {
  color: #ffffff;
  font-weight: bold;
}

.c-text-p {
  color: #ffffff;
  font-weight: bold;
}

.c-text-t {
  color: #ffffff;
  font-weight: lighter;
}

.add-course,
.decrease-course {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.add-course i,
.decrease-course i {
  font-size: 18px;
}

.course-count-badge {
  background-color: #464196;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 12px;
  padding: 2px 8px;
  position: absolute;
  right: 15px;
  /* Align to the right */
  top: 50%;
  /* Center vertically */
  transform: translateY(-50%);
}

/* Default radio button style */
.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #464196;
  /* Theme color for the border */
  background-color: transparent;
  appearance: none;
  /* Remove default styling */
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease-in-out;
}

/* Radio button when checked */
.form-check-input:checked {
  background-color: #464196;
  /* Theme color for the checked state */
  border-color: #464196;
  /* Match border with the theme */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  /* Add a subtle glow effect */
}

/* Hover effect */
.form-check-input:hover {
  border-color: #0056b3;
  /* Darker theme color for hover state */
}

/* Focus effect */
.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.8);
  /* Glow on focus */
}

/* loader of join now page */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid #f3f3f3;
  /* Light gray */
  border-top: 4px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#loader p {
  color: white;
  font-size: 1.2rem;
  margin-top: 10px;
}

.contact-wrapper {
  background: linear-gradient(
    rgba(240, 240, 255, 0.9),
    rgba(255, 255, 255, 0.95)
  );
  box-shadow: 0 10px 30px rgba(70, 65, 150, 0.05);
  border-radius: 20px;
}

.contact-section-title {
  max-width: 700px;
  margin: auto;
}

/* Large-screen alignment and full-height columns */
@media (min-width: 992px) {
  /* Make the whole contact area occupy most of the viewport so embedded forms can fill height */
  .contact-wrapper {
    height: 100%;
  }

  .contact-wrapper .row {
    align-items: stretch;
    gap: 2rem;
    height: 100%;
  }

  .contact-wrapper .col-lg-6 {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Make ERP iframe expand to fill its column */
  .erp-iframe {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .erp-iframe iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    display: block;
  }
}

/* Heading polish */
.contact-section-title h1 {
  color: #222;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-section-title h4 {
  color: #464196;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.contact-iframe {
  border-radius: 12px;
  border: 1px solid #eef0f7;
  box-shadow: 0 8px 30px rgba(70, 65, 150, 0.04);
  background: #fff;
  padding: 0.5rem;
  width: 100%;
  height: 100%;
}

.contact-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ERP embedded web form - make tall enough to show form without internal scroll. If your form can post height via postMessage, we can auto resize. */
.erp-iframe {
  width: 100%;
  height: 100%;
}

.erp-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 1000px;
}

/* Small polish */
.contact-section-title {
  max-width: 700px;
}

/* Mobile-first adjustments: for screens < 768px make contact area full height and reduce spacing to 10px */
@media (max-width: 767.98px) {
  /* reduce large paddings/margins inside the contact section */

  /* Advisroy carousel and consultant clinics adjustments for small screens */
  .advisory-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .advisory-card .card-img-top {
    height: 200px;
    object-fit: cover;
  }

  .consultant-clinics .card {
    height: auto;
  }
}

/* Advisory board - center every carousel item and make cards responsive */
.advisory-carousel .owl-item {
  display: flex;
  justify-content: center;
}

.advisory-card {
  width: 350px;
  max-width: 100%;
  height: 420px; /* unified card height */
  display: flex;
  flex-direction: column;
}

.advisory-card .card-img-top {
  height: 250px;
  object-fit: fill;
} 

/* Consultant clinics grid adjustments - responsive centered cards */
.consultant-clinics .col-12 {
  display: flex;
  justify-content: center;
}

.consultant-clinics .consultant-card {
  max-width: 550px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 420px; /* unified card height */
} 

.consultant-clinics .card-img-top {
  width: 100%;
  height: 250px;
  object-fit: fill;
} 

.consultant-clinics .card-footer {
  margin-top: auto;
}

@media (max-width: 767.98px) {
  .consultant-clinics {
    justify-content: center;
    gap: 10px;
  }
}

/* Ensure owl carousel images don't overflow */
.owl-carousel .card {
  margin: 0 auto;
}

/* Gallery carousel styling - card layout (image on top, body below) */
.gallery-carousel .gallery-item {
  padding: 28px; /* increased spacing */
}

.gallery-carousel .gallery-card {
  width: 320px; /* larger cards */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 36px rgba(8, 24, 48, 0.08);
  border: 1px solid rgba(17,24,39,0.08); /* subtle visible border */
  display: flex;
  flex-direction: column;
  height: 420px; /* unified card height */
} 

.gallery-carousel .gallery-card .card-img-top {
  width: 100%;
  height: 200px; /* taller image */
  object-fit: cover;
  display: block;
} 

.gallery-carousel .gallery-card .card-body {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.gallery-carousel { position: relative; }

.gallery-carousel .gallery-title {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #111;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.gallery-carousel .gallery-desc {
  margin: 0;
  color: #6b7280; /* muted */
  font-size: 0.95rem;
}

/* Polished interactions */
.gallery-carousel .gallery-card {
  transition: transform .28s ease, box-shadow .28s ease;
}
.gallery-carousel .gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 46px rgba(8, 24, 48, 0.12);
}

/* Navigator buttons (left/right) */
.gallery-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* allow individual buttons to receive clicks */
  padding: 0 10px;
}
.gallery-carousel .owl-nav button {
  pointer-events: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 40px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(8,24,48,0.08);
  color: #222;
  transition: transform .12s ease, background .12s ease;
}
.gallery-carousel .owl-nav button:hover {
  transform: translateY(-2px);
  background: #f8f9ff;
}
.gallery-carousel .owl-nav button .fa { font-size: 16px; }

@media (max-width: 576px) {
  .gallery-carousel .owl-nav { display: none; }
  .gallery-carousel { padding-left: 6px; padding-right: 6px; }
} 

.contact-wrapper {
  padding: 10px !important;
  border-radius: 8px;
  height: 100%;
}

.contact-section-title {
  padding: 10px;
}

.contact-section-title h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-section-title h4 {
  margin-bottom: 10px;
}

/* Scoped spacing fixes: avoid global overrides that break layout */
/* Keep small gap only for consultant clinics on narrow screens */
@media (max-width: 767.98px) {
  .consultant-clinics {
    gap: 10px;
  }

  /* ERP iframe full-screen friendly on mobile */
  .erp-iframe {
    padding: 0;
    margin: 0;
    height: 100% !important;
  }

  .erp-iframe iframe {
    height: 100%;
    min-height: 1700px;
  }

  /* Reduce any large paddings inside contact-iframe wrappers */
  .contact-iframe {
    padding: 10px !important;
  }

  /* Reduce gaps for container children */
  .container.py-5 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 415px) {
  .erp-iframe iframe {
    height: 100%;
    min-height: 1800px;
  }

  .container-fluid .container {
    padding-left: 0px;
    padding-right: 0px;
  }
}

/* Ensure embedded content doesn't overflow */
iframe[allowfullscreen] {
  max-width: 100%;
  height: 100% !important;
}
