/*
 Theme Name:   MedPress — BBC x Tengri Child
 Theme URI:    https://medpress.kz/
 Description:  Официальная редакционная тема MedPress.kz (Синтез авторитетного дизайна BBC News и региональной практичности Tengrinews.kz)
 Author:       MedPress Team
 Template:     generatepress
 Version:      2.1.0
 Text Domain:  generatepress-child
*/

:root {
  --bbc-red: #B80000;
  --bbc-red-dark: #8F0000;
  --brand-teal: #007A87;
  --brand-teal-dark: #005F6A;
  --brand-navy: #0B2545;
  --brand-navy-dark: #07182D;
  --text-dark: #0F172A;
  --text-body: #1E293B;
  --text-muted: #64748B;
  --bg-page: #F4F5F7;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background-color: var(--bg-page) !important;
  color: var(--text-body) !important;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.serif-font {
  font-family: 'Newsreader', Georgia, serif;
}

/* ================= 1. TENGRI UTILITY TOPBAR ================= */
.medpress-utility-strip {
  background: #1C2024;
  color: #94A3B8;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid #334155;
}
.medpress-utility-strip a {
  color: #CBD5E1;
  text-decoration: none;
}
.medpress-utility-strip a:hover {
  color: #FFFFFF;
}
.medpress-utility-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.medpress-utility-left, .medpress-utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}
.lang-badge {
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}
.lang-badge.active {
  background-color: var(--bbc-red);
  color: #FFFFFF !important;
}
.lang-badge.inactive {
  background-color: #334155;
  color: #CBD5E1;
}

/* ================= 2. SITE MASTHEAD ================= */
.medpress-site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.medpress-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* 3-Color Logo */
.medpress-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-blocks {
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-block {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #FFFFFF;
  line-height: 1;
}
.brand-block.block-m { background-color: var(--bbc-red); }
.brand-block.block-e { background-color: var(--brand-teal); }
.brand-block.block-d { background-color: var(--brand-navy); }

.brand-text-col {
  display: flex;
  flex-direction: column;
}
.brand-title-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand-press {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-navy);
  letter-spacing: -0.5px;
  line-height: 1;
}
.brand-kz {
  font-size: 13px;
  font-weight: 900;
  color: var(--bbc-red);
}
.brand-subtitle {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* Search Bar */
.medpress-search-wrapper {
  flex-grow: 1;
  max-width: 540px;
  position: relative;
}
.medpress-search-form {
  position: relative;
  display: flex;
}
.medpress-search-input {
  width: 100%;
  padding: 10px 90px 10px 14px;
  font-size: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background-color: #F8FAFC;
  transition: all 0.2s ease;
  font-family: inherit;
}
.medpress-search-input:focus {
  background-color: #FFFFFF;
  border-color: var(--bbc-red);
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 0, 0, 0.1);
}
.medpress-search-btn {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  background-color: var(--bbc-red);
  color: #FFFFFF;
  border: none;
  border-radius: 3px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.medpress-search-btn:hover {
  background-color: var(--bbc-red-dark);
}
.medpress-search-quicklinks {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}
.medpress-search-quicklinks a {
  color: var(--text-body);
  text-decoration: underline;
}

/* AJAX Autocomplete Search Dropdown */
.medpress-live-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 440px;
  overflow-y: auto;
  font-size: 12px;
}
.live-search-group {
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}
.live-search-group:last-child {
  border-bottom: none;
}
.live-search-group-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  padding: 4px 14px 6px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #F8FAFC;
}
.live-search-item {
  display: block;
  padding: 8px 14px;
  color: #0F172A;
  text-decoration: none;
  transition: background-color 0.1s ease;
  border-bottom: 1px solid #F8FAFC;
}
.live-search-item:last-child {
  border-bottom: none;
}
.live-search-item:hover {
  background-color: #F1F5F9;
  color: var(--bbc-red);
}
.live-search-item-title {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
}
.live-search-item-snippet {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}
.live-search-empty {
  padding: 24px 14px;
  text-align: center;
  color: #64748B;
  font-size: 12px;
}
.live-search-footer {
  background-color: #F8FAFC;
  padding: 8px 14px;
  text-align: center;
  border-top: 1px solid #E2E8F0;
  font-size: 11px;
  font-weight: 700;
  color: var(--bbc-red);
}

