/**
 * Healthly Days — Modern Healthcare & Medical Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --hc-primary: #0284c7;
  --hc-primary-dark: #0369a1;
  --hc-primary-light: #e0f2fe;
  --hc-secondary: #059669;
  --hc-secondary-light: #ecfdf5;
  --hc-accent: #f43f5e;
  --hc-accent-light: #ffe4e6;
  --hc-teal: #0d9488;
  --hc-teal-light: #ccfbf1;
  --hc-purple: #7c3aed;
  --hc-purple-light: #ede9fe;
  
  --hc-bg: #f8fafc;
  --hc-card-bg: #ffffff;
  --hc-text-main: #0f172a;
  --hc-text-muted: #64748b;
  --hc-text-sub: #475569;
  --hc-border: #e2e8f0;
  --hc-border-subtle: #f1f5f9;
  
  --hc-radius-sm: 8px;
  --hc-radius-md: 12px;
  --hc-radius-lg: 18px;
  --hc-radius-full: 9999px;
  
  --hc-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --hc-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --hc-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  --hc-shadow-primary: 0 8px 24px -4px rgba(2, 132, 199, 0.25);
  
  --hc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--hc-font) !important;
  background-color: var(--hc-bg) !important;
  color: var(--hc-text-main) !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--hc-font) !important;
  font-weight: 700 !important;
  color: var(--hc-text-main) !important;
  letter-spacing: -0.02em;
}

a {
  color: var(--hc-primary);
  transition: all 0.2s ease;
  text-decoration: none;
}
a:hover {
  color: var(--hc-primary-dark);
}

/* ── Healthcare Top Bar ─────────────────────────────────────────────── */
.hc-topbar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hc-topbar a {
  color: #cbd5e1;
}
.hc-topbar a:hover {
  color: #38bdf8;
}
.hc-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: hcPulse 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes hcPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Main Navigation & Header ───────────────────────────────────────── */
.back-header {
  background: #ffffff !important;
  box-shadow: var(--hc-shadow-sm) !important;
  border-bottom: 1px solid var(--hc-border) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.back-header .logo-text {
  font-weight: 800;
  font-size: 24px;
  color: var(--hc-primary-dark) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}

/* Health Topic Navigation Pills */
.hc-topics-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--hc-border);
  padding: 10px 0;
  width: 100%;
}
.hc-topics-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 !important;
  flex-wrap: wrap !important; /* Always wrap so ALL pills are visible on mobile and desktop */
  justify-content: flex-start;
}
.hc-topics-list li {
  flex-shrink: 0;
}
.hc-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--hc-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-text-sub);
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hc-topics-nav {
    padding: 8px 0 !important;
  }
  .hc-topics-list {
    gap: 6px !important;
  }
  .hc-topic-pill {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
  }
}
.hc-topic-pill:hover {
  background: var(--hc-primary-light);
  color: var(--hc-primary-dark);
  border-color: #bae6fd;
  transform: translateY(-1px);
}

/* ── Medical Badges & Tags ──────────────────────────────────────────── */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--hc-radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.hc-badge-blue { background: var(--hc-primary-light); color: var(--hc-primary-dark); }
.hc-badge-emerald { background: var(--hc-secondary-light); color: var(--hc-secondary); }
.hc-badge-teal { background: var(--hc-teal-light); color: var(--hc-teal); }
.hc-badge-coral { background: var(--hc-accent-light); color: var(--hc-accent); }
.hc-badge-purple { background: var(--hc-purple-light); color: var(--hc-purple); }

.hc-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hc-secondary);
}

/* ── Magazine Cover Hero Card ───────────────────────────────────────── */
.hc-hero-magazine {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #0b1329;
}
.hc-hero-magazine:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2);
}
.hc-hero-magazine-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hc-hero-magazine:hover .hc-hero-magazine-bg {
  transform: scale(1.04);
}
.hc-hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 19, 41, 0.05) 0%, rgba(11, 19, 41, 0.55) 40%, rgba(11, 19, 41, 0.98) 100%) !important;
  pointer-events: none;
}
.hc-hero-magazine-content {
  position: relative;
  z-index: 3;
  padding: 36px 32px 28px;
  color: #ffffff !important;
}
.hc-hero-magazine-title,
.hc-hero-magazine-title a {
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}
.hc-hero-magazine-title a:hover {
  color: #38bdf8 !important;
}
.hc-hero-magazine-excerpt,
.hc-hero-magazine-content p {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
  margin-bottom: 20px !important;
  max-width: 620px !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7) !important;
}
.hc-hero-meta,
.hc-hero-meta span,
.hc-hero-meta div {
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Ranked Bento Side Item */
.hc-ranked-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}
.hc-ranked-item:last-child {
  margin-bottom: 0;
}
.hc-ranked-item:hover {
  transform: translateX(4px);
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.1);
}
.hc-rank-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hc-ranked-item:first-child .hc-rank-num {
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #ffffff;
}

