/* =========================================================
   K.S Eye Hospital — custom styles (Bootstrap 5 base)
   ========================================================= */

:root {
  --medical-blue: #0b3d66;
  --medical-blue-rgb: 11, 61, 102;
  --laser-cyan: #06b6d4;
  --laser-cyan-rgb: 6, 182, 212;
  --soft-bg: #f4f9fc;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1f2937;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

a { text-decoration: none; }

/* ---------------------------------------------------------
   Utility / brand color helpers
   --------------------------------------------------------- */
.text-medical-blue { color: var(--medical-blue) !important; }
.text-laser-cyan { color: var(--laser-cyan) !important; }
.bg-medical-blue { background-color: var(--medical-blue) !important; }
.bg-laser-cyan { background-color: var(--laser-cyan) !important; }
.border-laser-cyan { border-color: var(--laser-cyan) !important; }

.bg-soft-bg { background-color: var(--soft-bg); }

.hero-gradient {
  background: radial-gradient(ellipse at top right, rgba(var(--laser-cyan-rgb), 0.08), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(var(--medical-blue-rgb), 0.05), transparent 55%);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn-medical {
  background-color: var(--medical-blue);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  border: none;
}
.btn-medical:hover { background-color: #0a3459; color: #fff; }

.btn-outline-cyan {
  background: transparent;
  color: var(--laser-cyan);
  border: 2px solid var(--laser-cyan);
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
}
.btn-outline-cyan:hover { background: var(--laser-cyan); color: #fff; }

.btn-cyan-solid {
  background-color: var(--laser-cyan);
  color: #fff;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 1rem;
  border: none;
}
.btn-cyan-solid:hover { background-color: #059cb8; color: #fff; }

/* ---------------------------------------------------------
   Hero section
   --------------------------------------------------------- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #ebf5ff;
  color: var(--laser-cyan);
  border: 1px solid #d9edff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-photo {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(11, 61, 102, 0.15);
}

.hero-callout {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  z-index: 2;
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 260px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  border: 1px solid #f1f1f1;
}

.hero-callout-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(var(--laser-cyan-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-callout-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--laser-cyan);
}

.avatar-stack {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background-color: #d1d5db;
  background-size: cover;
  background-position: center;
  margin-left: -0.75rem;
}
.avatar-stack:first-child { margin-left: 0; }
.avatar-stack-front {
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

/* ---------------------------------------------------------
   Doctor cards
   --------------------------------------------------------- */
.doctor-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e5edf3;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding: 2rem;
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px -5px rgba(0,0,0,0.15);
}

.doctor-photo {
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
  margin: 0 auto;
  transition: transform 0.4s ease;
}
.doctor-card:hover .doctor-photo { transform: scale(1.05); }

.doctor-badge-icon {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: #f3f4f6;
  padding: 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #fff;
}

.doctor-tagline {
  color: var(--laser-cyan);
  font-size: var(--fs-label-md, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0.25rem 0 1.25rem;
}

.doctor-highlight {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--medical-blue);
  letter-spacing: 0.02em;
}

.doctor-title-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--laser-cyan);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #cffafe;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   Service cards
   --------------------------------------------------------- */
.service-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f1f1f1;
}

.cataract-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cataract-card .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cataract-card:hover .bg-img { transform: scale(1.05); }

.cataract-card .bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--medical-blue-rgb), 0.8);
  z-index: 1;
}

.cataract-card .content-text {
  position: relative;
  z-index: 2;
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-stat-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-secondary-container);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 103, 130, 0.15);
}

.trust-stat-highlight .trust-stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-medical-blue);
  line-height: 1;
  position: relative;
}

/* small accent underline beneath the number, like your divider-line style */
.trust-stat-highlight .trust-stat-number::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 60%;
  height: 3px;
  border-radius: 9999px;
  background: var(--color-laser-cyan);
}

.trust-stat-highlight .trust-stat-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-on-secondary-container);
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .trust-stat-highlight { padding: 0.4rem 0.75rem; }
  .trust-stat-highlight .trust-stat-number { font-size: 1.25rem; }
}
/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.quote-mark { color: #cffafe; }

.review-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
  border: 1px solid #f1f1f1;
  height: 15rem;
}

.testimonial-photo {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  height: 15rem;
}

/* ---------------------------------------------------------
   Appointment CTA
   --------------------------------------------------------- */
.appointment-panel {
  background: var(--medical-blue);
  border-radius: 2.5rem;
  overflow: hidden;
  position: relative;
}

.appointment-form-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.form-label-sm {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.form-control-soft {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.9rem;
}
.form-control-soft:focus {
  border-color: var(--laser-cyan);
  box-shadow: 0 0 0 0.2rem rgba(var(--laser-cyan-rgb), 0.15);
}

.phone-icon-chip {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------
   Chat bubble
   --------------------------------------------------------- */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
}

.chat-fab-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
  border: 1px solid #f1f1f1;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.chat-fab-btn:hover { transform: scale(1.05); }

.chat-fab-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.chat-fab:hover .chat-fab-tooltip { opacity: 1; }





/*==================================================
                RESPONSIVE
==================================================*/

@media (max-width:992px){

    .hospital-testimonials{

        grid-template-columns:repeat(2,1fr);

    }

    .t-card--featured{

        grid-column:span 2;

    }

}

@media (max-width:768px){

    .t-card--featured{

        flex-direction:column;

    }

    .t-card--featured .t-photo{

        width:100%;

        min-width:100%;

        height:220px;

    }

}

@media (max-width:576px){

    .testimonial-hero h1{

        font-size:2rem;

    }

    .hospital-testimonials{

        grid-template-columns:1fr;

    }

    .t-card--featured{

        grid-column:span 1;

    }

    .google-review{

        justify-content:center;

        text-align:center;

    }

    .google-review > div:first-child,
    .rating-box{

        justify-content:center;

        width:100%;

    }

}
