/**
* Template Name: Medilab
* Template URL: https://bootstrapmade.com/medilab-free-medical-bootstrap-theme/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Raleway", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff;
  /* Background color for the entire website, including individual sections */
  --default-color: #444444;
  /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2c4964;
  /* Color for headings, subheadings and title throughout the website */
  --accent-color: #1977cc;
  /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff;
  /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff;
  /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #2c4964;
  /* The default color of the main navmenu links */
  --nav-hover-color: #1977cc;
  /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff;
  /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff;
  /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #2c4964;
  /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #1977cc;
  /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f1f7fc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}
/* ===== Scrollbar Styling ===== */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;              /* width of vertical scrollbar */
  height: 12px;             /* height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3); /* scrollbar track color */
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #00eaff;  /* bright blue */
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.3); /* creates padding effect */
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00f7ff; /* brighter blue on hover */
}

/* Firefox */
* {
  scrollbar-width: thin;          /* "auto" or "thin" */
  scrollbar-color: #00eaff rgba(0,0,0,0.3); /* thumb track */
}

/* Optional: smooth hover glow for scrollbar thumb */
::-webkit-scrollbar-thumb {
  box-shadow: 0 0 4px #00eaff, 0 0 8px #00eaff inset;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(
    var(--accent-color) 50%,
    color-mix(in srgb, var(--accent-color), transparent 75%) 52%
  );
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}

.header .topbar {
  background-color: var(--accent-color);
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--contrast-color);
}

@media (max-width: 575px) {
  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .topbar .social-links a {
  color: color-mix(in srgb, var(--contrast-color), transparent 40%);
  line-height: 0;
  transition: 0.3s;
  margin-left: 20px;
}

.header .topbar .social-links a:hover {
  color: var(--contrast-color);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .cta-btn {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.scrolled .header .topbar {
  height: 0;
  visibility: hidden;
  overflow: hidden;
}
/* Default (desktop) */
.logo {
  display: flex;
  align-items: center;
  margin-left: 0; /* default */
}

/* Mobile: screen width 768px or less */
@media (max-width: 768px) {
  .logo {
    margin-left: -30px; /* push it near the left margin */
    justify-content: flex-start; /* ensure items align left */
  }

  .logo img {
    margin-right: 0px; /* optional spacing between image and text */
  }
}

/*--------------------------------------------------------------
# HEADER SEARCH STYLING
--------------------------------------------------------------*/
.d-flex.align-items-center.ms-3 {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
  z-index: 1000; /* Keep search above hero */
}

/* Search wrapper must NOT affect hero layout */
.search-wrapper {
  position: relative;
  z-index: 9999;
  height: 40px;              /* Fixed height prevents layout shifts */
}

/* Search input */
.search-wrapper .search-input {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 2px solid #00eaff;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  outline: none;
  width: 200px;
  transition: 0.3s;
  height: 40px;              /* Locks the size to avoid hero shifting */
  box-sizing: border-box;
}

.search-wrapper .search-input::placeholder {
  color: #00eaff;
  opacity: 0.7;
}

.search-wrapper .search-input:focus {
  border-color: #00f7ff;
  box-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
}

/* Icon button */
.search-wrapper .search-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #00eaff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
}

.search-wrapper .search-btn:hover {
  color: #00f7ff;
  text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
}

/*--------------------------------------------------------------
# FIXED DROPDOWN (NO HERO GLITCHES)
--------------------------------------------------------------*/
.search-dropdown {
  position: absolute;
  top: 45px;                 /* Just below the search bar */
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  border-top: none;
  z-index: 99999;

  /* Prevent dropdown from pushing hero content */
  pointer-events: auto;
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-dropdown li {
  padding: 8px 12px;
  cursor: pointer;
}

.search-dropdown li:hover {
  background-color: #f0f0f0;
}

/* Highlight matched text inside dropdown */
.search-dropdown .highlight {
  background: yellow;
  font-weight: bold;
}
/* ===========================================================
   POPUP ALERT (Top-right notification)
   =========================================================== */
.search-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(179, 0, 0, 0.7); /* semi-transparent background */
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.search-alert.show {
  opacity: 1;
  transform: translateY(0);
  animation: pulse 1s ease-in-out 0s 2; /* pulse twice */
}

@keyframes pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(179, 0, 0, 0.3);
  }
  50% {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 0 12px rgba(179, 0, 0, 0.5); /* softer glow */
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(179, 0, 0, 0.3);
  }
}


/*--------------------------------------------------------------
# HERO SECTION PROTECTION
--------------------------------------------------------------*/
#hero, 
.hero, 
.hero-section {
  position: relative;
  z-index: 1; /* Hero stays behind search UI */
  overflow: hidden; /* Prevent flicker from overlap */
}
.mobile-header-buttons {
  display: flex;
  align-items: center;
  gap: 10px; /* space between search button and hamburger */
}

.mobile-search-btn {
  position: fixed;     /* fix to top-right */
  top: 15px;
  right: 50px;
  border: none;
  background: transparent;
  color: #00eaff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10001;      /* above hamburger */
  transition: color 0.3s;
}

.mobile-search-btn:hover {
  color: #00f7ff;
  text-shadow: 0 0 8px #00eaff, 0 0 16px #00eaff;
}

/* Mobile search container */
.mobile-search-container {
  position: absolute;
  top: 50%;
  right: 90px;                 /* Anchored next to menu button */
  transform: translateY(-50%);

  width: 0;                    /* Collapsed state */
  max-width: 280px;            /* FINAL expanded length */
  height: 44px;

  opacity: 0;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.85);
  border-radius: 40px;

  display: flex;
  align-items: center;

  padding: 0;                  /* No padding when collapsed */
  box-sizing: border-box;

  transition: 
    width 0.25s ease,
    opacity 0.2s ease,
    padding 0.2s ease;

  z-index: 9999;
}

