@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:300|Open+Sans:700');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --alternate-color: #53d8fb;
  --light-blue: #dbeafe;
  --very-light-blue: #eff6ff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --blue-darken-2: #1565c0;
  --blue-darken-4: #0d47a1;
  --yellow: #ffc107;
}

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

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--white);
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 500;
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 500;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* Mobile-first Layout */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.flex {
  flex: 1;
  min-width: 0;
}

/* Mobile-first grid system */
.xs12 { width: 100%; }

/* Tablet and up */
@media (min-width: 768px) {
  .layout {
    gap: 20px;
  }
  
  .md3 { width: calc(25% - 15px); }
  .md4 { width: calc(33.333% - 13.33px); }
  .md6 { width: calc(50% - 10px); }
  .sm4 { width: calc(33.333% - 13.33px); }
  .sm6 { width: calc(50% - 10px); }
  .sm10 { width: calc(83.333% - 4px); }
  .offset-sm1 { margin-left: calc(8.333% + 2px); }
  .offset-sm3 { margin-left: calc(25% + 5px); }
  .offset-sm4 { margin-left: calc(33.333% + 6.67px); }
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Colors */
.primary--text { color: var(--primary-color) !important; }
.blue--text { color: var(--blue-darken-2) !important; }
.white--text { color: white !important; }
.yellow--text { color: var(--yellow) !important; }

.primary { background-color: var(--primary-color); }
.blue { background-color: var(--blue-darken-2); }
.blue-darken-2 { background-color: var(--blue-darken-2); }
.blue-darken-4 { background-color: var(--blue-darken-4); }
.blue-grey-lighten-5 { background-color: #eceff1; }
.success { background-color: var(--success); }

.blue-gradient {
  background: linear-gradient(98deg, var(--primary-color), var(--alternate-color));
  color: white;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-flat {
  box-shadow: none;
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-secondary);
  font-weight: 400;
}

.card-text {
  padding: 20px;
}

.card-actions {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

/* Buttons */
.btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 1px 1px #808080;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px #606060;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1em;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Icons */
.icon {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.icon-large { font-size: 48px; }
.icon-x-large { font-size: 64px; }

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 146, 241, 0.1);
  background-color: white;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

select.form-control {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
  appearance: none;
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-item input[type="radio"] {
  margin: 0;
}

/* Parallax */
.parallax {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

/* Progress */
.progress {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  animation: indeterminate 2s infinite linear;
}

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Tabs */
.tabs {
  border-bottom: 2px solid var(--blue-darken-4);
}

.tab-list {
  display: flex;
  background-color: var(--blue-darken-4);
  color: white;
}

.tab {
  padding: 16px 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: white;
  font-weight: bold;
}

.tab.active {
  background-color: rgba(255,255,255,0.1);
  border-bottom: 3px solid var(--yellow);
}

.tab-content {
  padding: 20px;
  display: none;
}

.tab-content.active {
  display: block;
}

/* Jumbotron */
.jumbotron {
  background-color: #f8f9fa;
  padding: 60px 40px;
  border-radius: 8px;
  text-align: center;
  margin: 40px 0;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.my-1 { margin: 0.25rem 0; }
.my-2 { margin: 0.5rem 0; }
.my-3 { margin: 1rem 0; }
.my-4 { margin: 1.5rem 0; }
.my-5 { margin: 2.5rem 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }

/* Mobile optimizations */
@media (max-width: 767px) {
  .layout {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
    background-attachment: scroll !important;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .medical-illustration {
    height: 300px;
  }
  
  .heart-icon {
    font-size: 80px;
  }
  
  .pulse-ring {
    height: 150px;
    width: 150px;
  }
  
  .stats-overlay {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
  }
  
  .professionals-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .professionals-stats {
    justify-content: center;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .doctor-cards {
    max-width: 100%;
  }
  
  .nav-brand span {
    display: none;
  }
  
  .nav-logo {
    height: 35px !important;
  }
  
  .parallax {
    background-attachment: scroll;
    height: 500px !important;
    padding: 60px 20px;
    background-position: center center;
  }
  
  .main-content {
    background-attachment: scroll !important;
  }
  
  .parallax h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .parallax div {
    font-size: 1.1rem !important;
    line-height: 1.4;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 12px 12px;
  }
  
  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  .nav-links li {
    margin: 8px 0;
  }
  
  .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--very-light-blue);
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .container {
    padding: 0 15px;
  }
  
  .jumbotron {
    padding: 40px 20px;
  }
  
  .btn-large {
    padding: 14px 24px;
    font-size: 1rem;
    margin: 8px 4px;
  }
  
  .card-text {
    padding: 16px;
  }
  
  .card-title {
    padding: 16px;
  }
  
  .form-control {
    font-size: 16px;
    padding: 14px 16px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .parallax {
    height: 400px !important;
    padding: 40px 15px;
  }
  
  .parallax h1 {
    font-size: 1.6rem !important;
  }
  
  .parallax div {
    font-size: 1rem !important;
  }
  
  .btn-large {
    padding: 12px 20px;
    font-size: 0.9rem;
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  
  .card {
    margin: 10px 0;
  }
  
  .jumbotron {
    padding: 30px 15px;
  }
  
  .jumbotron h3 {
    font-size: 1.8rem;
  }
  
  .jumbotron p {
    font-size: 1rem;
  }
  
  .nav-brand {
    font-size: 1.2rem;
    max-width: 200px;
  }
  
  .icon-x-large {
    font-size: 48px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .form-control {
    padding: 16px 14px;
  }
  
  .card-title h3 {
    font-size: 1.1rem;
  }
  
  .card-title h4 {
    font-size: 1rem;
  }
  
  /* Better mobile form styling */
  .form-control {
    border-radius: 12px;
    font-size: 16px;
  }
  
  /* Improved mobile navigation */
  .header {
    padding: 0.8rem 0;
  }
  
  /* Better mobile card layout */
  .layout {
    gap: 15px;
  }
  
  /* Mobile-optimized stat cards */
  .stat-card {
    padding: 15px;
    margin-bottom: 10px;
  }
  
  /* Better mobile footer */
  .footer {
    padding: 30px 0;
    font-size: 0.9rem;
  }
}

/* Header/Navigation */
.header {
  background-color: var(--white);
  color: var(--text-primary);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--gray-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.nav-logo {
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.nav-toggle:hover {
  background-color: var(--gray-100);
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: var(--very-light-blue);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/img/bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 2;
}

/* Main content offset for fixed header */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

.doctor-card .rating {
  margin: 12px 0;
}

/* Touch-friendly improvements */
.btn, .form-control, .nav-links a {
  min-height: 44px;
  min-width: 44px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Improved mobile interactions */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Loading spinner for better UX */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Better focus states for accessibility */
.btn:focus, .form-control:focus, .nav-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Improved card spacing on mobile */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Logo and branding enhancements */
.logo-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* Background image optimizations */
@media (max-width: 480px) {
  .hero-section,
  .main-content {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
  }
}

/* Enhanced card shadows on background */
.card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Improved text contrast on background */
.search-hero h1,
.search-hero p {
  text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

/* Enhanced logo visibility */
.nav-logo {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%), url('assets/img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 1;
}

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

.hero-layout {
  align-items: center;
  gap: 60px;
}

.hero-content {
  padding-right: 40px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-subtitlep {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
}

.text-large {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.5;
}

.text-small {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  line-height: 1.5;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-icon {
  color: var(--primary-color);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Medical Illustration */
.medical-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.heart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heart-icon {
  font-size: 120px;
  color: var(--error);
  z-index: 2;
  position: relative;
}

.pulse-ring {
  position: absolute;
  border: 3px solid var(--error);
  border-radius: 50%;
  height: 200px;
  width: 200px;
  animation: pulse 2s infinite;
  opacity: 0.3;
}

.pulse-ring-delay {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.stats-overlay {
  position: absolute;
  top: -20px;
  right: -40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-item {
  background: var(--white);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 120px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: var(--gray-50);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

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

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon-large {
  font-size: 40px;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Professionals Section */
.professionals-section {
  padding: 80px 0;
  background-color: var(--white);
}

.professionals-layout {
  align-items: center;
  gap: 60px;
}

.professionals-content {
  padding-right: 40px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.professionals-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 2.5rem;
}

.stat-box {
  text-align: center;
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Doctor Cards */
.doctor-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 300px;
  margin: 0 auto;
}

.doctor-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.doctor-card h4 {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.doctor-card .specialty {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.doctor-card .hospital {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.doctor-card:hover {
  transform: translateX(8px);
}

.doctor-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  position: relative;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.testimonial {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid var(--primary-color);
}

.testimonial cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating .star {
  color: var(--warning);
  font-size: 16px;
}

.rating span:last-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Utility classes for better mobile UX */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Better mobile table handling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Improved mobile form layouts */
@media (max-width: 767px) {
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-control {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Dialog/Modal */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.dialog {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.dialog-title {
  padding: 20px;
  border-bottom: 1px solid #eee;
  font-size: 1.25rem;
  font-weight: bold;
}

.dialog-content {
  padding: 20px;
}

.dialog-actions {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Hide elements */
.hidden {
  display: none;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Stat cards */
.stat-card {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: white;
  margin-bottom: 15px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-title {
  font-size: 0.9rem;
  opacity: 0.9;
}
