/* ============================================================
   KPJ COE — Shared Stylesheet
   Typography: Flexo (all weights) loaded from /fonts/
   Sizes/weights matched exactly to kpjhealth.com.my live site
   ============================================================ */

/* ── Flexo @font-face declarations ────────────────────────────
   Files expected at /fonts/Flexo-*.woff2 | .woff | .ttf
   Mirrors the exact @font-face stack on kpjhealth.com.my
   ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: Flexo;
  src: local("Flexo Thin"), local("Flexo-Thin"),
       url("/fonts/Flexo-Thin.woff2")   format("woff2"),
       url("/fonts/Flexo-Thin.woff")    format("woff"),
       url("/fonts/Flexo-Thin.ttf")     format("truetype");
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Thin Italic"), local("Flexo-ThinIt"),
       url("/fonts/Flexo-ThinIt.woff2") format("woff2"),
       url("/fonts/Flexo-ThinIt.woff")  format("woff"),
       url("/fonts/Flexo-ThinIt.ttf")   format("truetype");
  font-weight: 100; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Light"), local("Flexo-Light"),
       url("/fonts/Flexo-Light.woff2")  format("woff2"),
       url("/fonts/Flexo-Light.woff")   format("woff"),
       url("/fonts/Flexo-Light.ttf")    format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Light Italic"), local("Flexo-LightIt"),
       url("/fonts/Flexo-LightIt.woff2") format("woff2"),
       url("/fonts/Flexo-LightIt.woff")  format("woff"),
       url("/fonts/Flexo-LightIt.ttf")   format("truetype");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Regular"), local("Flexo-Regular"),
       url("/fonts/Flexo-Regular.woff2") format("woff2"),
       url("/fonts/Flexo-Regular.woff")  format("woff"),
       url("/fonts/Flexo-Regular.ttf")   format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Italic"), local("Flexo-It"),
       url("/fonts/Flexo-It.woff2") format("woff2"),
       url("/fonts/Flexo-It.woff")  format("woff"),
       url("/fonts/Flexo-It.ttf")   format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Medium"), local("Flexo-Medium"),
       url("/fonts/Flexo-Medium.woff2") format("woff2"),
       url("/fonts/Flexo-Medium.woff")  format("woff"),
       url("/fonts/Flexo-Medium.ttf")   format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Medium Italic"), local("Flexo-MediumIt"),
       url("/fonts/Flexo-MediumIt.woff2") format("woff2"),
       url("/fonts/Flexo-MediumIt.woff")  format("woff"),
       url("/fonts/Flexo-MediumIt.ttf")   format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo DemiBold"), local("Flexo-Demi"),
       url("/fonts/Flexo-Demi.woff2") format("woff2"),
       url("/fonts/Flexo-Demi.woff")  format("woff"),
       url("/fonts/Flexo-Demi.ttf")   format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo DemiBold Italic"), local("Flexo-DemiIt"),
       url("/fonts/Flexo-DemiIt.woff2") format("woff2"),
       url("/fonts/Flexo-DemiIt.woff")  format("woff"),
       url("/fonts/Flexo-DemiIt.ttf")   format("truetype");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Bold"), local("Flexo-Bold"),
       url("/fonts/Flexo-Bold.woff2") format("woff2"),
       url("/fonts/Flexo-Bold.woff")  format("woff"),
       url("/fonts/Flexo-Bold.ttf")   format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Bold Italic"), local("Flexo-BoldIt"),
       url("/fonts/Flexo-BoldIt.woff2") format("woff2"),
       url("/fonts/Flexo-BoldIt.woff")  format("woff"),
       url("/fonts/Flexo-BoldIt.ttf")   format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Heavy"), local("Flexo-Heavy"),
       url("/fonts/Flexo-Heavy.woff2") format("woff2"),
       url("/fonts/Flexo-Heavy.woff")  format("woff"),
       url("/fonts/Flexo-Heavy.ttf")   format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Heavy Italic"), local("Flexo-HeavyIt"),
       url("/fonts/Flexo-HeavyIt.woff2") format("woff2"),
       url("/fonts/Flexo-HeavyIt.woff")  format("woff"),
       url("/fonts/Flexo-HeavyIt.ttf")   format("truetype");
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Black"), local("Flexo-Black"),
       url("/fonts/Flexo-Black.woff2") format("woff2"),
       url("/fonts/Flexo-Black.woff")  format("woff"),
       url("/fonts/Flexo-Black.ttf")   format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Flexo;
  src: local("Flexo Black Italic"), local("Flexo-BlackIt"),
       url("/fonts/Flexo-BlackIt.woff2") format("woff2"),
       url("/fonts/Flexo-BlackIt.woff")  format("woff"),
       url("/fonts/Flexo-BlackIt.ttf")   format("truetype");
  font-weight: 900; font-style: italic; font-display: swap;
}

/* ── Font Awesome 5 Pro from /fonts/ ──────────────────────────
   Mirrors the exact @font-face declarations on kpjhealth.com.my
   ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Font Awesome 5 Brands";
  font-style: normal; font-weight: 400; font-display: auto;
  src: url("/fonts/fa-brands-400.woff2") format("woff2"),
       url("/fonts/fa-brands-400.woff")  format("woff"),
       url("/fonts/fa-brands-400.ttf")   format("truetype");
}
@font-face {
  font-family: "Font Awesome 5 Pro";
  font-style: normal; font-weight: 300; font-display: auto;
  src: url("/fonts/fa-light-300.woff2")  format("woff2"),
       url("/fonts/fa-light-300.woff")   format("woff"),
       url("/fonts/fa-light-300.ttf")    format("truetype");
}
@font-face {
  font-family: "Font Awesome 5 Pro";
  font-style: normal; font-weight: 400; font-display: auto;
  src: url("/fonts/fa-regular-400.woff2") format("woff2"),
       url("/fonts/fa-regular-400.woff")  format("woff"),
       url("/fonts/fa-regular-400.ttf")   format("truetype");
}
@font-face {
  font-family: "Font Awesome 5 Pro";
  font-style: normal; font-weight: 900; font-display: auto;
  src: url("/fonts/fa-solid-900.woff2") format("woff2"),
       url("/fonts/fa-solid-900.woff")  format("woff"),
       url("/fonts/fa-solid-900.ttf")   format("truetype");
}
@font-face {
  font-family: "Font Awesome 5 Duotone";
  font-style: normal; font-weight: 900; font-display: auto;
  src: url("/fonts/fa-duotone-900.woff2") format("woff2"),
       url("/fonts/fa-duotone-900.woff")  format("woff"),
       url("/fonts/fa-duotone-900.ttf")   format("truetype");
}

/* ── Font fallback chain ───────────────────────────────────── */
/* Same fallback order as kpjhealth.com.my — Flexo first,
   then system sans-serif. Do NOT use Poppins/Nunito/Open Sans
   on any element when Flexo files are present.               */
