/* Hero heading — smaller, tighter, like Padma's balance */
.slide-title {
  font-size: clamp(30px, 3.6vw, 46px) !important;
  line-height: 1.2 !important;
  margin-bottom: 18px !important;
}

/* Hero description — narrower so it doesn't stretch full width */
.slide-desc {
  font-size: 16px !important;
  line-height: 1.65 !important;
  max-width: 560px !important;
  margin-bottom: 28px !important;
}

/* Both buttons — same size, same padding, consistent look */
.slide-content .btn-white.btn-xl,
.slide-content .btn-white.btn-outlined {
    background: linear-gradient(90deg, #f5822a, #ff9d4d) !important;  padding: 14px 30px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  min-width: 200px !important;
  text-align: center !important;
  justify-content: center !important;
  text
}

/* Tighter, more breathable navbar */
.header-topbar { padding: 6px 0 !important; }
.navbar { padding: 14px 0 !important; }
.btn-header-cta {
  padding: 12px 28px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
}
/* Push slider arrows further out to the edges, away from text */
.slick-prev {
  left: -10px !important;
}

.slick-next {
  right: -10px !important;
}
.navbar-nav {
  gap: 0px !important;
}
/* ---- Top bar ---- */
.header-topbar {
  padding: 10px 0 !important;
  background: #123143 !important; /* optional: only if you want the deep purple tone too */
}

.topbar-contact {
  display: flex !important;
  gap: 36px !important;
}

.topbar-contact li {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
}

.topbar-social {
  gap: 12px !important;
}

/* ---- Main nav row ---- */
.navbar {
  padding: 22px 0 !important;
}

.navbar-brand img {
  max-height: 68px !important;
}

.navbar-nav {
  display: flex !important;
  align-items: center !important;
  gap: 34px !important;
}

.navbar-nav .nav-item {
  margin: 0 !important;
}

.navbar-nav .nav-item-link {
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* ---- Contact Now button ---- */
.navbar .d-xl-flex {
  margin-left: 40px !important;
}

.btn-header-cta {
  padding: 15px 34px !important;
  border-radius: 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
/* ============================================================
   Home page — "Caring for Your Health with Trust" feature cards
   Redesign scoped ENTIRELY to #home-features so nothing on any
   other page (careers.html, testimonials.html, tests-billing.html,
   tests-book-visit.html, tests-provider-registration.html — which
   also use .fancybox-layout3) is affected.

   4 columns desktop / 2 columns tablet / 1 column mobile.
   Colors reused as-is from the theme:
     --color-primary  #f5730f  (orange icon circle)
     --color-accent   #5499b0  (blue title — same var h4 already uses)
     --color-white    #fdfdfd  (card background)
   ============================================================ */

/* Card grid */
#home-features .cards-section {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100%;
  counter-reset: home-feature-count;
}

/* Card shell — white background, centered content, numbered, equal height */
#home-features .fancybox-item {
  counter-increment: home-feature-count;
  position: relative;
  overflow: hidden;
  flex: none;
  max-width: none;
 width:280px;
 height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(18, 49, 67, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Large faint number in the top-left corner of each card */
#home-features .fancybox-item::before {
  content: counter(home-feature-count, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 22px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: rgba(18, 49, 67, 0.08);
  z-index: 0;
}

#home-features .fancybox-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(18, 49, 67, 0.14);
}

/* Remove the old divider line — cards are now self-contained boxes */
#home-features .fancybox-item .fancybox-body {
  border-bottom: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Icon badge: solid orange circle, centered above the title */
#home-features .fancybox-item .fancybox-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  font-size: 28px;
  padding-top: 0;
  margin: 4px auto 22px auto;
  background-color: var(--color-primary);
  color: var(--color-white);
  transition: transform 0.3s ease;
}

#home-features .fancybox-item:hover .fancybox-icon {
  transform: scale(1.1);
  filter: brightness(0.96);
}

/* Text block below the icon */
#home-features .fancybox-title {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--color-accent);
}

#home-features .fancybox-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bs-gray);
  margin-bottom: 0;
}

/* Heading column */
#home-features .heading-title {
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.3;
}

#home-features .heading-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Center-align the intro heading block (subtitle + title lines) */
#home-features .heading-layout1 {
  text-align: center;
}

#home-features .heading-desc {
  line-height: 1.8;
  color: var(--bs-gray);
}

/* Feature image beside the intro text, filling the space next to
   the paragraph/button column on the first row of this section. */
#home-features .home-features-img-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

/* Rotated accent shape behind the image, echoing the About section's style */
#home-features .home-features-img-col::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%) rotate(42deg);
  background-color: rgba(var(--color-primary-rgb), 0.25);
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  z-index: 1;
}

#home-features .home-features-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  height: 320px;
  object-fit: cover;
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
          clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 10px 25px rgba(18, 49, 67, 0.18));
  box-shadow: none;
  border-radius: 0;
}

@media (max-width: 1199px) {
  #home-features .home-features-img {
    height: 240px;
    margin-top: 30px;
  }
}

/* Responsive: 4 cols desktop -> 2 cols tablet -> 1 col mobile */
@media (max-width: 1199px) {
  #home-features .cards-section {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  #home-features .cards-section {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #home-features .fancybox-item {
    padding: 32px 24px 28px;
  }
}