/* Colors & Fonts variables for MediNest/Medilab Theme Style */
:root {
  --font-default: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --color-primary: #3fbbc0; /* Teal for accents like Medinest */
  --color-primary-dark: #32999e;
  --color-secondary: #082744; /* Dark secondary */
  --color-text: #444444;
  --color-heading: #2c4964;
  --color-background: #ffffff;
  --color-background-alt: #f7fcfc;
  --color-border: #e9ecef;
  --shadow-sm: 0px 2px 15px rgba(0, 0, 0, 0.04);
  --shadow-md: 0px 0px 20px rgba(0, 0, 0, 0.08);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-default);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-background);
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Bar */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  height: 40px;
  font-size: 14px;
  display: flex;
  align-items: center;
  z-index: 996;
}
.top-bar a {
  color: #fff;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-contacts i { margin-right: 5px; }
.ms-4 { margin-left: 1.5rem; }
.top-social a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 10px;
  font-size: 16px;
}
.top-social a:hover { color: #fff; }

/* Header */
.header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  padding: 8px 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 10;
}
.logo img {
  height: 65px !important;
  max-height: 65px !important;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  mix-blend-mode: multiply; /* Blends white background seamlessly */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08)); /* Modern soft shadow */
  border-radius: 6px;
  transform-origin: left center;
}
.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(63, 187, 192, 0.3)); /* Primary color glow on hover */
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a, .nav .dropdown-btn {
  font-family: var(--font-default);
  color: #555555;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
}
.nav a:hover, .nav a.active, .nav .dropdown-btn:hover {
  color: var(--color-primary);
}

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  z-index: 1;
  top: 100%;
  left: 0;
  border-top: 2px solid var(--color-primary);
}
.dropdown-content a {
  color: var(--color-text);
  padding: 10px 15px;
  text-transform: none;
  font-weight: 400;
  display: block;
  font-size: 14px;
}
.dropdown-content a:hover {
  color: var(--color-primary);
  background: #f7fcfc;
}
.dropdown:hover .dropdown-content { display: block; }

/* Make Appointment Button */
.header-right { display: flex; align-items: center; gap: 1rem; }
.appointment-btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  padding: 8px 25px;
  font-family: var(--font-default);
  font-size: 14px;
  font-weight: 500;
}
.appointment-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--color-heading);
  cursor: pointer;
}

/* Sections & Typography */
section { padding: 60px 0; }
.bg-light { background-color: var(--color-background-alt); }
.section-title {
  text-align: center;
  padding-bottom: 30px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--color-heading);
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  bottom: 0;
  left: calc(50% - 25px);
}
.section-title p { margin-bottom: 0; color: #777777; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.align-items-center { align-items: center; }

/* Hero Section */
.hero {
  width: 100%;
  height: 70vh;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('hero-bg.jpg') center top;
  background-size: cover;
  display: flex;
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--color-secondary);
}
.hero p {
  color: #444444;
  margin: 15px 0 30px 0;
  font-size: 24px;
}
.btn-get-started {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 35px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: var(--color-primary);
}
.btn-get-started:hover { background: var(--color-primary-dark); }