:root {
  --font:    Flexo, "Segoe UI", Arial, sans-serif;

  /* ── Design Tokens (exact live site values) ────────────── */
  --primary-color:  #967f65;
  --active-button:  #fbf3de;
  --second-color:   #eaedf8;
  --third-color:    #d5c8b9;
  --fourth-color:   #f37574;
  --fifth-color:    #f5f5f5;
  --bgm-color:      #f3f5f7;
  --button:         #d5c8b9;

  --kpj-taupe:       #967f65;
  --kpj-taupe-light: #d5c8b9;
  --kpj-taupe-warm:  #e9e4de;
  --kpj-bg-warm:     #e9e4de;
  --kpj-bg-grey:     #f3f5f7;
  --kpj-coral:       #f37574;
  --kpj-amber:       #fcb11d;
  --kpj-teal:        #39b5b2;
  --kpj-text-dark:   #10111e;
  --kpj-text-body:   #647589;
  --kpj-text-mid:    #606060;
  --kpj-text-dim:    #545454;
  --kpj-border:      #dee2e6;

  /* COE section backgrounds (exact computed from live DOM) */
  --coe-bg-warm:     rgb(233, 228, 222);
  --coe-bg-warm-alt: rgb(233, 227, 222);
  --coe-bg-light:    rgb(248, 250, 252);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  /* Exact live site body: Flexo 14px/21px weight-400 #647589 */
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;          /* 1.5 × 14px — matches live */
  color: rgb(100, 117, 137);  /* exact computed body colour */
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Leave room for fixed navigation-bottom bar */
  padding-bottom: 50px;
}
@media (max-width: 768px) {
  body { padding-bottom: 90px; }
}

