/*** Spinner Start ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  transition: 0.5s;
  z-index: 99;
}

/*** Button Start ***/
.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-xl-square {
  width: 66px;
  height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn.btn-primary {
  color: var(--bs-white);
  border: none;
}

.btn.btn-primary:hover {
  background: var(--bs-dark);
  color: var(--bs-white);
}

.btn.btn-light {
  color: var(--bs-primary);
  border: none;
}

.btn.btn-light:hover {
  color: var(--bs-white);
  background: var(--bs-dark);
}

.btn.btn-dark {
  color: var(--bs-white);
  border: none;
}

.btn.btn-dark:hover {
  color: var(--bs-primary);
  background: var(--bs-light);
}

/*** Topbar Start ***/
.topbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--bs-primary);
}

.topbar .dropdown .dropdown-menu a:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  background: var(--bs-light);
  padding-top: 10px;
  border: 0;
  transition: 0.5s;
  opacity: 1;
}
/*** Topbar End ***/

/*** Navbar Start ***/
.nav-bar {
  background: var(--bs-white);
  transition: 1s;
}

.navbar-light .navbar-brand img {
  max-height: 60px;
  transition: 0.5s;
}

.nav-bar .navbar-light .navbar-brand img {
  max-height: 50px;
}

.navbar .navbar-nav .nav-item .nav-link {
  padding: 0;
}

.navbar .navbar-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 15px;
}

.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item.active,
.navbar-light .navbar-nav .nav-item:hover .nav-link,
.navbar-light .navbar-nav .nav-item.active .nav-link {
  color: var(--bs-primary);
}

@media (max-width: 991px) {
  .navbar {
    padding: 20px 0;
  }

  .navbar .navbar-nav .nav-link {
    padding: 0;
  }

  .navbar .navbar-nav .nav-item {
    display: flex;
    padding: 20px;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .navbar .navbar-nav .nav-btn {
    display: flex;
    justify-content: start;
  }

  .navbar .navbar-nav {
    width: 100%;
    display: flex;
    margin-top: 20px;
    padding-bottom: 20px;
    background: var(--bs-light);
    border-radius: 10px;
  }

  .navbar.navbar-expand-lg .navbar-toggler {
    padding: 8px 15px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
  }
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
}

.dropdown .dropdown-menu .dropdown-item:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
}

@media (min-width: 992px) {
  .navbar {
    padding: 20px 0;
  }

  .navbar .nav-btn {
    display: flex;
    align-items: center;
    justify-content: end;
  }

  .navbar .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bs-light);
    border-radius: 10px;
  }

  .navbar .navbar-nav .nav-btn {
    width: 100%;
    display: flex;
    margin-left: auto;
  }

  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    margin-top: 20px;
    background: var(--bs-light);
    transition: 0.5s;
    opacity: 1;
  }
}
/*** Navbar End ***/

/*** Carousel Hero Header Start ***/
.header-carousel .header-carousel-item {
  height: 700px;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  background: var(--bs-light);
  color: var(--bs-primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 30px;
}
.header-carousel .owl-nav .owl-next {
  bottom: 30px;
  right: 50%;
  transform: translateX(-50%);
  margin-right: 30px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  box-shadow: inset 0 0 100px 0 var(--bs-secondary);
  color: var(--bs-white);
}

.header-carousel .header-carousel-item .carousel-caption {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .header-carousel .header-carousel-item .carousel-caption {
    padding-top: 45px;
  }

  .header-carousel .header-carousel-item {
    height: 1300px;
  }
}

@media (max-width: 767px) {
  .header-carousel .header-carousel-item {
    height: 950px;
  }

  .header-carousel .owl-nav .owl-prev {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: -45px;
  }

  .header-carousel .owl-nav .owl-next {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 45px;
  }
}

.header-carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Increased blue opacity (0.95) and adjusted gradient stops */
  background: linear-gradient(
    90deg,
    rgba(56, 136, 228, 0.95) 0%,
    rgba(0, 0, 0, 0.3) 30%,
    /* Darker black and adjusted stop */ rgba(56, 136, 228, 0.95) 60%,
    /* Wider blue section */ rgba(0, 0, 0, 0.3) 90%,
    /* Adjusted dark stop */ rgba(56, 136, 228, 0.95) 100%
  );

  background-size: 300% 100%;
  mix-blend-mode: multiply;
  /* Slightly increased animation speed (18s) */
  animation: smoothWave 18s linear infinite;
}

@keyframes smoothWave {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/*** Carousel Hero Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(56, 136, 228, 0.9), rgba(0, 0, 0, 0.2)),
    url(../img/index/MBK.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0 60px 0;
  transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
  position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
  color: var(--bs-white);
}
/*** Single Page Hero Header End ***/

/*** Feature Start ***/
.feature .feature-item {
  border-radius: 10px;
  background: var(--bs-white);
  transition: 0.5s;
}

.feature .feature-item:hover {
  background: var(--bs-primary);
}

.feature .feature-item .feature-icon {
  position: relative;
  width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--bs-light);
}

