/* style.css */
:root {
  --primary: #00AFA6; 
  --primary-dark: #009990;
  --secondary-light: #B0E0E6;
  --secondary: #A0DCE2;
  --text: #000000;
  --muted: #333333;
  --white: #FFFFFF;
  --bg-light: #EFFFFF;
  --shadow: rgba(0,153,144,0.12);
  --border: rgba(0,175,166,0.1);
  --bg: #E6F5EC;
}

html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#about, #services, #doctors, #contact {
  scroll-margin-top: 180px; 
}
* { box-sizing: border-box; }

body {
  font-family: 'Roboto', system-ui, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative; 
}

h1, h2, h3, h4, .cta, .brand div, .top-bar-two ul li a, .top-bar-contact-btn {
  font-family: 'Montserrat', sans-serif;
}

body::before {
    content: ""; 
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    background-image: url('./images/KMC-LOGO.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 50vw; 
    height: 50vw; 
    pointer-events: none; 
    z-index: -1; 
    opacity: 0.1; 
}

/* --- FIXED HEADER STYLES --- */

/* CRITICAL FIX: Apply sticky positioning to the placeholder wrapper.
   This ensures the header sticks to the viewport while the body scrolls.
*/
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure it stays above all other content */
  width: 100%;
}

.main-header {
  box-shadow: 0 4px 18px var(--shadow);
  background: var(--white);
  width: 100%;
  /* Removed 'position: sticky' from here to let the wrapper handle it */
}

.top-bar-one {
  background: linear-gradient(90deg, rgba(6, 229, 218, 0.05), rgba(1, 136, 129, 0.02));
  color: var(--text);
  padding: 10px 24px;
  font-size: 14px;
  display: flex;
  flex-direction: row; 
  justify-content: space-between;  
  align-items: center;    
  flex-wrap: wrap; 
  gap: 15px; 
  border-bottom: 1px solid var(--border);
}

.top-bar-buttons {
  display: flex;
  align-items: center;
  gap: 15px; 
  flex-wrap: wrap;
  justify-content: flex-end; 
}

.top-bar-contact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap; 
}

.top-bar-contact-btn.phone {
  background-color: var(--bg-light);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  box-shadow: 0 2px 5px var(--shadow);
}
.top-bar-contact-btn.phone:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Second Top Bar: Navigation */
.top-bar-two {
  background: linear-gradient(90deg, var(--white) 0%, var(--bg-light) 100%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 24px;
  gap: 20px;
}
.top-bar-two ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.top-bar-two ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.top-bar-two ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-dark);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}
.top-bar-two ul li a:hover { 
  color: var(--primary-dark); 
}
.top-bar-two ul li a:hover::after {
  width: 100%;
}

/* --- DROPDOWN MENU STYLES --- */
.top-bar-two ul li {
  position: relative; 
}
.dropdown-menu {
  display: none; 
  position: absolute;
  top: 100%; 
  left: 0;
  min-width: 280px; 
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary); 
  box-shadow: 0 8px 16px var(--shadow);
  z-index: 1000; 
  padding: 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease-out;
  max-height: 70vh; 
  overflow-y: auto; 
}

.top-bar-two ul li:hover .dropdown-menu {
  display: block; 
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block; 
  padding: 8px 15px; 
  font-weight: 400; 
  color: var(--muted);
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li a::after {
  display: none; 
}
.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-dark);
}

/* Brand & Logo Styling */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo-image {
  width: 100px;
  height: 100px;
  object-fit: contain; 
}
.brand-separator {
  width: 1px;
  background-color: var(--primary); 
  align-self: stretch; 
}

.cta {
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 16px var(--shadow);
  transition: all 0.3s ease;
}
.cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

/* --- SLIDESHOW STYLES --- */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 70vh; 
    overflow: hidden;
    background-color: #e0e0e0;
    transition: height 0.5s ease-out, opacity 0.5s ease-out;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}