img { max-width: 100%; display: block; }
a { color: var(--kpj-taupe); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Heading scale (exact computed values from live site) ────
   All headings: Flexo, no letter-spacing, no text-transform
   ─────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;      /* 1.1 × 40px */
  color: #000000;
  letter-spacing: normal;
}
/* Page-hero H1 variant — "Find A Doctor" style large title */
h1.page-title-xl {
  font-size: 60px;
  line-height: 66px;      /* 1.1 × 60px — matches doctor listing */
  font-weight: 700;
  color: #000000;
}
/* COE hero H1 — full-bleed banners */
h1.hero-heading {
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  color: #ffffff;
}
h2 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;         /* live site h2 = weight 400, not 700 */
  line-height: 30px;        /* 1.5 × 20px */
  color: rgb(96, 96, 96);   /* #606060 — exact live value */
  letter-spacing: normal;
}
/* Section heading variant — bold h2 for COE section titles */
h2.section-h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: rgb(96, 96, 96);
}
/* Larger section headings (used across COE pages) */
h2.section-heading-lg {
  font-size: 28px;
  font-weight: 700;
  line-height: 33.6px;
  color: var(--kpj-text-dark);
}
h3 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  line-height: 26.4px;    /* 1.2 × 22px */
  color: #000000;
  letter-spacing: normal;
}
/* Card / sub-item h3 (e.g. service card names) */
h3.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 21.6px;    /* 1.2 × 18px — matches .card p */
  color: #000000;
}
h4 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 17.6px;    /* exact live value for footer h4 */
  color: #000000;
  letter-spacing: normal;
}
h5 {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: #000000;
}
h6 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: #000000;
}

/* Body copy — standard paragraph */
p {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: rgb(100, 117, 137);
}
/* Large body paragraph (hero sub-copy, why-us text) */
p.lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: rgb(96, 96, 96);
  white-space: pre-line;
}
/* Medium body — section descriptors */
p.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgb(100, 117, 137);
}
/* Small label copy */
p.label-sm {
  font-size: 12px;
  font-weight: 700;
  line-height: 25px;
  color: var(--kpj-taupe);
}
/* Reg number / footer footnote */
p.footnote {
  font-size: 10px;
  font-weight: 400;
  line-height: 25px;
  color: rgb(255, 255, 255);
}

/* ── Layout ────────────────────────────────────────────────── */
/* Bootstrap .container used site-wide — max-width 1320px at xxl, responsive at all breakpoints */
.kpj-section    { padding: 80px 0; }
@media (max-width: 768px) {
.kpj-section { padding: 80px 8px;}
}
.kpj-section-sm { padding: 48px 0; }
.kpj-section-lg { padding: 100px 0; }

/* ══════════════════════════════════════════════════════════════
   HEADER  — exact kpjhealth.com.my computed values
   ══════════════════════════════════════════════════════════════ */