/* Expanded (active) state */
.mobile-search-container.active {
  width: 280px;                /* Expands to the RIGHT */
  opacity: 1;
  padding: 4px;
}

/* Input */
.mobile-search-container input {
  width: 100%;
  height: 100%;
  padding: 0.5rem 1.25rem;     /* Proper text spacing */
  border: 2px solid #00eaff;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: 0.3s;
}

/* Placeholder */
.mobile-search-container input::placeholder {
  color: #00eaff;
  opacity: 0.7;
}

/* Focus effect */
.mobile-search-container input:focus {
  border-color: #00f7ff;
  box-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
}

/* Highlighted search results */
.search-dropdown .highlight {
  background-color: yellow;
  font-weight: bold;
}

/* SHOW MOBILE SEARCH */
.mobile-search-container.active {
  width: 180px;       /* Reduced from 240px → compact mobile width */
  opacity: 1;
  padding: 4px 10px;  /* Smaller padding */
}

.mobile-search-container .search-button {
  position: absolute;
  right: -40px;               /* PUSHES button further to the right */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #00eaff;
  font-size: 1.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 6px #00eaff, 0 0 12px #00eaff;
  transition: 0.3s ease, transform 0.3s ease;
}

/* Active state */
.mobile-search-container.active .search-button {
  transform: translateY(-50%) rotate(90deg);
}

/* Hover */
.mobile-search-container .search-button:hover {
  color: #00f7ff;
  box-shadow: 0 0 12px #00f7ff, 0 0 24px #00f7ff, 0 0 36px #00f7ff;
  transform: translateY(-50%) rotate(90deg) scale(1.1);
}

/* Active click */
.mobile-search-container .search-button:active {
  transform: translateY(-50%) rotate(90deg) scale(0.95);
  box-shadow: 0 0 5px #00eaff, 0 0 10px #00eaff;
}


/* NEON ANIMATION EFFECT */
@keyframes neon-glow {
  0%, 100% {
    box-shadow: 0 0 5px #00eaff, 0 0 10px #00eaff, 0 0 20px #00eaff;
  }
  50% {
    box-shadow: 0 0 10px #00f7ff, 0 0 20px #00f7ff, 0 0 40px #00f7ff;
  }
}

.search-wrapper .search-input,
.mobile-search-container input {
  animation: neon-glow 1.5s infinite alternate;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .search-wrapper .search-input {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .search-wrapper .search-input {
    width: 120px;
  }
}


.search-alert.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hide mobile search box on screens wider than 1199px */
@media (min-width: 1200px) {
  #mobileSearchBox {
    display: none !important;
  }
}


