/* ==========================================
   Gill Heart Clinic — Premium Stylesheet
   Version 2.0 (Bootstrap 5 + AOS + Swiper)
   ========================================== */

:root {
  --primary: #d90429;
  --primary-dark: #b50020;
  --secondary: #0b5ed7;
  --success: #16a34a;
  --dark: #0f172a;
  --darker: #04111f;
  --light: #f0f7ff;
  --white: #ffffff;
  --gray: #6c757d;
  --shadow-sm: 0 5px 20px rgba(0,0,0,.06);
  --shadow: 0 15px 35px rgba(0,0,0,.10);
  --shadow-lg: 0 25px 50px rgba(0,0,0,.15);
  --radius: 22px;
  --radius-sm: 14px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ==============================
   BASE STYLES
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ==============================
   PRELOADER / LOADING SCREEN (58)
   ============================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .6s ease, visibility .6s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-heart i {
  font-size: 52px;
  color: var(--primary);
  animation: loaderHeartbeat 1s ease-in-out infinite;
}

@keyframes loaderHeartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.preloader-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 15px 0;
  letter-spacing: -0.5px;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 10px;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #ff1a40);
  border-radius: 10px;
  animation: loaderFill 1.8s ease-in-out forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 100%; }
}

.preloader-sub {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: #222;
  overflow-x: hidden;
  padding-top: 50px; /* for emergency banner */
}