.feature .feature-item:hover .feature-icon i {
  z-index: 9;
}

.feature .feature-item .feature-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--bs-dark);
  transition: 0.5s;
  z-index: 1;
}

.feature .feature-item:hover .feature-icon::after {
  height: 100%;
}

.feature .feature-item .feature-icon {
  color: var(--bs-primary);
}

.feature .feature-item .feature-icon,
.feature .feature-item h4,
.feature .feature-item p {
  transition: 0.5s;
}

.feature .feature-item:hover .feature-icon {
  color: var(--bs-white);
}
.feature .feature-item:hover h4,
.feature .feature-item:hover p {
  color: var(--bs-white);
}

.feature .feature-item:hover a.btn {
  background: var(--bs-white);
  color: var(--bs-primary);
}

.feature .feature-item:hover a.btn:hover {
  background: var(--bs-dark);
  color: var(--bs-white);
}
/*** Feature End ***/

/*** Service Start ***/
.service .service-item {
  border-radius: 10px;
}
.service .service-item .service-img {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.service .service-item .service-img img {
  transition: 0.5s;
}

.service .service-item:hover .service-img img {
  transform: scale(1.1);
}

.service .service-item .service-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: rgba(1, 95, 201, 0.2);
  transition: 0.5s;
  z-index: 1;
}

.service .service-item:hover .service-img::after {
  height: 100%;
}

.service .service-item .service-img .service-icon {
  position: absolute;
  width: 70px;
  bottom: 0;
  right: 25px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: var(--bs-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 9;
}

.service .service-item .service-img .service-icon i {
  color: var(--bs-primary);
  transition: 0.5s;
}

.service .service-item:hover .service-img .service-icon i {
  transform: rotateX(360deg);
  color: var(--bs-white);
}

.service .service-item:hover .service-img .service-icon {
  bottom: 0;
  color: var(--bs-white);
  background: var(--bs-primary);
}

.service .service-content {
  position: relative;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--bs-light);
}

.service .service-item .service-content .service-content-inner {
  position: relative;
  z-index: 9;
}

.service .service-item .service-content .service-content-inner .h4,
.service .service-item .service-content .service-content-inner p {
  transition: 0.5s;
}

.service .service-item:hover .service-content .service-content-inner .h4,
.service .service-item:hover .service-content .service-content-inner p {
  color: var(--bs-white);
}

.service
  .service-item:hover
  .service-content
  .service-content-inner
  .btn.btn-primary {
  color: var(--bs-primary);
  background: var(--bs-white);
}

.service
  .service-item:hover
  .service-content
  .service-content-inner
  .btn.btn-primary:hover {
  color: var(--bs-white);
  background: var(--bs-dark);
}

.service .service-item:hover .service-content .service-content-inner .h4:hover {
  color: var(--bs-dark);
}

.service .service-item .service-content::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--bs-primary);
  transition: 0.5s;
  z-index: 1;
}

.service .service-item:hover .service-content::after {
  height: 100%;
}
/*** Service End ***/

/*** FAQs Start ***/
.faq-section .accordion .accordion-item .accordion-header .accordion-button {
  color: var(--bs-white);
  background: rgba(1, 95, 201, 0.8);
  font-size: 18px;
}

.faq-section
  .accordion
  .accordion-item
  .accordion-header
  .accordion-button.collapsed {
  color: var(--bs-primary);
  background: var(--bs-light);
}
/*** FAQs End ***/

/*** Blog Start ***/
.blog .blog-item {
  border-radius: 10px;
  transition: 0.5s;
}

.blog .blog-item:hover {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
}

.blog .blog-item:hover .blog-content {
  background: var(--bs-white);
}

.blog .blog-item .blog-img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
  overflow: hidden;
}

.blog .blog-item .blog-img img {
  transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
  transform: scale(1.2);
}

.blog .blog-item .blog-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: rgba(1, 95, 201, 0.2);
  transition: 0.5s;
  z-index: 1;
}

.blog .blog-item:hover .blog-img::after {
  height: 100%;
}

.blog .blog-item .blog-img .blog-categiry {
  position: absolute;
  bottom: 0;
  right: 0;
  border-top-left-radius: 10px;
  display: inline-flex;
  color: var(--bs-white);
  background: var(--bs-primary);
  z-index: 9;
}

.blog .blog-item .blog-content {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--bs-light);
}

.blog .blog-item .blog-content a.btn {
  color: var(--bs-dark);
}

.blog .blog-item:hover .blog-content a.btn:hover {
  color: var(--bs-primary);
}
/*** Blog End ***/