/* Style mobile search alert ONLY on mobile screens */
@media (max-width: 1199px) { /* only for mobile/tablet views */
 #mobileSearchBox + .search-alert {
    position: fixed; /* fixed to viewport */
    top: 60px; /* adjust according to your search box position */
    left: 50%; /* center horizontally */
    transform: translateX(-50%); /* center the box */
    width: 50%; /* half the viewport width */
    max-width: 400px; /* optional: limit width */
    background: rgba(255, 237, 237, 0.8); /* semi-transparent */
    color: #b00000;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    z-index: 1050;
    text-align: center;
    display: none; /* initially hidden, shown by JS */
    
    /* Pulse animation */
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
}

  #mobileSearchBox + .search-alert.show {
    display: block;
  }
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation Styles for #desktopMenu */
@media (min-width: 1200px) {
  #desktopMenu.navmenu-desktop {
    padding: 0;
  }

  #desktopMenu.navmenu-desktop ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  #desktopMenu.navmenu-desktop li {
    position: relative;
  }

  #desktopMenu.navmenu-desktop > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  #desktopMenu.navmenu-desktop > ul > li:last-child {
    padding-right: 0;
  }

  #desktopMenu.navmenu-desktop a,
  #desktopMenu.navmenu-desktop a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  #desktopMenu.navmenu-desktop a i,
  #desktopMenu.navmenu-desktop a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  #desktopMenu.navmenu-desktop > ul > li > a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  #desktopMenu.navmenu-desktop a:hover:before,
  #desktopMenu.navmenu-desktop li:hover > a:before,
  #desktopMenu.navmenu-desktop .active:before {
    visibility: visible;
    width: 100%;
  }

  #desktopMenu.navmenu-desktop li:hover > a,
  #desktopMenu.navmenu-desktop .active,
  #desktopMenu.navmenu-desktop .active:focus {
    color: var(--nav-hover-color);
  }

  #desktopMenu.navmenu-desktop .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  #desktopMenu.navmenu-desktop .dropdown ul li {
    min-width: 200px;
  }

  #desktopMenu.navmenu-desktop .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  #desktopMenu.navmenu-desktop .dropdown ul a i {
    font-size: 12px;
  }

  #desktopMenu.navmenu-desktop .dropdown ul a:hover,
  #desktopMenu.navmenu-desktop .dropdown ul .active:hover,
  #desktopMenu.navmenu-desktop .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  #desktopMenu.navmenu-desktop .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  #desktopMenu.navmenu-desktop .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  #desktopMenu.navmenu-desktop .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}
