:root {
  --navy: #0a1628;
  --navy-light: #102341;
  --green: #2a9d6a;
  --green-light: #34c07d;
  --green-dark: #1e7a50;
  --accent: #e8f5ee;
  --text: #253142;
  --muted: #64748b;
  --white: #ffffff;
  --off-white: #f6faf8;
  --border: #e2e8f0;
  --heading: 'Sora', system-ui, -apple-system, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow: 0 20px 45px rgba(10, 22, 40, 0.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--body); color: var(--text); background: var(--off-white); font-size: 16.5px; line-height: 1.8; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1240px, 92%); margin-inline: auto; }

.read-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0%; z-index: 9999; background: linear-gradient(90deg, var(--green), var(--green-light)); transition: width .08s linear; }

/* Header */
.cob-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); box-shadow: 0 4px 24px rgba(10,22,40,0.04); }
.cob-header-inner { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 16px; }
.cob-logo { height: 56px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav > a, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: 600 13px/1.3 var(--heading); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); cursor: pointer; padding: 8px 2px; position: relative; transition: color .25s; }
.main-nav > a:hover, .main-nav > a.is-active, .nav-trigger:hover { color: var(--green); }
.main-nav > a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: var(--green); border-radius: 2px; }
.nav-dropdown { position: relative; }
.nav-trigger i { font-size: 10px; transition: transform .25s; }
.nav-dropdown.is-open .nav-trigger i { transform: rotate(180deg); }
.nav-submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 245px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 20px 45px rgba(10,22,40,.12); display: none; z-index: 50; }
.nav-dropdown.is-open .nav-submenu { display: grid; gap: 2px; }
.nav-submenu a { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 9px; font: 500 14px/1.35 var(--body); color: var(--navy); }
.nav-submenu a i { color: var(--green); width: 18px; text-align: center; }
.nav-submenu a:hover { background: var(--accent); color: var(--green-dark); }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { font: 700 14px/1 var(--heading); color: var(--navy); display: inline-flex; align-items: center; gap: 7px; }
.header-phone i { color: var(--green); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border-radius: 999px; background: var(--green); color: #fff !important; font: 600 14px/1.2 var(--heading); border: 0; cursor: pointer; transition: all .25s; box-shadow: 0 6px 18px rgba(42,157,106,.25); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--navy) !important; font: 600 13.5px/1.2 var(--heading); transition: all .25s; }
.btn-outline:hover { border-color: var(--green); color: var(--green) !important; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; place-items: center; }
.mobile-menu-cta { display: none !important; }

/* Hero */
.blog-hero { background: linear-gradient(135deg, #0a1628 0%, #0f2544 62%, #185a46 100%); color: #fff; padding: 68px 0 58px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(52,192,125,0.16); border: 1px solid rgba(52,192,125,0.38); color: #6ee7b7; font: 700 11.5px/1.2 var(--heading); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.blog-hero h1 { max-width: 900px; margin: 0 auto 16px; font: 800 clamp(26px, 4vw, 44px)/1.2 var(--heading); letter-spacing: -.4px; color: #fff; }
.blog-hero h1 span { color: var(--green-light); }
.blog-hero p { max-width: 700px; margin: 0 auto 20px; color: rgba(255,255,255,0.82); font-size: 15.5px; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,0.08); font: 500 12.5px/1.4 var(--body); color: rgba(255,255,255,0.75); }
.breadcrumb a { color: #6ee7b7; }

/* Toolbar */
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 30px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 25px rgba(10,22,40,0.04); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.b-filter { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--off-white); color: var(--navy); font: 600 12.5px/1.2 var(--heading); cursor: pointer; transition: all .2s; }
.b-filter:hover, .b-filter.active { background: var(--green); color: #fff; border-color: var(--green); }
.blog-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.blog-search input { width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--off-white); color: var(--navy); font-size: 14px; }
.blog-search input:focus { outline: none; border-color: var(--green); background: #fff; }
.blog-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 13px; }

/* Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 70px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(42,157,106,.4); }
.post-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-cat-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(10,22,40,0.85); color: #6ee7b7; font: 600 11px/1.2 var(--heading); text-transform: uppercase; letter-spacing: .05em; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 10px; }
.post-card h2 { font: 700 18.5px/1.38 var(--heading); color: var(--navy); margin-bottom: 10px; }
.post-card h2 a:hover { color: var(--green); }
.post-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font: 700 13px/1.2 var(--heading); }

/* Article Layout */
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 38px; align-items: start; padding: 48px 0 76px; }
.article-main { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 4vw, 46px); box-shadow: 0 10px 35px rgba(10,22,40,0.04); }
.eeat-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--accent); border: 1px solid rgba(42,157,106,.28); margin-bottom: 26px; font-size: 13.8px; line-height: 1.5; color: var(--navy); }
.eeat-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--heading); flex-shrink: 0; font-size: 16px; }
.eeat-banner strong { color: var(--green-dark); }

