/*** Spinner Start ***/
html, body {
  overflow-x: hidden;
  width: 100%;
}
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.8s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-weight: 400 !important;
  font-family: "Playball", cursive !important;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
  font-weight: 600 !important;
  font-family: "Open Sans", sans-serif !important;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.wow,
.animated {
  animation-duration: 2s !important;
}

/*** Button Start ***/
.btn.btn-primary {
  border: 0;
}

.btn.btn-primary:hover {
  background: var(--bs-dark) !important;
  color: var(--bs-primary) !important;
}

.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square {
  width: 32px;
  height: 32px;
}

.btn-sm-square {
  width: 38px;
  height: 38px;
}

.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;
}
/*** Button End ***/

/*** Navbar Start ***/
.nav-bar {
  background:#fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .navbar-nav .nav-link {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 20px;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  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%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    opacity: 1;
  }
}

.dropdown .dropdown-menu a:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
}

#searchModal .modal-content {
  background-color: rgba(255, 255, 255, 0.95);
}
/*** Navbar End ***/


/*** Events Start ***/
.event-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px; /* Ensure all images have the same height */
  overflow: hidden;
}

.event-overlay {
  position: absolute;
  bottom: 10px; /* Position 10px from the bottom */
  right: 10px;  /* Position 10px from the right */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.event-overlay a {
  display: inline-block;
}



/*** Events End ***/

/*** service start ***/
.service .service-item {
  position: relative;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.service-content::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  bottom: auto;
  background: var(--bs-primary);
  border-radius: 8px;
  transition: 1s;
}

.service-item:hover .service-content::after {
  height: 100%;
  opacity: 1;
}

.service-item .service-content-icon {
  position: relative;
  z-index: 2;
}

.service-item .service-content-icon i,
.service-item .service-content-icon p {
  transition: 1s;
}

.service-item:hover .service-content-icon i {
  color: var(--bs-dark) !important;
}

.service-item:hover .service-content-icon p {
  color: var(--bs-white);
}

.service-item:hover .service-content-icon a.btn-primary {
  background: var(--bs-white);
  color: var(--bs-dark);
}

.service-item .service-content-icon a.btn-primary {
  transition: 1s !important;
}
/*** Services End ***/

/*** Menu Start ***/
.menu .nav-item a.active {
  background: var(--bs-primary) !important;
}

.menu .menu-item .border-bottom {
  border-bottom-style: dashed !important;
}
/*** Menu End ***/

/*** Youtube Video start ***/


.video {
  position: relative;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(
      rgba(254, 218, 154, 0.1),
      rgba(254, 218, 154, 0.1)
    ),
    url(../img/fact.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
}

.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: none;
  outline: none;
  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-primary);
  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-white);
  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-dark);
  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: 0px;
}

#videoModal .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0px;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #ffffff;
  background: #000000;
  opacity: 1;
}

/*** Youtube Video End ***/

/*** Blog Start ***/
.blog-item {
  position: relative;
}

.blog-item img {
  transition: 0.5s;
}

.blog-item:hover img {
  transform: scale(1.3);
}