/* Service Icon Boxes */
.icon-box {
  text-align: center;
  border: 1px solid var(--color-border);
  padding: 40px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  border-radius: 8px;
}
.icon-box .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: ease-in-out 0.3s;
}
.icon-box .icon i {
  color: #fff;
  font-size: 28px;
}
.icon-box h4 { font-weight: 700; margin-bottom: 15px; font-size: 24px; }
.icon-box p { line-height: 24px; font-size: 14px; margin-bottom: 0; }
.icon-box:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Feature/Why Us layout */
.content h3 { font-weight: 400; font-size: 34px; color: var(--color-heading); }
.content h3 span { color: var(--color-primary); font-weight: 700; }
.content p { font-size: 15px; color: #848484; }

.icon-box-list .icon-box-list-item { display: flex; margin-bottom: 30px; }
.icon-box-list-item .icon {
  font-size: 36px;
  color: var(--color-primary);
  margin-right: 15px;
  line-height: 1;
}
.icon-box-list-item h4 { font-size: 20px; font-weight: 700; margin: 0 0 10px 0; }
.icon-box-list-item p { font-size: 15px; color: #848484; }

/* Doctor Cards */
.member {
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.member .pic { overflow: hidden; height: 350px;}
.member .pic img { width: 100%; transition: ease-in-out 0.3s; height: 100%; object-fit: cover; }
.member:hover img { transform: scale(1.1); }
.member .member-info { padding: 25px 15px; text-align: center; }
.member h4 { font-weight: 700; margin-bottom: 5px; font-size: 20px; color: var(--color-heading); }
.member span { display: block; font-size: 15px; color: var(--color-primary); margin-bottom: 10px; font-weight: 500;}

/* Page Headers */
.page-title {
  background: var(--color-background-alt);
  padding: 40px 0;
}
.page-title h1 { margin: 0; font-size: 36px; font-weight: 700; }
.breadcrumbs { padding: 15px 0; background: var(--color-primary); color: #fff; font-size: 14px; }
.breadcrumbs a { color: #fff; font-weight: 500;}
.breadcrumbs a:hover { text-decoration: underline; }

/* Buttons Generic */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-emergency {
  background: #e12454;
  color: #fff;
  border: 0;
  padding: 10px 30px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 500;
}

/* Forms */
.form-group { padding-bottom: 15px; }
.form-control {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
}
.form-control:focus { border-color: var(--color-primary); outline: none;}
textarea.form-control { min-height: 120px; }

/* Footer */
.footer {
  background: #f1f7fd;
  color: #444444;
  font-size: 14px;
}
.footer .footer-top {
  padding: 60px 0 30px 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer h3 { font-size: 24px; margin: 0 0 20px 0; padding: 2px 0 2px 0; line-height: 1; font-weight: 700; color: var(--color-secondary); }
.footer .footer-col { margin-bottom: 30px; }
.footer .footer-links h4 { font-size: 16px; font-weight: 600; color: var(--color-secondary); position: relative; padding-bottom: 12px; margin-bottom: 20px; }
.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links ul li { padding: 10px 0; display: flex; align-items: center; border-bottom: 1px solid #e9ecef; }
.footer .footer-links ul li i { padding-right: 2px; color: var(--color-primary); font-size: 18px; line-height: 1; }
.footer .footer-links ul a { color: #777777; transition: 0.3s; display: inline-block; line-height: 1; }
.footer .footer-links ul a:hover { text-decoration: none; color: var(--color-primary); }
.footer .footer-bottom { padding: 30px 0; text-align: center; }
.footer-bottom .copyright { color: var(--color-secondary); }

/* Floats & Utils */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Or right */
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 3px #999;
}
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.scroll-top i { font-size: 24px; color: #fff; line-height: 0; display: flex; align-items: center; justify-content: center; height: 100%;}
.scroll-top.active { visibility: visible; opacity: 1; }

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }
.d-none { display: none; }

/* Responsive */
@media (min-width: 768px) {
  .d-md-inline { display: inline-block !important; }
}

@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .top-contacts { padding-bottom: 5px; text-align:center;}
  .top-bar-inner { flex-direction: column; height: auto; padding: 5px 0;}
  .ms-4 { margin-left: 10px; }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
  }
  .nav.show { display: flex; }
  .nav a, .nav .dropdown-btn { padding: 10px 0; border-bottom: 1px solid #eee; width: 100%; text-align: left;}
  .dropdown-content { position: static; box-shadow: none; border-top: none; background: #f9f9f9; padding-left: 15px; display: none; }
  .dropdown.active .dropdown-content { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; line-height: 40px; }
  .hero p { font-size: 18px; }
}