/* Masthead Right Portal Widget */
.medpress-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-hotline-box {
  text-align: right;
  font-size: 11px;
}
.hotline-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hotline-phone {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}
.btn-consult {
  background-color: var(--brand-teal);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}
.btn-consult:hover {
  background-color: var(--brand-teal-dark);
}

/* ================= 3. BBC RED NAVIGATION BAR ================= */
.medpress-primary-nav {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.medpress-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
}
.medpress-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.medpress-menu-list li a {
  display: block;
  padding: 11px 14px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background-color 0.15s ease;
}
.medpress-menu-list li a:hover,
.medpress-menu-list li.current-menu-item a {
  background-color: var(--bbc-red-dark);
}
.medpress-menu-list li.highlight-item a {
  background-color: #6E0000;
}
.nav-badge-right {
  font-size: 11px;
  font-weight: 600;
  color: #FEE2E2;
}

/* ================= 4. BREAKING TICKER ================= */
.medpress-breaking-strip {
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 0 16px;
}
.breaking-inner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}
.breaking-pill {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.breaking-text {
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breaking-time {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}

/* ================= 5. BBC x TENGRI 3-COLUMN GRID ================= */
.medpress-main-wrap {
  max-width: 1240px;
  margin: 20px auto 40px;
  padding: 0 16px;
}
.medpress-layout-3col {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* Column 1: Tengri Chronological Feed */
.col-newsfeed {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bbc-red);
}
.feed-header-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.feed-pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bbc-red);
  box-shadow: 0 0 0 2px rgba(184, 0, 0, 0.2);
}
.feed-date-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.feed-item {
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.feed-item:last-child {
  border-bottom: none;
}
.feed-item-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--bbc-red);
  display: inline-block;
  margin-bottom: 3px;
}
.feed-item-time.dim {
  color: var(--text-muted);
}
.feed-item-link {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.feed-item-link:hover {
  color: var(--bbc-red);
}
.feed-footer-link {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bbc-red);
  text-decoration: none;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

/* Column 2: BBC Center Lead Story */
.col-lead-story {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.hero-card:hover {
  box-shadow: var(--shadow-md);
}
.hero-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0F172A;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-card:hover .hero-img {
  transform: scale(1.03);
}
.hero-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--bbc-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.hero-caption {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
}
.hero-content {
  padding: 20px;
}
.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-cat-label {
  color: var(--brand-teal);
  font-weight: 700;
  text-transform: uppercase;
}
.hero-review-label {
  color: #047857;
  font-weight: 600;
}
.hero-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 10px;
  transition: color 0.15s ease;
}
.hero-title a {
  color: inherit;
  text-decoration: none;
}
.hero-title a:hover {
  color: var(--bbc-red);
}
.hero-excerpt {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  font-size: 11px;
}
.hero-author {
  font-weight: 600;
  color: var(--text-body);
}
.hero-readmore {
  color: var(--bbc-red);
  font-weight: 700;
  text-decoration: none;
}

/* Secondary Editorial Cards (2-Grid) */
.sub-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sub-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sub-cat-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sub-cat-tag.tag-red { color: var(--bbc-red); }
.sub-cat-tag.tag-teal { color: var(--brand-teal); }
.sub-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0 0 8px;
}
.sub-card-title a {
  color: inherit;
  text-decoration: none;
}
.sub-card-title a:hover {
  color: var(--bbc-red);
}
.sub-card-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.sub-card-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Column 3: BBC Most Read 01-05 */
.col-most-read {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.most-read-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--brand-navy);
}
.most-read-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0.5px;
}
.most-read-pill {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.trending-item:last-child {
  border-bottom: none;
}
.trending-num {
  font-size: 26px;
  font-weight: 900;
  color: #CBD5E1;
  line-height: 1;
  width: 32px;
  flex-shrink: 0;
}
.trending-body {
  flex-grow: 1;
}
.trending-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.trending-tag.tag-teal { color: var(--brand-teal); }
.trending-tag.tag-red { color: var(--bbc-red); }
.trending-tag.tag-amber { color: #B45309; }
.trending-tag.tag-purple { color: #6D28D9; }
.trending-tag.tag-rose { color: #BE123C; }

.trending-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}
.trending-link:hover {
  color: var(--bbc-red);
}
.trending-views {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ================= 6. REGISTRY FULL-WIDTH BANNER ================= */
.medpress-banner-registry {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #173860 100%);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.banner-reg-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px;
}
.banner-reg-desc {
  font-size: 12px;
  color: #CBD5E1;
  max-width: 650px;
  margin: 0;
  line-height: 1.5;
}
.banner-reg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-white {
  background-color: #FFFFFF;
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-white:hover {
  background-color: #F1F5F9;
}
.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-outline-white:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ================= 7. E-E-A-T ARTICLE TEMPLATE ================= */
.medpress-article-wrap {
  max-width: 960px;
  margin: 24px auto 48px;
  padding: 0 16px;
}
.medpress-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.medpress-breadcrumbs a {
  color: var(--text-body);
  text-decoration: none;
}
.medpress-breadcrumbs a:hover {
  text-decoration: underline;
}

.article-header-box {
  background: #FFFFFF;
  padding: 28px;
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.article-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.article-main-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 16px;
}
.article-lead-callout {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: #334155;
  background-color: #F8FAFC;
  border-left: 4px solid var(--bbc-red);
  padding: 12px 18px;
  margin: 0 0 20px;
  border-radius: 0 4px 4px 0;
}

/* E-E-A-T Reviewer Badge */
.reviewer-card-box {
  background-color: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reviewer-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-teal);
  flex-shrink: 0;
}
.reviewer-verified-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-teal);
  letter-spacing: 0.5px;
}
.reviewer-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}
.reviewer-credentials {
  font-size: 11px;
  color: #475569;
}
.reviewer-stamp {
  background: #FFFFFF;
  border: 1px solid #5EEAD4;
  color: #065F46;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* Article Body Typography & Components */
.article-content-box {
  background: #FFFFFF;
  padding: 32px;
  border: 1px solid var(--border-light);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}
.article-content-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.article-content-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 22px 0 10px;
}
.article-content-box p {
  margin: 0 0 16px;
}

/* Comparison Tables */
.medpress-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.medpress-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid var(--border-light);
}
.medpress-data-table th {
  background-color: #F1F5F9;
  color: var(--text-dark);
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  text-align: left;
}
.medpress-data-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  color: var(--text-body);
}

