/* ================================================================
   HEALTH PORTAL — Desktop CSS
   Blue / Teal health theme — all selectors scoped with .health- prefix
   ================================================================ */

:root {
  --health-primary: #0284c7;
  --health-primary-light: #38bdf8;
  --health-primary-dark: #0369a1;
  --health-accent: #0ea5e9;
  --health-surface: #ffffff;
  --health-surface-alt: #f0f9ff;
  --health-bg: #f8fafc;
  --health-text: #0f172a;
  --health-text2: #475569;
  --health-text3: #94a3b8;
  --health-border: #bae6fd;
  --health-border-light: #e0f2fe;
  --health-success: #10b981;
  --health-warning: #f59e0b;
  --health-danger: #ef4444;
}

/* ═══ PREVENT OVERFLOW ═══ */
.health-portal {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ═══ HERO SECTION ═══ */
.health-hero {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 25%, #ecfeff 50%, #f0fdfa 75%, #f5f3ff 100%);
  border-radius: 0 0 24px 24px;
  padding: 48px 40px 40px;
  margin-bottom: 0;
  overflow: hidden;
  border: none;
}

.health-hero-bg {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2,132,199,0.08) 0%, rgba(14,165,233,0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: healthPulse 8s ease-in-out infinite;
}

@keyframes healthPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.health-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.health-hero-left {
  flex: 1;
  min-width: 0;
}

.health-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2,132,199,0.1);
  color: var(--health-primary);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(2,132,199,0.15);
}

.health-hero-badge-icon {
  font-size: 16px;
}

.health-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--health-text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.health-hero-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--health-text2);
  margin-bottom: 24px;
  max-width: 520px;
}

.health-hero-actions {
  display: flex;
  gap: 12px;
}

.health-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.health-hero-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2,132,199,0.25);
}

.health-hero-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(2,132,199,0.35);
  transform: translateY(-2px);
}

.health-hero-btn-secondary {
  background: var(--health-surface);
  color: var(--health-primary);
  border: 1px solid var(--health-border);
}

.health-hero-btn-secondary:hover {
  background: var(--health-surface-alt);
  border-color: var(--health-primary-light);
  transform: translateY(-2px);
}

/* ═══ HERO STATS ═══ */
.health-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex-shrink: 0;
  margin-top: 10px;
}

.health-hero-stat {
  background: transparent;
  border: 1px solid var(--health-border-light, #e0f2fe);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: none;
}

.health-hero-stat:hover {
  box-shadow: none;
  transform: translateY(-2px);
  border-color: var(--health-primary-light, #38bdf8);
}

.health-stat-icon {
  font-size: 20px;
  color: var(--health-primary);
  margin-bottom: 8px;
}

.health-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--health-text);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.health-stat-label {
  font-size: 11px;
  color: var(--health-text3);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ═══ BODIES STRIP ═══ */
.health-bodies-strip {
  background: var(--health-bg);
  margin-bottom: 0;
  padding: 8px 0 4px;
}

.health-bodies-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 16px 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.health-body-card {
  background: transparent;
  border: 1px solid var(--health-border, #bae6fd);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: none;
  cursor: default;
}

.health-body-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
  border-color: var(--health-primary, #0284c7);
}

.health-body-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--health-primary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.health-body-full {
  font-size: 10px;
  color: var(--health-text3);
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 500;
}

.health-body-desc {
  font-size: 11px;
  color: var(--health-text2);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ SECTION TITLES ═══ */
.health-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 18px;
  padding: 0 2px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.health-stitle-icon {
  font-size: 20px;
}

.health-section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--health-text);
  letter-spacing: -0.3px;
}

/* ═══ FEATURED NEWS GRID ═══ */
.health-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.health-feat-large {
  grid-row: 1 / 3;
}

.health-feat-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--health-border-light, #e0f2fe);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.health-feat-card:hover {
  box-shadow: none;
  transform: translateY(-3px);
  border-color: var(--health-primary, #0284c7);
}

.health-feat-img {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.health-feat-large .health-feat-img {
  min-height: 360px;
}

.health-feat-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe, #cffafe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-feat-large .health-feat-placeholder {
  min-height: 360px;
}

.health-feat-placeholder [data-icon] {
  font-size: 48px;
  color: var(--health-primary-light);
  opacity: 0.5;
}

.health-feat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--health-primary);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.health-feat-body {
  padding: 18px;
  flex: 1;
}

.health-feat-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--health-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.health-feat-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--health-text2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.health-feat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--health-border-light);
  font-size: 12px;
  color: var(--health-text3);
}

.health-feat-author {
  font-weight: 600;
  color: var(--health-text2);
}

.health-feat-time {
  font-size: 11px;
}

/* ═══ SUBMIT CTA ═══ */
.health-submit-cta {
  background: transparent;
  border: 1px solid var(--health-border-light, #e0f2fe);
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.health-submit-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.health-submit-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.health-submit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(2,132,199,0.25);
  color: #ffffff;
  font-size: 22px;
}

.health-submit-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--health-text);
  line-height: 1.35;
  margin-bottom: 4px;
}

.health-submit-desc {
  font-size: 13px;
  color: var(--health-text2);
  line-height: 1.55;
}

.health-submit-right {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.health-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.health-submit-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2,132,199,0.2);
}

.health-submit-btn:hover {
  box-shadow: 0 6px 24px rgba(2,132,199,0.3);
  transform: translateY(-2px);
}

.health-submit-btn-alt {
  background: var(--health-surface);
  color: var(--health-primary);
  border: 1px solid var(--health-border);
}

.health-submit-btn-alt:hover {
  background: var(--health-surface-alt);
}

