/*
   ==========================================================================
   Dr. Atul Peters — Blog stylesheet
   Loaded AFTER the global site CSS (bootstrap + front/css/style.css) so the
   blog's own layout wins the cascade. Everything here is scoped to the blog
   templates; nothing targets bare elements that the global header/footer use.

   Brand palette
   - Primary Dark Blue : #0F2B45
   - Deep Blue         : #1A365D
   - Emerald Green     : #167D6B
   - Accent Gold       : #B8975A
   ==========================================================================
*/

:root {
  --primary-color: #0F2B45;
  --secondary-color: #1A365D;
  --accent-green: #167D6B;
  --accent-green-dark: #10604F;
  --accent-gold: #B8975A;
  --text-color: #2D3748;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 4px 12px rgba(15, 43, 69, .05);
  --shadow-md: 0 10px 25px -5px rgba(15, 43, 69, .08);
  --shadow-lg: 0 22px 45px -12px rgba(15, 43, 69, .18);
  --shadow-hover: 0 18px 38px -8px rgba(22, 125, 107, .22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bellefair', Georgia, serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */

body.blog-page,
body.blog-article {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.blog-page *,
.blog-article * {
  box-sizing: border-box;
}

.blog-page img,
.blog-article img {
  max-width: 100%;
}

.bp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Beat bootstrap's fixed-width .container */
.blog-page .container,
.blog-article .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  float: none;
}

.blog-page .section,
.blog-article .section {
  padding: 4rem 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

/* `overflow: hidden` makes these sections a block formatting context, which
   would otherwise shrink to sit beside the global header's right-floated nav.
   `clear: both` drops them below the float and back to full width. */
.bp-hero {
  position: relative;
  clear: both;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-green) 100%);
  color: var(--white);
  padding: 5rem 0 7rem;
  overflow: hidden;
}

.bp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bp-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .5;
}

.bp-hero-blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: .4;
  animation: bp-float 10s infinite ease-in-out alternate;
}

.bp-hero-blob--1 { top: -20%; left: -10%; width: 500px; height: 500px; background: var(--accent-green); }
.bp-hero-blob--2 { bottom: -20%; right: -10%; width: 600px; height: 600px; background: var(--primary-color); animation-delay: -5s; }
.bp-hero-blob--3 { top: 40%; left: 50%; width: 400px; height: 400px; background: var(--accent-gold); animation-delay: -2s; opacity: .2; }

@keyframes bp-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

.bp-hero .container { position: relative; z-index: 1; }

.bp-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.bp-hero-wave svg { width: 100%; height: 90px; display: block; }

.bp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .9rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .7);
}

.bp-breadcrumb a { color: rgba(255, 255, 255, .75); text-decoration: none; transition: var(--transition); }
.bp-breadcrumb a:hover, .bp-breadcrumb a:focus { color: var(--accent-gold); text-decoration: none; }
.bp-breadcrumb i { font-size: .7rem; opacity: .55; }
.bp-breadcrumb-current { color: var(--accent-gold); font-weight: 600; }

.bp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 4rem;
  align-items: center;
}

.bp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.bp-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: bp-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes bp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 151, 90, .7); }
  70% { box-shadow: 0 0 0 10px rgba(184, 151, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 151, 90, 0); }
}

.bp-hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--white);
}

.bp-hero-accent { color: var(--accent-gold); font-style: italic; }

.bp-hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  max-width: 600px;
  margin: 0 0 2.5rem;
}

.bp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 2rem;
}

.bp-hero-stat strong {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: .5rem;
}

.bp-hero-stat span { font-size: .95rem; color: rgba(255, 255, 255, .8); font-weight: 500; }

.bp-hero-visual-card {
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
  transition: var(--transition);
}

.bp-hero-visual-card:hover { transform: translateY(-8px); }

.bp-hero-visual-decor {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: .3;
}

.bp-hero-visual-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, .1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.bp-hero-visual-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--white);
  text-transform: none;
}

.bp-hero-visual-list { list-style: none; padding: 0; margin: 0; }

.bp-hero-visual-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

