/* ==========================
   CSS VARIABLES
========================== */
:root {
  /* ========== PRIMARY COLORS ========== */
  --primary: #0A2E5C;              
  --primary-light: #1B4D8F;        
  --primary-dark: #061A3D;     
  --primary-rgb: 10, 46, 92; 
  
  /* ========== SECONDARY COLORS ========== */
  --secondary: #00A3E0;          
  --secondary-light: #3DBEF6;  
  --secondary-dark: #007CB8; 
  --secondary-rgb: 0, 163, 224;
  
  /* ========== BASIC COLORS ========== */
  --white: #FFFFFF;
  --black: #000000;
  --dark: #0F172A;
  --light: #FFFFFF;
  
  /* ========== BORDER RADIUS ========== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ==========================
   Global Styles
========================== */
body {
  background: #f5f7fa;
  font-family: 'Jost', sans-serif;
}

/* ==========================
   Typography
========================== */
body, p, span, a, li {
  font-family: 'Jost', sans-serif;
  color: var(--dark);
}

h1, h2, .font-weight-bold { 
  font-weight: 700 !important; 
}

h3, h4, .font-weight-semi-bold { 
  font-weight: 600 !important; 
}

h5, h6, .font-weight-medium { 
  font-weight: 500 !important; 
}

/* ==========================
   Global Button Theme
========================== */
.btn {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  color: var(--white);
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Primary Button */
.btn-primary {
  background: #1B365D;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  transform: scale(1.05);
  color: #fff;
}

/* Secondary Button */
.btn-secondary {
  background: #1B365D;
  color: #fff;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  transform: scale(1.05);
  color: #fff;
}

/* Login Button */
.btn-login {
  padding: 16px 45px;
  font-size: 20px;
  border-radius: 35px;
  background: #1B365D;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 10px rgba(27, 54, 93, 0.3);
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  transform: scale(1.05);
  color: #fff !important;
}

/* Rounded Square Buttons */
.btn-square,
.btn-sm-square,
.btn-lg-square {
  background: #1B365D;
  color: #fff;
  border: none;
}

.btn-square:hover,
.btn-sm-square:hover,
.btn-lg-square:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  transform: scale(1.05);
}

/* ==========================
   Topbar
========================== */
.top-bar {
  background-color: var(--primary);
  color: var(--light);
  font-size: 14px;
}

.top-bar p,
.top-bar a,
.top-bar span,
.top-bar i {
  color: var(--light) !important;
  transition: color 0.3s ease;
}

.top-bar a:hover { 
  color: var(--secondary) !important; 
}

.top-shape::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 100%;
  top: 0;
  left: -17px;
  background: var(--primary);
  transform: skew(40deg);
}

/* ==========================
   Navbar
========================== */
.navbar-nav {
  margin: 27px auto 17px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-light .navbar-nav .nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  color: var(--dark);
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link { 
    padding: 10px 0; 
  }
}

/* ==========================
   Spinner / Loader
========================== */
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}

/* ==========================
   Back to Top Button
========================== */
.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/* ==========================
   Hero / Carousel Section
========================== */
.carousel-caption {
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(9, 30, 62, 0.777);
  z-index: 1;
}

.hero-header,
.bg-appointment,
.bg-offer {
  background: linear-gradient(rgba(27, 54, 93, 0.85), rgba(27, 54, 93, 0.85)),
              url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

@media (max-width: 576px) {
  .carousel-caption h5 { 
    font-size: 14px; 
    font-weight: 500 !important; 
  }
  .carousel-caption h1 { 
    font-size: 30px; 
    font-weight: 600 !important; 
  }
}

/* Hide Bootstrap default arrows */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
  display: none !important;
}

/* Overlay container */
.carousel-vertical-controls {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Invisible click zones */
.carousel-vertical-controls button {
  position: absolute;
  top: 0;
  height: 100%;
  width: 10%;         
  border: none;
  background: transparent;
  opacity: 0;      
  cursor: pointer;
  pointer-events: auto;
}

.carousel-left button { left: 0; }
.carousel-right button { right: 0; }
.carousel-divider { display: none; }

.carousel-vertical-controls {
  pointer-events: none;
}

.carousel-vertical-controls button {
  pointer-events: auto;
}

#spinner:not(.show) {
  display: none;
}
/* ==========================
   About Section
========================== */
.about-sec-head {
  color: #1B365D;
}

.py-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* ==========================
   Feature Cards (Why Choose Us)
