/*---------------------------------------------------------------
  Template Name: Medinexia | Modern Medical & Healthcare Template
  Description: Medinexia – Modern Medical & Healthcare Landing Page Template designed for hospitals, clinics, doctors and healthcare services with a clean, trustworthy UI.
  Author: Lucid ThemesLab
  Author URL: https://www.templatemonster.com/store/lucid_themeslab/

  @import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

  Version: 1.0.0
----------------------------------------------------------------*/

@import url(main.css);

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

::placeholder {
  color: var(--nav-text) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Archivo", sans-serif;
}

body {
  font-family:    "Archivo", sans-serif;
  overflow-x: hidden;
  background-color: var(--body-color);
}

    .top-bar {
        font-size: 14px;
    }

    .navbar .nav-link {
        font-weight: 500;
        margin-right: 10px;
    }

/* ===== NAVBAR STYLING ===== */
.navbar {
  background: var(--card-color) !important;

}

.navbar .nav-link {
  color: var(--heading-text);
  font-weight: 500;
  padding: 0.75rem 1rem;

}

.navbar .nav-link:hover {
  color: var(--primary-color);
    transition: 0.3s;
}

.nav-item.active .nav-link {
  color: var(--primary-color) !important;
   font-weight: 500;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

    /* =========================
       HERO SECTION (MEDICAL)
     ========================= */

    .hero-medical {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    /* Each Slide */
    .hero-slide {
        min-height: 900px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        padding: 0 8%;
        position: relative;
    }

    /* Dark Overlay */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}


    .slide-1{
      background-image: url("../../assets/images/background-img/bg_1.webp");
    }

    .slide-2{
      background-image: url("../../assets/images/background-img/bg_2.webp");
    }

    .slide-3{
      background-image: url("../../assets/images/background-img/bg_3.webp");
    }


  /* =========================
     GLASS CONTENT BOX
   ========================= */

.hero-content-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    background: var(--hero-glass-bg);
    backdrop-filter: blur(12px);
    padding: 45px 40px;
    border-radius: 18px;
    border: 1px solid var(--hero-glass-border);
    color: var(--hero-text);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.9s ease-out;
}

    /* Decorative Glow Border */
.hero-content-box::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: var(--hero-glow);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.7;
}

/* patient rating badge */
.rating-badge {
    background: var(--rating-bg);
    color: var(--hero-text);
}
/* =========================
   TEXT STYLING
========================= */

    .hero-title {
        font-size: 50px;
        font-weight: 700;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 18px;
        margin: 18px 0 28px;
        opacity: 0.9;
    }

    /* Patient Rating Badge */
    .rating-badge {
        margin-top: 18px;
        background: rgba(255, 255, 255, 0.22);
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 14px;
        backdrop-filter: blur(6px);
        font-weight: 500;
        display: inline-block;
    }

 /* =========================
   RESPONSIVE
========================= */
    @media (max-width: 991px) {
        .hero-slide {
            min-height: 500px;
            padding: 0 5%;
            text-align: center;
            justify-content: center;
        }

        .hero-title {
            font-size: 32px;
        }

        .hero-content-box {
            max-width: 90%;
            padding: 30px 22px;
        }

        .hero-btn-group .hero-btn {
            width: 100%;
            margin: 6px 0;
        }
    }

/* =========================
   PRELOADER BASE
========================= */

    #preloader {
        position: fixed;
        inset: 0;
        background: var(--theme-gradient);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    #preloader.loaded {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .preloader-inner {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 22px;
        align-items: center;
    }

/* =========================
   LOADING TEXT ABOVE LOGO
========================= */

    .loader-text {
        font-size: 16px;
        color: white;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 5px;
    }

    .loader-text .dots b {
        opacity: 0;
        animation: dotBlink 1.2s infinite;
        margin: 0 2px;
    }

    .loader-text .dots b:nth-child(1) {
        animation-delay: .0s;
    }

    .loader-text .dots b:nth-child(2) {
        animation-delay: .2s;
    }

    .loader-text .dots b:nth-child(3) {
        animation-delay: .4s;
    }

    @keyframes dotBlink {
        0% {
            opacity: 0;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0;
        }
    }