.bp-hero-visual-list li:last-child { margin-bottom: 0; }
.bp-hero-visual-list li i { color: var(--accent-green); font-size: 1.05rem; margin-top: .25rem; flex-shrink: 0; }
.bp-hero-visual-list li a { color: rgba(255, 255, 255, .92); text-decoration: none; transition: var(--transition); }
.bp-hero-visual-list li a:hover { color: var(--accent-gold); text-decoration: none; }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */

.bp-filters {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
}

.bp-filters-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.75rem;
}

.bp-filters-row { display: grid; gap: 1.25rem; }

.bp-filters-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: .35rem .35rem .35rem 1.1rem;
  transition: var(--transition);
}

.bp-filters-search:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(22, 125, 107, .1);
}

.bp-filters-search > i { color: var(--text-muted); font-size: .95rem; flex-shrink: 0; }

.bp-filters-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  padding: .7rem .85rem;
  box-shadow: none;
  height: auto;
}

.bp-filters-submit {
  border: 0;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.bp-filters-submit:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.bp-filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.bp-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-color);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.bp-filter-pill:hover,
.bp-filter-pill:focus {
  border-color: var(--accent-green);
  color: var(--accent-green);
  text-decoration: none;
  transform: translateY(-1px);
}

.bp-filter-pill--active,
.bp-filter-pill--active:hover,
.bp-filter-pill--active:focus {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
  border-color: transparent;
  color: var(--white);
}

.bp-filter-count {
  font-size: .72rem;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-muted);
  border-radius: 50px;
  padding: .1rem .45rem;
  min-width: 1.5rem;
  text-align: center;
}

.bp-filter-pill--active .bp-filter-count { background: rgba(255, 255, 255, .22); color: var(--white); }

/* ==========================================================================
   RESULTS BAR
   ========================================================================== */

.bp-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bp-results-count { margin: 0; font-size: .98rem; color: var(--text-muted); }
.bp-results-count strong { color: var(--primary-color); }

.bp-results-clear {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: .4rem .95rem;
  background: var(--white);
  transition: var(--transition);
}

.bp-results-clear:hover { border-color: var(--accent-green); text-decoration: none; color: var(--accent-green-dark); }

/* ==========================================================================
   LAYOUT: POSTS + SIDEBAR
   ========================================================================== */

.bp-main { padding-top: 3rem; }

.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 3rem;
  align-items: start;
}

.bp-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

/* ---------- post card ---------- */

.bp-post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.bp-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(22, 125, 107, .35);
}

.bp-post-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #E8EEF3;
  flex-shrink: 0;
}

.bp-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.bp-post-card:hover .bp-post-image img { transform: scale(1.06); }

.bp-post-tag {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: rgba(15, 43, 69, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 50px;
}

.bp-post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.bp-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
}

.bp-post-meta i { color: var(--accent-gold); margin-right: .3rem; }

.bp-post-title {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-color);
  margin: 0 0 .75rem;
  text-transform: none;
}

.bp-post-title a { color: inherit; text-decoration: none; transition: var(--transition); }
.bp-post-title a:hover, .bp-post-title a:focus { color: var(--accent-green); text-decoration: none; }

.bp-post-excerpt {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-post-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  align-self: flex-start;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent-green);
  text-decoration: none;
  transition: var(--transition);
}

.bp-post-link:hover, .bp-post-link:focus { color: var(--primary-color); text-decoration: none; gap: .8rem; }
.bp-post-link i { font-size: .78rem; }

/* ---------- empty state ---------- */

.bp-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
}

.bp-empty i { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 1rem; display: block; }
.bp-empty h3 { font-size: 1.4rem; font-weight: 800; color: var(--primary-color); margin: 0 0 .6rem; text-transform: none; }
.bp-empty p { color: var(--text-muted); margin: 0 auto 1.5rem; max-width: 420px; }

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.bp-sidebar { position: sticky; top: 24px; }

.bp-widget {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.bp-widget > h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 1.15rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--bg-light);
  text-transform: none;
}

.bp-widget ul { list-style: none; padding: 0; margin: 0; }

