


/* ═══ HERO WRAPPER ═══ */
.ff-hero{position:relative;width:100%;background:var(--ff-white);border-bottom:1px solid var(--ff-sep)}
.ff-hero-swiper{width:100%;overflow:hidden;height:var(--ff-hero-h)}
.ff-hero-swiper .swiper-slide{height:var(--ff-hero-h)}
@keyframes ff-hero-fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes ff-hero-progressFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ═══ SLIDE ═══ */
.ff-hero-slide{
  position:relative;width:100%;height:100%;
  display:flex;align-items:center;overflow:hidden;
}


/* ═══ IMAGE — full-bleed, no zoom ═══ */
.ff-hero-img{position:absolute;inset:0;z-index:0}
.ff-hero-img img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}


/* ═══ OVERLAYS — white-based, bright ═══ */
.ff-hero-overlay{position:absolute;inset:0;z-index:1;pointer-events:none}

.ff-hero-overlay--left{
  background:linear-gradient(90deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.92) 15%,
    rgba(255,255,255,.78) 30%,
    rgba(255,255,255,.55) 45%,
    rgba(255,255,255,.28) 60%,
    rgba(255,255,255,.08) 75%,
    transparent 100%
  );
}
.ff-hero-overlay--right{
  background:linear-gradient(270deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.92) 15%,
    rgba(255,255,255,.78) 30%,
    rgba(255,255,255,.55) 45%,
    rgba(255,255,255,.28) 60%,
    rgba(255,255,255,.08) 75%,
    transparent 100%
  );
}
.ff-hero-overlay--center{
  background:
    linear-gradient(180deg,rgba(255,255,255,.35) 0%,rgba(255,255,255,.15) 30%,rgba(255,255,255,.45) 70%,rgba(255,255,255,.75) 100%),
    radial-gradient(ellipse at 50% 60%,rgba(255,255,255,.7) 0%,rgba(255,255,255,.35) 40%,transparent 70%);
}
.ff-hero-overlay--none{background:transparent}