/* ═══ NEWS GRID ═══ */
.health-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.health-news-card {
  background: transparent;
  border: 1px solid var(--health-border-light, #e0f2fe);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.health-news-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
  border-color: var(--health-primary, #0284c7);
}

.health-news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.health-news-tag {
  background: rgba(2,132,199,0.1);
  color: var(--health-primary);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.health-news-time {
  font-size: 11px;
  color: var(--health-text3);
}

.health-news-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--health-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.health-news-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--health-text2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}

.health-news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: none;
}

.health-news-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--health-text2);
}

.health-news-readmore {
  font-size: 12px;
  font-weight: 600;
  color: var(--health-primary);
}

/* ═══ BOTTOM CTA ═══ */
.health-bottom-cta {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%);
  border-radius: 20px;
  padding: 32px 36px;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.health-bottom-inner h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.health-bottom-inner p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 600px;
}

.health-bottom-actions {
  display: flex;
  gap: 12px;
}

.health-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.health-social-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ═══ DATA STAMP ═══ */
.health-data-stamp {
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  color: var(--health-text3);
  margin-top: 24px;
}

/* ═══ DARK MODE ═══ */
body.dark .health-hero {
  background: linear-gradient(135deg, #0c1929 0%, #0f172a 25%, #0c1e2e 50%, #0f1f1d 75%, #1a1433 100%);
}

body.dark .health-hero-bg {
  background: radial-gradient(circle, rgba(2,132,199,0.12) 0%, rgba(14,165,233,0.06) 50%, transparent 70%);
}

body.dark .health-hero-title {
  color: #f1f5f9;
}

body.dark .health-hero-sub {
  color: #94a3b8;
}

body.dark .health-hero-badge {
  background: rgba(2,132,199,0.15);
  border-color: rgba(2,132,199,0.25);
}

body.dark .health-hero-btn-secondary {
  background: #1e293b;
  color: #38bdf8;
  border-color: rgba(2,132,199,0.3);
}

body.dark .health-hero-stat {
  background: transparent;
  border-color: rgba(2,132,199,0.2);
}

body.dark .health-stat-val {
  color: #f1f5f9;
}

body.dark .health-body-card {
  background: transparent;
  border-color: rgba(2,132,199,0.2);
}

body.dark .health-body-card:hover {
  border-color: rgba(2,132,199,0.4);
}

body.dark .health-bodies-strip {
  background: #0a0f1a;
}

body.dark .health-feat-card {
  background: transparent;
  border-color: rgba(2,132,199,0.15);
}


body.dark .health-feat-body h3 {
  color: #f1f5f9;
}

body.dark .health-feat-body p {
  color: #94a3b8;
}

body.dark .health-feat-meta {
  border-top-color: rgba(2,132,199,0.1);
}

body.dark .health-feat-author {
  color: #94a3b8;
}

body.dark .health-submit-cta {
  background: transparent;
  border-color: rgba(2,132,199,0.15);
}

body.dark .health-submit-title {
  color: #f1f5f9;
}

body.dark .health-submit-desc {
  color: #94a3b8;
}

body.dark .health-submit-btn-alt {
  background: #0f172a;
  border-color: rgba(2,132,199,0.2);
  color: #38bdf8;
}

body.dark .health-news-card {
  background: transparent;
  border-color: rgba(2,132,199,0.15);
}

body.dark .health-news-card:hover {
  border-color: rgba(2,132,199,0.35);
}

body.dark .health-news-title {
  color: #f1f5f9;
}

body.dark .health-news-excerpt {
  color: #94a3b8;
}

body.dark .health-news-footer {
  border-top-color: rgba(2,132,199,0.08);
}

body.dark .health-news-author {
  color: #94a3b8;
}

body.dark .health-news-tag {
  background: rgba(2,132,199,0.15);
  color: #38bdf8;
}

body.dark .health-bottom-cta {
  background: linear-gradient(135deg, #0c2d4a 0%, #0a3655 50%, #0c4a6e 100%);
}

body.dark .health-section-title h2 {
  color: #f1f5f9;
}

body.dark .health-data-stamp {
  color: #475569;
}

/* ═══ FEATURED CARD IMAGE ═══ */

/* ═══ NEWS CARD IMAGE ═══ */


/* ═══ DARK MODE — CARD IMAGES ═══ */


/* ═══ PAGINATION ═══ */
.health-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 16px 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.health-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--health-border-light, #e0f2fe);
  background: var(--health-surface, #ffffff);
  color: var(--health-text2, #475569);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.health-page-btn:hover {
  border-color: var(--health-primary, #0284c7);
  color: var(--health-primary, #0284c7);
  transform: translateY(-1px);
}

.health-page-active {
  background: var(--health-primary, #0284c7) !important;
  color: #ffffff !important;
  border-color: var(--health-primary, #0284c7) !important;
}

.health-page-prev,
.health-page-next {
  padding: 0 18px;
  font-size: 13px;
}

.health-page-dots {
  color: var(--health-text3, #94a3b8);
  font-size: 14px;
  padding: 0 4px;
}

/* Dark mode pagination */
body.dark .health-page-btn {
  background: #0f172a;
  border-color: rgba(2,132,199,0.2);
  color: #94a3b8;
}

body.dark .health-page-btn:hover {
  border-color: rgba(2,132,199,0.5);
  color: #38bdf8;
}

body.dark .health-page-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}


/* ═══ SMALL IMAGE HANDLING ═══ */
.health-feat-img img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe, #cffafe);
}

.health-news-card-img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe, #cffafe);
}

.health-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══ DARK MODE — CARD IMAGES ═══ */
body.dark .health-feat-img img {
  background: linear-gradient(135deg, #0c1929, #0f1e2e);
}

body.dark .health-news-card-img {
  background: linear-gradient(135deg, #0c1929, #0f1e2e);
}