/* ------------------------------
   Mobile Navigation Styles
--------------------------------*/
@media (max-width: 1199px) {

  /* CPSB FONT APPLICATION */
  .mobile-nav,
  .mobile-nav * {
    font-family: "Montserrat", sans-serif;
  }

  /* Hamburger toggle button */
  .mobile-nav-toggle {
    display: inline-block;
    position: absolute;
    top: 3px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--cpsb-green);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
  }

  /* CSS Variables */
  :root {
    --cpsb-green: #0B4D2A;
    --cpsb-green-dark: #083B20;
    --cpsb-gold: #C9A24D;      /* optional, not used for hover anymore */
    --cpsb-yellow: #FFD700;     /* bright yellow hover color */
    --cpsb-white: #FFFFFF;
  }

  /* OFFCANVAS MENU */
  .mobile-nav.offcanvas {
    width: 70vw;
    max-width: 520px;
    background-color: var(--cpsb-green);
    padding-top: 64px;
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
  }

  .mobile-nav.offcanvas.show {
    transform: translateX(0);
  }

  /* MENU HEADER */
  .mobile-nav-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--cpsb-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 2px solid var(--cpsb-white);
    z-index: 1;
  }

  .mobile-dsch-logo {
    height: 42px;
  }

  /* ------------------------------
     MAIN MENU LINKS
  --------------------------------*/
  .mobile-menu .nav-link {
    color: var(--cpsb-white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    transition: background 0.3s, color 0.3s;
  }

  /* Separator line under each main link */
  .mobile-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.9);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-menu .nav-link:hover::after {
    opacity: 0.3;
    transform: scaleX(1.1);
  }

  /* Hover & active bright yellow highlight for main links */
  .mobile-menu .nav-link:hover,
  .mobile-menu .nav-link:focus {
    background: var(--cpsb-yellow);
    color: var(--cpsb-green);
  }

  .mobile-menu .nav-link.active {
    background: var(--cpsb-yellow);
    color: var(--cpsb-green);
    border-left: 4px solid var(--cpsb-green-dark);
  }

  /* ------------------------------
     SUBMENU LINKS
  --------------------------------*/
  .submenu-link {
    display: block;
    padding: 0.75rem 2.75rem;
    color: var(--cpsb-white);
    border-bottom: 1px solid rgba(255,255,255,0.9);
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }

  .submenu-link:hover,
  .submenu-link:focus {
    background: var(--cpsb-yellow);
    color: var(--cpsb-green);
    border-color: var(--cpsb-green-dark);
  }

  /* ------------------------------
     LANGUAGE SWITCH
  --------------------------------*/
  .lang-switch {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 2px solid #ffffff;
    margin-top: 1rem;
  }

  .lang-switch button {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
  }

  .lang-switch button.active {
    background: var(--cpsb-white);
    color: var(--cpsb-green);
    border-color: var(--cpsb-gold);
  }

  /* ------------------------------
     DROPDOWN TOGGLE BUTTON
  --------------------------------*/
  .dropdown-toggle-btn {
    background: transparent;
    border: none;
    color: var(--cpsb-white);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
    z-index: 10;
  }

  /* Rotate arrow when dropdown open */
  .collapse.show + .dropdown-toggle-btn,
  .collapse.show ~ .dropdown-toggle-btn {
    transform: rotate(180deg);
  }

  /* Main link text style */
  .nav-link-text {
    color: var(--cpsb-white);
    font-weight: 600;
    padding: 1rem 1.5rem;
    display: block;
    cursor: pointer;
  }

  /* ------------------------------
     SEPARATOR AFTER MAIN LINKS
  --------------------------------*/
  .nav-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-item:hover .nav-separator {
    opacity: 0.3;
    transform: scaleX(1.1);
  }
}



/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background:rgba(255, 255, 255, 0.8);
  transition: all 0.6s ease-out;

  /* --- New CSS for centering content (Logo) --- */
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
}

/* * REMOVED: The old spinner (:before content) is removed.
 * It is replaced by the centered pulsing logo image.
 */
#preloader:before {
  /* This block is intentionally commented out/removed as 
     we are replacing the CSS spinner with the logo. */
  /* content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite; */
}

.pulse-logo {
  /* Set the desired size for your logo */
  width: 120px;
  height: 120px; 
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* The old @keyframes animate-preloader is no longer needed 
   unless you want to keep it for other uses. */
/* @keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} */
/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li + li {
  padding-left: 10px;
}

.page-title nav ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 60px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: calc(80vh);
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  justify-content:flex-start;
    text-align: left; 
  position: relative;
  overflow: hidden;
  
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.hero .container {
  z-index: 3;
   width: 100%;
  max-width: 1200px;
    margin-left: 0;
   padding-left: 20px;
  padding-right: 20px;
}

.hero .welcome h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: #104204;
}

.hero .welcome p {
  font-size: 24px;
  margin: 0;
}

.hero .content {
  margin-top: 40px;
  position: relative;
}

.hero .content .why-box {
  color: var(--contrast-color);
  background: var(--accent-color);
  padding: 30px;
  border-radius: 4px;
  /* Optional: limit width */
  max-width: 500px;
  /* remove margin-top if needed, or adjust */
  margin: 0;
  margin-top: 80px; /* pushes it downward */
  position: relative;
  top: 20px; 
}

.hero .content .why-box h3 {
  color: var(--contrast-color);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 30px;
}

.hero .content .why-box p {
  margin-bottom: 30px;
}

.hero .content .why-box .more-btn {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--contrast-color), transparent 80%);
  display: inline-block;
  padding: 6px 30px 8px 30px;
  border-radius: 100px;
  transition: all ease-in-out 0.4s;
}

.hero .content .why-box .more-btn i {
  font-size: 14px;
}

.hero .content .why-box .more-btn:hover {
  background: var(--surface-color);
  color: var(--accent-color);
}
.hero .icon-wrap {
  position: absolute;
  right: 20px;        /* moved to right margin */
  top: 65%;           /* lowered and vertically centered */
  transform: translateY(-50%);
  z-index: 10;
  max-width: 350px;
}

