/* =========================================================================
   healthbhi-fixes.css
   Targeted fixes for the "HealthBhi Website - Change Requests" doc (Jul 2026)
   Loaded AFTER style.css and healthbhi-enhancements.css so these rules win.
   ========================================================================= */

:root {
  --hb-navy: #061738;
  --hb-blue: #0ea5e9;
  --hb-blue-light: #4da3ff;
}

/* -------------------------------------------------------------------------
   1) HOMEPAGE HERO — make the carousel image feel blended into the navy
   background instead of "just pasted on top", plus a smoother, slower
   crossfade and a subtle ambient motion (Ken Burns) for a premium feel.
   ------------------------------------------------------------------------- */
.hb-home-hero-card {
  position: relative;
  padding: 18px;
}

/* soft ambient glow sitting behind the image, matching the accent blue */
.hb-hero-glow {
  position: absolute;
  inset: 6%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(14, 165, 233, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hb-home-hero-card .carousel-inner,
.hb-home-hero-card .carousel-item,
.hb-home-hero-card .carousel-item img {
  border-radius: 28px;
}

.hb-home-hero-card .carousel-item img {
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
  animation: hbKenBurns 9s ease-in-out infinite alternate;
}

@keyframes hbKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* fade edges of the image into the navy hero background so it doesn't
   look like a rectangle dropped on top of the section */
.hb-home-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 28px;
  box-shadow: inset 0 0 60px 20px var(--hb-navy);
  opacity: 0.35;
}

.hb-home-hero-card .carousel-fade .carousel-item {
  transition: opacity 1.4s ease-in-out;
}

.hb-home-hero-card .carousel-control-prev,
.hb-home-hero-card .carousel-control-next {
  z-index: 3;
  width: 42px;
  height: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.hb-home-hero-card:hover .carousel-control-prev,
.hb-home-hero-card:hover .carousel-control-next {
  opacity: 1;
}

.hb-home-hero-card .carousel-control-prev:hover,
.hb-home-hero-card .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hb-hero-indicators {
  z-index: 3;
  bottom: -6px;
}

/* -------------------------------------------------------------------------
   2) "WHY CHOOSE HEALTHBHI" — stop the feature icon from sliding toward
   the left corner on hover. Icons stay put; only a gentle card lift + color
   change communicates the hover state.
   ------------------------------------------------------------------------- */
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card .feature-icon,
.feature-card:hover .feature-icon,
.feature-card:focus-within .feature-icon {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  transition: color 0.25s ease !important;
}

/* -------------------------------------------------------------------------
   3) "OUR NETWORK OF VERIFIED DOCTORS" (and the matching Blog header) —
   keep the supporting paragraph left-aligned and vertically centered with
   the heading instead of drifting toward the bottom/right.
   ------------------------------------------------------------------------- */
.professionals-section .row.align-items-center > .col-lg-5,
.blog-section .row.align-items-center > .col-lg-5 {
  text-align: left;
}

@media (max-width: 991.98px) {
  .professionals-section .row.align-items-center > .col-lg-5,
  .blog-section .row.align-items-center > .col-lg-5 {
    margin-top: 1rem;
  }
}

/* -------------------------------------------------------------------------
   4) CTA strip below the doctors network — bigger, bolder, better spaced.
   ------------------------------------------------------------------------- */
.hb-network-cta {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-network-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(6, 23, 56, 0.5) !important;
}

.hb-network-cta button {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .hb-network-cta {
    border-radius: 28px !important;
    text-align: center;
  }
  .hb-network-cta button {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------
   5) General premium/consistency polish + mobile-friendliness pass.
   ------------------------------------------------------------------------- */
img { max-width: 100%; }

.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--hb-blue);
  outline-offset: 2px;
}

.doctor-card,
.blog-card,
.review-card,
.surg-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.doctor-card:hover,
.blog-card:hover,
.surg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -18px rgba(6, 23, 56, 0.35) !important;
}

@media (max-width: 575.98px) {
  .hero-section h1.display-3 { font-size: 2.1rem !important; }
  .second-hero-section h1.display-4 { font-size: 2rem !important; }
  .why-choose-section .display-6,
  .process-section .display-6,
  .professionals-section .display-5,
  .blog-section .display-5,
  .intro-section .display-5 { font-size: 1.6rem !important; }
  .hb-network-cta { padding: 1.25rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-home-hero-card .carousel-item img { animation: none; }
  .btn:hover, .feature-card:hover, .doctor-card:hover, .blog-card:hover, .surg-card:hover, .hb-network-cta:hover {
    transform: none;
  }
}