:root {
  /* Modern Color Palette */
  --primary-color: #0084C2; /* New Brand Blue (Matches Favicon) */
  --primary-hover: #006096;
  --secondary-color: #0E2945; /* Deeper Navy to complement */
  
  /* RE-MAPPING LEGACY VARIABLES (The "Consolidation" Step) */
  /* Map the old "accent" (sky blue) to the new Brand Blue to unify the look */
  --accent-color: var(--primary-color);
  
  /* Keep "blue-color" as Navy for deep backgrounds, OR map to primary if we want FULL brightness */
  /* Decided: Keep as Navy for depth, but buttons will be forced to Primary */
  --blue-color: var(--secondary-color);
  
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --white: #ffffff;
  
  /* Overriding existing variables for consistency */
  --heading-color: var(--text-dark);
  --body-color: var(--text-light);

  /* Utility Colors */
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  
  /* Modern Spacing & Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Typography */
  --body-font-size: 18px; /* High legibility */
}

/* 1. Global Typography Improvements */
body {
  font-size: var(--body-font-size);
  line-height: 1.6;
  color: var(--text-light);
  background-color: #f9fafb;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* 2. Modern Button Styles - HIGH SPECIFICITY FORCE */
/* Target all color variations to enforce the Pill Shape and Shadow */
.cs_btn.cs_style_1,
.cs_btn.cs_style_1.cs_color_1,
.cs_btn.cs_style_1.cs_color_2,
.cs_btn.cs_style_1.cs_color_3 {
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  font-size: 0.95rem;
  border: none;
}

/* CONSOLIDATE COLORS: Force Color 1 & 2 to be Primary Blue */
/* This unifies the previously fragmented button colors */
.cs_btn.cs_style_1,
.cs_btn.cs_style_1.cs_color_1,
.cs_btn.cs_style_1.cs_color_2 {
  background-color: var(--primary-color);
  color: var(--white);
}

.cs_btn.cs_style_1:hover,
.cs_btn.cs_style_1.cs_color_1:hover,
.cs_btn.cs_style_1.cs_color_2:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-color: var(--primary-hover);
  color: var(--white);
}

/* keep white buttons white, but add modern hover */
.cs_btn.cs_style_1.cs_color_3 {
    background-color: var(--white);
    color: var(--primary-color);
}
.cs_btn.cs_style_1.cs_color_3:hover {
    background-color: var(--primary-color); /* Invert on hover */
    color: var(--white);
}


/* 3. Card & Section Improvements */
.card, .cs_iconbox, .cs_team_member, .cs_post_item, .doctor-card {
  background: var(--white);
  border-radius: var(--border-radius-md) !important;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover, .cs_iconbox:hover, .cs_team_member:hover, .cs_post_item:hover, .doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.doctor-card {
  padding: 20px;
  border: 2px solid transparent;
}
.doctor-card:hover {
  border-color: var(--primary-color);
}
.doctor-card.selected {
  border-color: var(--primary-color);
  background-color: #eff6ff;
  transform: scale(1.02);
}

/* 4. Form Elements - High Specificity Override */
.cs_appointment_form .form-control,
.cs_contact_form .form-control,
input.form-control, 
textarea.form-control, 
select.form-select {
  border-radius: var(--border-radius-sm);
  border: 1px solid #d1d5db;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.cs_appointment_form .form-control:focus,
.cs_contact_form .form-control:focus,
input.form-control:focus, 
textarea.form-control:focus, 
select.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 132, 194, 0.1);
  outline: none;
}

/* 5. Header & Navigation */
.cs_site_header {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* 6. Footer Modernization */
footer {
  background-color: #111827 !important;
  color: #9ca3af !important;
}
footer h3, footer h4 {
  color: var(--white) !important;
}

/* 7. Utility Enhancements */
.cs_section_heading .cs_section_subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 132, 194, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

/* Gap Utility */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

/* Mobile Responsiveness Tweaks */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .cs_btn.cs_style_1 {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* --- Mobile Responsiveness Fixes for Images and Embeds --- */
.doctor-card img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Fix Doctor Image Sizes in Home Page Carousel */
.cs_team.cs_style_1 .cs_team_thumbnail img {
    width: 100%;
    height: 350px !important; /* Fixed height for consistency */
    object-fit: cover;        /* Cropping without distortion */
    object-position: top;     /* Focus on faces */
    border-radius: var(--border-radius-md);
}

@media (max-width: 768px) {
    iframe[style*="height: 600px"], 
    iframe[height="600"] {
        height: 85vh !important;
    }
    
    .facility-icon, 
    .gallery-item {
        width: 100% !important;
        height: auto !important;
    }
}

/* =========================================
   UI ENHANCEMENTS & GLASSMORPHISM
   ========================================= */

/* 1. HERO SECTION GLASSMORPHISM */
/* Applies to index.html hero */
.cs_hero::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    backdrop-filter: blur(5px);
}

.cs_hero_form_wrap, .booking-form-container {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
    border-radius: var(--border-radius-lg);
}

/* 2. CARD MICRO-INTERACTIONS */
/* Applies to Doctor Cards, Service Boxes */
.doctor-card, .cs_iconbox, .facility-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Bouncy spring effect */
}

.doctor-card:hover, .cs_iconbox:hover, .facility-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary-color) !important;
}

.doctor-card img, .cs_team_thumbnail img {
    transition: transform 0.5s ease;
}

.doctor-card:hover img, .cs_team_member:hover img {
    transform: scale(1.1);
}

/* 3. STICKY HEADER BLUR */
.cs_site_header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 4. PULSING CTA BUTTON */
/* Target the "Contact Now" or "Book Appointment" buttons in header */
.cs_site_header .cs_btn.cs_style_1 {
    animation: pulse-blue 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 132, 194, 0.7);
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 132, 194, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 132, 194, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 132, 194, 0);
    }
}

/* 5. FORM INPUT FOCUS EFFECTS */
.form-control:focus, .cs_form_field:focus {
    background-color: #f8fbff;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 3. Modern Icon Box Cards (Patient Centered Care & Experienced Doctors) */
.cs_iconbox.cs_style_1 {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align text left */
  text-align: left;
}

.cs_iconbox.cs_style_1:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.cs_iconbox.cs_style_1 .cs_iconbox_head {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.cs_iconbox_icon {
  background-color: rgba(0, 132, 194, 0.1); /* Primary color with opacity */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.cs_iconbox_icon img {
  width: 30px;
  height: auto;
}

.cs_iconbox_title {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.cs_iconbox_subtitle {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}


/* 4. Modern Facility Cards (Our Specialities) */
/* Grid handled by Bootstrap col-lg-4, but we style the inner card */

.facility-card {
  background: white;
  border-radius: var(--border-radius-md);
  overflow: hidden; /* For border-top or image containment */
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  border-top: 4px solid var(--primary-color);
  padding: 30px 25px;
  text-align: center;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.facility-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 132, 194, 0.3);
}

.facility-card h5 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 15px;
}

.facility-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.facility-card ul li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px dashed #e5e7eb;
  display: flex;
  align-items: flex-start;
}

.facility-card ul li:last-child {
  border-bottom: none;
}

/* Add checkmark icon before each list item via pseudo-element */
.facility-card ul li::before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--success-color);
  margin-right: 10px;
  font-size: 0.8rem;
  margin-top: 4px;
}