.hero .content .icon-box {
  text-align: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  box-shadow: 6px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  width: 100%;
  position: relative;
   margin: 0;
  margin-top: 90px; /* pushes it downward */
  position: relative;
  top: 20px;
}

.hero .content .icon-box i {
  font-size: 40px;
  color: var(--accent-color);
}

.hero .content .icon-box h4 {
 font-size: 34px;
  font-weight: 700;
  margin: 10px 0 20px 0;
}

.hero .content .icon-box p {
font-size: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
/* Responsive adjustments */
@media(max-width: 768px) {
  .hero .icon-wrap {
    left: 20px;
    top: 55%; /* slight upward for mobile */
    max-width: 90%;
  }

  .hero .content .why-box {
    margin-top: 60px;
    top: 10px;
}}
.hero {
  position: relative; /* Already set, needed for absolute positioning inside */
}

.translate-btn {
  position: absolute; /* top-right inside hero */
  top: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  align-items: center;

  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 5px 12px;

  color: #000;
  cursor: pointer;

  backdrop-filter: blur(6px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);

  transition: 
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover state */
.translate-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Icon base */
.translate-btn i {
  margin-right: 8px;
  font-size: 1.2rem;

  transition: 
    transform 0.4s ease,
    color 0.4s ease;
}

/* Hover icon tilt (desktop feedback) */
.translate-btn:hover i {
  transform: rotate(20deg);
}

/* Animation triggered on translate */
.translate-btn.animating i {
  animation: translateSpin 0.8s ease-in-out;
  color: #00f7ff;
}

/* Language select (desktop only, hidden on mobile if needed) */
.translate-btn select {
  border: none;
  background: transparent;
  outline: none;
  color: #000;
  font-weight: 500;
}

/* Spin animation */
@keyframes translateSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.sticky-container {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
}

/* Sidebar list */
.floating-sidebar-sec {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sidebar items */
.floating-sidebar-sec li {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 5px;
  color: white;
  position: relative;
  right: -150px; /* hide offscreen initially */
  transition: right 0.3s ease; /* smooth slide */
  border-radius: 25px 0 0 25px; /* curved left edges */
  overflow: hidden;
}

/* Slide out on hover */
.floating-sidebar-sec li:hover {
  right: 0;
  cursor: pointer;
}

/* Icon block */
.sidebar-icon-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 15px; /* spacing from left curved edge */
}

/* Icon size */
.sidebar-icon-block i {
  font-size: 20px;
}

/* Individual background colors */
.floating-sidebar-sec li.phone { background-color: rgb(41, 182, 246); }
.floating-sidebar-sec li.whatsapp { background-color: rgb(37, 211, 102); }
.floating-sidebar-sec li.facebook { background-color: #1877F2; }
.floating-sidebar-sec li.instagram {  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);}
.floating-sidebar-sec li.twitter { background-color: rgb(0, 0, 0); }

/* Links */
.floating-sidebar-sec li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
/* Carousel container */
#hospitalCarousel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Base slide layout */
#hospitalCarousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1s ease-in-out;
}

/* Active slide */
#hospitalCarousel .carousel-item.active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
  z-index: 2;
}

/* Slide moving OUT (left) */
#hospitalCarousel .carousel-item.carousel-item-start {
  transform: translateX(-100%);
  opacity: 0.7;
  z-index: 1;
}

/* Slide entering IN (from right) */
#hospitalCarousel .carousel-item.carousel-item-next,
#hospitalCarousel .carousel-item.active.carousel-item-end {
  transform: translateX(100%);
  opacity: 1;
  z-index: 3;
}

/* Slide fully moved on next/prev click */
#hospitalCarousel .carousel-item-next.carousel-item-start,
#hospitalCarousel .carousel-item-prev.carousel-item-end {
  transform: translateX(0);
  opacity: 1;
}

/* Background slides – continuous pulse independent of navigation */
.carousel-bg-slide {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1); /* smooth uniform scale */
  animation: pulse-scale 5s infinite ease-in-out; /* continuous pulse */
}

/* Override for manual navigation – keep smooth transition */
#hospitalCarousel .carousel-item-next .carousel-bg-slide,
#hospitalCarousel .carousel-item-prev .carousel-bg-slide {
  transition: transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Overlay */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(245, 241, 241, 0.4);
  width: 100%;
  height: 100%;
}