/*** Team Start ***/
.team .team-item .team-img {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.team .team-item .team-img img {
  transition: 0.5s;
}

.team .team-item:hover .team-img img {
  transform: scale(1.1);
}

.team .team-item .team-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: 0.5s;
}

.team .team-item:hover .team-img::after {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.team .team-item .team-img .team-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  margin-bottom: -100%;
  transition: 0.5s;
  z-index: 9;
}

.team .team-item:hover .team-img .team-icon {
  margin-bottom: 0;
}

.team .team-item .team-title {
  color: var(--bs-white);
  background: var(--bs-primary);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: 0.5s;
}

.team .team-item .team-title h4 {
  color: var(--bs-white);
}

.team .team-item:hover .team-title {
  background: var(--bs-dark);
}
/*** Team End ***/

/*** Testimonial Start ***/
.testimonial-carousel .owl-stage-outer {
  margin-top: 58px;
  margin-right: -1px;
}

.testimonial .owl-nav .owl-prev {
  position: absolute;
  top: -58px;
  left: 0;
  background: var(--bs-primary);
  color: var(--bs-white);
  padding: 5px 30px;
  border-radius: 30px;
  transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
  background: var(--bs-dark);
  color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
  position: absolute;
  top: -58px;
  right: 0;
  background: var(--bs-primary);
  color: var(--bs-white);
  padding: 5px 30px;
  border-radius: 30px;
  transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
  background: var(--bs-dark);
  color: var(--bs-white);
}
/*** Testimonial End ***/

/*** Contact Start ***/
.contact .contact-img {
  position: relative;
}

.contact .contact-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
  animation-name: image-efects;
  animation-duration: 10s;
  animation-delay: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  transition: 0.5s;
}

@keyframes image-efects {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 35% 65% 27% 73% / 71% 25% 75% 29%;
  }

  50% {
    border-radius: 41% 59% 45% 55% / 32% 21% 79% 68%;
  }

  75% {
    border-radius: 69% 31% 39% 61% / 70% 83% 17% 30%;
  }

  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.contact .contact-img .contact-img-inner {
  position: relative;
  z-index: 9;
}
/*** Contact End ***/

/*** Footer Start ***/
.footer {
  background: var(--bs-dark);
}

.footer .footer-item {
  display: flex;
  flex-direction: column;
}

.footer .footer-item a {
  line-height: 35px;
  color: var(--bs-body);
  transition: 0.5s;
}

.footer .footer-item p {
  line-height: 35px;
}

.footer .footer-item a:hover {
  color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
  transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
  background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
  color: var(--bs-primary);
}

.footer .footer-item .footer-instagram {
  position: relative;
  overflow: hidden;
}

.footer .footer-item .footer-instagram img {
  transition: 0.5s;
}

.footer .footer-item .footer-instagram:hover img {
  transform: scale(1.2);
}

.footer .footer-item .footer-instagram .footer-search-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  opacity: 0;
}

