/*
Theme Name: Dr Dibbendhu Khanra
Theme URI: https://www.drkhanra.com.au/
Author: Dr Dibbendhu Khanra Cardiology
Author URI: https://www.drkhanra.com.au/
Description: Specialist Cardiologist & Cardiac Electrophysiologist WordPress Theme for Dr Dibbendhu Khanra in Canberra. Features advanced cardiac care UI, custom ACF-like native Meta Box system, comprehensive Theme Options, and One-Click Demo Import.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dkhanra
Tags: medical, health, cardiologist, responsive-layout, theme-options, translation-ready

==========================================================================
The core stylesheets and assets for this theme reside in html/css/style.css
and are enqueued via functions.php to maintain 100% pixel-perfect fidelity.
==========================================================================
*/

/* ---- Typography: Jost across entire site ---- */
:root {
  --font-display: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html, body {
  font-family: var(--font-body);
}

/* ---- Header Brand: Exact match to original HTML design ---- */
.brand { flex-shrink: 0; }
.site-header .brand-name {
  font-family: var(--font-display);
  font-size: calc(1.2rem + 10px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.15;
  white-space: nowrap;
}
.site-header .brand-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}
.site-header .brand-mark {
  width: 48px;
  height: 48px;
}
@media (max-width: 1199.98px) {
  .site-header .brand-role { display: none; }
  .site-header .brand-name {
    font-size: calc(1.12rem + 6px);
  }
}
@media (max-width: 991.98px) {
  .site-header .brand-name {
    font-size: calc(1.15rem + 8px);
  }
}
@media (max-width: 767.98px) {
  .site-header .brand-name {
    font-size: calc(1.05rem + 6px);
  }
  .site-header .brand-mark {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 575.98px) {
  .site-header .brand {
    gap: 0.65rem;
  }
  .site-header .brand-name {
    font-size: 1.32rem;
    letter-spacing: -0.01em;
  }
  .site-header .brand-mark {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 380px) {
  .site-header .brand {
    gap: 0.5rem;
  }
  .site-header .brand-name {
    font-size: 1.16rem;
  }
  .site-header .brand-mark {
    width: 34px;
    height: 34px;
  }
}


/* Footer Brand Styling */
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
  max-width: 100%;
}
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}
.site-footer .brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.site-footer .brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}
.site-footer .brand-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

/* Fixed header must clear the WordPress admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

/* Centred page heroes (404) */
.page-hero.text-center h1,
.page-hero.text-center .lead { margin-left: auto; margin-right: auto; }
.page-hero.text-center .eyebrow { display: flex; justify-content: center; }
.page-hero.text-center { min-height: 70vh; display: flex; align-items: center; }
.page-hero.text-center > .container { width: 100%; }
.referral-strip { margin: 2.5rem 0 0; position: relative; z-index: 3; }
.referral-strip + .section { padding-top: 3rem; }
.referral-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  padding: 1.25rem 1.75rem; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #0a1a33, #1d5fae);
  box-shadow: var(--shadow);
}
.referral-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.referral-code { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: 0.04em; }
.referral-text { flex: 1 1 260px; margin: 0; color: rgba(255,255,255,0.88); }
/* Consulting Rooms Card & Refined Spacing */
.rooms-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -10px rgba(10, 26, 51, 0.08);
  margin-bottom: 2rem;
}
.rooms-card:last-child {
  margin-bottom: 0;
}
.rooms-media {
  position: relative;
  overflow: hidden;
}
.rooms-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.rooms-body {
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rooms-body .eyebrow {
  margin-bottom: 0.35rem;
}
.rooms-body .section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.rooms-body .section-lead {
  font-size: 0.96rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Compact Contact List in Consulting Rooms */
.rooms-body .contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.rooms-body .contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.rooms-body .contact-list li:first-child {
  padding-top: 0;
}
.rooms-body .contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Phone & Email combined in ONE row */
.rooms-body .contact-list li.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 0.65rem 0;
}
.rooms-body .contact-list .contact-col {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.rooms-body .contact-list .icon-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 1rem;
  border-radius: 11px;
  background: var(--cyan-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rooms-body .contact-list small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.1rem;
}
.rooms-body .contact-list a,
.rooms-body .contact-list span.value {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease;
  word-break: break-word;
}
.rooms-body .contact-list a:hover {
  color: var(--blue);
}

/* Rooms Map Embed */
.rooms-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}
.rooms-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.place-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.place-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.place-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.research-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1rem; margin-top: 2.5rem; }
.research-title { font-weight: 700; margin-right: 0.5rem; }