/* Pulse-scale keyframes */
@keyframes pulse-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Indicators */
#hospitalCarousel .carousel-indicators {
  position: absolute;
  bottom: 90px !important;
  z-index: 9999 !important;
  pointer-events: auto;
}

#hospitalCarousel .carousel-indicators button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid rgba(0, 200, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.6);
  margin: 0 7px;
  transition: all 0.4s ease-in-out;
  position: relative;
  animation: pulseIndicator 2s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}

#hospitalCarousel .carousel-indicators button:hover {
  transform: scale(1.6);
  box-shadow: 0 0 12px #00f7ff, 0 0 25px #00eaff;
}

#hospitalCarousel .carousel-indicators .active {
  background-color: #00eaff !important;
  transform: scale(1.4);
  box-shadow: 0 0 15px #00eaff, 0 0 30px #00eaff;
  animation: pulseGlow 1.3s infinite ease-in-out !important;
}

@keyframes pulseIndicator {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 255, 255, 0.5); }
  50% { transform: scale(1.25); box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 255, 255, 0.5); }
}

@keyframes pulseGlow {
  0% { transform: scale(1.2); box-shadow: 0 0 8px #00eaff; }
  50% { transform: scale(1.5); box-shadow: 0 0 20px #00eaff, 0 0 35px #00eaff; }
  100% { transform: scale(1.2); box-shadow: 0 0 8px #00eaff; }
}

/* Carousel controls */
#hospitalCarousel .carousel-control-prev,
#hospitalCarousel .carousel-control-next {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
}

#hospitalCarousel .carousel-control-prev:hover,
#hospitalCarousel .carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#hospitalCarousel .carousel-control-prev-icon,
#hospitalCarousel .carousel-control-next-icon {
  background-size: 100% 100%;
  filter: invert(1);
}

#hospitalCarousel .carousel-control-prev { right: 80px; top: calc(50% + 50px); }
#hospitalCarousel .carousel-control-next { right: 10px; top: calc(50% + 50px); }

/* Background slide images */
.slide-1 { background-image: url(../img/slider.jpg); }
.slide-2 { background-image: url(../img/slide.jpg); }
.slide-3 { background-image: url(../img/slide1.jpg); }
.slide-4 { background-image: url(../img/slide2.jpg); }
.slide-5 { background-image: url(../img/teamss.jpg); }

.btn {
  padding: 14px 40px;
  background: #00d4ff;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #00a6cc;
  transform: scale(1.05);
}
/* --- Media Query for Mobile (Standard up to 768px) --- */
@media (max-width: 768px) {
  .hero {
    /* Reduce height for mobile devices to prevent excessive scrolling */
    min-height: 50vh; 
    /* Adjust text size for better readability on small screens */
    padding: 20px 0;
  }

  .hero .welcome h2 {
    font-size: 32px;
  }

  .hero .welcome p {
    font-size: 18px;
  }
}

/* --- Media Query for Large Desktops (Optional: for extra large screens) --- */
@media (min-width: 1400px) {
  .hero {
    /* For extra large monitors, maintain the height or use a slightly larger value */
    min-height: 90vh; 
  }
}


/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
}

.about .content ul i {
  flex-shrink: 0;
  font-size: 48px;
  color: var(--accent-color);
  margin-right: 20px;
}

.about .content ul h5 {
  font-size: 18px;
  font-weight: 700;
}