/* doctor card */
.bp-widget--doctor { text-align: center; }

.bp-widget-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #E2F5F1;
  margin: 0 auto 1rem;
  display: block;
}

.bp-widget--doctor h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 .35rem;
  border: 0;
  padding: 0;
  text-transform: none;
}

.bp-widget--doctor p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 1.25rem; }

/* categories */
.bp-widget-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .25rem;
  border-bottom: 1px solid var(--bg-light);
  font-size: .92rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: var(--transition);
}

.bp-widget-cats li:last-child a { border-bottom: 0; }
.bp-widget-cats a:hover, .bp-widget-cats a.is-active { color: var(--accent-green); text-decoration: none; padding-left: .55rem; }

.bp-widget-count {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-light);
  border-radius: 50px;
  padding: .12rem .5rem;
  flex-shrink: 0;
}

/* latest posts */
.bp-widget-posts li { margin-bottom: 1rem; }
.bp-widget-posts li:last-child { margin-bottom: 0; }

.bp-widget-posts a {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  text-decoration: none;
  color: #334155;
}

.bp-widget-posts img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.bp-widget-posts strong {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .25rem;
  transition: var(--transition);
}

.bp-widget-posts a:hover strong { color: var(--accent-green); }
.bp-widget-posts time { font-size: .74rem; color: var(--text-muted); }

/* quick links */
.bp-widget--links a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 0;
  font-size: .92rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: var(--transition);
}

.bp-widget--links a i { color: var(--accent-gold); font-size: .7rem; }
.bp-widget--links a:hover { color: var(--accent-green); text-decoration: none; padding-left: .35rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.75rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.2;
}

.bp-btn:hover, .bp-btn:focus { text-decoration: none; transform: translateY(-2px); }
.bp-btn--block { display: flex; width: 100%; }

.bp-btn--primary {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
}

.bp-btn--primary:hover { box-shadow: var(--shadow-hover); color: var(--white) !important; }

.bp-btn--white { background: var(--white); color: var(--primary-color) !important; }
.bp-btn--white:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .22); color: var(--primary-color) !important; }

.bp-btn--ghost-white {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--white) !important;
}

.bp-btn--ghost-white:hover { background: rgba(255, 255, 255, .12); color: var(--white) !important; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.bp-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3.5rem;
}

.bp-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 44px;
  height: 44px;
  padding: 0 .9rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--primary-color);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.bp-page-link:hover, .bp-page-link:focus {
  border-color: var(--accent-green);
  color: var(--accent-green);
  text-decoration: none;
  transform: translateY(-2px);
}

.bp-page-link--active,
.bp-page-link--active:hover {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
  border-color: transparent;
  color: var(--white);
}

.bp-page-link--prev i, .bp-page-link--next i { font-size: .78rem; }
.bp-page-dots { color: var(--text-muted); padding: 0 .25rem; font-weight: 700; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.bp-cta { padding-top: 1rem; }

.bp-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 55%, var(--accent-green) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.bp-cta-decor { position: absolute; inset: 0; pointer-events: none; }

.bp-cta-decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}

.bp-cta-decor-circle--1 { top: -60px; left: -40px; width: 260px; height: 260px; background: var(--accent-gold); }
.bp-cta-decor-circle--2 { bottom: -80px; right: -50px; width: 320px; height: 320px; background: var(--accent-green); }

.bp-cta-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.bp-cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: var(--accent-gold);
}

.bp-cta-content h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--white);
  text-transform: none;
}

.bp-cta-accent { color: var(--accent-gold); font-style: italic; }

.bp-cta-content p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 2rem;
}

.bp-cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==========================================================================
   FLOATING CONTROLS
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.08); color: var(--white); }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */

.article-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-green) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  clear: both;          /* see the note on .bp-hero */
  width: 100%;
  overflow: hidden;
}

/* The article body sits in a bare .container, which also has to clear the
   global header's float before it can use the full width. */
.blog-article > .container { clear: both; }

.article-header h1 {
  font-family: var(--font-body);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 0 1.25rem;
  color: var(--white);
  text-transform: none;
}