========================== */
.feature-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(27, 54, 93, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-up {
  transition: all 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.why-healora-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.bg-healora {
  background-color: #1B365D !important;
}

/* ==========================
   Stats Section
========================== */
.stats-section {
  background: linear-gradient(135deg, #1B365D 0%, #00A3E0 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: white;
  line-height: 1;
  font-family: 'Roboto', sans-serif;
}

.stat-plus {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  line-height: 1;
  margin-left: 2px;
}

.stat-label {
  width: 100%;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ==========================
   Service Cards
========================== */
.service-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.service-card img {
  height: 250px;
  object-fit: cover;
}

.service-card .card-body {
  background-color: #f8f9fa;
  padding: 25px;
}

.service-card h5 {
  color: #1B365D;
  font-weight: 600;
}

.service-card p {
  color: #555;
  font-size: 15px;
}

.service-cta-btn {
  background: #203f6a;
  color: #fff;
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
  transition: all 0.3s ease;
}

.service-cta-btn:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.45);
  color: #fff;
}

/* ==========================
   Doctor Cards — Landing Page
   (.doctor-card)
========================== */
.doctor-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e8ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(27, 54, 93, 0.15);
  border-color: transparent;
}

/* Avatar wrapper — landing page */
.doctor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctor-avatar.has-image {
  background: none;
}

.doctor-avatar.has-initials {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.doctor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card:hover .doctor-avatar {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Doctor info — shared between pages */
.doctor-name {
  color: #1B365D;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.doctor-specialty {
  color: #667eea;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.doctor-dept {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ==========================
   Doctor Cards — Doctors List Page
   (.doctor-list-card)  ← renamed from duplicate .doctor-card
========================== */
.doctor-list-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid #e8ecef;
  transition: all 0.3s;
  height: 100%;
}

.doctor-list-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

/* Photo wrapper — doctors list page */
.doctor-photo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #e2e8f0;
}

.doctor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Initials inside photo wrapper */
.doctor-photo-wrapper .doctor-initials {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
}

.doctor-list-card h5 {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-info-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f3f7;
}

.info-item {
  font-size: 0.8rem;
  color: #64748b;
}

.info-item i {
  color: #667eea;
  margin-right: 4px;
}

.doctor-actions {
  display: flex;
  gap: 8px;
}

.btn-profile {
  flex: 1;
  padding: 10px 20px;
  background: #203f6a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-profile:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  color: white;
}

.btn-book {
  flex: 1;
  padding: 10px 20px;
  background: white;
  color: #203f6a;
  border: 1.5px solid #203f6a;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-book:hover {
  background: #f0fffe;
  color: #203f6a;
  border-color: #203f6a;
}

/* ==========================
   Doctors List Page — Hero & Search
========================== */
.doctor-hero {
  background: linear-gradient(135deg, #667eea 0%, #203f6a 100%);
  padding: 60px 0 100px;
  position: relative;
}

.doctor-hero h1 {
  color: white;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.doctor-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin-bottom: 0;
}

.search-box .form-control,
.search-box .form-select {
  margin-top: 10%;
  height: 50px;
  border: 1px solid #e0e5eb;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 14px;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(14, 168, 154, 0.1);
}

.btn-clear {
  height: 50px;
  background: #f0f3f7;
  color: #64748b;
  border: none;
  border-radius: 8px;
  padding: 0 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-clear:hover {
  background: #e2e8f0;
}

.doctor-grid {
  padding: 50px 0;
}

/* Results Header */
.results-info {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-count {
  color: #1e293b;
  font-weight: 500;
}

/* Empty State */
.empty-results {
  text-align: center;
  padding: 80px 20px;
}

.empty-results i {
  font-size: 60px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.empty-results h4 {
  color: #64748b;
  margin-bottom: 10px;
}

.empty-results p {
  color: #94a3b8;
  margin-bottom: 25px;
}

/* ==========================
   Doctor Carousel Controls
========================== */
#doctorCarousel .carousel-control-prev,
#doctorCarousel .carousel-control-next {
  display: none !important;
}

.doctor-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.doctor-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1B365D;
  background: white;
  color: #1B365D;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(27, 54, 93, 0.15);
}

.doctor-nav-btn:hover {
  background: linear-gradient(135deg, #667eea, #203f6a);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.25);
}

.doctor-nav-btn:active {
  transform: scale(0.95);
}

.doctor-nav-btn i {
  font-size: 20px;
}

/* ==========================
   Responsive Breakpoints
========================== */
@media (max-width: 768px) {
  /* Stats */
  .stats-grid { justify-content: center; }
  .stat-divider { display: none; }
  .stat-item { min-width: 45%; flex: 0 0 45%; }
  .stat-number { font-size: 34px; }

  /* Services */
  .service-card img { height: 200px; }

  /* Hero Carousel */
  .carousel-vertical-controls {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }

  .carousel-vertical-controls button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Doctor carousel nav */
  .doctor-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .doctor-carousel-nav {
    margin-top: 30px;
    gap: 12px;
  }

  /* Doctors list page */
  .doctor-hero h1 { font-size: 1.8rem; }
  .doctor-actions { flex-direction: column; }

  /* Avatar — landing page */
  .doctor-avatar {
    width: 70px;
    height: 70px;
  }

  .doctor-avatar.has-initials { font-size: 22px; }

  /* Photo wrapper — doctors list page */
  .doctor-photo-wrapper {
    width: 90px;
    height: 90px;
  }

  .doctor-photo-wrapper .doctor-initials {
    width: 90px;
    height: 90px;
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  /* Stats */
  .stat-item { min-width: 100%; flex: 0 0 100%; }

  /* Hero carousel buttons */
  .carousel-vertical-controls button {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  /* Doctor carousel nav */
  .doctor-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Avatar — landing page */
  .doctor-avatar {
    width: 60px;
    height: 60px;
  }

  .doctor-avatar.has-initials { font-size: 20px; }

  /* Photo wrapper — doctors list page */
  .doctor-photo-wrapper {
    width: 80px;
    height: 80px;
  }

  .doctor-photo-wrapper .doctor-initials {
    width: 80px;
    height: 80px;
    font-size: 26px;
  }
}

    .doctor-photo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #e2e8f0;
}

.doctor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #203f6a);
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.btn-page-active {
  background: linear-gradient(135deg, #667eea, #203f6a);
  color: white;
}

.btn-page-inactive {
  color: #0F172A;
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn-page {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #203f6a;
  background: white;
  color: #203f6a !important;
  transition: all 0.3s ease;
  box-shadow: none;
}

.btn-page:hover {
  background: #203f6a;
  color: white !important;
}

.btn-page.active {
  background: linear-gradient(135deg, #667eea, #203f6a);
  color: white !important;
  border-color: transparent;
}


