/* MedikPoint.css — Design System v1.0 */

/* ========================================
   1. RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #0057D9;
  --color-primary-dark: #0041A8;
  --color-primary-light: #EEF4FF;
  --color-danger: #C8102E;
  --color-danger-light: #FFF0F2;
  --color-success: #0A7A45;
  --color-success-light: #EDFAF3;
  --color-warning: #B45309;
  --color-warning-light: #FFFBEB;
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F9FAFB;
  --color-bg-subtle: #F3F4F6;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ========================================
   2. TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
  color: var(--color-text);
}

/* ========================================
   3. LAYOUT
   ======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   4. NAVIGATION
   ======================================== */
.nav-main {
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 99;
}

.nav-main.nav-open .nav-mobile-menu {
  display: block;
}

.nav-mobile-menu a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s;
}

.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--color-primary); }

/* ========================================
   5. BREADCRUMB
   ======================================== */
.breadcrumb {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li::before {
  content: '/';
  color: var(--color-text-light);
}

.breadcrumb li:first-child::before { display: none; }

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:last-child { color: var(--color-text); }

/* ========================================
   6. HERO
   ======================================== */
.hero-section {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #FAFBFF 0%, #FFFFFF 100%);
}

.hero-section h1 {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-5xl);
  line-height: 1.15;
  max-width: 680px;
  color: var(--color-text);
}

.hero-perex {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.6;
}

.hero-search {
  margin-top: 40px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: white;
  border: 1px solid var(--color-border);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.hero-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ========================================
   7. SEARCH BAR
   ======================================== */
.search-bar {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  overflow: visible;
  max-width: 600px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  background: white;
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,87,217,0.1);
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--color-text);
  background: transparent;
  outline: none;
  border-radius: 10px 0 0 10px;
}

.search-input::placeholder { color: var(--color-text-light); }

.search-btn {
  padding: 14px 28px;
  background: var(--color-primary);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-btn:hover { background: var(--color-primary-dark); }

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: -1.5px;
  right: -1.5px;
  background: white;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 300;
  max-height: 400px;
  overflow-y: auto;
}

.search-dropdown.is-open { display: block; }

.search-result-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-bg-soft); }
.search-result-item.active { background: var(--color-primary-light); }

.search-result-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  min-width: 72px;
  flex-shrink: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.search-result-item:hover .search-result-name,
.search-result-item.active .search-result-name {
  color: var(--color-primary);
}

.search-no-results {
  padding: 16px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ========================================
   8. STATS BAR
   ======================================== */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ========================================
   9. CATEGORY CARDS
   ======================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: white;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0,87,217,0.08);
  transform: translateY(-2px);
}

.category-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--color-text);
  line-height: 1.3;
}

.category-card-count {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.category-card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ========================================
   10. SECTION HEADERS
   ======================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-2xl);
  color: var(--color-text);
}

.section-link {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.section-link:hover { text-decoration: underline; }

/* ========================================
   11. ARTICLE LAYOUT
   ======================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  line-height: 1.2;
}

.article-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-meta-sep { color: var(--color-text-light); }

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: #1F2937;
}

.article-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin: 40px 0 16px;
  color: var(--color-text);
}

.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--color-text);
}

.article-body p { margin-bottom: 20px; }

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: text-decoration-style 0.15s;
}

.article-body a:hover { text-decoration-style: solid; }

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li { margin-bottom: 8px; }

.article-body .faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.article-body .faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.article-body .faq-item p { margin: 0; font-size: 15px; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ========================================
   12. SIDEBAR
   ======================================== */
.sidebar-widget {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 20px;
}

.sidebar-widget-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}

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

.sidebar-widget li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-widget a:hover { color: var(--color-primary); }

/* ========================================
   13. CTA BOXES
   ======================================== */
.cta-doctor {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 24px;
  border-radius: 0 10px 10px 0;
  margin: 32px 0;
}

.cta-doctor-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--color-primary-dark);
}

.cta-doctor-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.cta-urgent {
  background: var(--color-danger-light);
  border-left: 4px solid var(--color-danger);
  padding: 24px;
  border-radius: 0 10px 10px 0;
  margin: 32px 0;
}

.cta-urgent-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--color-danger);
}

.cta-labtest {
  background: var(--color-success-light);
  border-left: 4px solid var(--color-success);
  padding: 24px;
  border-radius: 0 10px 10px 0;
  margin: 32px 0;
}

.cta-labtest-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--color-success);
}

.cta-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ========================================
   14. DISCLAIMER
   ======================================== */
.disclaimer {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.disclaimer-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-text-light);
}