/* ── Healthcare Cards & Grid ────────────────────────────────────────── */
.hc-card {
  background: var(--hc-card-bg);
  border-radius: var(--hc-radius-lg);
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow-sm);
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-shadow-md);
  border-color: #cbd5e1;
}

.hc-card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 58%;
  background: #f1f5f9;
}
.hc-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hc-card:hover .hc-card-img-wrap img {
  transform: scale(1.05);
}
.hc-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.hc-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hc-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--hc-text-main);
}
.hc-card-title a {
  color: inherit;
}
.hc-card-title a:hover {
  color: var(--hc-primary);
}
.hc-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--hc-text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hc-border-subtle);
}

/* ── Hero Featured Story ────────────────────────────────────────────── */
.hc-hero-feature {
  background: var(--hc-card-bg);
  border-radius: var(--hc-radius-lg);
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hc-hero-img-wrap {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}
.hc-hero-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hc-hero-feature:hover .hc-hero-img-wrap img {
  transform: scale(1.04);
}
.hc-hero-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.hc-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 14px;
}
.hc-hero-title a {
  color: var(--hc-text-main);
}
.hc-hero-title a:hover {
  color: var(--hc-primary);
}
.hc-hero-excerpt {
  color: var(--hc-text-sub);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Compact Healthcare Article Item (Sidebar / Column) ─────────────── */
.hc-mini-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hc-border-subtle);
}
.hc-mini-item:last-child {
  border-bottom: none;
}
.hc-mini-img {
  width: 90px;
  height: 70px;
  border-radius: var(--hc-radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.hc-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hc-mini-content {
  flex-grow: 1;
}
.hc-mini-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
}
.hc-mini-title a {
  color: var(--hc-text-main);
}
.hc-mini-title a:hover {
  color: var(--hc-primary);
}
.hc-mini-meta {
  font-size: 11.5px;
  color: var(--hc-text-muted);
}

/* ── Healthcare Section Headers ─────────────────────────────────────── */
.hc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hc-border);
  position: relative;
}
.hc-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--hc-primary);
}
.hc-section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Medical Newsletter Box ─────────────────────────────────────────── */
.hc-newsletter-banner {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0d9488 100%);
  border-radius: var(--hc-radius-lg);
  padding: 36px 40px;
  color: #ffffff;
  margin: 40px 0;
  box-shadow: var(--hc-shadow-primary);
}
.hc-newsletter-banner h3 {
  color: #ffffff !important;
  font-size: 26px;
  margin-bottom: 8px;
}
.hc-newsletter-banner p {
  color: #e0f2fe;
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 550px;
}
.hc-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.hc-newsletter-form input {
  flex-grow: 1;
  padding: 12px 18px;
  border-radius: var(--hc-radius-full);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
  font-size: 14px;
  outline: none;
}
.hc-newsletter-form button {
  padding: 12px 24px;
  border-radius: var(--hc-radius-full);
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hc-newsletter-form button:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ── Single Article Page Styling ────────────────────────────────────── */
.hc-single-header {
  margin-bottom: 28px;
}
.hc-single-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 16px;
  letter-spacing: -0.02em;
}
.hc-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--hc-text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hc-border);
}
/* ── Editorial Content Alignment & Typography ────────── */
.hc-single-body,
.hc-page-content {
  font-size: 17.5px;
  line-height: 1.85;
  color: #334155;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Headings */
.hc-single-body h1, .hc-single-body h2, .hc-single-body h3, .hc-single-body h4, .hc-single-body h5, .hc-single-body h6,
.hc-page-content h1, .hc-page-content h2, .hc-page-content h3, .hc-page-content h4, .hc-page-content h5, .hc-page-content h6 {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-align: left;
}
.hc-single-body h2, .hc-page-content h2 { font-size: 26px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
.hc-single-body h3, .hc-page-content h3 { font-size: 21px; }
.hc-single-body h4, .hc-page-content h4 { font-size: 18px; }

/* Paragraphs */
.hc-single-body p,
.hc-page-content p {
  margin-bottom: 22px;
  line-height: 1.85;
  color: #334155;
  text-align: left;
}

/* Strong / Bold */
.hc-single-body strong, .hc-single-body b,
.hc-page-content strong, .hc-page-content b {
  color: #0f172a;
  font-weight: 700;
}

/* Emphasis / Italic */
.hc-single-body em, .hc-single-body i,
.hc-page-content em, .hc-page-content i {
  font-style: italic;
  color: inherit;
}

/* Lists & Bullets (Overriding global style.css reset) */
.hc-single-body ul,
.hc-page-content ul {
  list-style: disc outside !important;
  margin: 18px 0 24px 24px !important;
  padding: 0 0 0 8px !important;
  text-align: left;
}
.hc-single-body ol,
.hc-page-content ol {
  list-style: decimal outside !important;
  margin: 18px 0 24px 24px !important;
  padding: 0 0 0 8px !important;
  text-align: left;
}
.hc-single-body li,
.hc-page-content li {
  margin-bottom: 10px !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  display: list-item !important;
  text-align: left;
}
.hc-single-body li:empty,
.hc-page-content li:empty {
  display: none !important;
}
.hc-single-body li > ul,
.hc-page-content li > ul {
  list-style: circle outside !important;
  margin: 8px 0 8px 20px !important;
  padding: 0 !important;
}
.hc-single-body li > ol,
.hc-page-content li > ol {
  list-style: lower-alpha outside !important;
  margin: 8px 0 8px 20px !important;
  padding: 0 !important;
}

/* Horizontal Rule */
.hc-single-body hr,
.hc-page-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 36px 0;
  clear: both;
}

/* Blockquotes */
.hc-single-body blockquote,
.hc-page-content blockquote {
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 28px 0;
  font-size: 17.5px;
  line-height: 1.75;
  color: #0369a1;
  font-style: italic;
  text-align: left;
}
.hc-single-body blockquote p,
.hc-page-content blockquote p {
  text-align: left;
  color: inherit;
  margin-bottom: 12px;
}
.hc-single-body blockquote p:last-child,
.hc-page-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Images & Alignment */
.hc-single-body img,
.hc-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hc-radius-md);
  margin: 24px auto;
  display: block;
}
.hc-single-body img.aligncenter,
.hc-page-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.hc-single-body img.alignleft,
.hc-page-content img.alignleft {
  float: left;
  margin: 6px 24px 20px 0;
}
.hc-single-body img.alignright,
.hc-page-content img.alignright {
  float: right;
  margin: 6px 0 20px 24px;
}
.hc-single-body figure,
.hc-page-content figure {
  margin: 28px 0;
  text-align: center;
}
.hc-single-body figcaption,
.hc-page-content figcaption {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

/* Tables in Content */
.hc-single-body table,
.hc-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.hc-single-body th, .hc-single-body td,
.hc-page-content th, .hc-page-content td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.hc-single-body th,
.hc-page-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}