.footer .footer-item .footer-instagram:hover .footer-search-icon {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.footer .footer-item .footer-btn a {
  background: var(--bs-light);
  color: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover {
  background: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover i {
  color: var(--bs-white);
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
  background: var(--bs-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/*** copyright end ***/

.navbar-brand img {
  height: 80px !important; /* Change 90px to whatever size you want */
  max-height: none !important;
  width: auto !important;
}

/* Spinner Logo Animation */
.spinner-logo {
  width: 100px; /* adjust size */
  height: auto;
  animation: spin 3s linear infinite; /* spinning effect */
}

/* Keyframes for Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Make all feature boxes same height */
.feature-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Push button to the bottom for perfect alignment */
.feature-item a {
  margin-top: auto;
}

/* ===== PROGRAM CARDS ===== */
.program-card {
  background: #fff !important; /* Force white background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures equal height cards */
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.program-content {
  padding: 15px;
  flex-grow: 1; /* Pushes content evenly */
}

/* ===== GALLERY ===== */
.gallery img {
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* ===== IMPACT SECTION ===== */
.impact h1 {
  font-size: 2.5rem;
}

.text-red {
  color: #ff0000 !important; /* or your preferred red */
}

.outlined-text {
  color: #e74c3c; /* bright red */
  -webkit-text-stroke: 2px rgb(0, 0, 0); /* outline thickness and color */
  paint-order: stroke fill; /* ensures outline is drawn outside */
}

/* Gallery container */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

/* Image with bigger zoom on hover */
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.6s ease; /* smoother and slightly longer */
}

.gallery-item:hover img {
  transform: scale(1.2); /* bigger zoom */
}

/* Overlay effect */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 61, 98, 0.6); /* bluish overlay */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
}

/* Show overlay on hover */
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

.video-wrapper img {
  transition: transform 0.4s ease;
}

.video-wrapper:hover img {
  transform: scale(1.05);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a3d62;
  font-size: 28px;
  transition: all 0.3s ease;
}

.video-wrapper:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fff;
}

/* Gallery */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.nav-pills .nav-link.active {
  background-color: #0a3d62;
  color: white !important;
}
.nav-pills .nav-link {
  color: #0a3d62;
  font-weight: 500;
}

.program-card {
  background-color: #cce9ff; /* Red background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.program-img {
  background-size: cover;
  background-position: center;
  height: 180px;
}

.program-content {
  padding: 15px;
  color: rgb(0, 0, 0); /* White text */
  flex: 1;
}

.program-content h5 {
  color: rgb(0, 0, 0); /* White title */
  font-weight: bold;
  margin-bottom: 8px;
}

.program-content p {
  color: rgb(0, 0, 0); /* White paragraph */
  font-size: 14px;
  margin: 0;
}

/* testimony */
.video-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 10px;
}

.video-thumb {
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-size: cover;
  background-position: center;
  position: relative;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-thumb:hover .video-overlay {
  opacity: 1;
}

/* Adjusted CSS for the title */
.video-title {
  /* Increased padding for more space around the text block */
  padding: 1.5rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
  display: flex;
  /* Removed flex-wrap to keep the text on a single line */
  justify-content: center;
  align-items: center;
}

.video-title span {
  /* Increased the horizontal margin for more space between elements */
  margin: 0 10px;
  /* Use 'white-space: nowrap' to prevent line breaks */
  white-space: nowrap;
}

.video-speaker {
  font-size: 1rem;
  white-space: nowrap;
}

.video-speaker small {
  font-size: 0.8em;
  color: #777;
  white-space: nowrap;
}

/* LESSONS */
.video-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 280px; /* FIXED height for all cards */
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-thumb {
  position: relative;
  height: 180px; /* FIXED thumbnail height */
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid #cce9ff;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.video-overlay i {
  font-size: 40px;
  color: white;
}

.video-title {
  font-size: 14px;
  padding: 8px;
  text-align: center;
  flex-grow: 1; /* Ensures titles fill remaining space */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GoDucate link with default underline */
.goducate-link {
  text-decoration: underline;
  color: inherit;
  text-decoration-color: currentColor; /* Match underline color to text */
  text-underline-offset: 2px; /* Move underline slightly away from text */
}
.goducate-link:hover {
  text-decoration-thickness: 2px; /* Make underline thicker on hover */
}

/* Footer link style with default underline */
.footer-link {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
  color: inherit; /* Keep text color */
}
.footer-link:hover {
  text-decoration-thickness: 2px;
}

/* regions */
.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 160px;
  width: 150px;
  margin: 0 30px;
}

.client-logo div {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.client-logo img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #063362;
  background-color: white;
  padding: 7px;
}

/* bible verse */
.bible-verse-widget {
  position: absolute;
  top: 3in;
  right: 2in;
  z-index: 1050;
  background: rgba(245, 251, 255, 0.6);
  border: 2px solid #bee3ff;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 20px 18px 18px 18px;
  max-width: 360px;
  font-family: "Georgia", serif;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  cursor: move;
  touch-action: none; /* Prevent double-tap zoom on mobile */
}

.verse-text {
  font-size: 1.2rem;
  color: #063362;
  line-height: 1.5;
  text-align: center;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.toggle-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #063362;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
}

.show-verse-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  padding: 10px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .bible-verse-widget {
    top: 1.5in;
    right: 20px;
    max-width: 90%;
    padding: 20px 14px 18px 14px;
  }

  .verse-text {
    font-size: 1rem;
    margin-top: 28px;
  }

  .toggle-btn {
    font-size: 20px;
  }

  .show-verse-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

.bible-verse-widget {
  transform: translate(0px, 0px); /* Enable transform movement */
  will-change: transform;
  touch-action: none;
}

/*** logos ***/
.custom-nav-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: #063362;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.owl-prev {
  left: -25px;
}

.owl-next {
  right: -25px;
}

.nav-link.btn-outline-warning:hover {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  transition: all 0.3s ease-in-out;
}

/* Main container for each video card */
.video-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Key change: Set a minimum height to ensure all cards are the same size */
  min-height: 330px;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-link:hover .video-overlay {
  opacity: 1;
}

.video-overlay i {
  color: #fff;
  font-size: 3rem;
}

/* Video title styling to ensure a consistent number of lines */
.video-title {
  font-size: 1rem;
  text-align: center;
  color: #333;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* Key change: Limit the title to a maximum of two lines */
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.bible-ball {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bible-ball::before {
  content: "";
  position: absolute;
  width: 120px; /* bigger invisible area */
  height: 120px;
  border-radius: 50%;
}

.ball-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* On phones, make it a bit smaller */
@media (max-width: 768px) {
  .bible-ball {
    width: 60px;
    height: 60px;
  }
}