/* =========================
   INDIVIDUAL LETTER BOUNCE
========================= */
  .preloader-logo {
      font-size: 70px;
      font-weight: 700;
      color: #26c6da;
      display: flex;
      gap: 3px;
  }

  .preloader-logo span {
      display: inline-block;
      animation: jump 1.2s infinite ease-in-out;
  }

  /* delay each alphabet individually */
  .preloader-logo span:nth-child(1) {
      animation-delay: 0s;
  }

  .preloader-logo span:nth-child(2) {
      animation-delay: .1s;
  }

  .preloader-logo span:nth-child(3) {
      animation-delay: .2s;
  }

  .preloader-logo span:nth-child(4) {
      animation-delay: .3s;
  }

  .preloader-logo span:nth-child(5) {
      animation-delay: .4s;
  }

  .preloader-logo span:nth-child(6) {
      animation-delay: .5s;
  }

  .preloader-logo span:nth-child(7) {
      animation-delay: .6s;
  }

  .preloader-logo span:nth-child(8) {
      animation-delay: .7s;
  }

  .preloader-logo span:nth-child(9) {
      animation-delay: .8s;
  }

  /* jumping animation */
  @keyframes jump {

      0%,
      100% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-14px);
      }
  }

/* =========================
   SPINNER
========================= */
  .spinner-circle {
      width: 50px;
      height: 50px;
      border: 4px solid rgba(221, 221, 221, 0.411);
      border-top-color: var(--primary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

  @keyframes spin {
      to {
          transform: rotate(360deg);
      }
  }

  /* Responsive */
  @media (max-width: 480px) {
      .preloader-logo {
          font-size: 48px;
      }
  }

  /* Background Gradient + Section Spacing */
  .medical-services-section {
      background: var(--theme-gradient);
      position: relative;
  }

  /* Badge Label */
  .badge-label {
      display: inline-block;
      border: 1px solid var(--primary-color);
      padding: 6px 18px;
      border-radius: 20px;
      color: var(--primary-color);
      font-size: 14px;
      letter-spacing: 1px;
      background: rgba(255, 255, 255, 0.05);
  }

  /* Icon Styling */
  .badge-label svg {
      margin-right: 8px;
      color: var(--primary-color);
      /* Sky blue color */
      animation: bounce 1.5s infinite;
  }

  /* Bounce Animation for Icon */
  @keyframes bounce {

      0%,
      100% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-4px);
      }
  }

  /* Service Card */
  .service-card {
      background: var(--card-color);
      padding: 35px;
      border-radius: 16px;
      height: 100%;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      transition: 0.3s ease;
  }

  .service-card:hover {
      transform: translateY(-6px);
  }

  /* Heading Dot */
  .service-card .dot {
      width: 9px;
      height: 9px;
      background: var(--primary-color);
      /* Teal Accent */
      border-radius: 50%;
      display: inline-block;
      margin-right: 6px;
  }

  /* Text */
  .service-card p {
      font-size: 14px;
      color: var(--para-text);
      margin: 15px 0 25px;
  }

  /* Footer Area */
  .service-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  /* Read More */
  .read-more {
      font-size: 14px;
      font-weight: 500;
      color: var(--heading-text);
      text-decoration: none;
  }

  .read-more svg {
      transition: 0.3s;
  }

  .read-more:hover svg {
      transform: translateX(4px);
  }

  /* Icon Box */
  .service-icon {
      width: 45px;
      height: 45px;
      background: var(--secondary-color);
      color: #fff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
  }

  /* Service Card */
  .service-card {
      padding: 35px;
      border-radius: 16px;
      height: 100%;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      transition: 0.4s ease-in-out;
  }

  /* Background image placeholder (changes per card) */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 0.4s ease-in-out;
}

/* Card 1 */
.service-card.bg-1::before {
    background-image: url("../../assets/images/services_img/01.webp");
}

/* Card 2 */
.service-card.bg-2::before {
    background-image: url("../../assets/images/services_img/02.webp");
}

/* Card 3 */
.service-card.bg-3::before {
    background-image: url("../../assets/images/services_img/03.webp");
}

/* Card 4 */
.service-card.bg-4::before {
    background-image: url("../../assets/images/services_img/04.webp");
}

/* Card 5 */
.service-card.bg-5::before {
    background-image: url("../../assets/images/services_img/05.webp");
}