.article-standfirst {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .88);
  max-width: 820px;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
}

.article-meta-item { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta-item i { color: var(--accent-gold); }

.article-author-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: .5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .2);
}

.article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

.article-content {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-color);
  min-width: 0;
}

.article-hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 2.5rem;
  box-shadow: var(--shadow-md);
}

.article-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 2.5rem 0 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  text-transform: none;
  line-height: 1.3;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1.8rem 0 .8rem;
  text-transform: none;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0 .6rem;
  text-transform: none;
}

.article-content p { margin: 0 0 1.5rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: .6rem; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.article-content a {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--primary-color); }

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--accent-gold);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #475569;
  box-shadow: var(--shadow-sm);
}

.article-table-wrap { overflow-x: auto; margin: 0 0 2rem; -webkit-overflow-scrolling: touch; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}

.article-content th,
.article-content td { padding: .85rem 1rem; border: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.article-content th { background: var(--primary-color); color: var(--white); font-weight: 700; }
.article-content tbody tr:nth-child(even) { background: var(--bg-light); }

.key-takeaways-box {
  background: #F0F7F6;
  border-left: 4px solid var(--accent-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(22, 125, 107, .08);
}

.key-takeaways-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  text-transform: none;
}

.key-takeaways-box ul { margin: 0; padding-left: 1.25rem; }
.key-takeaways-box li:last-child { margin-bottom: 0; }

/* ---- content imported from WordPress ---- */
.entry-content > *:first-child { margin-top: 0; }
.article-content .wp-block-image { margin: 2rem 0; }
.article-content figure { margin: 2rem 0; }
.article-content figcaption { font-size: .88rem; color: var(--text-muted); margin-top: .6rem; text-align: center; }
.article-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; max-width: 50%; }
.article-content .alignright { float: right; margin: 0 0 1rem 1.5rem; max-width: 50%; }
.article-content [class*="gb-media-"] { height: auto; max-width: 100%; object-fit: cover; width: auto; }
.article-content .wp-block-table { overflow-x: auto; }
.article-content .wp-block-list { padding-left: 1.4rem; }

@media (max-width: 767px) {
  .article-content .alignleft,
  .article-content .alignright { float: none; margin: 2rem auto; max-width: 100%; }
}

/* FAQ accordion */
.faq-block { margin-top: 3rem; }

/* The question is a heading so it stays in the document outline, and a
   button so it can collapse. The heading itself must add no chrome. */
.faq-q { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; color: inherit; text-transform: none; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item.is-open { border-color: var(--accent-green); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  line-height: 1.45;
}

.faq-question:hover { color: var(--accent-green); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E2F5F1;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}

.faq-answer { padding: 0 1.5rem 1.5rem; color: #475569; line-height: 1.7; display: none; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item.is-open .faq-answer { display: block; }

/* in-article callout / CTA */
.article-inline-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-green) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  margin-top: 3rem;
  text-align: center;
}

.article-inline-cta h3 { color: var(--white); font-size: 1.5rem; margin: 0 0 .75rem; text-transform: none; }
.article-inline-cta p { color: rgba(255, 255, 255, .9); font-size: 1.02rem; max-width: 600px; margin: 0 auto 1.5rem; }
.article-inline-cta a.article-inline-cta-btn {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--white) !important;
  padding: .9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition);
}
.article-inline-cta a.article-inline-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 0, 0, .22); }

/* article sidebar */
.article-sidebar { position: sticky; top: 24px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.7rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.sidebar-widget h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 1.2rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--bg-light);
  text-transform: none;
}

.sidebar-widget h5 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 .4rem;
  text-transform: none;
}

.sidebar-widget p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 1.25rem; }

.doctor-card-widget { text-align: center; }

.doctor-widget-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #E2F5F1;
  margin: 0 auto 1rem;
  display: block;
}

.btn-widget-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
  padding: .85rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition);
}

.btn-widget-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }

.sidebar-related li { margin-bottom: .85rem; }
.sidebar-related li:last-child { margin-bottom: 0; }