/* Hospital Partner CTA */
.partner-cta-box {
  background-color: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 28px 0;
  font-size: 13px;
  color: #78350F;
}
.partner-cta-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}
.partner-cta-phone {
  font-weight: 800;
  color: var(--bbc-red);
  margin-top: 6px;
  display: block;
}

/* Protocol Citation Block */
.protocol-citation-box {
  background-color: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 12px;
  color: #475569;
  margin: 28px 0;
}
.protocol-citation-title {
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.protocol-citation-box ol {
  margin: 0;
  padding-left: 20px;
}
.protocol-citation-box li {
  margin-bottom: 6px;
}

/* ================= 8. DRUG CARD & DOSAGE CALCULATOR ================= */
.drug-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.drug-reg-badge {
  background-color: #D1FAE5;
  color: #065F46;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}
.drug-price-box {
  background-color: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 14px 18px;
  text-align: right;
  min-width: 220px;
}
.drug-price-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 4px 0;
}

/* Interactive Dosage Calculator */
.dosage-calc-panel {
  background-color: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
}
.calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.calc-input-weight {
  width: 90px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  background: #FFFFFF;
}
.calc-result-badge {
  background: #FFFFFF;
  border: 1px solid #5EEAD4;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}

/* ================= 9. SYMPTOM RED FLAGS ================= */
.symptom-alert-danger {
  background-color: #FFF1F2;
  border-left: 4px solid #E11D48;
  padding: 18px 20px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #881337;
  margin-bottom: 24px;
}
.alert-danger-header {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= 10. TENGRI FOOTER ================= */
.medpress-footer {
  background-color: #181B20;
  color: #94A3B8;
  font-size: 12px;
  padding: 40px 0 24px;
  border-top: 4px solid var(--bbc-red);
  margin-top: 60px;
}
.medpress-footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #334155;
}
.footer-col-title {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links-list li {
  margin-bottom: 8px;
}
.footer-links-list a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links-list a:hover {
  color: #FFFFFF;
}
.footer-bottom-bar {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= RESPONSIVE QUERIES ================= */
@media (max-width: 1024px) {
  .medpress-layout-3col {
    grid-template-columns: 1fr;
  }
  .col-newsfeed {
    order: 2;
  }
  .col-lead-story {
    order: 1;
  }
  .col-most-read {
    order: 3;
  }
  .medpress-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .medpress-header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .medpress-search-wrapper {
    max-width: 100%;
  }
  .medpress-header-right {
    display: none;
  }
  .sub-editorial-grid {
    grid-template-columns: 1fr;
  }
  .medpress-footer-grid {
    grid-template-columns: 1fr;
  }
  .article-header-box, .article-content-box {
    padding: 20px 16px;
  }
}

/* ================= TENGRINEWS PHOTO CAPTION STYLE ================= */
.medpress-article-figure {
  margin: 24px 0 20px;
  padding: 0;
}
.medpress-article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.medpress-article-figure figcaption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
  margin-top: 6px;
  padding: 0 2px;
  letter-spacing: -0.1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.medpress-article-figure figcaption strong {
  font-weight: 500;
  color: #475569;
}
.medpress-article-figure figcaption .ai-badge {
  font-size: 10px;
  color: #94a3b8;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 400;
}

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

/* ================= 10. RESPONSIVE MOBILE NAVIGATION & DRAWER ================= */
.medpress-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.medpress-mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: #0B2545;
  color: #FFFFFF;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}
.medpress-mobile-menu-btn:hover,
.medpress-mobile-menu-btn:active {
  background: var(--bbc-red);
  border-color: var(--bbc-red);
}
.hamburger-box {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 16px;
}
.hamburger-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 1px;
}

/* Off-canvas Mobile Drawer */
body.drawer-locked {
  overflow: hidden;
}
.medpress-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  visibility: hidden;
  transition: visibility 0.25s ease;
}
.medpress-mobile-drawer.is-open {
  visibility: visible;
}
.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.medpress-mobile-drawer.is-open .drawer-overlay {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #FFFFFF;
  box-shadow: 6px 0 24px rgba(0,0,0,0.25);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.medpress-mobile-drawer.is-open .drawer-panel {
  transform: translateX(0);
}
.drawer-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.drawer-brand {
  display: flex;
  align-items: center;
}
.drawer-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  padding: 0 4px;
}
.drawer-body {
  padding: 16px;
  flex: 1;
}
.drawer-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-nav-list li {
  margin-bottom: 2px;
}
.drawer-nav-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #1E293B;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.drawer-nav-list li a:hover,
.drawer-nav-list li.drawer-highlight a {
  background: #FEF2F2;
  color: var(--bbc-red);
}
.drawer-contact-box {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.drawer-chief-editor {
  margin-top: 14px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  font-size: 11px;
}

/* Horizontal Red Navigation Bar for Mobile */
.medpress-primary-nav {
  position: relative;
  background-color: var(--bbc-red);
}
.medpress-nav-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.medpress-nav-container::-webkit-scrollbar {
  display: none;
}
.medpress-menu-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.medpress-menu-list li {
  flex-shrink: 0;
}
.medpress-menu-list li a {
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .medpress-mobile-menu-btn {
    display: inline-flex;
  }
  .medpress-header-right {
    display: none !important;
  }
  .hide-mobile {
    display: none !important;
  }
  .medpress-utility-strip {
    font-size: 11px;
    padding: 6px 0;
  }
  .medpress-utility-container {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 12px;
  }
  .medpress-site-header {
    padding: 10px 0 8px;
  }
  .medpress-header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 12px;
  }
  .medpress-brand-subtitle {
    font-size: 9px !important;
  }
  .medpress-search-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .medpress-search-form {
    display: flex;
    width: 100%;
  }
  .medpress-search-input {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 8px 10px;
  }
  .medpress-search-btn {
    padding: 0 14px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .medpress-search-quicklinks {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    font-size: 11px;
    gap: 4px;
  }
  .medpress-search-quicklinks::-webkit-scrollbar {
    display: none;
  }
  .medpress-breaking-strip {
    padding: 0 12px;
    margin-top: 10px;
  }
  .breaking-text {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .medpress-article-wrap {
    padding: 16px 12px;
  }
}
