/**
* 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: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Outfit", sans-serif;
  --nav-font: "DM Sans", 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: #fafbfc;
  --default-color: #2d3748;
  --heading-color: #1a202c;
  --accent-color: #5c6ac4;
  --accent-color-light: #818cf8;
  --accent-color-dark: #4338ca;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --secondary-color: #38b2ac;
  --light-background: #f0f4f8;
}

/* 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: #2d3748;
  --nav-hover-color: #5c6ac4;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #2d3748;
  --nav-dropdown-hover-color: #5c6ac4;
}

/* 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: #f0f4f8;
  --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;
}

/*--------------------------------------------------------------
# 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: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo img {
  max-height: 42px;
}

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

.header .cta-btn {
  color: var(--contrast-color);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(92, 106, 196, 0.3);
}

.header .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 106, 196, 0.4);
  color: var(--contrast-color);
}

.scrolled .header {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Mobile Header */
@media (max-width: 768px) {
  .header .logo {
    margin: 16px;
  }
}

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

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 10px 12px;
  }

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

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 8px 16px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
  }

  .navmenu a:hover,
  .navmenu .active {
    background-color: rgba(92, 106, 196, 0.08);
    color: var(--nav-hover-color);
  }

  /* Prevent .active styles from breaking .cta-btn contrast */
  .navmenu .cta-btn.active,
  .navmenu .cta-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
    color: var(--contrast-color) !important;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    height: calc(100vh - 65px);
    padding: 8px 0 20px;
    margin: 0;
    border-radius: 0 0 12px 12px;
    background-color: var(--nav-mobile-background-color);
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow-y: auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 10001;
    transform: translateY(-20px);
    opacity: 0;
  }

  .mobile-nav-active .navmenu ul {
    display: block;
    transform: translateY(0);
    opacity: 1;
    z-index: 10005;
  }

  .mobile-nav-active .header,
  .mobile-nav-active .navmenu {
    z-index: 10002;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: visible;
    inset: 0;
    background: rgba(33, 37, 41, 0.85);
    transition: opacity 0.25s ease;
    z-index: 10002;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    margin: 6px 12px;
    padding: 12px 16px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-radius: 8px;
    background: var(--nav-mobile-background-color);
    transition: all 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .cta-btn:hover,
  .navmenu .cta-btn.active {
    color: var(--contrast-color) !important;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 10006;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
    z-index: 10005;
  }

}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  background: var(--heading-color);
  color: white;
  padding-top: 80px;
}

.footer-main {
  padding-bottom: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand .logo img {
  max-height: 60px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.footer-social a i {
  font-size: 18px;
  color: white;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

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

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 12px;
}

.footer-links ul a,
.footer-contact ul li,
.footer-contact ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links ul a:hover,
.footer-contact ul a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  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;
}

@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: 80px 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: 100vh;
  padding: 20px 0 30px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef0f5 100%);
}

.hero-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 140%;
  /* background: linear-gradient(135deg, rgba(92, 106, 196, 0.08) 0%, rgba(56, 178, 172, 0.05) 100%); */
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92, 106, 196, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--heading-color);
}

.hero-content h1 .highlight {
  color: var(--accent-color);
  position: relative;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(92, 106, 196, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(92, 106, 196, 0.45);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--heading-color);
  border: 2px solid rgba(45, 55, 72, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(92, 106, 196, 0.05);
}

.hero-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-card {
  background: white;
  padding: 20px 28px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 24px;
  color: var(--accent-color);
}

.feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--heading-color);
}

@media (max-width: 992px) {
  .hero {
    padding: 50px 0 60px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-features {
    justify-content: center;
  }

  .feature-card {
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}

.hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  padding: 100px 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 24px;
  z-index: -1;
  opacity: 0.15;
}

.about-content {
  padding: 20px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
}

.about-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 36px;
  opacity: 0.85;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--background-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.about-feature:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 20px;
  color: white;
}

.feature-text h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--heading-color);
}

.feature-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--default-color);
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .section-header h2 {
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-number span:last-child {
  font-size: 36px;
  opacity: 0.8;
}

.stat-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding: 100px 0;
  background: var(--light-background);
}