header, .header-menu-area { background: var(--primary-color); color: #fff; }
.header { position: sticky; top: 0; z-index: 200; }
.header-menu-area {
  align-items: center;
  display: flex;
  height: 65px;
  position: relative;
  z-index: 1;
}
.header-menu-area .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.logo a { display: flex; align-items: center; }
.home-header-logo { height: 30px; width: auto; }

@media (max-width: 480px) {
.home-header-logo { height: 38px; width: auto; }
}

/* Search bar — matches live .md-form */
.header-menu-area .md-form {
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  color: #000;
  display: flex;
  flex-direction: row;
  margin: 0 10px;
  overflow: hidden;
  padding-right: 10px;
  width: 325px;
}
.header-menu-area .md-form .form-control {
  border: none;
  padding: 10px;
  font-family: var(--font);
  font-size: 14px;          /* body font-size */
  font-weight: 400;
  line-height: 21px;
  outline: none;
  flex: 1;
  color: #000;
}
.header-menu-area .md-form .form-control:focus { box-shadow: none; }
.search-btn {
  background: none;
  border: none;
  padding: 0 6px;
  cursor: pointer;
  color: var(--kpj-taupe);
  font-size: 16px;
  line-height: 1;
}
.search-btn:hover { background-color: transparent; }

/* Main header row */
.main-header { align-items: center; display: flex; justify-content: flex-end; gap: 4px; }
.header-menu.header-left { display: flex; align-items: center; }

/* Public / Corporate tabs */
.active-tab-container { align-items: center; display: flex; margin-right: 20px; }
.active-tab-container .tab {
  align-items: center;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  font-size: 16px;           /* exact: 16px/600 from live */
  font-weight: 600;
  height: 65px;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.active-tab-container .tab.active {
  background-color: #ffffff;
  color: var(--primary-color);  /* #967f65 when active */
  font-weight: 600;
}
.active-tab-container .tab:hover:not(.active) { color: #fff; }

/* Login button */
.header-login { display: flex; align-items: center; margin-right: 8px; }
.header-login button {
  background: transparent;
  border: 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;          /* exact: 16px/400 from .header-login span */
  font-weight: 400;
  line-height: 24px;
}
.header-login img { width: 18px; height: 18px; }

/* Hamburger */
.header-hamburger { display: flex; align-items: center; padding: 0 8px; cursor: pointer; }
.header-hamburger img { width: 28px; height: auto; }
.side-menu-icon { display: none; }
.side-menu-icon button { background: transparent; border: 0; cursor: pointer; padding: 4px; }
.flex-grow-1 { flex-grow: 1; max-width: 30px; margin: 0 20px; }

/* sticky_menu — fixed header (matches live kpjhealth.com.my) */
.sticky_menu { position: fixed; top: 0; left: 0; width: 100vw; z-index: 9999; }

/* Push fixed header below WP admin bar when logged in */
.admin-bar .sticky_menu { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .sticky_menu { top: 46px; }
}

/* active_tab_btn — mobile-only Public/Corporate switcher */
.active_tab_btn {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
}
.active_tab_btn span { display: flex; align-items: center; }
.active_tab_btn svg { fill: white; }

/* Bootstrap-equivalent display utilities used by header */
.f-right { float: right; }
.pos-rel { position: relative; }
.d-none { display: none !important; }
@media (min-width: 768px)  { .d-md-block { display: block !important; } }
@media (min-width: 992px)  { .d-lg-block { display: block !important; } }
@media (max-width: 991px)  { .d-lg-none  { display: block !important; } }
.text-end { text-align: right; }
.border-0 { border: 0 !important; }
.bg-transparent { background: transparent !important; }

/* ══════════════════════════════════════════════════════════════
   NAV DRAWER — exact live values
   ══════════════════════════════════════════════════════════════ */
.kpj-nav-drawer {
  position: fixed; inset: 0; z-index: 1300;
  display: none; pointer-events: none;
}
.kpj-nav-drawer.open { display: block; pointer-events: all; }
.kpj-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  animation: kpjFadeIn 0.225s cubic-bezier(0.4,0,0.2,1);
}
@keyframes kpjFadeIn { from { opacity: 0; } to { opacity: 1; } }
.kpj-nav-panel {
  position: absolute; inset: 0;
  background: #fff;
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 0;
  animation: kpjSlideIn 0.225s cubic-bezier(0.4,0,0.2,1);
}
@keyframes kpjSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Panel header: padding matches live .MuiDialogTitle-root */
.kpj-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 30px;   /* exact live: 16px 24px 30px */
  flex-shrink: 0;
}
.kpj-nav-header img { height: 40px; width: auto; }
.kpj-nav-close {
  background: none; border: none; cursor: pointer; padding: 8px;
  position: absolute; top: 8px; right: 8px; color: #333;
  display: flex; align-items: center; justify-content: center;
}

/* Body: padding matches live .MuiDialogContent-root */
.kpj-nav-body {
  flex: 1; overflow-y: auto;
  padding: 8px 0 8px 24px;  /* exact live padding */
}

.two-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  font-size: 35px;            /* live: font-size 35px on grid */
}

/* Nav link items — exact live: 35px/500/black */
.first-coloumn-sub { padding: 4px 0; }
.first-coloumn-sub a,
.second-coloumn-sub a {
  font-family: var(--font);
  font-size: 35px;            /* exact: 35px from live inline style */
  font-weight: 500;           /* exact: 500 from live */
  line-height: 52.5px;        /* exact: 1.5 × 35px */
  color: #000000;             /* exact live colour */
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease-out;  /* exact live transition */
}
.first-coloumn-sub a:hover,
.second-coloumn-sub a:hover {
  color: var(--primary-color);
  padding-left: 30px;         /* matches .headermenu-popup-secion hover rule */
  text-decoration: none;
}

.second-coloumn { display: flex; flex-direction: column; }
.second-coloumn-sub { margin-bottom: 12px; }
.nav-preview-img {
  margin-top: 20px;           /* exact live: margin-top: 20px */
  width: 100%; max-width: 500px; height: 350px;
  background-size: 100%; background-repeat: no-repeat;
  transition: background-image 0.3s ease-in-out;
  border-radius: 8px;
}