@media (max-width: 991.98px) {
  .rooms-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .rooms-media img {
    height: 280px;
    min-height: 280px;
  }
  .rooms-body {
    padding: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .rooms-media img {
    height: 220px;
    min-height: 220px;
  }
  .rooms-body .contact-list li.contact-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .rooms-map iframe {
    height: 160px;
  }
}

/* ---- Accreditations & Logo Carousel ---- */
.section-logo-carousel {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(15, 37, 69, 0.06);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.logo-carousel-container { position: relative; max-width: 100%; }
.logo-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 1.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.logo-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  animation: logoScrollMarquee 30s linear infinite;
  will-change: transform;
}
.logo-carousel-track:hover,
.logo-carousel-track:focus-within {
  animation-play-state: paused;
}
@keyframes logoScrollMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.logo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 270px;
  min-width: 270px;
  padding: 1.5rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 30, 51, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(10, 26, 51, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  user-select: none;
  flex-shrink: 0;
}
.logo-card:hover,
.logo-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(42, 174, 205, 0.4);
  box-shadow: 0 14px 32px rgba(10, 26, 51, 0.09), 0 2px 6px rgba(42, 174, 205, 0.12);
  text-decoration: none;
  color: inherit;
  outline: none;
}
.logo-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 100%;
  padding: 0.25rem;
}
.logo-card-img {
  max-height: 58px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(8%) contrast(102%);
  opacity: 0.94;
  transition: all 0.35s ease;
}
.logo-card:hover .logo-card-img,
.logo-card:focus-visible .logo-card-img {
  filter: grayscale(0%) contrast(106%);
  opacity: 1;
  transform: scale(1.05);
}
.logo-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
  width: 100%;
  border-top: 1px solid rgba(15, 30, 51, 0.06);
  padding-top: 0.85rem;
}
.logo-card-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.logo-card-cred {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--cyan-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.logo-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 30, 51, 0.12);
  background: #ffffff;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 26, 51, 0.04);
}
.logo-nav-btn:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(29, 95, 174, 0.2);
}
.logo-nav-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (max-width: 991.98px) {
  .section-logo-carousel { padding: 4rem 0 4.5rem; }
  .logo-card { width: 240px; min-width: 240px; padding: 1.25rem 1rem 1rem; }
  .logo-card-media { height: 60px; }
  .logo-card-img { max-height: 50px; }
  .logo-card-name { font-size: 0.84rem; }
  .logo-card-cred { font-size: 0.68rem; }
}
@media (max-width: 575.98px) {
  .section-logo-carousel { padding: 3rem 0 3.5rem; }
  .logo-carousel-wrap {
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }
  .logo-card { width: 215px; min-width: 215px; padding: 1rem 0.85rem 0.85rem; border-radius: 16px; }
  .logo-card-media { height: 52px; }
  .logo-card-img { max-height: 44px; }
  .logo-card-content { margin-top: 0.75rem; padding-top: 0.65rem; }
  .logo-card-name { font-size: 0.8rem; }
  .logo-card-cred { font-size: 0.65rem; }
  .logo-nav-btn { width: 36px; height: 36px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  .logo-card { scroll-snap-align: start; }
}

/* ---- Section Split Head (Header with Action Button) ---- */
.section-head-split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 768px) {
  .section-head-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
  }
}