.section-title-modern {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-modern .section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.section-title-modern h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.section-title-modern p {
  font-size: 17px;
  color: var(--default-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(92, 106, 196, 0.3);
}

.service-icon i {
  font-size: 28px;
  color: white;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--default-color);
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 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);
  }
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.doctors {
  padding: 100px 0;
  background: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .doctors {
    padding: 40px 0;
    overflow-x: hidden;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
    max-width: 100%;
  }

  .team-card {
    border-radius: 16px;
    overflow: visible;
    width: 100%;
  }

  .team-image {
    height: auto;
    min-height: 180px;
  }

  .team-info {
    padding: 16px;
    width: 100%;
  }

  .team-info p {
    font-size: 14px;
    line-height: 1.5;
  }

  .team-contact {
    gap: 6px;
  }

  .team-contact a {
    font-size: 12px;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .team-grid {
    gap: 20px;
  }

  .team-info h4 {
    font-size: 18px;
  }

  .team-info span {
    font-size: 12px;
  }

  .team-info p {
    font-size: 13px;
  }
}

.team-card {
  background: var(--background-color);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 24px;
}

.team-info h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.team-info span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.team-info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--default-color);
  opacity: 0.8;
  margin-bottom: 16px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--default-color);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.team-contact a:hover {
  color: var(--accent-color);
  opacity: 1;
}

.team-contact a i {
  font-size: 14px;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 24px;
  }

  .team-image {
    height: 220px;
  }

  .team-info {
    padding: 16px;
  }

  .team-info h4 {
    font-size: 18px;
  }

  .team-info span {
    font-size: 12px;
  }

  .team-info p {
    font-size: 13px;
  }

  .team-contact a {
    font-size: 12px;
  }
}

/*--------------------------------------------------------------
# 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 {
  padding: 100px 0;
  background: var(--light-background);
}

.testimonials-info {
  margin-bottom: 60px;
}

.testimonials-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.testimonials-info p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--default-color);
  opacity: 0.8;
}

.testimonials-slider .swiper {
  padding-bottom: 40px;
}

.testimonials-slider .swiper-slide {
  width: 100%;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.testimonial-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.testimonial-header h4 {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 500;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
  font-style: italic;
  opacity: 0.85;
  margin: 0;
  word-wrap: break-word;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(92, 106, 196, 0.2);
  opacity: 1;
}

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

@media (max-width: 992px) {
  .testimonials-info {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 40px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .testimonials-info {
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .testimonials-info .section-tag {
    font-size: 12px;
  }

  .testimonials-info h2 {
    font-size: 22px;
    word-wrap: break-word;
  }

  .testimonials-info p {
    font-size: 14px;
    word-wrap: break-word;
  }

  .testimonials-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .testimonials-slider .swiper {
    padding-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .testimonials-slider .swiper-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .testimonials-slider .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0;
  }

  .testimonial-card {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
  }

  .testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .testimonial-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: cover;
  }

  .testimonial-header h3 {
    font-size: 16px;
    margin: 0;
  }

  .testimonial-header h4 {
    font-size: 12px;
    margin: 0;
    font-weight: 500;
  }

  .testimonial-card>p {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    margin: 0;
  }
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery {
  padding: 100px 0;
  background: white;
}

.gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
}

.gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

@media (max-width: 992px) {
  .gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding: 50px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.contact-map iframe {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--background-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  font-size: 20px;
  color: white;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--default-color);
  opacity: 0.85;
  margin: 0;
}

.contact-card a {
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.contact-card a:hover {
  color: var(--accent-color-dark);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--background-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link i {
  font-size: 18px;
  color: var(--default-color);
}

.social-link:hover {
  background: var(--accent-color);
}

.social-link:hover i {
  color: white;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    min-height: 300px;
  }
}

/*--------------------------------------------------------------
# Formations Section
--------------------------------------------------------------*/
.formations {
  padding: 100px 0;
  background: white;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.formation-card {
  background: white;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.formation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color-light);
}

.formation-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.formation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.formation-card:hover .formation-image img {
  transform: scale(1.05);
}

.formation-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin: -28px 0 20px 32px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.formation-card:hover .formation-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  transform: scale(1.1);
}

.formation-card:hover .formation-icon i {
  color: white;
}

.formation-icon i {
  font-size: 20px;
  color: var(--accent-color);
}

.formation-info {
  padding: 0 32px 32px;
}

.formation-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.formation-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--default-color);
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 992px) {
  .formations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .formation-card {
    border-radius: 20px;
  }
  
  .formation-image {
    height: 180px;
  }

  .formation-icon {
    margin: -28px auto 16px;
  }

  .formation-info {
    padding: 0 24px 24px;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/