/* Card 6 */
.service-card.bg-6::before {
    background-image: url("../../assets/images/services_img/06.webp");
}
.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

  /* Blue Overlay */
  .service-card::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(18, 57, 158, 0.75);
      opacity: 0;
      transition: 0.4s ease-in-out;
  }

  /* Hover state: show bg + overlay */
  .service-card:hover::before,
  .service-card:hover::after {
      opacity: 1;
  }

  /* Keep content above layers */
  .service-card>* {
      position: relative;
      z-index: 2;
  }

  /* Text hover style */
  .service-card:hover h5,
  .service-card:hover p,
  .service-card:hover .read-more {
      color: #fff !important;
  }

  /* Dot color change */
  .service-card:hover .dot {
      background: #fff;
  }

  /* Icon hover style */
  .service-card:hover .service-icon {
      background: var(--primary-color)!important;
      /* Sky Blue */
       color: #fff;
  }

  /* Read More Icon hover */
  .service-card:hover .read-more svg {
      color: #fff;
  }

  /* About medinexia Section */

  .about-medinexia .img-main {
      width: 100%;
      height: 100%;
  }

  .about-medinexia .main-img {
      width: 100%;
      z-index: 1;
  }

  .about-medinexia .top-img {
      width: 60%;
      top: -20px;
      left: 50px;
      z-index: 2;
      border: 4px solid #fff;
  }

  .about-medinexia .bottom-img {
      width: 50%;
      bottom: -20px;
      right: 0;
      z-index: 3;
      border: 4px solid #fff;
  }

  /* Responsive Adjustments */
  @media (max-width: 992px) {

      .about-medinexia .top-img,
      .about-medinexia .bottom-img {
          width: 50%;
          top: -10px;
          left: 20px;
          bottom: -10px;
          right: auto;
      }

      .video-thumb {
          width: 100px;
          height: 70px;
      }
  }

  /* Feature Cards */
  .feature-card i {
      font-size: 2rem;
  }

  .feature-card h5 {
      margin-top: 12px;
      margin-bottom: 10px;
  }

  .feature-card p {
      font-size: 0.95rem;
      opacity: 0.85;
  }

  /* Doctors Card */
  .card-img-top {
      height: 250px;
      object-fit: cover;
  }

  /* Appointment Form */
  .appointment-form input,
  .appointment-form select,
  .appointment-form textarea {
      border-radius: 8px;
  }

  .appointment-form button {
      border-radius: 30px;
      transition: 0.3s;
  }

  .appointment-form button:hover {
      transform: translateY(-2px);
  }

  /* Features Grid - Bootstrap Integrated */
.features-modern {
  position: relative;
}

/* Feature Card */
.feature-card-modern {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: 0.4s ease;
}

.feature-card-modern:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Icon Background Gradient */
.icon-bg {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.5rem;
  animation: iconPulse 2s infinite alternate;
}