.slide {
    flex: 0 0 100%;
    position: relative;
    width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide::after { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: var(--white);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    transition: transform 0.5s ease-out;
}
.slide-text h2 {
    font-size: clamp(24px, 5vw, 42px);
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slide-text p {
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--primary-dark);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.slide-nav:hover {
    background-color: var(--white);
}
.prev-slide { left: 15px; }
.next-slide { right: 15px; }

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: var(--white);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: center;
}
.hero .eyebrow {
  background: rgba(0,175,166,0.15);
  border: 1px solid rgba(0,175,166,0.12);
  color: var(--primary);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  display: inline-block;
}
.hero h1 {
  font-size: 34px;
  margin: 12px 0 8px;
}
.hero p {
  color: var(--muted);
  line-height: 1.6;
}

.hero p:first-of-type::first-letter {
  font-size: 6em;
  line-height: 0.8;
  padding-right: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: 'Times New Roman';
}

.hero .actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap; 
}
.hero img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 18px; 
}

/* Services */
.services {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 18px;
}
.services h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Services Panel */
.services-panel-container {
  position: relative;
  max-width: 1200px; 
  margin: 40px auto; 
  border-radius: 12px; 
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
  border: 1px solid var(--border);
}
.services-panel-bg {
  width: 100%;
  display: block;
  height: 350px; 
  object-fit: cover;
  filter: blur(2px); 
  opacity: 0.8;
}
.services-panel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  margin-top: -150px; 
  padding: 0 20px 20px 20px;
  z-index: 2;
}
.services-panel-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  text-align: left; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services-panel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
}
.services-panel-icon {
  width: 60px;
  height: 60px;
  background: var(--primary); 
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 15px;
}
.services-panel-card h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  margin: 0 0 10px 0;
}
.services-panel-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
}
.services-panel-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 14px;
}
.services-panel-more:hover {
  text-decoration: underline;
}

/* Doctors Styles */
.doctors {
  background: var(--white);
  padding: 40px 18px;
  border-top: 2px solid rgba(0,175,166,0.1);
}
.doctors h2 {
  text-align: right;
  margin-bottom: 5px;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%; 
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.carousel-slides {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease-in-out;
}
.carousel-slides > .card-link,
.carousel-slides > .doc-link,
.carousel-slides > .review-slide-item { 
  flex: 0 0 calc((100% / 3) - (18px * 2 / 3));
  min-width: 0;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-dark);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.carousel-nav.prev { left: -20px; }
.carousel-nav.next { right: -20px; }
.carousel-nav:hover { background-color: #f0f0f0; }


/* Contact */
.contact {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  display: flex;
  gap: 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--secondary-light), var(--secondary));
  border: 1px solid rgba(0,175,166,0.1);
}
.contact form {
  flex: 1;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.contact .info {
  width: 320px;
  color: var(--muted);
}
label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}
input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
}
button {
  background: var(--primary);
  color: var(--white);
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--shadow);
}

/* --- OPTIMIZED TICKER STYLES --- */
.ticker-wrap {
  width: 100%;
  max-width: 400px; 
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.ticker-track {
  display: flex;
  animation: scroll 45s linear infinite; 
}

.ticker-move {
  display: flex;
  align-items: center;
  flex-shrink: 0; 
}
.ticker-item {
  flex-shrink: 0;
  padding: 10px 15px;
  font-size: 14px;
  font-family: Arial; 
  font-weight: 500;
  color: var(--primary); 
  white-space: nowrap;
  border-right: 1px solid var(--primary); 
}

.ticker-wrap:hover .ticker-track { 
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); } 
  100% { transform: translateX(-100%); } 
}

/* --- FOOTER PANEL STYLES --- */
footer.footer-panel {
  background: linear-gradient(180deg, #007C77, #005E5A);
  color: var(--bg-light); 
  padding: 40px 24px 20px 24px; 
  margin-top: 40px;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px auto;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 220px; 
  padding: 0 10px;
}

.footer-section h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--white); 
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--primary); 
  padding-bottom: 8px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--bg-light); 
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--white); 
  text-decoration: underline;
}