.section-head-split .section-head {
  margin-bottom: 0;
  max-width: 44rem;
}

.section-head-split .section-head > :last-child {
  margin-bottom: 0;
}

.section-head-split .section-action {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-head-split .section-action {
    margin-bottom: 0.35rem; /* optically align with baseline of lead text */
  }
}

.section-head-split .section-action .btn,
.section-head-split > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: 0 4px 14px rgba(10, 26, 51, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}

.section-head-split .section-action .btn:hover,
.section-head-split > .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 26, 51, 0.12);
}

.section-head-split .section-action .btn i,
.section-head-split > .btn i {
  transition: transform 0.25s ease;
}

.section-head-split .section-action .btn:hover i,
.section-head-split > .btn:hover i {
  transform: translateX(4px);
}

@media (max-width: 767.98px) {
  .section-head-split {
    margin-bottom: 2rem;
    gap: 1.25rem;
  }
  .section-head-split .section-action {
    width: auto;
    margin-bottom: 0;
  }
}

/* Also enhance legacy markup <div class="d-lg-flex justify-content-between align-items-end ..."> */
.d-lg-flex.justify-content-between.align-items-end > .section-head {
  margin-bottom: 0;
}
.d-lg-flex.justify-content-between.align-items-end > .section-head > :last-child {
  margin-bottom: 0;
}
.d-lg-flex.justify-content-between.align-items-end {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 992px) {
  .d-lg-flex.justify-content-between.align-items-end > .btn {
    margin-bottom: 0.35rem !important;
  }
}
@media (max-width: 991.98px) {
  .d-lg-flex.justify-content-between.align-items-end > .btn.mb-5 {
    margin-top: 1.25rem;
    margin-bottom: 0 !important;
  }
}

/* ---- Hero Visual, Doctor Card & Floating Chips Positioning ---- */
.hero-visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.08;
  max-width: 560px;
  margin-left: auto;
  margin-right: 1.5rem;
}

.hero-stage {
  position: absolute;
  inset: 0 2% 8% 8%;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portrait-card {
  position: absolute;
  left: -15%;
  bottom: -2%;
  width: 50%;
  max-width: 285px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 48px -12px rgba(10, 26, 51, 0.28);
  z-index: 2;
  transition: transform 0.35s var(--ease);
}
.portrait-card:hover {
  transform: translateY(-4px);
}
.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
}
.portrait-caption {
  padding: 0.85rem 0.6rem 0.45rem;
}
.portrait-caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.25;
}
.portrait-caption span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  margin-top: 0.2rem;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -8px rgba(10, 26, 51, 0.18);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  z-index: 3;
  animation: float-y 7s ease-in-out infinite;
}
.float-chip.chip-1 { right: -12%; top: 10%; }
.float-chip.chip-2 { right: -10%; bottom: 16%; animation-delay: -3.5s; }

@media (max-width: 1199.98px) {
  .hero-visual { margin-right: 0.75rem; max-width: 510px; }
  .portrait-card { left: -12%; width: 50%; max-width: 265px; }
  .float-chip.chip-1 { right: -8%; top: 8%; }
  .float-chip.chip-2 { right: -6%; bottom: 15%; }
}

@media (max-width: 991.98px) {
  .hero-visual { margin: 3.5rem auto 0; max-width: 500px; aspect-ratio: 1 / 1.12; }
  .hero-stage { inset: 0 2% 8% 6%; }
  .portrait-card { left: -6%; bottom: 0; width: 50%; max-width: 250px; }
  .float-chip.chip-1 { right: -4%; top: 6%; }
  .float-chip.chip-2 { right: -3%; bottom: 14%; }
}