/* Icon Pulse Animation */
@keyframes iconPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.feature-card-modern h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

  /* Stats Section */
  .stats-modern {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      text-align: center;
  }

  .stat-modern h3 {
      font-size: 2rem;
      font-weight: 700;
      background: var(--primary-color);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }

  /* Responsive */
  @media (max-width: 768px) {
 

  }

  .trending-stats {
      background: var(--theme-gradient);
      color: #fff;
  }

  .stat-trend {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(12px);
      transition: transform 0.4s, box-shadow 0.4s;
      min-height: auto;
      /* height adjusts according to content */
  }

  .stat-trend:hover {
      transform: translateY(-15px);
      box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  }

  .icon-wrapper {
      width: 70px;
      height: 70px;
      margin: 0 auto;
      background: linear-gradient(135deg, var(--primary-color), #033b88);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      animation: iconBounce 2s infinite;
  }

  @keyframes iconBounce {

      0%,
      100% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-10px);
      }
  }

  .count {
      font-size: 2.2rem;
      font-weight: 700;
      margin-top: 10px;
  }

  .stat-trend p {
      margin: 0;
      font-size: 1rem;
      opacity: 0.85;
  }

  /* Responsive tweaks */
  @media(max-width: 768px) {
      .icon-wrapper {
          width: 60px;
          height: 60px;
      }

      .count {
          font-size: 1.8rem;
      }
  }

  /* Doctor Card */
  .doctor-card-premium {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(15px);
      border-radius: 20px;
      overflow: hidden;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      cursor: pointer;
      position: relative;
  }

  .doctor-card-premium:hover {
      transform: translateY(-10px);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  }

  /* Doctor Image */
  .doctor-img-premium {
      position: relative;
      overflow: hidden;
      border-radius: 20px 20px 0 0;
  }

  .doctor-img-premium img {
      width: 100%;
      display: block;
      transition: transform 0.5s ease;
  }

  .doctor-card-premium:hover .doctor-img-premium img {
      transform: scale(1.1);
  }

  /* Overlay */
  .overlay-premium {
      position: absolute;
      inset: 0;
      background: rgba(0, 123, 255, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.4s ease;
  }

  .doctor-card-premium:hover .overlay-premium {
      opacity: 1;
  }

  /* Specialty Badge */
  .badge-specialty {
      position: absolute;
      top: 10px;
      left: 10px;
      background: linear-gradient(135deg, var(--primary-color), #033b88);
      color: #fff;
      padding: 5px 12px;
      border-radius: 50px;
      font-size: 0.75rem;
      display: flex;
      align-items: center;
      gap: 5px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  /* Doctor Info */
  .doctor-info-premium {
      padding: 1rem;
      background-color: var(--card-color);
  }

  .doctor-info-premium h5 {
      font-weight: 600;
      margin-bottom: 0.25rem;
  }

  /* Modal Styling */
  .doctor-modal-content {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px);
      border-radius: 20px;
      color: #fff;
      border: none;
  }

  .modal-doctor-img {
      width: 180px;
      border-radius: 50%;
      margin-bottom: 1rem;
  }

  .specialty-modal,
  .experience-modal {
      font-weight: 500;
      color: #ffffff;
  }

  .bio-modal {
      margin-top: 1rem;
      color: #ffffff;
  }

  .contact-modal i {
      margin-right: 5px;
      color: var(--primary-color);
  }

  .modal-buttons a {
      margin-top: 0.5rem;
  }

  /* Responsive */
  @media(max-width: 768px) {
      .doctor-card-premium {
          margin-bottom: 1rem;
      }

      .modal-body {
          flex-direction: column !important;
      }

      .modal-doctor-img {
          margin-bottom: 1rem;
      }
  }

    /* Responsive */
  @media(max-width: 576px) {
      .doctor-card-premium {
          width: 70%;
          margin: auto;
      }
    }

  .footer-section{
    background: var(--theme-gradient);
  }

    .footer-section h5 {
        border-bottom: 2px solid var(--primary-color);
        display: inline-block;
        padding-bottom: 5px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        /* color: rgba(255, 255, 255, 0.8); */
        text-decoration: none;
        transition: color 0.3s ease-in;
    }

    .footer-links a:hover {
        color: var(--primary-color);
    }

    .social-icons a {
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in;
    }

    .social-icons a:hover {
        background: var(--primary-color);
        color: #fff !important;
    }

    /* Appointment Section */

    /* Form Card */
    .appointment-form {
        background: var(--card-color);
        border-radius: 15px;
        padding: 2rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    /* Input Fields with Icon */
    .appointment-form .position-relative {
        position: relative;
    }

    .appointment-form .form-icon {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1rem;
    }

    .appointment-form .form-control,
    .appointment-form .form-select,
    .appointment-form textarea {
        border-radius: 10px;
        border: 1px solid #ced4da;
        height: 45px;
        font-size: 0.95rem;
        transition: 0.3s ease-in;
        background-color: var(--input-bg);
        color: var(--input-text);
    }

    .appointment-form textarea {
        min-height: 100px;
        padding-top: 0.8rem;
    }

    /* Focus Effect */
    .appointment-form .form-control:focus,
    .appointment-form .form-select:focus,
    .appointment-form textarea:focus {
        border-color: var(--primary-color);
        box-shadow: none;
        outline: none;
        background-color: var(--input-bg);
        color: var(--input-text);
    }

    /* Custom Select Arrow */
    .appointment-form select.form-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding-right: 2.5rem;
    }

    .select-arrow {
        position: absolute;
        right: 15px;
        top: 25px;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--input-text);
    }

    /* Placeholders */
    .appointment-form ::placeholder {
    color: var(--input-text);
        opacity: 1;
    }

    /* Submit Button */
    .primary-btn {
        border-radius: 50px;
        padding: 12px 28px;
        font-weight: 600;
        background: var(--secondary-color);
        border: none;
        color: #fff!important;
        font-size: 15px;
  
    } 

    .primary-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: var(--primary-color);
        transition: 0.3s ease-in;
    }

    /* Submit Button */
    .outline-btn {
        border-radius: 50px;
        padding: 12px 28px;
        font-weight: 600;
        border: 1px solid #fff;
        color: #fff!important;
        font-size: 15px;  
    } 

    .outline-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: var(--secondary-color);
        transition: 0.3s ease-in;
    }

    /* Submit Button */
    .primary-outline-btn{
        border-radius: 50px;
        padding: 12px 28px;
        font-weight: 600;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        font-size: 15px;
    } 

    .primary-outline-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: var(--primary-color);
        color: #fff!important;
        transition: 0.3s ease-in;
    }


    /* Responsive */
    @media(max-width: 768px) {
        .appointment-form {
            padding: 1.5rem;
        }
    }

    .form-select {
        background-image: unset;
    }

    /* Form Icons */
    .appointment-form .form-icon {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: var(--input-text);
        font-size: 1rem;
    }

    /* Select Custom Arrow */
    .select-arrow {
        position: absolute;
        right: 15px;
        top: 25px;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--input-text);
    }

    /* Opening Hours */
    .opening-hours {
        border-radius: 15px;
        background: var(--theme-gradient);
        padding: 1.5rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .opening-hours h5 {
        font-size: 1.2rem;
    }

    .opening-hours ul li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .opening-hours ul li:last-child {
        border-bottom: none;
    }

    /* Validation */
    .was-validated .form-control:invalid,
    .was-validated .form-select:invalid {
        border-color: #dc3545;
    }

    .was-validated .form-control:valid,
    .was-validated .form-select:valid {
        border-color: #198754;
    }

    /* Responsive */
    @media(max-width: 992px) {
        .opening-hours {
            margin-top: 20px;
        }
    }

    /* =================================================
       COMMON CARD / IMAGE UTILS
    ================================================= */
    .card-soft {
        background: var(--card-color);
        border-radius: 10px;
        padding: 18px;
        box-shadow: 0 12px 32px rgba(9, 30, 66, 0.08);
        border: none;
    }

    img.responsive {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .rounded-shadow {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(9, 30, 66, 0.08);
    }

    /* =========================
    TESTIMONIALS (SWIPER)
    ========================= */
    .testimonials {
        padding: 56px 0;
    }

    .testimonials .swiper {
        padding-bottom: 14px;
    }

    .testimonial-card {
        background: var(--card-color);
        border-radius: 14px;
        padding: 18px;
        display: flex;
        gap: 14px;
        align-items: flex-start;
        transition: transform .35s cubic-bezier(.22, .9, .36, 1), box-shadow .35s;
        height: 100%;
    }

    .testimonial-card .avatar {
        width: 68px;
        height: 68px;
        border-radius: 50%;
        overflow: hidden;
        flex: 0 0 68px;
        border: 3px solid rgba(0, 179, 255, 0.12);
    }

    .testimonial-card .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .testimonial-name {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .testimonial-role {
        color: var(--muted);
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .testimonial-quote {
        font-size: 0.96rem;
        color: var(--text);
        opacity: 0.95;
    }

    /* active slide emphasis */
    #testimonials.swiper .swiper-slide-active .testimonial-card {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 22px 46px rgba(3, 37, 76, 0.14);
    }

    /* star */
    .stars {
        color: #f5b301;
        margin-bottom: 6px;
    }

    /* responsive tweaks */
    @media (max-width: 992px) {
        .testimonial-card {
            padding: 16px;
            gap: 12px;
        }

        .testimonial-name {
            font-size: 0.98rem;
        }
    }

    @media (max-width:576px) {
        .testimonial-card {
            flex-direction: row;
            gap: 12px;
            align-items: center;
        }

        .testimonial-quote {
            display: block;
            font-size: 0.95rem;
        }
    }

    /* =========================
    FACILITIES GALLERY (responsive masonry)
    ========================= */

.facilities {
    padding: 56px 0;
}

.gallery-grid {
    column-count: 3;
    column-gap: 22px; /* increased gap */
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 22px; /* extra bottom space */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform .4s ease ease-in;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .5s ease ease-in;
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 100%);
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transition: opacity .35s ease-in;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Hover view icon */
.view-icon {
    opacity: 0;
    transform: translateY(10px);
    transition: .4s ease-in;
    font-size: 20px;
}

.gallery-item:hover .view-icon {
    opacity: 1;
    transform: translateY(0);
}

/* columns breakpoints */
@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

    /* =========================
    FAQ ACCORDION
    ========================= */

  .faq-accordion .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 12px 32px rgba(9, 30, 66, 0.08);
    transition:  0.3s ease-in;
  }

  .faq-accordion .accordion-button {
    font-weight: 700;
    background: var(--card-color);
    color: var(--heading-text);
    padding: 18px 20px;
    transition: 0.35s ease-in;
    box-shadow: none;
  }

  .faq-accordion .accordion-button:focus {
    box-shadow: none;
  }

  /* When Open (Active) */
  .faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #fff;
    box-shadow: none;
  }

  /* Arrow icon rotation */
  .faq-accordion .accordion-button::after {
    transition: transform 0.35s ease-in;
  }
  .faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
  }

  /* Body Content */
  .faq-accordion .accordion-body {
    background: var(--card-color);
    color: var(--heading-text);
    padding: 18px 22px;
    line-height: 1.6;
  }

  /* Hover effects */
  .faq-accordion .accordion-button:hover {
    background: var(--primary-color);
    color: var(--white-text);
  }
  .faq-accordion .accordion-button:not(.collapsed):hover {
    background: var(--primary-color);
    color: #fff;
  }

  /* Remove default accordion arrow */
  .faq-accordion .accordion-button::after {
      display: none !important;
  }
  /* Icon base */
  .faq-icon {
      margin-left: auto;
      font-size: 18px;
      transition: transform 0.3s ease-in;
  }

  /* When OPEN (active) - change icon OR rotate */
  .accordion-button:not(.collapsed) .faq-icon {
      transform: rotate(180deg); 
  }

  /* spacing adjust mobile */
  @media (max-width:576px) {
      .section-title h2 {
          font-size: 1.4rem;
      }

      .section-sub {
          font-size: 0.95rem;
      }

      .testimonial-quote {
          font-size: 0.95rem;
      }
  }