.article-cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 28px; background: var(--off-white); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); text-align: center; border-top: 1px solid var(--border); background: #fafcfb; }

.article-content h2 { font: 700 clamp(21px, 2.5vw, 27px)/1.3 var(--heading); color: var(--navy); margin: 36px 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--accent); }
.article-content h3 { font: 700 clamp(17px, 2vw, 20.5px)/1.35 var(--heading); color: var(--green-dark); margin: 26px 0 10px; }
.article-content p { margin-bottom: 18px; color: var(--text); }
.article-content ul, .article-content ol { margin: 0 0 20px 22px; color: var(--text); }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--navy); }
.article-content a:not(.btn-primary):not(.btn-outline) { color: var(--green-dark); font-weight: 600; border-bottom: 1px solid rgba(42,157,106,.4); }
.article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--accent); border-radius: 0 14px 14px 0; color: var(--navy); font-weight: 500; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.article-content th, .article-content td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--navy); color: #fff; font: 600 12.5px/1.3 var(--heading); text-transform: uppercase; letter-spacing: .05em; }
.article-content tr:nth-child(even) td { background: #f8fbf9; }

.article-content details.blog-faq { margin: 12px 0; border-radius: 13px; border: 1px solid var(--border); background: #fff; overflow: hidden; transition: border-color .2s; }
.article-content details.blog-faq:hover, .article-content details.blog-faq[open] { border-color: var(--green); }
.article-content details.blog-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font: 600 15.5px/1.4 var(--heading); color: var(--navy); user-select: none; }
.article-content details.blog-faq summary::-webkit-details-marker { display: none; }
.article-content details.blog-faq summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--green-dark); font-weight: 800; flex-shrink: 0; }
.article-content details.blog-faq[open] summary { background: var(--accent); color: var(--green-dark); border-bottom: 1px solid rgba(42,157,106,.2); }
.article-content details.blog-faq[open] summary::after { content: "−"; background: var(--green); color: #fff; }
.article-content details.blog-faq > p, .article-content details.blog-faq > div { padding: 16px 20px 18px; margin: 0 !important; color: var(--text); font-size: 15px; }

/* Top-of-Article Mobile TOC + Sticky Sidebar TOC */
.inline-toc-top { display: none; margin: 0 0 26px; border-radius: 14px; border: 1px solid rgba(42,157,106,.35); background: #f4fbf7; overflow: hidden; }
.inline-toc-top summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font: 700 13.5px/1.3 var(--heading); text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.inline-toc-top summary::-webkit-details-marker { display: none; }
.inline-toc-top[open] summary { border-bottom: 1px solid rgba(42,157,106,.2); }
.inline-toc-top .toc-list { padding: 12px 16px 16px; }

.article-aside { position: sticky; top: 98px; display: grid; gap: 22px; }
.aside-box { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 8px 25px rgba(10,22,40,0.04); }
.aside-box h3 { font: 700 13.5px/1.3 var(--heading); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.aside-box h3 i { color: var(--green); }
.toc-list { list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.toc-list a { display: flex; align-items: flex-start; gap: 8px; padding: 6px 9px; border-radius: 7px; color: var(--muted); border-left: 2.5px solid transparent; line-height: 1.45; transition: all .2s; }
.toc-list a:hover, .toc-list a.is-active { color: var(--green-dark); background: var(--accent); border-left-color: var(--green); font-weight: 600; }
.toc-num { color: var(--green); font-weight: 700; min-width: 20px; flex-shrink: 0; }
.toc-list li.toc-h3 a { padding-left: 22px; font-size: 12.5px; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--border); }
.post-tags-label { font: 700 12px/1 var(--heading); color: var(--navy); text-transform: uppercase; }
.post-tag-pill { padding: 5px 12px; border-radius: 999px; background: var(--off-white); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 500; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--navy); }
.share-btns { display: flex; gap: 8px; }
.share-btn { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--green); color: var(--green); }

.related-sec { padding: 56px 0 70px; background: #eef6f2; border-top: 1px solid var(--border); }
.related-sec h2 { text-align: center; font: 800 clamp(22px, 3vw, 30px)/1.2 var(--heading); color: var(--navy); margin-bottom: 32px; }

/* Footer */
.cob-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 0.9fr 1.25fr; gap: 34px; }
.footer-logo-box { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.58); }
.cob-footer h3 { font: 700 12.5px/1.3 var(--heading); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: var(--green-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--green-light); margin-top: 5px; width: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.09); font-size: 13px; color: rgba(255,255,255,0.45); }
.skylab-link { color: #6ee7b7; font-weight: 800; letter-spacing: .07em; filter: drop-shadow(0 0 8px rgba(52,192,125,.55)); }

.float-btns { position: fixed; bottom: 22px; left: 22px; display: flex; flex-direction: column; gap: 11px; z-index: 90; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 21px; box-shadow: 0 6px 20px rgba(0,0,0,0.22); transition: transform .25s; }
.float-btn:hover { transform: translateY(-3px); }
.float-wa { background: #25D366; }
.float-call { background: var(--navy); border: 2px solid rgba(255,255,255,0.15); font-size: 18px; }

@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .header-right { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(10,22,40,.1); display: none; padding: 16px 22px 24px; gap: 6px; }
  .main-nav.is-open { display: grid; }
  .nav-submenu { position: static; box-shadow: none; border: 0; background: var(--off-white); margin-top: 6px; }
  .main-nav > a.mobile-menu-cta { display: inline-flex !important; justify-content: center !important; width: 100% !important; margin-top: 12px !important; background: linear-gradient(135deg, #2a9d6a, #34c07d) !important; color: #fff !important; padding: 13px 20px !important; border-radius: 999px !important; font-weight: 700 !important; }
  .main-nav > a.mobile-menu-cta i { color: #fff !important; }
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .inline-toc-top { display: block; }
  #tocBox { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .cob-footer { padding-bottom: 92px; }
}

/* === COB MOBILE WIDTH & UX FIX === */
.article-main, .article-content {
  min-width: 0;
  max-width: 100%;
}

/* Prevent wide clinical tables from shrinking mobile viewport */
.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.72;
  }
  .container {
    width: 100%;
    padding-inline: 14px;
  }
  .blog-hero {
    padding: 42px 0 38px;
  }
  .blog-hero h1 {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.28;
  }
  /* Edge-to-edge spacious article layout on phones */
  .container.article-shell {
    padding: 18px 8px 54px;
    gap: 22px;
  }
  .article-main {
    padding: 20px 15px 26px;
    border-radius: 16px;
  }
  .eeat-banner {
    padding: 12px 13px;
    gap: 11px;
    font-size: 13px;
  }
  .article-cover {
    margin-inline: -4px 0;
    margin-bottom: 22px;
    border-radius: 12px;
  }
  .article-content ul,
  .article-content ol {
    margin-left: 18px;
  }
  .article-content th,
  .article-content td {
    padding: 10px 12px;
    font-size: 13.5px;
    min-width: 125px;
  }
  .article-content details.blog-faq summary {
    padding: 14px 15px;
    font-size: 14.8px;
  }
  .article-content details.blog-faq > p,
  .article-content details.blog-faq > div {
    padding: 14px 15px 16px;
    font-size: 14.5px;
  }
  /* Move floating buttons neatly to bottom-right corner on mobile so left-aligned text is NEVER covered */
  .float-btns {
    left: auto;
    right: 14px;
    bottom: 16px;
    gap: 9px;
  }
  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
  .float-call {
    font-size: 16px;
  }
}

/* === COB BLOG LOGO SIZE BOOST === */
.cob-header-inner {
  min-height: 86px !important;
  padding-block: 8px !important;
}
.cob-logo {
  height: 68px !important;
  width: auto !important;
  max-height: 68px !important;
}
.footer-logo-box img {
  height: 74px !important;
  width: auto !important;
}
@media (min-width: 768px) {
  .cob-header-inner {
    min-height: 100px !important;
  }
  .cob-logo {
    height: 84px !important;
    max-height: 84px !important;
  }
  .footer-logo-box img {
    height: 82px !important;
  }
}

/* === COB BLOG FOOTER SOCIALS === */
.cob-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cob-soc-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.85) !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16.5px; transition: all .22s ease;
}
.cob-soc-btn:hover { transform: translateY(-3px); color: #fff !important; border-color: transparent; }
.cob-soc-fb:hover { background: #1877F2; }
.cob-soc-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.cob-soc-gbp:hover { background: #4285F4; }
.cob-soc-wa:hover { background: #25D366; }

/* Inline Clinical Figures */
.cob-inline-figure, .article-content figure { margin: 26px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.cob-inline-figure img, .article-content figure img { width: 100%; height: auto; display: block; }
.cob-inline-figure figcaption, .article-content figure figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); text-align: center; background: var(--off-white); border-top: 1px solid var(--border); }