@media (max-width: 767.98px) {
  .hero-visual { margin: 2.5rem auto 0; max-width: 440px; aspect-ratio: 1 / 1.18; }
  .hero-stage { inset: 0 0 10% 4%; border-radius: 30px; }
  .portrait-card { left: -4%; bottom: 0; width: 52%; max-width: 230px; padding: 8px; }
  .portrait-card img { border-radius: 16px; }
  .portrait-caption { padding: 0.65rem 0.45rem 0.3rem; }
  .portrait-caption strong { font-size: 0.95rem; }
  .portrait-caption span { font-size: 0.72rem; line-height: 1.25; }
  .float-chip { font-size: 0.76rem; padding: 0.5rem 0.75rem; border-radius: 12px; gap: 0.45rem; }
  .float-chip .chip-icon { width: 30px; height: 30px; font-size: 0.9rem; }
  .float-chip.chip-1 { top: 5%; right: -2%; }
  .float-chip.chip-2 { bottom: 15%; right: -2%; }
}

@media (max-width: 575.98px) {
  .hero-visual { margin: 2rem auto 0; max-width: 360px; aspect-ratio: 1 / 1.22; }
  .hero-stage { inset: 0 0 12% 2%; border-radius: 24px; }
  .portrait-card { left: -2%; width: 52%; max-width: 195px; padding: 6px; }
  .portrait-card img { border-radius: 14px; }
  .portrait-caption { padding: 0.5rem 0.35rem 0.25rem; }
  .portrait-caption strong { font-size: 0.88rem; }
  .portrait-caption span { font-size: 0.68rem; line-height: 1.2; }
  .float-chip { font-size: 0.7rem; padding: 0.42rem 0.65rem; border-radius: 10px; gap: 0.35rem; }
  .float-chip .chip-icon { width: 26px; height: 26px; font-size: 0.8rem; }
  .float-chip.chip-1 { top: 4%; right: 0; }
  .float-chip.chip-2 { bottom: 12%; right: 0; }
}

/* ==========================================================================
   Research & Academics Section
   ========================================================================== */
.research-academics-section {
  position: relative;
  background-color: #f8fafc;
}
.research-lead-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 18px -4px rgba(10, 26, 51, 0.05);
  position: relative;
  overflow: hidden;
}
.research-lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d5fae, #2aaecd);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.research-lead-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(10, 26, 51, 0.12);
  border-color: #cbd5e1;
}
.research-lead-card:hover::before {
  opacity: 1;
}
.research-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0f7fb;
  color: #1d5fae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.research-lead-card:hover .research-icon-badge {
  background: #1d5fae;
  color: #ffffff;
  transform: scale(1.06);
}
.research-badge-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d5fae;
  margin-bottom: 0.45rem;
}
.research-lead-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a1a33;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.research-org-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2aaecd;
  margin-bottom: 0.85rem;
}
.research-lead-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.badge-australia {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
}
.study-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.study-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #eef7fc;
  color: #1d5fae;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #d4ebf7;
}

/* Portals Strip */
.research-portals-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 4px 16px -4px rgba(10, 26, 51, 0.04);
}
.research-portals-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.portal-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0a1a33;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.portal-btn i {
  font-size: 1.1rem;
  color: #1d5fae;
  transition: color 0.25s ease;
}
.portal-btn .portal-badge {
  font-size: 0.72rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.2rem;
}
.portal-btn:hover {
  background: #1d5fae;
  border-color: #1d5fae;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(29, 95, 174, 0.25);
}
.portal-btn:hover i {
  color: #ffffff;
}
.portal-btn:hover .portal-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Publications Grid */
.landmark-pubs-heading {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}
.landmark-pubs-heading h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0a1a33;
  margin-bottom: 0.35rem;
}
.landmark-pubs-heading p {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 0;
}
.pub-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px -2px rgba(10, 26, 51, 0.04);
}
.pub-card:hover {
  border-color: #2aaecd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(10, 26, 51, 0.08);
}
.pub-card-content {
  flex: 1;
}
.pub-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.pub-year-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: #0a1a33;
  color: #ffffff;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.pub-journal {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d5fae;
  font-style: italic;
}
.pub-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a1a33;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.pub-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pub-tag {
  font-size: 0.72rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}