.contact-info .footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
  background: var(--white); 
  border-radius: 8px;
  padding: 5px;
}

.contact-info p {
  color: var(--bg-light);
  font-size: 14px;
  line-height: 1.6;
  margin: 5px 0;
}

.contact-info p.contact-detail {
    font-weight: 600;
    color: var(--white);
}

.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}
.social-icons a {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--white);
    color: var(--primary-dark);
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px; 
    transition: background-color 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}


.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--primary-dark);
  padding-top: 20px;
  font-size: 14px;
  color: var(--bg-light);
}

/* --- VM PANEL --- */
.vm-panel {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 260px; 
  height: 100%; 
}
.vm-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
}
.vm-panel-content {
  flex: 1;
  padding-right: 15px;
}
.vm-panel-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.vm-panel-icon img {
  width: 120%;
  height: 120%;
  object-fit: contain;
  opacity: 0.7;
}
.vm-panel h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
  margin: 0 0 10px 0;
}
.vm-panel p {
  color: var(--muted);
  font-size: 15px;
  margin: 4px 0;
}

.vm-panel.vision::before { background-color: #3498DB; } 
.vm-panel.vision h3 { color: #3498DB; }
.vm-panel.mission::before { background-color: #8E44AD; } 
.vm-panel.mission h3 { color: #8E44AD; }
.vm-panel.trusted::before { background-color: #F39C12; } 
.vm-panel.trusted h3 { color: #F39C12; }

/* --- GOOGLE REVIEWS --- */
.google-reviews {
  background: var(--bg-light);
  padding: 40px 18px;
  border-top: 1px solid var(--border);
}
.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}
.reviews-header {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 15px;
}
.header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.header-left h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  margin: 0;
}
.header-rating {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.header-rating .rating-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}
.header-rating .stars {
  color: #fbbc05; 
  font-size: 20px;
}
.header-rating .rating-count {
  font-size: 16px;
  color: var(--muted);
}
.review-button {
  background: #1a73e8; 
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease;
}
.review-button:hover {
  background: #1665c4;
}

.review-slide-item {
  flex: 0 0 calc((100% / 3) - (18px * 2 / 3));
  min-width: 0;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  height: 100%; 
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-card-header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}
.reviewer-info {
  flex-grow: 1; 
}
.reviewer-info h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  margin: 0;
  color: var(--text);
}
.reviewer-info p {
  font-size: 13px;
  margin: 2px 0 0 0;
  color: var(--muted);
}
.review-stars {
  font-size: 16px;
  color: #fbbc05; 
}
.review-card-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* --- DEPARTMENT SLIDESHOW --- */
.services-slider-section {
  background: var(--white);
  padding: 40px 0; 
  border-top: 1px solid var(--border);
}

.department-slideshow-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px; 
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
  border: 1px solid var(--border);
}

.department-slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.department-slide {
  flex: 0 0 100%;
  min-width: 0;
  background: var(--white);
}

.slide-content-grid {
  display: grid;
  grid-template-columns: 45% 55%; 
  align-items: center;
  min-height: 450px;
}

.slide-icon-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slide-icon-circle {
  width: 375px;
  height: 375px;
  border-radius: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.slide-icon-circle img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 1; 
  border-radius: 10%;
}

.slide-text-panel {
  padding: 24px 48px 24px 24px;
}

.slide-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 8px;
}

.slide-text-panel h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  margin: 0 0 12px 0;
  color: var(--text);
}

.slide-text-panel p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.slide-text-panel .dept-button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.slide-text-panel .dept-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Navigation */
.dept-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-dark);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background-color 0.3s ease;
}
.dept-slide-nav:hover {
  background-color: var(--white);
}
.dept-slide-nav.dept-prev { left: 20px; }
.dept-slide-nav.dept-next { right: 20px; }
.dept-slide-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dept-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dept-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3); 
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5); 
}
.dept-dot.active {
    background-color: var(--primary); 
}