/* Medical Disclaimer Box */
.disclaimer_btm {
  background: #f8fafc !important;
  border-left: 4px solid var(--hc-primary) !important;
  border-radius: var(--hc-radius-md) !important;
  padding: 16px 20px !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--hc-text-sub) !important;
  margin-top: 30px !important;
  box-shadow: var(--hc-shadow-sm) !important;
}

/* ── Medical Sidebar ────────────────────────────────────────────────── */
.hc-sidebar-box {
  background: var(--hc-card-bg);
  border-radius: var(--hc-radius-lg);
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow-sm);
  padding: 22px;
  margin-bottom: 28px;
}
.hc-sidebar-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hc-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── High Contrast & Text Visibility Fixes ──────────────────────────── */
.hc-footer, #back-footer {
  background: #0b1329 !important;
  color: #94a3b8 !important;
  position: relative !important;
  z-index: 2 !important;
  clear: both !important;
  margin-top: 40px !important;
}
.hc-footer h1, .hc-footer h2, .hc-footer h3, .hc-footer h4, .hc-footer h5, .hc-footer h6,
#back-footer h1, #back-footer h2, #back-footer h3, #back-footer h4, #back-footer h5, #back-footer h6 {
  color: #ffffff !important;
}
.hc-footer p, .hc-footer li, .hc-footer span, .hc-footer div,
#back-footer p, #back-footer li, #back-footer span, #back-footer div {
  color: #94a3b8 !important;
}
.hc-footer a, #back-footer a {
  color: #94a3b8 !important;
}
.hc-footer a:hover, #back-footer a:hover {
  color: #38bdf8 !important;
}