/* ========================================
   15. NEWS GRID
   ======================================== */
.news-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: white;
  padding: 20px;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.news-card:last-child { border-bottom: none; }
.news-card:hover { background: var(--color-bg-soft); }

.news-card-img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  align-self: flex-start;
}

.news-card-img-placeholder {
  width: 160px;
  height: 100px;
  background: var(--color-bg-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-card-body {
  padding-left: 20px;
}

.news-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card-title { color: var(--color-primary); }

.news-card-perex {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.news-card-meta {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* ========================================
   16. FOOTER
   ======================================== */
.footer-main {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  background: var(--color-bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-light);
}

/* ========================================
   17. BUTTONS
   ======================================== */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.btn-primary:hover { background: var(--color-primary-dark); color: white; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.btn-secondary:hover { background: var(--color-primary-light); color: var(--color-primary); }

.btn-danger {
  background: var(--color-danger);
  color: white;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-danger:hover { background: #A50D26; color: white; }

/* ========================================
   18. FORMS
   ======================================== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,87,217,0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 6px;
}

.form-submit-error {
  padding: 12px 16px;
  background: var(--color-danger-light);
  border: 1px solid var(--color-danger);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-danger);
  margin-top: 16px;
}

/* ========================================
   19. MOBILE CTA BAR
   ======================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--color-border);
  padding: 12px 20px;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.mobile-cta-bar .btn-primary {
  width: 100%;
  font-size: 15px;
  padding: 13px 24px;
}

/* ========================================
   20. SCROLL TOP BUTTON
   ======================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 89;
  box-shadow: 0 4px 12px rgba(0,87,217,0.3);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   21. AUTHOR CARD
   ======================================== */
.author-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.author-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-card-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.author-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.author-card-title {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ========================================
   22. BMI WIDGET
   ======================================== */
.bmi-widget {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.bmi-widget h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin-bottom: 20px;
}

.bmi-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.bmi-result {
  margin-top: 20px;
  text-align: center;
  padding: 20px;
  background: var(--color-bg-soft);
  border-radius: 8px;
  display: none;
}

.bmi-result.is-visible { display: block; }

.bmi-number {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  line-height: 1;
}

.bmi-category {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.bmi-bar {
  height: 8px;
  border-radius: 4px;
  margin-top: 16px;
  background: linear-gradient(90deg,
    #3B82F6 0%, #22C55E 25%, #F59E0B 50%, #EF4444 75%);
  position: relative;
}

.bmi-indicator {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid var(--color-text);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

/* ========================================
   23. SYMPTOM CHECKER
   ======================================== */
.sc-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.sc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.sc-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sc-step.is-active .sc-step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.sc-step.is-done .sc-step-num {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-strong);
  color: var(--color-text-muted);
}

.sc-step.is-active { color: var(--color-text); }

.sc-connector {
  height: 2px;
  flex: 1;
  background: var(--color-border);
  margin: 0 8px;
}

.sc-body-map {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.sc-body-svg { flex-shrink: 0; }

.sc-body-svg g { cursor: pointer; }
.sc-body-svg g rect, .sc-body-svg g ellipse, .sc-body-svg g path {
  transition: fill 0.15s;
}
.sc-body-svg g:hover rect,
.sc-body-svg g:hover ellipse { fill: #BFDBFE; }
.sc-body-svg g.selected rect,
.sc-body-svg g.selected ellipse { fill: #0057D9; }

.sc-area-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-area-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.sc-area-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.sc-area-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.sc-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.sc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  color: var(--color-text-muted);
}

.sc-option input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sc-option.checked {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-text);
}

.sc-spec-group { margin-bottom: 24px; }
.sc-spec-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.sc-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-choice {
  padding: 7px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.sc-choice.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.sc-slider-wrap { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.sc-slider {
  flex: 1;
  accent-color: var(--color-primary);
  height: 6px;
}
.sc-slider-val {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--color-primary);
  min-width: 24px;
  text-align: center;
}

.sc-redflags {
  background: var(--color-danger-light);
  border: 1px solid var(--color-danger);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.sc-redflags-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-danger);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.sc-redflag-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(200,16,46,0.12);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.sc-redflag-item:last-child { border-bottom: none; }

.sc-redflag-item input[type="checkbox"] {
  accent-color: var(--color-danger);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sc-critical-warning {
  background: var(--color-danger);
  color: white;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sc-critical-warning h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: white;
  margin-bottom: 12px;
}

.sc-critical-phone {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: white;
  display: block;
  margin: 16px 0;
}

.sc-result-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sc-result-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,87,217,0.08);
}

.sc-result-info { flex: 1; }
.sc-result-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.sc-result-bar-wrap {
  height: 6px;
  background: var(--color-bg-subtle);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.sc-result-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.sc-result-pct {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--color-primary);
  min-width: 52px;
  text-align: right;
}

.badge-green { display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;background:#EDFAF3;color:#0A7A45; }
.badge-orange { display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;background:#FFFBEB;color:#B45309; }
.badge-red { display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;background:#FFF0F2;color:#C8102E; }
.badge-critical { display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;background:#C8102E;color:white; }

/* ========================================
   24. HOW IT WORKS
   ======================================== */
.steps-list {
  list-style: none;
  counter-reset: steps;
}

.step-item {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.step-item:last-child { border-bottom: none; }

.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--color-primary);
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================================
   25. CTA DUAL SECTION
   ======================================== */
.cta-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cta-box {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: white;
}

.cta-box-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.cta-box-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-box-price {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ========================================
   26. COOKIES BANNER
   ======================================== */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: white;
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

.cookies-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookies-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ========================================
   27. PAGE SECTIONS
   ======================================== */
.page-section {
  padding: 64px 0;
}

.page-section + .page-section {
  border-top: 1px solid var(--color-border);
}

/* ========================================
   28. CONSULTATION PAGE
   ======================================== */
.konsultace-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.konsultace-info {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-soft);
}

.konsultace-price {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--color-primary);
  margin: 16px 0;
}

.konsultace-checks {
  list-style: none;
  margin: 16px 0;
}

.konsultace-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}

.konsultace-checks li:last-child { border-bottom: none; }

.konsultace-check-icon {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   29. RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-layout .sidebar { display: none; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .konsultace-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-hamburger { display: flex; }

  .hero-section { padding: 56px 0 48px; }
  .hero-section h1 { font-size: var(--text-3xl); }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .category-grid { grid-template-columns: 1fr; }
  .cta-dual { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  .mobile-cta-bar { display: block; }

  .cookies-banner { flex-direction: column; align-items: flex-start; }
  .cookies-actions { width: 100%; flex-direction: row; }
  .cookies-actions .btn-primary, .cookies-actions .btn-secondary {
    flex: 1; text-align: center;
  }

  .news-card { grid-template-columns: 1fr; }
  .news-card-img,
  .news-card-img-placeholder { width: 100%; height: 160px; }
  .news-card-body { padding-left: 0; padding-top: 12px; }

  .sc-body-map { flex-direction: column; }
  .sc-options-grid { grid-template-columns: 1fr; }
  .bmi-inputs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .container-narrow, .container-wide { padding: 0 16px; }
  .hero-section h1 { font-size: var(--text-2xl); }
  .search-btn { padding: 14px 16px; font-size: 13px; }
  .sc-progress { gap: 4px; }
  .sc-step-label { display: none; }
}

/* ========================================
   30. PRINT
   ======================================== */
@media print {
  .nav-main,
  .breadcrumb,
  .sidebar,
  .cta-doctor,
  .cta-urgent,
  .cta-labtest,
  .footer-main,
  .mobile-cta-bar,
  .scroll-top-btn,
  .cookies-banner,
  .reading-progress { display: none !important; }

  .article-layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
  .article-body { font-size: 12pt; line-height: 1.6; }
  a { color: black; text-decoration: none; }
}

/* ========================================
   31. FOCUS STATES (Accessibility)
   ======================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================
   32. RELATED LISTS (existing pages)
   ======================================== */
.related h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.related ul { list-style: none; padding: 0; }
.related li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.related li:last-child { border-bottom: none; }
.related a {
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}
.related a:hover { color: var(--color-primary); }

.author-box {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.author-box strong { color: var(--color-text); }

/* Page layout for existing pages */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}

.page-layout aside {
  position: sticky;
  top: 88px;
}

.page-layout main article {
  font-size: 17px;
  line-height: 1.75;
  color: #1F2937;
}

.page-layout main article h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.page-layout main article h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin: 40px 0 16px;
}

.page-layout main article h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.page-layout main article p { margin-bottom: 20px; }

.page-layout main article ul,
.page-layout main article ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.page-layout main article li { margin-bottom: 8px; }

.page-layout main article a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.page-layout main article a:hover { text-decoration-style: solid; }

.page-layout main article .faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.page-layout main article .faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.page-layout main article .faq-item p { margin: 0; font-size: 15px; }

@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-layout aside { display: none; }
}

@media (max-width: 768px) {
  .page-layout { padding: 24px 16px; }
}