/* Footer row — exact live .MuiDialogActions-root */
.kpj-nav-footer {
  flex-shrink: 0;
  padding: 16px 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
}
/* Social icons: 24px — exact live value */
.kpj-nav-social { display: flex; gap: 20px; }
.kpj-nav-social a { color: #333; font-size: 24px; text-decoration: none; transition: color 0.15s; }
.kpj-nav-social a:hover { color: var(--primary-color); text-decoration: none; }

/* Drawer search */
.kpj-nav-search {
  display: flex; align-items: center;
  border-bottom: 1px solid #ced4da;  /* exact live */
  width: 300px; gap: 8px; padding-bottom: 4px;
}
.kpj-nav-search input {
  border: none; outline: none;
  font-family: var(--font);
  font-size: 14px; font-weight: 400;
  line-height: 21px;
  flex: 1;
}
.kpj-nav-search button { background: none; border: none; cursor: pointer; color: #666; font-size: 14px; }

/* ══════════════════════════════════════════════════════════════
   FOOTER — exact live kpj-footer values
   ══════════════════════════════════════════════════════════════ */

/* Decorative notch — two black circles (invisible via lighten blend) frame
   a white fill rectangle, creating a curved tab at the top of the footer */
.footer-notch {
  position: absolute;
  top: -19.5px;
  left: -33%;
  transform: translateX(-50%);
  display: flex;
  mix-blend-mode: lighten;
  z-index: 1;
}
.footer-notch-circle {
  height: 39px;
  width: 39px;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
}
.footer-notch-fill {
  position: absolute;
  height: 19.5px;
  width: 39px;
  top: 0;
  left: 25%;
  background: #fff;
}

.kpj-footer {
  background-color: var(--primary-color);  /* #967f65 */
  display: flex;
  align-items: flex-start;
  height: 380px;
  padding: 50px 0 70px;
  position: relative;
}
.kpj-footer .container { display: flex; gap: 0; width: 100%; height: 100%; }
.kpj-footer .content,
.kpj-footer .content-desktop-view {
  border-right: 1px solid #fff;
  padding: 0 2%;
  flex: 1; min-width: 0;
  margin-left: 10px;
}
.kpj-footer .content { padding-left: 0; margin-left: 0; }
.kpj-footer .content-desktop-view:last-child { border-right: none; padding-right: 0; }

/* Footer headings: exact 16px/700 from live */
.kpj-footer h4 {
  font-family: var(--font);
  font-size: 16px;            /* exact live */
  font-weight: 700;
  line-height: 17.6px;        /* exact live: 17.6px */
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: normal;
}

/* Footer list items: exact 13px/400 from live */
.kpj-footer ul li {
  font-family: var(--font);
  font-size: 13px;            /* exact live */
  font-weight: 400;
  line-height: 19.5px;        /* exact live: 1.5 × 13px */
  color: #ffffff;
  margin-bottom: 5px;
  width: 180px;
}
.kpj-footer ul li a {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #ffffff;
  text-decoration: none;
}
.kpj-footer ul li p {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0;
  margin-left: 3px;
}
/* Footer reg number: exact 10px/400 from live */
.kpj-footer p,
.footer-reg {
  font-family: var(--font);
  font-size: 10px;            /* exact live: 10px */
  font-weight: 400;
  line-height: 25px;          /* exact live */
  color: #ffffff;
  margin-bottom: 15px;
}
.kpj-footer a:hover { color: #ffffff !important; text-decoration: underline !important; }

/* Contact row */
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 8px; cursor: default;
}
.footer-contact-item img { width: 14px; margin-top: 3px; flex-shrink: 0; }
/* "General Line" label = 13px/400 */
.footer-contact-item p { font-size: 13px; line-height: 19.5px; }

/* Social links row */
.footer-social-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; justify-content: center; }
.footer-social-row a {
  font-family: var(--font);
  font-size: 13px; color: #ffffff; text-decoration: none;
}
.footer-social-row a:hover { text-decoration: underline !important; color: #ffffff !important; }

/* Footer legal / KKLIU block */
.footer-legal { display: flex; gap: 10px; margin-top: 60px !important; }
.footer-legal-col p,
.footer-legal-col a {
  font-family: var(--font);
  font-size: 10px;            /* exact live */
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 5px;
  display: block;
}
.footer-logo { height: 30px; width: auto; margin-bottom: 4px; }

/* Footer accordion — desktop: body always visible, icon + trigger chrome hidden */
.footer-acc-body  { display: block; }
.footer-acc-icon  { display: none; }
.footer-acc-trigger { cursor: default; margin-bottom: 8px; }

/* App store / KPJ Cares visual column */
.footer-app-col { text-align: center; position: relative; }
.footer-app-col #mobile_image_footer { height: 286px; width: auto; scale:1.3; margin-left:15px; }
.footer-app-col #cares_footer_web {
  position: absolute; left: 59%; top: 23%;
  transform: translate(-50%,-50%) scale(0.8);
}
.appstores-container { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.appstores-container img { height: 30px; width: auto; position: relative; left: 11px; top: 2px; }

/* Mobile-only top notch — desktop uses .footer-notch inside the app column */
.footer-notch-mobile { display: none;left:50px; }

/* web-view / mobile-view */
.web-view   { display: block; }
.mobile-view { display: none; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION BOTTOM — fixed bottom bar (matches live kpjhealth.com.my)
   ══════════════════════════════════════════════════════════════ */
.navigation-bottom {
  height: 50px;
  bottom: -1px;
  background: white;
  width: 100vw;
  z-index: 3;
  position: fixed;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transition: height 0.4s ease-out;
}
.navigation-bottom .redirection_bottom {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  transition: justify-content 1s ease-out;
}
.navigation-bottom .redirection_cube {
  display: flex;
  flex-direction: column;
  width: 50px;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.navigation-bottom .redirection_cube span { display: none; font-size: 14px; color: #333; }
.navigation-bottom .redirection_cube .redirection_cube_img { padding-bottom: 10px; }
.navigation-bottom .redirection_cube .redirection_cube_img img { height: 25px; }

/* Hover — expand to show labels */
.navigation-bottom:hover {
  box-shadow: 5px 10px #888;
  height: 80px;
}
.navigation-bottom:hover .redirection_bottom {
  justify-content: space-evenly;
}
.navigation-bottom:hover .redirection_cube {
  padding-top: 5px;
  width: auto;
}
.navigation-bottom:hover .redirection_cube span { display: block; }
.navigation-bottom:hover .redirection_cube img  { height: 30px; }

/* Mobile — always expanded */
@media (max-width: 768px) {
  .navigation-bottom {
    height: 90px;
    bottom: 0;
    z-index: 2;
    transition: 0.6s;
  }
  .navigation-bottom:hover { box-shadow: 2px 2px 4px rgba(0,0,0,0.3); height: 90px; }
  .navigation-bottom .redirection_bottom {
    justify-content: space-between;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .navigation-bottom .redirection_bottom::-webkit-scrollbar { display: none; }
  .navigation-bottom .redirection_cube {
    width: max-content;
    padding: 0;
    margin: 0 22px;
  }
  .navigation-bottom .redirection_cube span {
    display: block;
    width: max-content;
    font-size: 12px;
  }
  .navigation-bottom:hover .redirection_cube { padding-top: 5px; }
}

/* ══════════════════════════════════════════════════════════════
   COE SHARED COMPONENTS — typography matched to Flexo scale
   ══════════════════════════════════════════════════════════════ */

/* Book appointment button — exact live .primary-button:
   background #fcb11d, 19px/400, border-radius 14px, padding 10px 35px */
.btn-book {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kpj-amber);  /* #fcb11d */
  color: #ffffff;
  border-radius: 14px;           /* exact live */
  padding: 10px 35px;            /* exact live */
  font-family: var(--font);
  font-size: 19px;               /* exact live .primary-button */
  font-weight: 400;              /* exact live — NOT 600 */
  line-height: 1.3;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-book:hover { background: #e8a018; text-decoration: none; color: #fff; }

/* ══════════════════════════════════════════════════════════════
   DOCTOR CARD — matches kpjhealth.com.my/johor/heart-lung-centre
   ══════════════════════════════════════════════════════════════ */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doctor-card-new {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.dc-top {
  display: flex;
  gap: 12px;
  padding: 16px 16px 10px;
  flex: 1;
}
.dc-avatar {
  width: 90px;
  height: 90px;
  border-radius: 20%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0ebe5;
}
.dc-info { flex: 1; min-width: 0; }
.dc-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  margin: 0 0 3px;
}
.dc-specialty {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 5px;
}
.dc-quals {
  font-size: 12px;
  color: #888;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dc-hospitals {
  padding: 0 16px 12px;
}
.dc-hospital {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 2px;
}
.dc-footer {
  display: flex;
  border-top: 1px solid #eee;
  margin-top: auto;
}
.dc-contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--primary-color);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
}
.dc-contact:hover { background: #856d55 !important; color: #fff !important; }
.dc-book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--primary-color);
  border-left: 1px solid rgba(255,255,255,0.25);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
}
.dc-book:hover { background: #856d55 !important; color: #fff !important; }

/* Cards hidden beyond the first 6 */
.dc-extra { display: none; }
.dc-extra.dc-visible { display: flex; }

/* Show More / Show Less button */
.dc-show-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 10px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dc-show-more:hover { background: var(--primary-color); color: #fff; }
.dc-show-more .dc-chevron { transition: transform 0.25s; }
.dc-show-more[aria-expanded="true"] .dc-chevron { transform: rotate(180deg); }

/* Responsive */
@media (max-width: 1024px) { .doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .doctors-grid { grid-template-columns: 1fr; } }

/* WhatsApp booking button — green pill with WA icon */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-whatsapp:hover { background: #1ebe5d; text-decoration: none; color: #fff; }
.btn-whatsapp .wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* Emergency button — coral, same size as .btn-book */
.btn-emergency {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kpj-coral);
  color: #ffffff;
  border-radius: 14px;
  padding: 10px 35px;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-emergency:hover { background: #e05f5e; text-decoration: none; color: #fff; }

/* Outline / secondary button */
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--kpj-taupe);
  border-radius: 20px;           /* pill — matches .learn-more-btn */
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--kpj-taupe);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--kpj-taupe); color: #fff; text-decoration: none; }

/* Section eyebrow label */
.section-label {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kpj-taupe);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--kpj-taupe); flex-shrink: 0; }

/* Section heading — used across COE pages */
.section-heading {
  font-family: var(--font);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--kpj-text-dark);
  margin-bottom: 12px;
}
.section-subhead {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  color: rgb(100, 117, 137);
  max-width: 640px;
}

/* ── Doctor cards ─────────────────────────────────────────── */
.doctor-card {
  background: var(--kpj-bg-grey);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  flex: 0 0 auto;
}
.doctor-avatar {
  width: 100%; aspect-ratio: 1;
  border-radius: 12px; object-fit: cover;
  margin-bottom: 12px; background: var(--kpj-taupe-light);
  padding:10px;
}
/* Doctor name — matches live .optionDoc: 20px/700 */
.doctor-name {
  font-family: var(--font);
  font-size: 16px;           /* card context — slightly smaller than .optionDoc */
  font-weight: 700;
  line-height: 1.3;
  color: var(--kpj-text-dark);
  margin-bottom: 4px;
}
/* Specialty — matches live .labelDoc: 12px/400 */
.doctor-spec {
  font-family: var(--font);
  font-size: 14px;           /* exact .labelDoc */
  font-weight: 400;
  line-height: 18px;
  color: rgb(96, 96, 96);    /* exact .labelDoc colour */
  margin-bottom: 8px;
  margin-top: 8px;
}
/* Hospital — 12px taupe */
.doctor-hosp {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--kpj-taupe);
  margin-bottom: 10px;
}
.doctor-link {
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  color: var(--kpj-taupe);
  border: 1px solid var(--kpj-taupe-light);
  border-radius: 50px; padding: 4px 12px;
  display: inline-block; text-decoration: none;
}
.doctor-link:hover { background: var(--kpj-taupe-warm); text-decoration: none; }

/* Carousel */
.doctors-carousel-wrap { position: relative; }
.doctors-carousel {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
  padding-bottom: 4px;
}
.doctors-carousel::-webkit-scrollbar { display: none; }
.doctors-carousel .doctor-card { scroll-snap-align: start; width: 180px; flex-shrink: 0; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--kpj-border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; color: var(--kpj-taupe);
  font-size: 18px; transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: var(--kpj-taupe); color: #fff; border-color: var(--kpj-taupe); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* ── Video cards ──────────────────────────────────────────── */
.video-card { background: #fff; border-radius: 14px; overflow: hidden; flex: 0 0 auto; scroll-snap-align: start; }
.video-thumb {
  position: relative; height: 160px;
  background: linear-gradient(135deg, var(--kpj-taupe) 0%, #c4a882 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-play-btn {
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--kpj-taupe);
  cursor: pointer; transition: transform 0.2s; border: none;
}
.video-play-btn:hover { transform: scale(1.1); }
.video-info { padding: 14px 14px 16px; }
.video-title {
  font-family: var(--font);
  font-size: 18px;           /* body font-size */
  font-weight: 600;
  line-height: 24px;
  color: var(--kpj-text-dark);
  margin-bottom: 4px;
}
.video-desc {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: rgb(100, 117, 137);
}
.video-carousel {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.video-carousel::-webkit-scrollbar { display: none; }
.video-carousel .video-card { width: 300px; }

/* ── FAQ accordion ────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--kpj-border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0; cursor: pointer;
  font-family: var(--font);
  font-size: 18px;            /* body size */
  font-weight: 600;
  line-height: 21px;
  color: var(--kpj-text-dark);
  list-style: none; user-select: none;
  background: none; border: none; width: 100%; text-align: left;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-toggle { font-size: 22px; color: var(--kpj-taupe); flex-shrink: 0; line-height: 1; }
.faq-toggle-open { display: none; }
details[open] .faq-toggle-close { display: none; }
details[open] .faq-toggle-open  { display: inline; }
.faq-a {
  padding: 0 0 14px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgb(100, 117, 137);
}

/* ── Service cards ────────────────────────────────────────── */
.service-card {
  background: #fff; border-radius: 14px;
  padding: 24px 20px; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--kpj-taupe-light);
}
.service-img { width: 380px; height: 188px; object-fit: contain; margin-bottom: 14px; }
/* Service name — h3.card-title equivalent */
.service-name {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  line-height: 19.2px;
  color: var(--kpj-text-dark);
  margin-bottom: 7px;
}
/* Service description */
.service-desc {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 19.5px;
  color: rgb(100, 117, 137);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .flex-grow-1 { display: none !important; }
}
@media (max-width: 768px) {
  .web-view   { display: none; }
  .mobile-view { display: block; }
  .kpj-footer {
    height: auto;
    flex-direction: column;
    padding: 40px 25px 10px;
  }
  .kpj-footer .container {
    flex-direction: column;
    gap: 0;
    overflow-x: visible;
  }
  .kpj-footer .content,
  .kpj-footer .content-desktop-view {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 0;
    margin-left: 0;
  }
  .kpj-footer .content-desktop-view { display: block; }
  .kpj-footer .content-desktop-view:last-child { display: block; }
  .kpj-footer .content { display: block !important; padding-left: 0; border-bottom: none;margin-bottom:20px; }
  /* Legal block: reduce the desktop push-down margin on mobile */
  .footer-legal { margin-top: 25px !important; }
  /* App/KPJ Cares column: the overlaid KPJ Cares logo + store buttons are
     positioned in % relative to this box, so it must keep the same effective
     width as the desktop column for the overlay to land on the phone screen.
     Constrain to a desktop-column width and centre it; everything else
     inherits the tuned desktop composition (phone scale 1.3, etc.).
     Selector matches the general mobile rule's specificity to win the cascade. */
  .kpj-footer .content-desktop-view.footer-app-col {
    border-bottom: none;
    width: 250px;
    max-width: 100%;
    margin: 24px auto 0;
    padding: 0;
    /* Nudge the whole phone+overlay assembly toward page centre */
    transform: translateX(14px);
  }

  /* ── Mobile app composition — independent from the desktop overlay tuning.
     Seeded with the desktop values so the current look is preserved; adjust
     these freely for mobile without affecting desktop. ─────────────────── */
  .footer-app-col #mobile_image_footer {
    height: 286px;
    scale: 1.3;
    margin-left: 15px;
    margin-top:25px;
  }
  .footer-app-col #cares_footer_web {
    left: 44%;
    top: 28%;
    transform: translate(-50%, -50%) scale(0.8);
  }
  .footer-app-col .appstores-container {
    margin-top: 6px;
  }
  .footer-app-col .appstores-container img {
    height: 30px;
    left: -13px;
    top: 2px;
  }

  /* Notch: hide the desktop one (anchored to the app column, now at the
     bottom) and show a top-centred one anchored to the footer instead. */
  .footer-notch { display: none !important; }
  .footer-notch-mobile {
    display: flex;
    position: absolute;
    top: 0;
    left: 80%;
    transform: translateX(-50%);
    mix-blend-mode: lighten;
  }
  /* Accordion trigger */
  .footer-acc-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0;
    user-select: none;
  }
  .footer-acc-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .footer-acc-trigger.open .footer-acc-icon { transform: rotate(45deg); }
  /* Accordion body hidden by default on mobile */
  .footer-acc-body { display: none; padding-bottom: 12px; }
  .footer-acc-trigger.open + .footer-acc-body { display: block; }
  .two-columns-grid { grid-template-columns: 1fr; }
  /* Shrink nav links on mobile */
  .first-coloumn-sub a, .second-coloumn-sub a { font-size: 24px; line-height: 36px; }
  .active-tab-container { display: none !important; }
  .active_tab_btn { display: flex !important; }
  .side-menu-icon { display: flex !important; align-items: center; }
  .header-login { display: none !important; }
  .header-hamburger { display: none !important; }
  /* Buttons: shrink on mobile */
  .btn-book, .btn-emergency { font-size: 15px; padding: 10px 20px; }
  h1 { font-size: 28px; line-height: 33.6px; }
  h2 { font-size: 18px; line-height: 27px; }
}

/* ── 1920px content cap ────────────────────────────────────────
   Override Bootstrap xxl container (default 1320px).
   Header/footer bars are not containers — they stay full-bleed.
   ─────────────────────────────────────────────────────────── */
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}