/* --- RESPONSIVE / MOBILE OPTIMIZATIONS --- */
@media (max-width:900px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2,1fr); }
  
  .services-panel-cards {
    grid-template-columns: 1fr;
    margin-top: -100px; 
  }
  .services-panel-bg {
    height: 250px; 
  }

  .contact { flex-direction: column; }
  .contact .info { width: 100%; }
  
  .carousel-slides > .card-link, 
  .carousel-slides > .doc-link,
  .carousel-slides > .review-slide-item { 
    flex-basis: calc((100% / 2) - (18px * 1 / 2));
  }
  .carousel-nav.prev { left: -10px; }
  .carousel-nav.next { right: -10px; }

  /* Department Slider Responsive */
  .department-slideshow-container {
    padding: 0; 
  }
  .slide-content-grid {
      grid-template-columns: 1fr; 
      min-height: auto;
      text-align: center;
      min-height: auto;
  }
  .slide-icon-panel {
      padding: 24px;
  }
  .slide-icon-circle {
      width: 200px; 
      height: 200px;
  }
  
  .slide-text-panel {
      padding: 0 24px 24px 24px; 
  }
  .dept-slide-nav {
      top: 30%; 
      width: 35px;
      height: 35px;
      font-size: 20px;
  }
  .dept-slide-nav.dept-prev { left: 10px; }
  .dept-slide-nav.dept-next { right: 10px; }
  
  .dept-slide-dots {
      bottom: 15px; 
  }

  /* Mobile Menu Layout Fixes */
  .top-bar-two {
    flex-direction: column; 
    height: auto;           
    padding: 20px;          
    align-items: center;    
  }

  .top-bar-two ul {
    flex-direction: column; 
    width: 100%;            
    gap: 0;                 
  }

  .top-bar-two ul li {
    width: 100%;            
    text-align: center;     
    border-bottom: 1px solid #eee; 
  }

  .top-bar-two ul li a {
    display: block;         
    padding: 12px 0;        
  }

  /* --- DROPDOWN DISABLED ON MOBILE --- */
  .dropdown-menu {
      display: none !important; 
      position: static; 
      box-shadow: none;
      border: none;
      min-width: 100%;
      width: auto; 
      opacity: 0;
      visibility: hidden;
  }

  .top-bar-two ul li:hover .dropdown-menu {
      display: none !important;
  }
  
  .top-bar-two .cta {
    margin-top: 20px;       
    width: 100%;            
    max-width: 280px;       
    text-align: center;
  }
  
  /* Responsive Footer */
  .footer-container {
      flex-direction: column; 
      align-items: center; 
  }
  .footer-section {
      min-width: 100%;
      text-align: center;
  }
  .footer-section h3 {
      border-bottom: none; 
      padding-bottom: 0;
  }
  .social-icons {
      justify-content: center; 
  }
}

/* --- EXTRA SMALL SCREEN OPTIMIZATION (<600px) --- */
@media (max-width:600px) {
    .top-bar-one {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }
    .ticker-wrap {
        max-width: 100%;
        margin: 5px 0;
    }
    .top-bar-buttons {
        justify-content: center;
        width: 100%;
    }
    .top-bar-contact-btn {
        flex: 1;
        justify-content: center;
    }

    .features { grid-template-columns: 1fr; }
    .carousel-slides > .card-link, 
    .carousel-slides > .doc-link,
    .carousel-slides > .review-slide-item { 
      flex-basis: 100%;
    }
    
    body::before {
        font-size: 30vw; 
        width: 80vw;
        height: 80vw;
    }
    
    .ticker-item {
      font-size: 13px;
      padding: 10px 12px;
    }
    
    .hero p:first-of-type::first-letter {
        font-size: 4em; 
    }
    
    .hero, .features, .services, .doctors, .contact {
        padding-left: 15px;
        padding-right: 15px;
    }
}