/* Sidebar Newsletter High Contrast */
.sidebar-newsletter h1, .sidebar-newsletter h2, .sidebar-newsletter h3, .sidebar-newsletter h4 {
  color: #0f172a !important;
}
.sidebar-newsletter p, .sidebar-newsletter span {
  color: #475569 !important;
}

/* Preloader Removal */
#back__preloader, #back__circle_loader, .back__loader_logo {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Modern Healthcare Pagination ───────────────────────────────────── */
.pagination, .nav-links, .page-numbers {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 36px 0 !important;
  list-style: none !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}
.page-numbers, .pagination .page-link, .pagination a, .pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
.page-numbers.current, .pagination .active .page-link, .pagination .active span {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
.page-numbers:hover:not(.current), .pagination .page-link:hover, .pagination a:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: #bae6fd !important;
  transform: translateY(-1px) !important;
}

/* ── Complete Healthcare Dark Mode Theme ───────────────────────────── */
html.dark-theme,
body.dark-theme,
body.back_dark__mode {
  background-color: #0b1329 !important;
  color: #f1f5f9 !important;
}

html.dark-theme .back-wrapper,
body.dark-theme .back-wrapper {
  background-color: #0b1329 !important;
}

/* Header & Topics Bar in Dark Mode */
html.dark-theme .back-header,
body.dark-theme .back-header {
  background: #0b1329 !important;
  border-bottom-color: #1e293b !important;
}
html.dark-theme .back-header .logo-text,
body.dark-theme .back-header .logo-text {
  color: #ffffff !important;
}
html.dark-theme .back-menus > li > a,
body.dark-theme .back-menus > li > a {
  color: #e2e8f0 !important;
}
html.dark-theme .hc-topics-nav,
body.dark-theme .hc-topics-nav {
  background: #0f172a !important;
  border-bottom-color: #1e293b !important;
}
html.dark-theme .hc-topic-pill,
body.dark-theme .hc-topic-pill {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html.dark-theme .hc-topic-pill:hover,
body.dark-theme .hc-topic-pill:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Cards & Sidebar Boxes in Dark Mode */
html.dark-theme .hc-card,
body.dark-theme .hc-card,
html.dark-theme .hc-hero-feature,
body.dark-theme .hc-hero-feature,
html.dark-theme .hc-sidebar-box,
body.dark-theme .hc-sidebar-box {
  background-color: #111c44 !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html.dark-theme .hc-hero-title,
body.dark-theme .hc-hero-title,
html.dark-theme .hc-hero-title a,
body.dark-theme .hc-hero-title a,
html.dark-theme .hc-card-title,
body.dark-theme .hc-card-title,
html.dark-theme .hc-card-title a,
body.dark-theme .hc-card-title a,
html.dark-theme .hc-mini-title,
body.dark-theme .hc-mini-title,
html.dark-theme .hc-mini-title a,
body.dark-theme .hc-mini-title a,
html.dark-theme .hc-single-title,
body.dark-theme .hc-single-title,
html.dark-theme .hc-sidebar-title,
body.dark-theme .hc-sidebar-title,
html.dark-theme .hc-section-title,
body.dark-theme .hc-section-title,
html.dark-theme h1, body.dark-theme h1,
html.dark-theme h2, body.dark-theme h2,
html.dark-theme h3, body.dark-theme h3,
html.dark-theme h4, body.dark-theme h4 {
  color: #ffffff !important;
}

html.dark-theme .hc-card p,
body.dark-theme .hc-card p,
html.dark-theme .hc-single-body,
body.dark-theme .hc-single-body,
html.dark-theme .hc-page-content,
body.dark-theme .hc-page-content,
html.dark-theme p,
body.dark-theme p {
  color: #cbd5e1 !important;
}

html.dark-theme .hc-card-meta,
body.dark-theme .hc-card-meta,
html.dark-theme .hc-mini-meta,
body.dark-theme .hc-mini-meta,
html.dark-theme .hc-single-meta,
body.dark-theme .hc-single-meta {
  color: #94a3b8 !important;
  border-top-color: #1e293b !important;
  border-bottom-color: #1e293b !important;
}

html.dark-theme .hc-mini-item,
body.dark-theme .hc-mini-item {
  border-bottom-color: #1e293b !important;
}

html.dark-theme .disclaimer_btm,
body.dark-theme .disclaimer_btm {
  background-color: #162040 !important;
  border-left-color: #0284c7 !important;
  color: #cbd5e1 !important;
}

html.dark-theme .form-input,
body.dark-theme .form-input,
html.dark-theme .search-form input,
body.dark-theme .search-form input {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

/* Sun / Moon Toggle Icon Visibility */
.back-dark-light {
  cursor: pointer;
  display: flex;
  align-items: center;
}
body:not(.dark-theme) .feather-sun,
body:not(.dark-theme) .back-go-light,
body:not(.dark-theme) .back-go-light1 {
  display: none !important;
}
body:not(.dark-theme) .feather-moon,
body:not(.dark-theme) .back-go-dark,
body:not(.dark-theme) .back-go-dark1 {
  display: inline-block !important;
  color: #334155 !important;
}
body.dark-theme .feather-moon,
body.dark-theme .back-go-dark,
body.dark-theme .back-go-dark1 {
  display: none !important;
}
body.dark-theme .feather-sun,
body.dark-theme .back-go-light,
body.dark-theme .back-go-light1 {
  display: inline-block !important;
  color: #facc15 !important;
}

/* ── Responsive Refinements ─────────────────────────────────────────── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

@media (max-width: 991px) {
  .hc-single-title { font-size: 26px !important; }
  .hc-hero-title { font-size: 22px !important; }
  .hc-newsletter-form { flex-direction: column !important; }
  .hc-card { margin-bottom: 16px; }
}

@media (max-width: 767px) {
  .hc-topbar {
    display: none !important;
  }
  .back-header .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
  }
  .back-header .logo-text {
    font-size: 19px !important;
  }
  .back-header .logo-text i {
    font-size: 22px !important;
  }
  .hc-topics-nav {
    padding: 8px 0 !important;
  }
  .hc-hero-title {
    font-size: 19px !important;
    line-height: 1.35 !important;
  }
  .hc-single-title {
    font-size: 23px !important;
    line-height: 1.3 !important;
  }
  .hc-single-body {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
  }
  .hc-hero-body {
    padding: 18px !important;
  }
  .hc-newsletter-banner {
    padding: 24px 18px !important;
  }
  .hc-newsletter-banner h3 {
    font-size: 20px !important;
  }
  .hc-card-body {
    padding: 16px !important;
  }
}

/* ── Modern X (Twitter) Icon compatibility for Font Awesome ── */
.fa-x-twitter,
.fa-brands.fa-x-twitter,
i.fa-brands.fa-x-twitter {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.fa-x-twitter::before,
.fa-brands.fa-x-twitter::before {
  content: "" !important;
  display: none !important;
}

/* ── Premium Social Share & Follow Buttons ── */
.hc-share-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hc-share-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.hc-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 0 !important;
  cursor: pointer;
}
.hc-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.12) !important;
}
.hc-share-btn.hc-share-fb:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
}
.hc-share-btn.hc-share-x:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}
.hc-share-btn.hc-share-wa:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
}
.hc-share-btn.hc-share-copy:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

/* Footer Social Buttons */
.hc-footer-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.05) !important;
  color: #cbd5e1 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}
.hc-footer-social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}
.hc-footer-social-btn.hc-footer-fb:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}
.hc-footer-social-btn.hc-footer-x:hover {
  background: #000000 !important;
  border-color: #ffffff !important;
}
.hc-footer-social-btn.hc-footer-ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  border-color: #d6249f !important;
}
.hc-footer-social-btn.hc-footer-yt:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
}

/* Dark mode support */
html.dark-theme .hc-share-btn,
body.dark-theme .hc-share-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
html.dark-theme .hc-share-btn:hover,
body.dark-theme .hc-share-btn:hover {
  color: #ffffff !important;
}
html.dark-theme .hc-share-label,
body.dark-theme .hc-share-label {
  color: #94a3b8 !important;
}