/*================================================
   Theme Switch Button Styles
=================================================*/

#btnSwitch {
  top: 200px;
  z-index: 2;
}

/* Responsive spacing */
@media (max-width: 576px) {
  #btnSwitch {
    top: 130px;
  }
}

.backto-btn{
  background: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  border: none;
}

.backto-btn:hover {
 background: var(--secondary-color);
  color: #fff;
}

/*===============================================
   Back to top Styles
=================================================*/
#backtotop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 7px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#backtotop:hover {
  cursor: pointer;
}

#backtotop.show {
  opacity: 1;
  visibility: visible;
}

.alertmsg {
  z-index: 9999;
}

/*===============================================
   Contact Section Styles
=================================================*/

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid #e0e0e0;
  padding-left: 12px;
  font-size: 1rem;
}

/* INFO CARDS */
.info-card {
  background: var(--card-color);
  border-left: 4px solid var(--primary-color);
}

.icon-box {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--alt-color);
  font-size: 1.3rem;
  color: var(--primary-color);
}

/* Highlight Email Icon */
.highlight-email {
  background: var(--primary-color);
  color: #fff;
  animation: pulse 1.8s infinite;
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Responsiveness */
@media(max-width: 768px){
  .contact-form {
    padding: 20px !important;
  }
}

.error{
  color: #ff6969;
}

/* Form Card */
.contact-form {
    background: var(--card-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Input Fields with Icon */
.contact-form .position-relative {
    position: relative;
}

.contact-form .form-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-form .form-control,
.contact-form .form-select,
.contact-form textarea {
    border-radius: 10px;
    border: 1px solid #ced4da;
    height: 45px;
    font-size: 0.95rem;
    transition: 0.3s ease-in;
    background-color: var(--input-bg);
    color: var(--input-text);
}

.contact-form textarea {
    min-height: 100px;
    padding-top: 0.8rem;
}

/* Focus Effect */
.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    outline: none;
    background-color: var(--input-bg);
    color: var(--input-text);
}

/* Custom Select Arrow */
.contact-form select.form-select {
    appearance: none;
    padding-right: 2.5rem;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--input-text);
}

/* Placeholders */
.contact-form ::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.glightbox-clean .gdesc-inner{
  background-color: var(--body-color);
}

.glightbox-clean .gslide-title{
  color: var(--secondary-color);
  font-size: 28px;
  font-weight: 600;
}


/* Mobile Only (max-width 991px) */
@media (max-width: 991.98px) {
  /* Offcanvas Header */
  .offcanvas-header {
    background-color: var(--card-color) !important; 
  }

  /* Offcanvas Body */
  .offcanvas-body {
    background-color: var(--alt-color)!important; /* your color here */
  }
}


/* Icon inside input fields */
.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    color: var(--heading-text);  /* auto switch on theme change */
    opacity: 0.7;
}