.pub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  background: #f0f7fb;
  color: #1d5fae;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid #d4ebf7;
}
.pub-link-btn:hover {
  background: #1d5fae;
  color: #ffffff;
  border-color: #1d5fae;
  transform: translateX(3px);
}
@media (max-width: 767.98px) {
  .pub-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
  }
  .pub-link-btn {
    width: 100%;
    justify-content: center;
  }
  .portal-buttons-grid {
    flex-direction: column;
  }
  .portal-btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   About Section Doctor Portrait & Caption (matches selected reference image)
   ========================================================================== */
.about-media {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
}
.about-media::before {
  content: "";
  position: absolute;
  left: -22px;
  right: -22px;
  top: 28%;
  bottom: -14px;
  border: 1.5px solid rgba(74, 163, 219, 0.45);
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}
.about-media::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 120px;
  height: 180px;
  background-image: radial-gradient(rgba(74, 163, 219, 0.45) 1.6px, transparent 1.8px);
  background-size: 16px 16px;
  z-index: 0;
  pointer-events: none;
}
.about-img {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(10, 26, 51, 0.1), 0 4px 14px rgba(10, 26, 51, 0.04);
  background: #ffffff;
}
.about-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: 50% 10%;
  transform: none !important;
}
.chip-about {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  font-size: 0.96rem;
  line-height: 1.4;
  color: #123353;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0 2px;
}
.chip-about .chip-number {
  font-weight: 600;
  color: #123353;
  margin-right: 0.2rem;
}
.chip-about .chip-label {
  font-weight: 500;
  color: #123353;
}