/* Gradient BG slides */
.ff-hero-grad--sky{background:linear-gradient(135deg,#dbeafe 0%,#bfdbfe 30%,#e0f2fe 60%,#f0f9ff 100%)}
.ff-hero-grad--dots::before{
  content:'';position:absolute;inset:0;z-index:0;
  background-image:radial-gradient(circle,rgba(0,119,182,.04) 1px,transparent 1px);
  background-size:20px 20px;pointer-events:none;
}


/* ═══════════════════════════════════════════════════════════
   CONTENT — proper left/right/center placement
   
   Uses a full-width inner wrapper (max-width:1600px centered)
   then a content box that sits left, right, or center WITHIN it.
   ═══════════════════════════════════════════════════════════ */
.ff-hero-inner{
  position:relative;z-index:2;
  width:100%;max-width:1600px;
  margin:0 auto;
  padding:0 clamp(28px,5vw,72px);
  display:flex;
  align-items:center;
  height:100%;
}

/* Content block — the actual text column */
.ff-hero-content{
  display:flex;flex-direction:column;gap:12px;
  max-width:540px;
}

/* LEFT — content flush left (default) */
.ff-hero-inner--left{justify-content:flex-start}
.ff-hero-inner--left .ff-hero-content{align-items:flex-start;text-align:left}

/* RIGHT — content flush right */
.ff-hero-inner--right{justify-content:flex-end}
.ff-hero-inner--right .ff-hero-content{align-items:flex-end;text-align:right}
.ff-hero-inner--right .ff-hero-cta-wrap{justify-content:flex-end}
.ff-hero-inner--right .ff-hero-meta{justify-content:flex-end}
.ff-hero-inner--right .ff-hero-brand{justify-content:flex-end}
.ff-hero-inner--right .ff-hero-brand-name{text-align:right}

/* CENTER — content centered */
.ff-hero-inner--center{justify-content:center}
.ff-hero-inner--center .ff-hero-content{align-items:center;text-align:center;max-width:620px}
.ff-hero-inner--center .ff-hero-cta-wrap{justify-content:center}
.ff-hero-inner--center .ff-hero-meta{justify-content:center}


/* ─── Stagger entrance ─── */
.swiper-slide-active .ff-hero-content > *{animation:ff-hero-fadeUp .5s var(--ff-ease) both}
.swiper-slide-active .ff-hero-brand{animation-delay:.03s}
.swiper-slide-active .ff-hero-doctor{animation-delay:.03s}
.swiper-slide-active .ff-hero-tag{animation-delay:.07s}
.swiper-slide-active .ff-hero-title{animation-delay:.14s}
.swiper-slide-active .ff-hero-sub{animation-delay:.22s}
.swiper-slide-active .ff-hero-announce-badge{animation-delay:.28s}
.swiper-slide-active .ff-hero-cta-wrap{animation-delay:.3s}
.swiper-slide-active .ff-hero-meta{animation-delay:.36s}
.swiper-slide:not(.swiper-slide-active) .ff-hero-content > *{opacity:0;transform:translateY(18px)}


/* ═══ BRAND LOGO — clinic/sponsor logo ═══ */
.ff-hero-brand{
  display:flex;align-items:center;gap:12px;
  margin-bottom:2px;
}
.ff-hero-brand-logo{
  width:44px;height:44px !important;border-radius:10px;
  object-fit:contain;
  background:var(--ff-white);
  box-shadow:0 1px 6px rgba(0,0,0,.06);
  border:1px solid var(--ff-border);
  padding:4px;
}
.ff-hero-brand-name{
  font-family:var(--ff-font);
  font-size:13px;font-weight:600;
  color:var(--ff-text-3);
  letter-spacing:.01em;
  line-height:1.3;
}
.ff-hero-brand-name small{
  display:block;font-size:11px;font-weight:400;
  color:var(--ff-text-4);margin-top:1px;
}


/* ═══ TAG ═══ */
.ff-hero-tag{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 14px;border-radius:100px;
  font-size:10.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  line-height:1.3;width:fit-content;
}
.ff-hero-tag i{font-size:8.5px}
.ff-hero-tag--sponsored{background:rgba(255,140,0,.1);color:#b86e00;border:1px solid rgba(255,140,0,.12)}
.ff-hero-tag--featured{background:rgba(0,119,182,.08);color:var(--ff-blue-deep);border:1px solid rgba(0,119,182,.1)}
.ff-hero-tag--clinic{background:rgba(216,27,96,.07);color:var(--ff-pink-dark);border:1px solid rgba(216,27,96,.08)}
.ff-hero-tag--explore{background:rgba(5,150,105,.07);color:#047857;border:1px solid rgba(5,150,105,.08)}
.ff-hero-tag--doctor{background:rgba(124,58,237,.07);color:#6d28d9;border:1px solid rgba(124,58,237,.08)}
.ff-hero-tag--announcement{background:rgba(0,119,182,.06);color:var(--ff-blue-deep);border:1px solid rgba(0,119,182,.08)}


/* ═══ DOCTOR PROFILE — avatar + credentials ═══ */
.ff-hero-doctor{
  display:flex;align-items:center;gap:14px;margin-bottom:2px;
}
.ff-hero-doctor-avatar{
  width:64px;height:64px;border-radius:50%;
  object-fit:cover;object-position:top center;
  border:3px solid var(--ff-white);
  box-shadow:0 2px 12px rgba(0,0,0,.08);
  flex-shrink:0;
}
.ff-hero-doctor-info{display:flex;flex-direction:column;gap:2px}
.ff-hero-doctor-name{
  font-family:var(--ff-font);font-size:15px;font-weight:700;
  color:var(--ff-text);line-height:1.3;
}
.ff-hero-doctor-spec{
  font-size:12.5px;font-weight:500;color:var(--ff-text-3);line-height:1.3;
}
.ff-hero-doctor-clinic{
  font-size:11.5px;font-weight:400;color:var(--ff-text-4);
  display:flex;align-items:center;gap:4px;
}
.ff-hero-doctor-clinic i{font-size:9px}

/* Right-aligned doctor */
.ff-hero-inner--right .ff-hero-doctor{flex-direction:row-reverse}
.ff-hero-inner--right .ff-hero-doctor-info{align-items:flex-end;text-align:right}


/* ═══ ANNOUNCEMENT BADGE ═══ */
.ff-hero-announce-badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 18px;border-radius:var(--ff-r-sm);
  background:rgba(0,119,182,.05);
  border:1px solid rgba(0,119,182,.08);
  font-size:12.5px;font-weight:600;color:var(--ff-blue);
  width:fit-content;
}
.ff-hero-announce-badge i{font-size:14px}

/* Announcement gradient */
.ff-hero-grad--ocean{
  background:linear-gradient(135deg,#e0f2fe 0%,#bae6fd 20%,#e0f7fa 45%,#f0fdfa 70%,#f0f9ff 100%);
}


/* ═══ TITLE ═══ */
.ff-hero-title{
  font-family:var(--ff-serif);
  font-size:clamp(25px,3.8vw,44px);
  font-weight:600;color:var(--ff-text);
  line-height:1.18;letter-spacing:-.015em;
}


/* ═══ SUBTITLE ═══ */
.ff-hero-sub{
  font-size:clamp(13.5px,1.3vw,16px);
  font-weight:400;color:var(--ff-text-2);
  line-height:1.6;letter-spacing:.005em;
  max-width:480px;
}


/* ═══ CTA BUTTONS ═══ */
.ff-hero-cta-wrap{display:flex;gap:10px;flex-wrap:wrap;margin-top:2px}
.ff-hero-cta{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 26px;border-radius:100px;
  font-size:13.5px;font-weight:600;letter-spacing:.01em;
  transition:all .3s var(--ff-ease);
}
.ff-hero-cta:hover{transform:translateY(-2px)}
.ff-hero-cta:active{transform:translateY(0) scale(.97)}
.ff-hero-cta i{font-size:11px;transition:transform .3s var(--ff-ease)}
.ff-hero-cta:hover i.fa-arrow-right{transform:translateX(3px)}

.ff-hero-cta--blue{background:var(--ff-blue);color:var(--ff-white);box-shadow:0 2px 12px rgba(0,119,182,.2)}
.ff-hero-cta--blue:hover{box-shadow:0 6px 24px rgba(0,119,182,.25)}
.ff-hero-cta--pink{background:var(--ff-pink);color:var(--ff-white);box-shadow:0 2px 12px rgba(216,27,96,.2)}
.ff-hero-cta--pink:hover{box-shadow:0 6px 24px rgba(216,27,96,.25)}
.ff-hero-cta--orange{background:var(--ff-orange);color:var(--ff-white);box-shadow:0 2px 12px rgba(255,140,0,.2)}
.ff-hero-cta--orange:hover{box-shadow:0 6px 24px rgba(255,140,0,.25)}

.ff-hero-cta--soft{
  background:var(--ff-white);color:var(--ff-blue);
  box-shadow:0 1px 4px rgba(0,0,0,.05);border:1px solid rgba(0,119,182,.12);
}
.ff-hero-cta--soft:hover{background:rgba(0,119,182,.03);box-shadow:0 4px 14px rgba(0,119,182,.08)}
.ff-hero-cta--soft-pink{
  background:var(--ff-white);color:var(--ff-pink);
  box-shadow:0 1px 4px rgba(0,0,0,.05);border:1px solid rgba(216,27,96,.1);
}
.ff-hero-cta--soft-pink:hover{background:rgba(216,27,96,.03);box-shadow:0 4px 14px rgba(216,27,96,.08)}


/* ═══ META LINE ═══ */
.ff-hero-meta{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:12.5px;color:var(--ff-text-3);margin-top:2px;
}
.ff-hero-meta i{font-size:10.5px}
.ff-hero-meta-dot{width:3px;height:3px;border-radius:50%;background:var(--ff-text-4);flex-shrink:0}
.ff-hero-stars{display:flex;gap:1.5px;color:#F59E0B}
.ff-hero-stars i{font-size:11.5px}
.ff-hero-verified{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 9px 3px 7px;border-radius:100px;
  font-size:10.5px;font-weight:600;
  background:rgba(5,150,105,.07);color:#047857;border:1px solid rgba(5,150,105,.08);
}
.ff-hero-verified i{font-size:9.5px}


/* ═══ PAGINATION ═══ */
.ff-hero-swiper .ff-hero-pagination{
  bottom:16px !important;
  display:flex;align-items:center;justify-content:center;gap:7px;
}
.ff-hero-swiper .ff-hero-pagination .swiper-pagination-bullet{
  width:8px;height:8px;border-radius:50%;
  background:rgba(0,119,182,.18);opacity:1;margin:0 !important;
  transition:all .35s var(--ff-ease);
}
.ff-hero-swiper .ff-hero-pagination .swiper-pagination-bullet:hover{background:rgba(0,119,182,.35)}
.ff-hero-swiper .ff-hero-pagination .swiper-pagination-bullet-active{
  width:28px;border-radius:100px;background:var(--ff-blue);
}


/* ═══ NAVIGATION ARROWS ═══ */
.ff-hero-swiper .ff-hero-prev,
.ff-hero-swiper .ff-hero-next{
  width:42px;height:42px;border-radius:50%;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(0,0,0,.04);
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  color:var(--ff-text-2);
  opacity:0;transition:all .3s var(--ff-ease);z-index:12;
}
.ff-hero-swiper .ff-hero-prev::after,
.ff-hero-swiper .ff-hero-next::after{font-size:13px;color:var(--ff-text-2)}
.ff-hero:hover .ff-hero-prev,
.ff-hero:hover .ff-hero-next{opacity:1}
.ff-hero-swiper .ff-hero-prev:hover,
.ff-hero-swiper .ff-hero-next:hover{
  background:var(--ff-blue);border-color:var(--ff-blue);
  box-shadow:0 4px 14px rgba(0,119,182,.18);
  transform:translateY(-50%) scale(1.04);
}
.ff-hero-swiper .ff-hero-prev:hover::after,
.ff-hero-swiper .ff-hero-next:hover::after{color:var(--ff-white)}
.ff-hero-swiper .ff-hero-prev{left:clamp(10px,2vw,22px)}
.ff-hero-swiper .ff-hero-next{right:clamp(10px,2vw,22px)}


/* ═══ PROGRESS BAR ═══ */
.ff-hero-progress{
  position:absolute;bottom:0;left:0;z-index:12;
  width:100%;height:3px;background:rgba(0,119,182,.05);overflow:hidden;
}
.ff-hero-progress-bar{
  height:100%;background:linear-gradient(90deg,var(--ff-blue),var(--ff-pink));
  transform-origin:left;transform:scaleX(0);
}
.ff-hero-progress-bar.ff-hero-progress-on{animation:ff-hero-progressFill 5s linear forwards}
.ff-hero.ff-hero-paused .ff-hero-progress-bar{animation-play-state:paused}


/* ═══ RESPONSIVE ═══ */
@media(max-width:767px){
  /* Arrows hidden — swipe only */
  .ff-hero-swiper .ff-hero-prev,
  .ff-hero-swiper .ff-hero-next{display:none}

  /* ── All content becomes left-aligned on mobile ── */
  .ff-hero-inner{padding:0 20px}
  .ff-hero-inner--right{justify-content:flex-start !important}
  .ff-hero-inner--right .ff-hero-content{align-items:flex-start !important;text-align:left !important}
  .ff-hero-inner--center{justify-content:flex-start !important}
  .ff-hero-inner--center .ff-hero-content{align-items:flex-start !important;text-align:left !important}

  /* Force all child flex containers to left on mobile */
  .ff-hero-content{max-width:100% !important;gap:9px}
  .ff-hero-cta-wrap{justify-content:flex-start !important}
  .ff-hero-meta{justify-content:flex-start !important}
  .ff-hero-brand{justify-content:flex-start !important;flex-direction:row !important}
  .ff-hero-brand-name{text-align:left !important}

  /* ── Doctor row resets to left ── */
  .ff-hero-doctor{flex-direction:row !important;gap:10px}
  .ff-hero-doctor-info{align-items:flex-start !important;text-align:left !important}
  .ff-hero-doctor-avatar{width:50px;height:50px;border-width:2px}
  .ff-hero-doctor-name{font-size:13px}
  .ff-hero-doctor-spec{font-size:11px}
  .ff-hero-doctor-clinic{font-size:10.5px}

  /* ── Overlay: stronger on mobile for readability ── */
  .ff-hero-overlay--left{
    background:linear-gradient(90deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.94) 20%,
      rgba(255,255,255,.85) 40%,
      rgba(255,255,255,.65) 58%,
      rgba(255,255,255,.35) 72%,
      rgba(255,255,255,.1) 85%,
      transparent 100%
    ) !important;
  }
  .ff-hero-overlay--right{
    background:linear-gradient(90deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.94) 20%,
      rgba(255,255,255,.85) 40%,
      rgba(255,255,255,.65) 58%,
      rgba(255,255,255,.35) 72%,
      rgba(255,255,255,.1) 85%,
      transparent 100%
    ) !important;
  }
  .ff-hero-overlay--center{
    background:linear-gradient(90deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.9) 20%,
      rgba(255,255,255,.8) 38%,
      rgba(255,255,255,.55) 55%,
      rgba(255,255,255,.25) 72%,
      transparent 100%
    ) !important;
  }

  /* ── Typography: mobile-optimised sizes ── */
  .ff-hero-title{font-size:clamp(21px,5.8vw,28px);line-height:1.2;letter-spacing:-.01em}
  .ff-hero-sub{font-size:13px;line-height:1.5;max-width:85%}
  .ff-hero-tag{font-size:9.5px;padding:4px 11px;letter-spacing:.5px}
  .ff-hero-tag i{font-size:8px}

  /* ── CTAs: compact, side by side ── */
  .ff-hero-cta{padding:10px 18px;font-size:12.5px;gap:6px;border-radius:100px}
  .ff-hero-cta i{font-size:10.5px}
  .ff-hero-cta-wrap{gap:8px;margin-top:2px}

  /* ── Meta: compact single row ── */
  .ff-hero-meta{font-size:11px;gap:7px;margin-top:0}
  .ff-hero-meta i{font-size:9.5px}
  .ff-hero-stars i{font-size:10.5px}
  .ff-hero-verified{font-size:9.5px;padding:2px 8px 2px 6px;gap:3px}
  .ff-hero-verified i{font-size:8.5px}
  .ff-hero-meta-dot{width:2.5px;height:2.5px}

  /* ── Brand logo: smaller ── */
  .ff-hero-brand{gap:10px;margin-bottom:0}
  .ff-hero-brand-logo{width:34px;height:34px;border-radius:8px;padding:3px}
  .ff-hero-brand-name{font-size:12px}
  .ff-hero-brand-name small{font-size:10px}

  /* ── Accent line ── */
  .ff-hero-accent{width:32px;height:2.5px}

  /* ── Announcement badge ── */
  .ff-hero-announce-badge{font-size:11px;padding:6px 12px;gap:6px}
  .ff-hero-announce-badge i{font-size:12px}

  /* ── Pagination: closer to bottom ── */
  .ff-hero-swiper .ff-hero-pagination{bottom:10px !important;gap:5px}
  .ff-hero-swiper .ff-hero-pagination .swiper-pagination-bullet{width:6px;height:6px}
  .ff-hero-swiper .ff-hero-pagination .swiper-pagination-bullet-active{width:20px}
}

/* ── Extra small phones ── */
@media(max-width:380px){
  .ff-hero-inner{padding:0 16px}
  .ff-hero-title{font-size:20px}
  .ff-hero-sub{font-size:12.5px;max-width:90%}
  .ff-hero-cta{padding:9px 16px;font-size:12px}
  .ff-hero-brand-logo{width:30px;height:30px}
  .ff-hero-doctor-avatar{width:44px;height:44px}
}

@media(prefers-reduced-motion:reduce){
  .swiper-slide-active .ff-hero-content > *{animation:none !important;opacity:1 !important;transform:none !important}
  .swiper-slide:not(.swiper-slide-active) .ff-hero-content > *{opacity:1;transform:none}
  .ff-hero-progress-bar{animation:none !important;transform:scaleX(1) !important}
}