.blog-item .blog-content {
  position: relative;
  transform: translateY(-50%);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.blog-item .blog-content a.btn h5 {
  transition: 0.5s;
}

.blog-item:hover .blog-content a.btn h5 {
  color: var(--bs-primary) !important;
}
/*** Blog End ***/

/*** Team Start ***/
.team-item {
  width: 100%;
  height: 100%;
  position: relative;
}

.team-item .team-icon {
  position: absolute;
  top: 0;
  right: 0;
}

.team-item .team-icon .share-link {
  opacity: 0;
  transition: 0.9s;
}

.team-item:hover .share-link {
  opacity: 1;
}

.team-item .team-content {
  transition: 0.9s;
}

.team-item:hover .team-content {
  background: var(--bs-primary) !important;
  color: var(--bs-dark) !important;
}

.team-item .team-content h4,
.team-item .team-content p {
  transition: 0.5s;
}

.team-item:hover .team-content h4 {
  color: var(--bs-dark) !important;
}

.team-item:hover .team-content p {
  color: var(--bs-white);
}
/*** Team End ***/

/*** testimonial Start ***/
.testimonial-item {
  border: 1px solid var(--bs-primary);
  padding: 20px 20px;
}

.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel.owl-rtl .testimonial-item {
  direction: ltr !important;
}
/*** testimonial End ***/

/*** Contact start ***/
.contact-form {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

/*** Contact End ***/

/*** Footer Start ***/
.footer .footer-item a.text-body:hover {
  color: var(--bs-primary) !important;
}
/*** Footer End ***/

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 80px; /* Adjust to position above the back-to-top button */
  right: 27px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #20b558;
}

/* Basic Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  text-align: center;
  background-color: #007bff;
  color: white;
  padding: 20px 0;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

/* Gallery Styles */
.gallery {
  display: flex;
  flex-wrap: wrap; /* Ensures items wrap to the next line if needed */
  gap: 15px; /* Space between items */
  justify-content: center;
  padding: 20px;
}

.gallery-item {
  flex: 0 0 auto; /* Prevent the image box from resizing */
  max-width: 100%; /* Prevent overflow */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.gallery-item img {
  display: block; /* Ensures no inline space below the image */
  width: auto; /* Keeps the original width */
  height: auto; /* Keeps the original height */
  max-width: 100%; /* Ensures it doesn't overflow */
}

.gallery-item:hover {
  transform: scale(1.05);
}


/*** logo custom css ***/


  /* Default styles for large screens */
  .logo-container {
    display: flex;
    align-items: center;
    margin: auto;
  }

  .logo {
    height: 121px;
    width: 390px;
}
  

  .heading-text {
    font-size: 2.8rem;
    margin-left: 15px; /* Space between logo and text */
    white-space: nowrap; /* Prevents text wrapping */
  }

  .menu-icon {
    font-size: 1.8rem;
  }

  /* Responsive styles for mobile */
  @media (max-width: 768px) {
    .logo {
      height: 109px;
      width: 213px;
  }

    .heading-text {
      font-size: 1.4rem; /* Smaller text on mobile */
      margin-left: 10px;
    }

    .menu-icon {
      font-size: 1.4rem;
    }

    .navbar-toggler {
      padding: 8px 12px;
    }
  }






/* =================================== */
/* === VIDEO SLIDER MODAL STYLES === */
/* =================================== */

.video-modal-fullscreen .modal-dialog {
  max-width: 95vw;
  width: 95vw;
  margin: 1.75rem auto; /* Default BS5 vertical margin or adjust */
  display: flex;
  align-items: center;
  min-height: calc(100% - (1.75rem * 2)); /* BS5 centering technique */
}

.video-modal-fullscreen .modal-content {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
  margin: auto;
}

.video-modal-fullscreen .modal-body {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Video Container within Carousel --- */
.video-modal-fullscreen .carousel-item {
    text-align: center;
}

.video-modal-fullscreen .video-container {
  position: relative; /* Crucial for positioning controls */
  max-height: 85vh; /* Adjust vertical size */
  max-width: 100%;
  aspect-ratio: 4/4;
  margin: auto;
  overflow: hidden; /* Hide controls spillover */
  background-color: #000;
  display: inline-block;
  vertical-align: middle;
}

.video-modal-fullscreen .embed-responsive-item { /* Should still work */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Custom Close Button --- */
.custom-close-button {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 1056; /* BS5 modals start at 1055 */
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: 0;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 40px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: none;
}
.custom-close-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
  color: #fff;
  text-decoration: none;
}
.custom-close-button:focus {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(255, 255, 255, 0.5);
}

/* --- Darker Modal Backdrop --- */
.modal-backdrop.show {
  opacity: 0.85;
}

/* --- Custom Carousel Controls --- */
.custom-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 10; /* Below controls bar/close button */
}
.custom-carousel-control:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.custom-carousel-control.carousel-control-prev { left: 20px; }
.custom-carousel-control.carousel-control-next { right: 20px; }
.carousel-control-prev, .carousel-control-next { background: none; }


/* --- Video Controls Bar Styles --- */
.video-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
  z-index: 21; /* Above video, below close button */
}

/* Show controls when hovering over the video container */
.video-modal-fullscreen .video-container:hover .video-controls-bar {
  opacity: 1;
}

/* --- Styles for Buttons within the Bar --- */
.video-control-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 5px 8px;
  margin: 0 5px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.video-control-button:hover { opacity: 1; }
.video-control-button .fa { display: block; }

/* Specific button alignment */
.video-control-button.play-pause-btn { /* Stays left */ }
.video-control-button.fullscreen-btn { margin-left: auto; /* Push to right */ }


/* --- Responsiveness --- */
@media (max-width: 768px) {
  .video-modal-fullscreen .modal-dialog { max-width: 100vw; width: 100vw; min-height: 100vh; margin: 0; }
  .video-modal-fullscreen .video-container { max-height: 100vh; }
  .custom-close-button { top: 10px; right: 10px; width: 35px; height: 35px; line-height: 35px; font-size: 1.2rem; }
  .video-controls-bar { padding: 5px 10px; } /* Smaller padding on mobile */
  .video-control-button { font-size: 1.2rem; padding: 4px 6px; }
  .video-modal-fullscreen.modal { padding-left: 0 !important; padding-right: 0 !important; }

}
/* =================================== */
/* == END VIDEO SLIDER MODAL STYLES == */
/* =================================== */


.nav-bar {
  position: relative; /* Ensure this is set (Bootstrap may already do this) */
}

.nav-bar img.small-logo {
  position: absolute;
  left: 10px; /* Adjust left spacing */
  top: 50%; /* Position at 50% from the top */
  transform: translateY(-50%); /* Shift up by half its height */
  max-height: 80%; /* Prevent image from being too tall */
  height: auto;
  width: 120px; /* Fixed width (adjust as needed) */
}


@media (max-width: 1200px) {
  .nav-bar img.small-logo { display: none;}

}