::selection {
  background: var(--primary);
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ==============================
   EMERGENCY BANNER
   ============================== */
.emergency-banner {
  background: linear-gradient(135deg, var(--primary), #ff1a40);
  color: white;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  animation: slideDown 0.6s ease;
}

.emergency-banner .emergency-text i {
  margin-right: 8px;
  animation: ambulanceBlink 1s infinite;
}

.emergency-phone {
  color: white;
  background: rgba(255,255,255,.2);
  padding: 5px 18px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.emergency-phone:hover {
  background: rgba(255,255,255,.35);
  color: white;
}

@keyframes ambulanceBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ==============================
   NAVBAR
   ============================== */
#navbar {
  position: fixed;
  top: 46px;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  z-index: 9999;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

#navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  padding: 6px 0;
}

.logo {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.logo i {
  margin-right: 6px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.navbar-nav .nav-link {
  font-weight: 600 !important;
  color: #333 !important;
  padding: 8px 16px !important;
  border-radius: 50px;
  transition: var(--transition);
  font-size: 14px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(217, 4, 41, .06);
}

.navbar-toggler {
  border: none !important;
  padding: 8px !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* Active nav link for multi-page */
.navbar-nav .nav-link.active-nav {
  color: var(--primary) !important;
  background: rgba(217, 4, 41, .08);
  font-weight: 700 !important;
}

/* ==============================
   PAGE HEADER (for sub-pages)
   ============================== */
.page-header {
  background: linear-gradient(135deg, var(--dark), #1e293b);
  color: white;
  padding: 120px 0 50px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 17px;
  opacity: .8;
  max-width: 600px;
  margin: 0 auto;
}

.page-header .breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-top: 15px;
  opacity: .7;
}

.page-header .breadcrumb-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: .3s;
}

.page-header .breadcrumb-nav a:hover {
  color: white;
}

.page-header .breadcrumb-nav span {
  color: rgba(255,255,255,.5);
}

/* ==============================
   SECTION HEADER
   ============================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-padding {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  background: rgba(217, 4, 41, .08);
  color: var(--primary);
  padding: 6px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.heading {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  color: var(--dark);
}

.heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 20px;
}

.heading.text-start::after {
  margin: 15px 0 0;
}

.section-sub {
  color: var(--gray);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 50%, #f5f0ff 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217,4,41,.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #ff1a40);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(217,4,41,.3);
}

.hero-badge i {
  margin-right: 6px;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.hero-text h3 {
  font-size: 20px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-features span {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

.hero-features i {
  color: var(--success);
  margin-right: 6px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.price-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-only {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn i {
  font-size: 18px;
}

.btn-red {
  background: linear-gradient(135deg, var(--primary), #ff1a40);
  color: white;
  box-shadow: 0 8px 25px rgba(217,4,41,.35);
}

.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(217,4,41,.45);
  color: white;
}

.btn-green {
  background: linear-gradient(135deg, var(--success), #22c55e);
  color: white;
  box-shadow: 0 8px 25px rgba(22,163,74,.35);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(22,163,74,.45);
  color: white;
}

.btn-blue {
  background: linear-gradient(135deg, var(--secondary), #3b82f6);
  color: white;
  box-shadow: 0 8px 25px rgba(11,94,215,.35);
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(11,94,215,.45);
  color: white;
}

/* Hero Image */
.hero-img-wrapper {
  position: relative;
  display: inline-block;
}

.hero-img {
  width: 420px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-img:hover {
  transform: scale(1.02);
}

.hero-exp-badge {
  position: absolute;
  bottom: -10px;
  left: -10px;
  background: white;
  padding: 15px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.exp-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.exp-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.2;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ECG Animation */
.ecg {
  width: 100%;
  height: 100px;
  margin-top: 30px;
}

.ecg polyline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ecgLine 4s linear infinite;
}

@keyframes ecgLine {
  to { stroke-dashoffset: 0; }
}

/* ==============================
   SERVICES
   ============================== */
.services {
  background: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 5px solid transparent;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(217,4,41,.08), rgba(217,4,41,.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(360deg);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

/* ==============================
   ABOUT
   ============================== */
.about {
  background: var(--light);
}

.about-img-wrapper {
  position: relative;
  display: inline-block;
}

.about-img {
  width: 380px;
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
}

.about-award {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.about-award i {
  margin-right: 6px;
}

.about-desc {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 25px;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.info-item i {
  font-size: 20px;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.info-item p {
  margin: 0;
  font-size: 15px;
}

/* ==============================
   STATISTICS
   ============================== */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, #ff1a40 50%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stats .section-tag {
  background: rgba(255,255,255,.15);
  color: white;
}

.stats .heading {
  color: white;
}

.stats .heading::after {
  background: white;
}

.stat-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}

.stat-card:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-8px);
}

.stat-card i {
  font-size: 36px;
  margin-bottom: 15px;
  opacity: .9;
}

.stat-card h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 16px;
  opacity: .85;
  font-weight: 500;
  margin: 0;
}

/* ==============================
   TESTIMONIALS
   ============================== */
.testimonials {
  background: var(--white);
}

.testimonial-swiper {
  padding-bottom: 50px;
}

.testimonial-card {
  background: var(--light);
  padding: 40px 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
}

.stars {
  margin-bottom: 15px;
}

.stars i {
  color: #f59e0b;
  font-size: 20px;
  margin: 0 2px;
}

.testimonial-card p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  font-style: italic;
  margin-bottom: 20px;
}

.patient-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.patient-avatar i {
  font-size: 44px;
  color: var(--gray);
}

.patient-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.patient-info span {
  font-size: 13px;
  color: var(--gray);
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* ==============================
   APPOINTMENT
   ============================== */
.appointment {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
}

.appointment-info p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 30px;
}

.appointment-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card-sm {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.contact-card-sm i {
  font-size: 24px;
  color: var(--primary);
  width: 40px;
  text-align: center;
}

.contact-card-sm span {
  display: block;
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.contact-card-sm strong {
  font-size: 15px;
  color: var(--dark);
}

/* Appointment Form */
.appointment-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  position: relative;
}

.form-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 16px;
  z-index: 1;
}

.form-group i.fa-notes-medical {
  top: 22px;
  transform: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(217,4,41,.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), #ff1a40);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(217,4,41,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(217,4,41,.45);
}

/* ==============================
   DOCTOR PROFILE
   ============================== */
.doctor {
  background: var(--white);
}

.doctor-img-wrapper {
  position: relative;
  display: inline-block;
}

.doctor-img {
  width: 380px;
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.doctor-img:hover {
  transform: scale(1.02);
}

.doctor-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.doctor-subtitle {
  font-size: 22px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 25px;
}

.doctor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.doctor-list li {
  font-size: 16px;
  font-weight: 500;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doctor-list li i {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
}

/* ==============================
   BMI CALCULATOR (LEGO Part 35)
   ============================== */
.bmi-calculator {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
}

.bmi-card {
  background: white;
  border-radius: var(--radius);
  padding: 45px;
  box-shadow: var(--shadow);
}

.bmi-field {
  margin-bottom: 22px;
}

.bmi-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 8px;
}

.bmi-field label i {
  color: var(--primary);
  margin-right: 6px;
}

.bmi-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  background: #fafafa;
}

.bmi-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(217,4,41,.08);
}

.bmi-result {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 30px 25px;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmi-result-placeholder i {
  font-size: 48px;
  color: var(--primary);
  opacity: .4;
  margin-bottom: 15px;
}

.bmi-result-placeholder p {
  color: var(--gray);
  font-size: 15px;
  margin: 0;
}

.bmi-score-wrap {
  margin-bottom: 15px;
}

.bmi-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 600;
}

.bmi-score {
  display: block;
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.bmi-category {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

.bmi-category.underweight { background: #fef3c7; color: #92400e; }
.bmi-category.normal { background: #d1fae5; color: #065f46; }
.bmi-category.overweight { background: #fed7aa; color: #9a3412; }
.bmi-category.obese { background: #fecaca; color: #991b1b; }

.bmi-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.bmi-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width .8s ease;
  width: 0%;
}

.bmi-ranges {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.bmi-ranges span {
  font-size: 10px;
  color: var(--gray);
  text-align: center;
  line-height: 1.3;
}

/* ==============================
   HEART RISK CALCULATOR (Part 36)
   ============================== */
.heart-risk {
  background: var(--white);
}

.risk-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 45px;
  box-shadow: var(--shadow);
}

.risk-form .risk-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 6px;
}

.risk-form .risk-label i {
  color: var(--primary);
  margin-right: 5px;
}

.risk-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  background: white;
}

.risk-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217,4,41,.08);
}

.risk-result {
  background: white;
  border-radius: var(--radius-sm);
  padding: 30px 25px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-placeholder i {
  font-size: 52px;
  color: var(--primary);
  opacity: .35;
  margin-bottom: 15px;
}

.risk-placeholder p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

.risk-gauge {
  margin-bottom: 15px;
}

.risk-gauge-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#10b981 0deg, #10b981 0deg, #e5e7eb 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  position: relative;
}

.risk-gauge-circle::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: white;
}

.risk-percent {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.risk-level {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.risk-level.low { color: #065f46; }
.risk-level.moderate { color: #92400e; }
.risk-level.high { color: #991b1b; }

.risk-bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #10b981, #f59e0b, #ef4444);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5px;
}

.risk-bar-fill {
  height: 100%;
  background: transparent;
  border-right: 4px solid white;
  transition: width 1s ease;
}

.risk-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gray);
  margin-bottom: 15px;
}

.risk-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.risk-disclaimer {
  font-size: 11px;
  color: var(--gray);
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

.risk-disclaimer i {
  color: var(--primary);
  margin-right: 4px;
}

/* ==============================
   GENERIC TOOLS / CALCULATORS (37-39)
   ============================== */
.tools-section {
  background: var(--white);
}

.tools-card {
  background: white;
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
}

.tools-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 6px;
}

.tools-label i {
  color: var(--primary);
  margin-right: 5px;
}

.tools-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  background: #fafafa;
}

.tools-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217,4,41,.08);
  background: white;
}

.tools-result {
  margin-top: 10px;
}

.tools-result hr {
  margin: 20px 0;
  border-color: #eee;
}

.tools-score {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.tools-level {
  font-size: 16px;
  font-weight: 700;
  margin-top: 5px;
}

.tools-level.low { color: #065f46; }
.tools-level.borderline { color: #92400e; }
.tools-level.elevated { color: #9a3412; }
.tools-level.high { color: #991b1b; }

.tools-bar-track {
  width: 100%;
  height: 12px;
  background: linear-gradient(to right, #10b981, #f59e0b, #ef4444);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.tools-bar-fill {
  height: 100%;
  background: transparent;
  border-right: 4px solid white;
  transition: width 1s ease;
}

.tools-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gray);
  margin-top: 4px;
}

.tools-msg {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin: 10px 0 5px;
}

.tools-disc {
  font-size: 11px;
  color: var(--gray);
  font-style: italic;
  margin: 0;
}

.tools-disc i { color: var(--primary); margin-right: 4px; }

/* BSA Specific */
.bsa-score-wrap {
  text-align: center;
  padding: 15px 0;
}

.bsa-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 5px;
}

.bsa-score {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
}

.bsa-meta {
  background: var(--light);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.bsa-meta span {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
}

.bsa-meta small {
  font-size: 11px;
  color: var(--gray);
}

/* Ideal Weight Specific */
.ideal-box {
  background: var(--light);
  padding: 18px 10px;
  border-radius: 14px;
}

.ideal-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 5px;
}

.ideal-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

/* ==============================
   GOOGLE REVIEWS SECTION (Part 30)
   ============================== */
.reviews-section {
  background: var(--light);
}

.review-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.review-avatar {
  font-size: 40px;
  color: var(--gray);
  flex-shrink: 0;
}

.review-header strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
}

.review-date {
  font-size: 12px;
  color: var(--gray);
}

.review-stars i {
  color: #f59e0b;
  font-size: 14px;
  margin: 0 1px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
}

.review-source {
  font-size: 12px;
  color: var(--gray);
}

.review-source i {
  color: #4285F4;
  margin-right: 5px;
}

/* ==============================
   EMERGENCY SECTION
   ============================== */
.emergency {
  background: linear-gradient(135deg, var(--primary) 0%, #ff1a40 50%, var(--primary-dark) 100%);
  text-align: center;
  padding: 90px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.emergency::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M50 50v-6h-4v6h-6v4h6v6h4v-6h6v-4h-6zm0-40V0h-4v10h-6v4h6v10h4V14h10v-4H50zM10 50v-6H6v6H0v4h6v6h4v-6h10v-4H10zM10 10V0H6v10H0v4h6v10h4V14h10v-4H10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.emergency-content {
  position: relative;
  z-index: 1;
}

.emergency-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 15px;
  animation: heartbeat 1.5s infinite;
}

.emergency h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
}

.emergency-symptoms {
  font-size: 20px;
  font-weight: 600;
  margin: 15px 0;
  opacity: .9;
}

.emergency-symptoms span {
  display: inline-block;
  margin: 0 5px;
}

.emergency-msg {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: .8;
  font-weight: 500;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.btn-white:hover {
  background: #f5f5f5;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

/* ==============================
   LOCATION / MAPS
   ============================== */
.location {
  background: var(--light);
}

.location .section-sub {
  margin-bottom: 10px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  padding: 20px 25px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.contact-info-card i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 3px;
  width: 30px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-card p {
  margin: 0;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
}

.contact-info-card p a {
  color: var(--primary);
  font-weight: 600;
}

.contact-info-card p a:hover {
  text-decoration: underline;
}

.contact-cta-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.contact-cta-wrapper .btn {
  flex: 1;
  justify-content: center;
}

/* ==============================
   CONTACT
   ============================== */
.contact {
  padding: 90px 0;
  background: var(--dark);
  color: white;
}

.contact h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 4px;
  width: 30px;
}

.contact-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: .9;
}

.contact-item a {
  color: white;
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-cta {
  background: rgba(255,255,255,.05);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}

.contact-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-cta p {
  opacity: .8;
  margin-bottom: 25px;
}

.contact-cta .btn {
  margin: 5px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,.8);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
}

.footer-logo i {
  color: var(--primary);
  margin-right: 6px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: .7;
}

.footer h3 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  margin: 12px 0;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a i {
  font-size: 10px;
  color: var(--primary);
}

.footer-col a:hover {
  color: white;
  padding-left: 5px;
}

.footer-col p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: .7;
  margin-bottom: 12px;
}

.footer-col p i {
  color: var(--primary);
  width: 16px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  transition: var(--transition);
  margin: 0 !important;
}

.social-links a:hover {
  background: var(--primary) !important;
  transform: translateY(-3px);
  color: white !important;
  padding-left: 0 !important;
}

.footer hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: .3;
}

.copyright {
  text-align: center;
  font-size: 14px;
  padding-bottom: 25px;
  margin: 0;
  opacity: .6;
}

/* ==============================
   AI CHATBOT (LEGO Part 50)
   ============================== */
.chatbot-widget {
  position: fixed;
  bottom: 110px;
  right: 30px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.chatbot-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(11,94,215,.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.chatbot-btn:hover {
  transform: scale(1.1);
}

.chatbot-box {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 350px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-box.open {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--secondary), #3b82f6);
  color: white;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header i {
  font-size: 22px;
}

.chatbot-header div {
  flex: 1;
}

.chatbot-header strong {
  display: block;
  font-size: 14px;
}

.chatbot-header span {
  font-size: 11px;
  opacity: .8;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 5px;
  opacity: .7;
  transition: .3s;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-msgs {
  padding: 15px;
  height: 260px;
  overflow-y: auto;
  background: #f8faff;
}

.chat-msg {
  margin-bottom: 10px;
  display: flex;
}

.chat-msg.bot {
  justify-content: flex-start;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-msg .msg-text {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.bot .msg-text {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.chat-msg.user .msg-text {
  background: var(--secondary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-input-area {
  border-top: 1px solid #eee;
  padding: 10px;
  background: white;
}

.chatbot-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.quick-btn {
  padding: 5px 12px;
  border: 1px solid #dde7f0;
  border-radius: 50px;
  background: white;
  font-size: 11px;
  cursor: pointer;
  transition: .3s;
  font-family: 'Poppins', sans-serif;
  color: #555;
}

.quick-btn:hover {
  background: #eef3f8;
  border-color: var(--secondary);
}

.chatbot-input-row {
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: var(--transition);
}

.chatbot-input:focus {
  border-color: var(--secondary);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-send:hover {
  background: #0a4fbf;
  transform: scale(1.05);
}

/* ==============================
   FLOATING BUTTONS
   ============================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 999;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

.call-float {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary), #ff1a40);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 10px 30px rgba(217,4,41,.4);
  z-index: 999;
  transition: var(--transition);
}

.call-float:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(37,211,102,.4); }
  50% { transform: scale(1.08); box-shadow: 0 15px 45px rgba(37,211,102,.6); }
}

/* ==============================
   BACK TO TOP
   ============================== */
#topBtn {
  position: fixed;
  bottom: 190px;
  right: 30px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(217,4,41,.35);
  transition: var(--transition);
}

#topBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(217,4,41,.5);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1199.98px) {
  .hero-text h1 {
    font-size: 44px;
  }
  .hero-img {
    width: 350px;
  }
}

/* ==============================
   CHATBOT RESPONSIVE
   ============================== */
@media (max-width: 575.98px) {
  .chatbot-box {
    width: 300px;
    right: -10px;
    bottom: 70px;
  }

  .chatbot-widget {
    bottom: 95px;
    right: 15px;
  }

  .chatbot-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .chatbot-msgs {
    height: 220px;
  }

  .quick-btn {
    font-size: 10px;
    padding: 4px 10px;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 44px;
  }

  #navbar {
    top: 40px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 40px;
  }

  .hero-features {
    justify-content: center;
  }

  .price {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-img {
    width: 300px;
  }

  .heading {
    font-size: 32px;
  }

  .heading.text-start {
    text-align: center !important;
  }

  .heading.text-start::after {
    margin: 15px auto 0;
  }

  .about-img {
    width: 280px;
    margin-bottom: 30px;
  }

  .section-header.text-start {
    text-align: center !important;
  }

  .appointment-info {
    text-align: center;
    margin-bottom: 30px;
  }

  .appointment-form {
    padding: 25px;
  }

  .stat-card h1 {
    font-size: 36px;
  }

  .navbar-nav {
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 10px;
  }

  .doctor-list {
    grid-template-columns: 1fr;
  }

  .doctor-img {
    width: 300px;
    margin-bottom: 30px;
  }

  .emergency h1 {
    font-size: 38px;
  }

  .emergency-symptoms {
    font-size: 17px;
  }

  .map-wrapper iframe {
    height: 300px;
  }

  .bmi-card {
    padding: 30px;
  }

  .bmi-score {
    font-size: 42px;
  }
}

@media (max-width: 575.98px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-img {
    width: 260px;
  }

  .price-amount {
    font-size: 36px;
  }

  .heading {
    font-size: 28px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 13px;
  }

  .stat-card {
    padding: 25px 15px;
  }

  .stat-card h1 {
    font-size: 30px;
  }

  .whatsapp-float,
  .call-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .whatsapp-float {
    right: 15px;
    bottom: 20px;
  }

  .call-float {
    right: 15px;
    bottom: 90px;
    display: flex !important;
  }

  #topBtn {
    right: 15px;
    bottom: 160px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .hero-exp-badge {
    display: none;
  }

  .doctor-img {
    width: 260px;
  }

  .doctor-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doctor-list li {
    font-size: 14px;
  }

  .doctor-subtitle {
    font-size: 18px;
  }

  .emergency h1 {
    font-size: 30px;
  }

  .emergency-icon {
    font-size: 44px;
  }

  .emergency-symptoms {
    font-size: 15px;
  }

  .emergency-msg {
    font-size: 15px;
  }

  .map-wrapper iframe {
    height: 250px;
  }

  .contact-info-card {
    padding: 15px;
  }

  .bmi-card {
    padding: 20px;
  }

  .bmi-score {
    font-size: 36px;
  }

  .bmi-result {
    min-height: 250px;
    padding: 20px;
  }

  .risk-card {
    padding: 25px;
  }

  .risk-gauge-circle {
    width: 110px;
    height: 110px;
  }

  .risk-gauge-circle::before {
    width: 85px;
    height: 85px;
  }

  .risk-percent {
    font-size: 22px;
  }

  .risk-result {
    min-height: 300px;
    padding: 20px;
  }

  .bmi-ranges span {
    font-size: 8px;
  }
}

@media (max-width: 575.98px) {
  .tools-card { padding: 20px; }
  .tools-score { font-size: 32px; }
  .bsa-score { font-size: 36px; }
  .ideal-value { font-size: 18px; }
  .review-card { padding: 20px; }
}

/* ==============================
   DARK MODE (Part 57)
   ============================== */
.dark-mode-btn {
  position: fixed;
  bottom: 190px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: var(--transition);
}

.dark-mode-btn:hover { transform: scale(1.1); }

body.dark-mode {
  --dark: #f1f5f9;
  --light: #0f172a;
  --white: #1e293b;
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode nav,
body.dark-mode .card,
body.dark-mode .service-card,
body.dark-mode .testimonial-card,
body.dark-mode .appointment-form,
body.dark-mode .bmi-card,
body.dark-mode .risk-card,
body.dark-mode .tools-card,
body.dark-mode .review-card,
body.dark-mode .blog-card,
body.dark-mode .diet-card,
body.dark-mode .tip-card,
body.dark-mode .award-card,
body.dark-mode .contact-info-card,
body.dark-mode .info-item,
body.dark-mode .contact-card-sm {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode .hero { background: linear-gradient(135deg, #0f172a, #1e293b); }
body.dark-mode .services,
body.dark-mode .testimonials,
body.dark-mode .doctor,
body.dark-mode .heart-risk,
body.dark-mode .reviews-section,
body.dark-mode .tips-section { background: #0f172a; }
body.dark-mode .about,
body.dark-mode .appointment,
body.dark-mode .bmi-calculator,
body.dark-mode .tools-section { background: #1a2639; }
body.dark-mode .diet-section,
body.dark-mode .blog-section,
body.dark-mode .awards-section { background: #0f172a; }
body.dark-mode .location { background: #1a2639; }
body.dark-mode .heading { color: #f1f5f9; }
body.dark-mode p,
body.dark-mode .section-sub,
body.dark-mode .service-card p,
body.dark-mode .blog-body p { color: #94a3b8 !important; }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .bmi-input,
body.dark-mode .risk-input,
body.dark-mode .tools-input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .bmi-result,
body.dark-mode .risk-result { background: #1e293b; }
body.dark-mode .bmi-ranges span { color: #94a3b8; }

/* ==============================
   DOCTOR TIMELINE & AWARDS (14-16)
   ============================== */
.awards-section { background: var(--white); }
.awards-subtitle { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.awards-subtitle i { color: var(--primary); margin-right: 8px; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--primary), var(--secondary)); border-radius: 10px; }
.timeline-item { position: relative; margin-bottom: 25px; display: flex; gap: 15px; align-items: flex-start; }
.timeline-dot { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: 3px; border: 3px solid white; box-shadow: 0 0 0 3px var(--primary); }
.timeline-item strong { display: block; font-size: 16px; color: var(--dark); }
.timeline-item span { font-size: 13px; color: var(--gray); }

.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.award-card { background: var(--light); padding: 22px; border-radius: var(--radius-sm); text-align: center; transition: var(--transition); }
.award-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.award-card i { font-size: 30px; color: #f59e0b; margin-bottom: 10px; }
.award-card h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.award-card p { font-size: 12px; color: var(--gray); margin: 0; }

/* ==============================
   HEART TIPS (Part 41)
   ============================== */
.tips-section { background: var(--light); }
.tip-card { background: white; padding: 30px 25px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.tip-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.tip-icon { width: 65px; height: 65px; background: linear-gradient(135deg, rgba(217,4,41,.08), rgba(217,4,41,.15)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 28px; color: var(--primary); transition: var(--transition); }
.tip-card:hover .tip-icon { background: var(--primary); color: white; }
.tip-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.tip-card p { font-size: 14px; color: var(--gray); margin: 0; line-height: 1.7; }

/* ==============================
   DIET PLANS (Part 42)
   ============================== */
.diet-section { background: var(--white); }
.diet-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.diet-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.diet-header { padding: 18px 22px; color: white; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.diet-body { padding: 20px 22px; }
.diet-body ul { list-style: none; padding: 0; margin: 0; }
.diet-body li { font-size: 14px; padding: 6px 0; color: #444; border-bottom: 1px solid #f0f0f0; }
.diet-body li:last-child { border-bottom: none; }

/* ==============================
   BLOG SYSTEM (Part 40)
   ============================== */
.blog-section { background: var(--light); }
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 52px; color: rgba(255,255,255,.7); }
.blog-body { padding: 22px 24px 28px; }
.blog-tag { display: inline-block; padding: 3px 14px; background: rgba(217,4,41,.08); color: var(--primary); border-radius: 50px; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.blog-body h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.blog-body p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 15px; }
.blog-read { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.blog-read:hover { gap: 10px; color: var(--primary-dark); }

/* ==============================
   PWA INSTALL BANNER
   ============================== */
.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -5px 25px rgba(0,0,0,.12);
  z-index: 99999;
  padding: 12px 16px;
  animation: slideUp .4s ease;
}

.pwa-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.pwa-icon { font-size: 28px; }
.pwa-content strong { display: block; font-size: 14px; color: var(--dark); }
.pwa-content small { font-size: 12px; color: var(--gray); }
.pwa-btn {
  margin-left: auto;
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.pwa-btn:hover { background: var(--primary-dark); }
.pwa-close { background: none; border: none; font-size: 24px; color: var(--gray); cursor: pointer; padding: 0 5px; }

body.dark-mode .pwa-banner { background: #1e293b; }
body.dark-mode .pwa-content strong { color: #f1f5f9; }

/* ==============================
   FADE IN ANIMATIONS (Fallback)
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   CLINIC GALLERY
   ========================================== */
.gallery-section {
  background: #f8fafc;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ==============================
   EMERGENCY MASTER KILL SWITCH
   ============================== */
#emergencyKillSwitch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  background: #7f1d1d;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  transition: all .3s;
  display: block;
  font-family: 'Poppins', sans-serif;
}
#emergencyKillSwitch:hover {
  background: #991b1b;
}
#emergencyKillSwitch.confirming {
  background: #ef4444;
  animation: emergencyPulse .5s ease-in-out infinite;
  font-size: 16px;
}
@keyframes emergencyPulse {
  0%, 100% { background: #ef4444; }
  50% { background: #dc2626; }
}
#emergencyKillSwitch.done {
  background: #16a34a;
  cursor: default;
  pointer-events: none;
}

/* Push body down to accommodate emergency button */
body.has-emergency-btn {
  padding-top: 86px;
}
body.has-emergency-btn #navbar {
  top: 82px;
}
@media (max-width: 991.98px) {
  body.has-emergency-btn {
    padding-top: 80px;
  }
  body.has-emergency-btn #navbar {
    top: 76px;
  }
}
