/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }
/*** Spinner End ***/


.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 10px;
    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;
}



/*** 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: .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: var(--bs-light);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 17px;
    transition: .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: .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, .95);
}
/*** Navbar End ***/





/*** Events Start ***/
.carousel-inner {
      padding: 0 40px;
}

.carousel-item {
  padding: 0 25px;
  transition: transform 0.8s ease-in-out;
}


.event-img {
      position: relative;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.4s ease;
}

.event-img img {
      transition: transform 0.5s ease;
}

.event-img:hover img {
      transform: scale(1.05);
}

.event-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.55);
      color: #fff;
      text-align: center;
      padding: 10px;
      opacity: 0;
      transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
  .carousel-inner {
      padding: 0 20px;
  }
}
/*** Events End ***/





/*** service start ***/
.service .service-item {
    position: relative;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(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;
    background: rgba(var(--bs-primary-rgb), 0.6); /* make overlay semi-transparent */
    z-index: 1; /* ensure overlay sits above image but below text */
}

.service-item .service-content-icon {
    position: relative;
    z-index: 2;
}

.service-item .service-content-icon p {
    transition: 1s;
}

.service-item:hover .service-content-icon p {
    color: var(--bs-dark);
}
/*** 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 ***/




/*** 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, .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-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 15px;
  box-sizing: border-box;
}

.blog-popup-content {
  background: #fff;
  padding: 2rem;
  max-width: 650px;
  width: 100%;
  border-radius: 12px;
  position: relative;
  animation: popupFade 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.blog-popup-content h3 {
  color: #37b93e;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 2.2rem; /* slightly increased for better emphasis */
  line-height: 1.35;
  text-align: center;
  font-weight: 700; /* slightly bolder for prominence */
}

.blog-popup-content p {
  font-size: 1.15rem; /* a bit larger for readability */
  line-height: 1.75;
  color: #333;
  text-align: justify;
  word-wrap: break-word;
}

/* Close Button */
.blog-popup-close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 38px; /* slightly larger */
  cursor: pointer;
  color: #333;
  transition: 0.2s;
}

.blog-popup-close:hover {
  color: #c0392b;
  transform: scale(1.1);
}

/* Animation */
@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .blog-popup-content {
    padding: 1.6rem;
    border-radius: 10px;
    max-width: 95%;
  }

  .blog-popup-content h3 {
    font-size: 2.1rem; /* bigger on tablet/mobile */
    line-height: 1.4;
  }

  .blog-popup-content p {
    font-size: 1.05rem;
  }

  .blog-popup-close {
    font-size: 34px; /* bigger close icon */
    top: 8px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .blog-popup-content {
    padding: 1.4rem;
  }

  .blog-popup-content h3 {
    font-size: 1.8rem; /* increased from 1.2rem */
    line-height: 1.3;
  }

  .blog-popup-content p {
    font-size: 1rem;
  }

  .blog-popup-close {
    font-size: 32px; /* visibly larger on small screens */
  }
}
/*** 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, .08);
}
/*** Contact End ***/





/*** Footer Start ***/
.footer .footer-item a.text-body:hover {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/




/*** Blink Start ***/
#welcomeText {
    font-size: 36px;
    font-weight: bold;
    color: #ff6600;
    text-align: center;
    margin-top: 50px;
    font-family: 'Playfair Display', serif;
    height: 50px; /* reserve space */
    overflow: hidden;
    position: relative;
}

#welcomeText span {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: inline-block;
}
/*** Blink End ***/




/*** Why Choose Us Start ***/
.choose-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 35px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* keeps border inside box */
  height: 320px;
  z-index: 1;
}

.choose-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 14px;
  background: linear-gradient(45deg, #ffb703, #ff006e, #fb8500);
  z-index: -1;
}

.choose-card::after {
  content: "";
  position: absolute;
  inset: 6px; /* controls border thickness (5px) */
  background: #fff;
  border-radius: 10px;
  z-index: 0;
}

.choose-card > * {
  position: relative;
  z-index: 1;
}

.choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.choose-card h5 {
  font-family: 'Poppins', sans-serif;
  color: #222;
  font-size: 20px;
  line-height: 1.4;
}

.choose-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.icon i {
  transition: transform 0.3s ease;
}

.choose-card:hover .icon i {
  transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .choose-card {
    padding: 28px 22px;
    height: 300px;
  }
  .choose-card h5 {
    font-size: 19px;
  }
  .choose-card p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .choose-card {
    padding: 22px 18px;
    height: 260px;
  }
  .choose-card h5 {
    font-size: 18px;
  }
  .choose-card p {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .choose-card {
    padding: 18px 15px;
    margin-bottom: 15px;
    height: auto;
  }
  .choose-card .icon i {
    font-size: 2.3rem;
  }
  .choose-card h5 {
    font-size: 17px;
  }
  .choose-card p {
    font-size: 13.5px;
  }
  .blog.py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}
/*** Why Choose Us End ***/




/*** About Video Start ***/
.video {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(rgba(254, 218, 154, 0.1), rgba(254, 218, 154, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

/* Optional: keep it responsive on smaller screens */
@media (max-width: 768px) {
    .video {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .video {
        min-height: 250px;
    }
}
/*** About Video End ***/



/*** Feedback Start ***/
.feedback-chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #4a90e2;
    color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.feedback-chatbot-btn i {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.feedback-chatbot-btn:hover {
    background-color: #5dade2;
    transform: scale(1.08);
}
.feedback-chatbot-btn:hover i {
    color: #ffffff !important;
}

/* Tooltip styling */
.feedback-tooltip {
    position: absolute;
    right: 70px;
    background-color: #2f3640;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
    top: 50%;
    transition: opacity 0.3s ease, right 0.3s ease;
}
.feedback-chatbot-btn:hover .feedback-tooltip {
    opacity: 1;
    right: 75px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .feedback-chatbot-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    .feedback-tooltip {
        display: none;
    }
}
/*** Feedback End ***/