@media (max-width: 991.98px) {
  .about-media {
    max-width: 440px;
    margin: 0 auto 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .about-media {
    max-width: 400px;
    margin: 0 auto 1.75rem;
  }
  .about-media::before {
    left: -16px;
    right: -16px;
    top: 20%;
    bottom: -16px;
    border-radius: 28px;
  }
  .about-media::after {
    right: -16px;
    top: -16px;
    width: 110px;
    height: 150px;
    background-size: 16px 16px;
  }
  .about-img {
    border-radius: 22px;
  }
  .chip-about {
    font-size: 0.98rem;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .about-media {
    max-width: 100%;
    padding: 0 0.5rem;
    margin: 0 auto 1.5rem;
  }
  .about-media::before {
    left: -4px;
    right: -4px;
    top: 18%;
    bottom: -14px;
    border-radius: 24px;
  }
  .about-media::after {
    right: -4px;
    top: -12px;
    width: 90px;
    height: 120px;
  }
  .about-img {
    border-radius: 20px;
  }
  .chip-about {
    font-size: 0.92rem;
    margin-top: 0.85rem;
  }
}

/* ==========================================================================
   Inner-page Hero Media & Floating Card (Portrait Framing & Face Clearance)
   ========================================================================== */
.page-hero-media.hero-portrait .media-frame,
.page-template-page-about .page-hero-media .media-frame,
body.about-page .page-hero-media .media-frame {
  aspect-ratio: 4 / 4.8;
  max-width: 440px;
  margin-left: auto;
}
.page-hero-media.hero-portrait .media-frame img,
.page-template-page-about .page-hero-media .media-frame img,
body.about-page .page-hero-media .media-frame img {
  object-position: 50% 10% !important;
  transform: scale(1.02);
}
.float-chip.chip-hero {
  left: -1.25rem !important;
  bottom: 0.25rem !important;
  z-index: 3;
}

@media (max-width: 991.98px) {
  .page-hero-media.hero-portrait .media-frame,
  .page-template-page-about .page-hero-media .media-frame,
  body.about-page .page-hero-media .media-frame {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .page-hero-media.hero-portrait .media-frame,
  .page-template-page-about .page-hero-media .media-frame,
  body.about-page .page-hero-media .media-frame {
    max-width: 340px;
    margin: 0 auto;
  }
  .float-chip.chip-hero {
    left: -0.25rem !important;
    bottom: -0.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .float-chip.chip-hero {
    left: 0.25rem !important;
    bottom: -0.25rem !important;
    font-size: 0.74rem !important;
    padding: 0.45rem 0.75rem !important;
  }
  .float-chip.chip-hero .chip-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
}

/* ==========================================================================
   Biography Lead Paragraph & Unified Drop-Cap ("Dr" Together)
   ========================================================================== */
.prose .lead-first {
  font-size: 1.12rem;
  line-height: 1.7;
}
.prose .drop-cap,
.prose .lead-first .drop-cap {
  float: left;
  font-family: var(--font-display, "Jost", sans-serif);
  font-size: 3.2rem;
  line-height: 0.88;
  padding: 0.15rem 0.5rem 0 0;
  color: var(--blue, #1d5fae);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prose .lead-first::first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding: 0 !important;
  color: inherit !important;
}

/* ==========================================================================
   Home Hero Floating Chip 1 (Shifted Right to Uncover 3D Heart)
   ========================================================================== */
.hero-visual {
  margin-right: clamp(1.5rem, 3.5vw, 3rem) !important;
}
.float-chip {
  white-space: nowrap !important;
}
.float-chip.chip-1 {
  right: -25% !important;
  top: 8% !important;
}
@media (min-width: 1400px) {
  .float-chip.chip-1 {
    right: -28% !important;
    top: 8% !important;
  }
}
@media (max-width: 1199.98px) {
  .float-chip.chip-1 {
    right: -18% !important;
    top: 6% !important;
  }
}
@media (max-width: 991.98px) {
  .float-chip.chip-1 {
    right: -6% !important;
    top: 4% !important;
  }
}
@media (max-width: 767.98px) {
  .float-chip.chip-1 {
    top: 2% !important;
    right: -2% !important;
  }
}
@media (max-width: 575.98px) {
  .float-chip.chip-1 {
    top: 1% !important;
    right: 0 !important;
    font-size: 0.68rem !important;
    padding: 0.38rem 0.62rem !important;
  }
}

/* Feature panel (navy block used in GP / patient sections) - compact & responsive */
.panel-navy {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(1.85rem, 3.8vw, 3rem);
  color: #fff;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(42, 174, 205, 0.25), transparent 60%),
    linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow-lg);
}
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-navy p { color: rgba(255, 255, 255, 0.72); }
.panel-navy .check-list { margin: 1rem 0 1.35rem; }
.panel-navy .check-list li {
  padding: 0.32rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.panel-navy .check-list li i {
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
}
.panel-navy .service-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-navy .service-row:last-child { border-bottom: 0; }
.panel-navy .service-row i {
  color: var(--cyan-300);
  font-size: 1.25rem;
  flex: none;
}
.panel-navy .service-row strong { display: block; color: #fff; font-weight: 600; font-size: 0.96rem; }
.panel-navy .service-row span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); }

/* Compact patient facts grid with 4 cards - reduced gap, perfectly maintained height */
.patient-facts-grid {
  display: grid;
  gap: 0.65rem;
  height: 100%;
}
.patient-facts-grid .fact-cell {
  height: 100%;
}
.patient-facts-grid .fact-tile {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  padding: 0.72rem 1.15rem;
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}
.patient-facts-grid .fact-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}
.patient-facts-grid .fact-tile .icon-badge {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.22rem;
}
.patient-facts-grid .fact-tile h3 {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--navy);
}
.patient-facts-grid .fact-tile p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--ink-light);
}

@media (max-width: 991.98px) {
  .patient-facts-grid {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .patient-facts-grid .fact-tile {
    padding: 0.85rem 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .patient-facts-grid .fact-tile {
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
  }
  .patient-facts-grid .fact-tile .icon-badge {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 11px;
  }
  .patient-facts-grid .fact-tile h3 {
    font-size: 0.92rem;
  }
  .patient-facts-grid .fact-tile p {
    font-size: 0.8rem;
  }
}