.sidebar-related a {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  color: #334155;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-related a i { color: var(--accent-green); margin-top: .2rem; flex-shrink: 0; font-size: .82rem; }
.sidebar-related a:hover { color: var(--accent-green); text-decoration: none; }

.sidebar-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--bg-light);
  width: 100%;
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-more:hover { color: var(--accent-green); text-decoration: none; gap: .7rem; }
.sidebar-more i { font-size: .72rem; }

.sidebar-links li { margin-bottom: .55rem; }
.sidebar-links li:last-child { margin-bottom: 0; }

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-links a i { color: var(--accent-gold); font-size: .7rem; }
.sidebar-links a:hover { color: var(--accent-green); text-decoration: none; padding-left: .35rem; }

/* related-posts strip at the end of an article */
.related-posts { margin-top: 3.5rem; }

.related-posts > h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 1.5rem;
  text-transform: none;
}

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.35rem;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(22, 125, 107, .35); }

.related-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: .5rem;
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 .5rem;
  line-height: 1.4;
  text-transform: none;
}

.related-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
}

/* prev / next article nav */
.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.article-pager a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-pager a:hover { border-color: var(--accent-green); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.article-pager span { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: .4rem; }
.article-pager strong { display: block; font-size: .98rem; font-weight: 700; color: var(--primary-color); line-height: 1.45; }
.article-pager .article-pager--next { text-align: right; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
  .bp-hero-title { font-size: 3.6rem; }
  .bp-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.25rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.25rem; }
}

@media (max-width: 991px) {
  .bp-hero { padding: 4rem 0 6rem; }
  .bp-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .bp-hero-title { font-size: 3rem; }
  .bp-hero-stats { gap: 2rem; }
  .bp-layout { grid-template-columns: 1fr; }
  .bp-sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-header h1 { font-size: 2.1rem; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-cta-content h2 { font-size: 2.4rem; }
}

@media (max-width: 767px) {
  .blog-page .container,
  .blog-article .container { padding: 0 1.25rem; }
  .blog-page .section,
  .blog-article .section { padding: 3rem 0; }
  .bp-hero { padding: 3rem 0 5rem; }
  .bp-hero-title { font-size: 2.4rem; }
  .bp-hero-sub { font-size: 1.02rem; }
  .bp-hero-stat strong { font-size: 2rem; }
  .bp-hero-stats { gap: 1.5rem; padding-top: 1.5rem; }
  .bp-hero-visual-card { padding: 1.75rem; }
  .bp-hero-wave svg { height: 55px; }
  .bp-filters { margin-top: -2.5rem; }
  .bp-filters-card { padding: 1.1rem; border-radius: var(--radius-md); }
  .bp-filters-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bp-filters-pills::-webkit-scrollbar { display: none; }
  .bp-filters-submit { padding: .7rem 1.1rem; }
  .bp-posts { grid-template-columns: 1fr; gap: 1.5rem; }
  .bp-main { padding-top: 2.5rem; }
  .article-header { padding: 2.5rem 0 2.25rem; }
  .article-header h1 { font-size: 1.75rem; }
  .article-content { font-size: 1.02rem; }
  .article-content h2 { font-size: 1.45rem; }
  .article-content h3 { font-size: 1.2rem; }
  .key-takeaways-box { padding: 1.35rem 1.4rem; }
  .faq-question { font-size: 1rem; padding: 1.1rem 1.15rem; }
  .faq-answer { padding: 0 1.15rem 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager .article-pager--next { text-align: left; }
  .article-inline-cta { padding: 1.75rem 1.35rem; }
  .bp-cta-card { padding: 2.75rem 1.35rem; }
  .bp-cta-content h2 { font-size: 2rem; }
  .bp-cta-buttons { flex-direction: column; }
  .bp-btn { width: 100%; }
  .back-to-top { right: 16px; bottom: 80px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-page *,
  .blog-article * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .bp-hero, .bp-filters, .bp-cta, .bp-pagination, .bp-sidebar, .article-sidebar,
  .whatsapp-float, .back-to-top, header.common-header, footer { display: none !important; }
  .article-layout { display: block; }
  body.blog-page, body.blog-article { background: #fff; }
}