/* Input styling sync with theme */
.date-input,
.time-input {
    background: var(--card-color);
    color: var(--heading-text);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.date-input:focus,
.time-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* Placeholder color based on theme */
.date-input::placeholder,
.time-input::placeholder {
    color: var(--para-text);
    opacity: 0.7;
}
/* Calendar container */
.flatpickr-calendar {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    border-radius: 10px;
}

/* Month & Year header */
.flatpickr-months .flatpickr-month {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
}

/* Weekday headings */
.flatpickr-weekdays span {
    color: var(--para-text) !important;
}

/* Normal day numbers */
.flatpickr-day {
    color: var(--heading-text) !important;
    border-radius: 6px !important;
}

/* Hover effect */
.flatpickr-day:hover {
    background: rgba(var(--primary-color),0.15) !important;
}

/* Selected date */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Time dropdown styling */
.flatpickr-time input {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
    border: 1px solid var(--primary-color) !important;
}

.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--primary-color);
}


.flatpickr-months .flatpickr-next-month {
    fill: var(--heading-text)
}

.flatpickr-months .flatpickr-prev-month {
    fill: var(--heading-text)
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: var(--heading-text) !important;
    opacity: 0.75;
    transition: 0.3s;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}


.flatpickr-time .flatpickr-am-pm:focus {
    background:var(--primary-color) !important;
     color: var(--white-text) !important;
}

