/* =========================================================
   HealingDrive — Custom Animations & Hover Effects
   Designed for clarity and gentle interaction (elderly-friendly)
   ========================================================= */

/* ---------------------------------------------------------
   1. NAVBAR
   --------------------------------------------------------- */

/* Top bar refinement */
.header-top-bar {
  background: linear-gradient(90deg, #004e7c 0%, #007ab8 100%);
  transition: background 0.3s ease;
}

/* Sticky navbar shadow on scroll — class toggled by JS */
.navigation {
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.navigation.nav-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: #fff !important;
}

/* Nav link hover — sliding underline */
.navbar-nav .nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 6px !important;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #007ab8;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  width: 70%;
}

.navbar-nav .nav-item.active .nav-link {
  color: #007ab8 !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: #007ab8 !important;
}

/* Appointment CTA link in nav */
.navbar-nav .nav-item:last-child .nav-link {
  background: #007ab8;
  color: #fff !important;
  border-radius: 30px;
  padding-left: 18px !important;
  padding-right: 18px !important;
  margin-left: 8px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.navbar-nav .nav-item:last-child .nav-link:hover {
  background: #005a8a !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 122, 184, 0.35);
}

.navbar-nav .nav-item:last-child .nav-link::after {
  display: none;
}


/* ---------------------------------------------------------
   2. FEATURE BAR
   --------------------------------------------------------- */

.feature-item {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px 32px;
  margin: 0 10px;
  border: 1px solid #daeef8;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Subtle top accent line that grows on hover */
.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #007ab8, #5a9fc4);
  border-radius: 0 0 3px 3px;
  transition: width 0.4s ease;
}

.feature-item:hover::before {
  width: 100%;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 122, 184, 0.14);
  border-color: #a8d4ea;
}

/* Icon circle animation */
.feature-item .feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #e6f4fb 0%, #c8e8f7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, transform 0.35s ease;
}

.feature-item:hover .feature-icon {
  background: linear-gradient(135deg, #007ab8 0%, #5a9fc4 100%);
  transform: scale(1.1) rotate(5deg);
}

.feature-item .feature-icon i {
  font-size: 2rem;
  color: #007ab8;
  transition: color 0.3s ease;
}

.feature-item:hover .feature-icon i {
  color: #fff;
}

/* Heading & text gentle colour shift */
.feature-item h4 {
  transition: color 0.3s ease;
}
.feature-item:hover h4 {
  color: #007ab8;
}

/* Button inside feature item */
.feature-item .btn-main {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover .btn-main {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 122, 184, 0.3);
}


/* ---------------------------------------------------------
   3. FEATURED SERVICES
   --------------------------------------------------------- */

.service-item {
  background: #fff;
  border-radius: 14px;
  padding: 32px 26px 28px;
  border: 1px solid #daeef8;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Colour fill from bottom on hover */
.service-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(0, 122, 184, 0.04) 0%, rgba(0, 122, 184, 0.09) 100%);
  transition: height 0.4s ease;
  z-index: 0;
  border-radius: 0 0 14px 14px;
}

.service-item:hover::after {
  height: 100%;
}

.service-item > * {
  position: relative;
  z-index: 1;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 122, 184, 0.13);
  border-color: #85c4e0;
}

/* Icon block — fixed min-height keeps icon+title at same position across all cards */
.service-item .icon {
  min-height: 72px;
  align-items: flex-start !important;
}

/* Content grows to fill remaining space, button always at bottom */
.service-item .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-item .content p {
  flex: 1;
}

/* Icon + heading row */
.service-item .icon i {
  font-size: 2.4rem;
  color: #007ab8;
  transition: transform 0.4s ease, color 0.3s ease;
  display: inline-block;
}

.service-item:hover .icon i {
  transform: scale(1.2) rotate(-6deg);
  color: #005a8a;
}

.service-item .icon h4 {
  transition: color 0.3s ease;
}
.service-item:hover .icon h4 {
  color: #005a8a;
}