.about .content ul p {
  font-size: 15px;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  border: 2px solid var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: var(--surface-color);
  margin-top: -27px;
  padding: 30px 30px 25px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0px 2px 35px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 32px;
  display: block;
  margin: 10px 0;
  font-weight: 700;
  color: var(--heading-color);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
/* Service card */
.services .service-item {
  background-color: var(--surface-color);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;

  /* KEY FIXES */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Neutralize AOS translateY visual shifting */
.services [data-aos] {
  transform: none;
}

/* Icon styling */
.services .service-item .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--accent-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
  transform-style: preserve-3d;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 5px;
  transition: all 0.3s ease-out;
  transform: translateZ(-1px);
}

/* Text */
.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/* Hover effects */
.services .service-item:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item:hover .icon::before {
  background: color-mix(in srgb, var(--background-color), transparent 70%);
}

.services .service-item:hover h3,
.services .service-item:hover p {
  color: var(--contrast-color);
}
/* Force Bootstrap columns to stretch equally */
.services .row > [class*="col-"] {
  display: flex;
}

/*--------------------------------------------------------------
# Appointment Section
--------------------------------------------------------------*/
.appointment .php-email-form {
  width: 100%;
}

.appointment .php-email-form .form-group {
  padding-bottom: 8px;
}

.appointment .php-email-form input,
.appointment .php-email-form textarea,
.appointment .php-email-form select {
  color: var(--default-color);
  background-color: transparent;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  padding: 10px !important;
}

.appointment .php-email-form input:focus,
.appointment .php-email-form textarea:focus,
.appointment .php-email-form select:focus {
  border-color: var(--accent-color);
}

.appointment .php-email-form input::placeholder,
.appointment .php-email-form textarea::placeholder,
.appointment .php-email-form select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.appointment .php-email-form input,
.appointment .php-email-form select {
  height: 44px;
}

.appointment .php-email-form textarea {
  padding: 10px 12px;
}

.appointment .php-email-form button[type="submit"] {
  background: var(--accent-color);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.appointment .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Departments Section
--------------------------------------------------------------*/
.departments {
  overflow: hidden;
}

.departments .nav-tabs {
  border: 0;
}

.departments .nav-link {
  border: 0;
  padding: 12px 15px 12px 0;
  transition: 0.3s;
  color: var(--default-color);
  border-radius: 0;
  border-right: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 600;
  font-size: 15px;
}

.departments .nav-link:hover {
  color: var(--accent-color);
}

.departments .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: var(--background-color);
}

.departments .tab-pane.active {
  animation: fadeIn 0.5s ease-out;
}

.departments .details h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.departments .details p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.departments .details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .departments .nav-link {
    border: 0;
    padding: 15px;
  }

  .departments .nav-link.active {
    color: var(--accent-color);
    background: var(--accent-color);
  }
}


/*--------------------------------------------------------------
# Doctors Section
--------------------------------------------------------------*/
.doctors .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 5px;
  transition: 0.5s;
  padding: 30px;
  height: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
}

.doctors .team-member .pic {
  overflow: hidden;
  width: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctors .team-member .pic img {
  transition: ease-in-out 0.3s;
}

.doctors .team-member:hover {
  transform: translateY(-10px);
}

.doctors .team-member .member-info {
  padding-left: 30px;
}

@media (max-width: 468px) {
  .doctors .team-member .member-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
}

.doctors .team-member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

.doctors .team-member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
}

.doctors .team-member span::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  bottom: 0;
  left: 0;
}

@media (max-width: 468px) {
  .doctors .team-member span::after {
    left: calc(50% - 25px);
  }
}

.doctors .team-member p {
  margin: 10px 0 0 0;
  font-size: 14px;
}

.doctors .team-member .social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member .social {
    justify-content: center;
  }
}

.doctors .team-member .social a {
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 36px;
  height: 36px;
}

.doctors .team-member .social a i {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 16px;
  margin: 0 2px;
}

.doctors .team-member .social a:hover {
  background: var(--accent-color);
}

.doctors .team-member .social a:hover i {
  color: var(--contrast-color);
}

.doctors .team-member .social a + a {
  margin-left: 8px;
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-container .faq-active h3,
.faq .faq-container .faq-active h3:hover {
  color: var(--contrast-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .info h3 {
  font-weight: 700;
  font-size: 32px;
}

.testimonials .swiper {
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.05);
  background-color: var(--surface-color);
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 200px;
  position: relative;
  margin: 30px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  margin-right: 10px;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 60%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px auto 15px auto;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
  border: none;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

@media (max-width: 767px) {
  .testimonials .testimonials-carousel,
  .testimonials .testimonials-slider {
    overflow: hidden;
  }

  .testimonials .testimonial-item {
    margin: 15px;
  }
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery .gallery-item {
  overflow: hidden;
  border-right: 3px solid var(--background-color);
  border-bottom: 3px solid var(--background-color);
}

.gallery .gallery-item img {
  transition: all ease-in-out 0.4s;
}

.gallery .gallery-item:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item + .info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(
    in srgb,
    var(--background-color),
    transparent 50%
  );
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type="submit"] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 36px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}