.flatpickr-time .flatpickr-am-pm {
    color: var(--heading-text);
}


.flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:focus {
      background:var(--primary-color) !important;
     color: var(--white-text) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--card-color) !important;
  color: var(--heading-text) !important;
  border: 1px solid var(--primary-color) !important;
}

/* Mobile Offcanvas Styling (below 991px) */
@media (max-width: 991px) {

  /* Offcanvas BG Colors */
  .offcanvas-header {
    background-color: var(--alt-color);
  }
  .offcanvas-body {
    background-color: var(--card-color) !important;
  }

  /* Same styling for both toggler and close button */
  .navbar-toggler,
  .btn-close {
    width: 46px !important;
    height: 46px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    border-radius: 6px;
    box-shadow: none;
    transition: 0.3s ease;
    opacity: 1;
  }

  /* Remove default bootstrap toggler icon */
  .navbar-toggler .navbar-toggler-icon {
    display: none;
  }

  /* Remove bootstrap background-image from close button */
  .btn-close {
    background-image: none !important;
  }

  /* Icon styling (Font Awesome) */
  .navbar-toggler svg,
  .btn-close svg {
    font-size: 24px;
    color: #fff;
    transition: 0.3s ease;
    pointer-events: none;
    opacity: 1;
  }

  /* Hover effect */
  .navbar-toggler:hover,
  .btn-close:hover {
    background-color: var(--primary-color);
  }
  .navbar-toggler:hover svg,
  .btn-close:hover svg {
    color: #fff;
  }

  /* Remove focus outlines */
  .navbar-toggler:focus,
  .btn-close:focus {
    box-shadow: none;
    outline: none;
  }
}

/* Button active/focus state (global) */
.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  color: var(--white-text);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn.show:hover{
   background-color: var(--secondary-color);
}

.contact-info-mobile a {
    color: var(--heading-text);
    text-decoration: none;
    font-size: 20;
    font-weight: 600;
}

.contact-info-mobile a:hover {
    text-decoration: underline;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 15px;
    margin-right: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.icon-circle:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.contact-info-mobile div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info-mobile {
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 10px 0;
}