/* Read-more button reveal */
.service-item .btn-main {
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-item:hover .btn-main {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 122, 184, 0.3);
}

/* Divider accent on left */
.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #007ab8, #5a9fc4);
  border-radius: 0 3px 3px 0;
  transition: height 0.4s ease;
}
.service-item:hover::before {
  height: 60%;
}

/* Section heading underline animation */
.section-title h2 {
  position: relative;
  display: inline-block;
}

/* ---------------------------------------------------------
   4. BLOG LIST CARDS
   --------------------------------------------------------- */

.blog-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 122, 184, 0.13);
}

.blog-item .blog-thumb {
  overflow: hidden;
}

.blog-item .blog-thumb img {
  transition: transform 0.45s ease;
}

.blog-item:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-item h5 a {
  transition: color 0.25s ease;
}

.blog-item:hover h5 a {
  color: #007ab8;
}

/* ---------------------------------------------------------
   4b. CAREERS LIST CARDS
   --------------------------------------------------------- */

.careers .card {
  border-radius: 12px;
  border: 1px solid #daeef8;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

/* Teal accent line that slides in from left on hover */
.careers .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #007ab8, #5a9fc4);
  border-radius: 0 3px 3px 0;
  transition: height 0.4s ease;
}

.careers .card:hover::before {
  height: 100%;
}

.careers .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 122, 184, 0.13);
  border-color: #85c4e0;
}

.careers .card-title {
  transition: color 0.25s ease;
}

.careers .card:hover .card-title {
  color: #007ab8;
}

/* ---------------------------------------------------------
   5. GLOBAL — Smooth scroll & focus ring for accessibility
   --------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #007ab8;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fade-in on scroll — applied via JS IntersectionObserver */
.hd-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hd-fade-up.hd-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------------------------------------------------------
   5. BRAND COLOR OVERRIDES — HealingDrive palette
      Primary: #007ab8 (logo blue)  Secondary: #e12454 (accent red)
      Deep blue: #005a8a  Dark red: #c01a40
   --------------------------------------------------------- */

/* Buttons — hover goes deeper blue for readability (white text) */
.btn-main:hover,
.btn-main:focus {
  background: #005a8a;
  border-color: #005a8a;
}

.btn-main-2 {
  background: #e12454;
  border-color: #e12454;
}
.btn-main-2:hover,
.btn-main-2:focus {
  background: #c01a40;
  border-color: #c01a40;
}

/* Global link hover */
a:focus,
a:hover {
  color:  #007ab8;;
}

/* Divider bar (the short accent line under section titles) */
.divider {
  background: linear-gradient(90deg, #f06080, #e12454);
}

/* Dropdown item hover */
.dropdown .dropdown-item:hover {
  color: #007ab8;
}

/* .text-color / .text-color-2 accent classes */
.text-color,
.text-color-2 {
  color: #e12454 !important;
}

/* Service section icons */
.service i,
.department-service li i,
.doctor-info li i {
  color: #e12454;
}

/* Slick carousel dots */
.slick-dots li button:before,
.slick-dots li.slick-active button:before {
  color: #007ab8 !important;
}

/* Testimonial quote icon */
.testimonial-block.style-2 i {
  color: #f06080;
}

/* Counter / stats icon */
.counter-stat i {
  color: #f06080;
}

/* Blog blockquote left border */
blockquote {
  border-left-color: #e12454;
}

/* Footer quick-link hover */
.widget .footer-menu a:hover {
  color: #e12454;
}

/* Footer contact icons */
.widget-contact h6 i,
.footer-contact-block i {
  color: #f06080;
}

/* Back-to-top button */
.backtop {
  background: linear-gradient(135deg, #007ab8, #005a8a);
}

/* Nav item active border-top (dropdown cards) */
.nav-item.dropdown .dropdown-menu .nav-link:hover {
  border-top-color: #e12454;
}
