/* ================================================================
   HEALTH PORTAL — Mobile CSS (max-width: 768px)
   Properly optimized — NO negative margins, NO horizontal scroll
   ================================================================ */

/* ═══ PREVENT HORIZONTAL SCROLL ═══ */
.health-portal,
.health-portal * {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* ═══ CONTAINER ═══ */
.health-portal {
  padding: 0 0 40px !important;
  width: 100% !important;
}

/* ═══ HERO ═══ */
.health-hero {
  border-radius: 0 0 18px 18px;
  padding: 28px 20px 24px;
  margin-bottom: 0;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.health-hero-bg {
  top: -30%;
  right: -25%;
  width: 300px;
  height: 300px;
}

.health-hero-inner {
  flex-direction: column;
  gap: 0;
}

.health-hero-left {
  width: 100%;
}

.health-hero-badge {
  padding: 5px 12px;
  font-size: 11px;
  margin-bottom: 12px;
}

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

.health-hero-title {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.health-hero-sub {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 100%;
}

.health-hero-actions {
  flex-direction: row;
  gap: 10px;
}

.health-hero-btn {
  padding: 10px 18px;
  font-size: 12px;
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

/* ═══ Hero Stats — 4 across ═══ */
.health-hero-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100% !important;
  margin-top: 20px;
}

.health-hero-stat {
  border-radius: 10px;
  padding: 12px 6px;
}

.health-stat-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.health-stat-icon [data-icon] {
  font-size: 16px;
}

.health-stat-val {
  font-size: 18px;
  margin-bottom: 2px;
}

.health-stat-label {
  font-size: 8px;
  letter-spacing: 0.2px;
}

/* ═══ BODIES STRIP — 3-column grid ═══ */
.health-bodies-strip {
  margin-bottom: 0;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 0 4px;
}

.health-bodies-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 16px 12px;
  width: 100%;
  overflow-x: hidden;
}

.health-body-card {
  width: 100% !important;
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
}

.health-body-name {
  font-size: 15px;
  margin-bottom: 3px;
}

.health-body-full {
  font-size: 8px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.health-body-desc {
  display: none;
}

/* ═══ SECTION TITLES ═══ */
.health-section-title {
  margin-top: 24px;
  margin-bottom: 14px;
  padding: 0 2px;
}

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

.health-section-title h2 {
  font-size: 18px;
}

/* ═══ FEATURED NEWS — Stacked ═══ */
.health-featured-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.health-feat-large {
  grid-row: auto;
}

.health-feat-card {
  border-radius: 14px;
}

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

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

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

.health-feat-placeholder [data-icon] {
  font-size: 36px;
}

.health-feat-tag {
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 10px;
}

.health-feat-body {
  padding: 14px;
}

.health-feat-body h3 {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.health-feat-body p {
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.5;
}

.health-feat-meta {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 11px;
}

/* ═══ SUBMIT CTA ═══ */
.health-submit-cta {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 20px;
  border-radius: 16px;
  margin-top: 24px;
  margin-bottom: 0;
}

.health-submit-inner {
  flex-direction: column;
  gap: 16px;
}

.health-submit-left {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.health-submit-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
}

.health-submit-icon [data-icon] {
  font-size: 22px;
}

.health-submit-title {
  font-size: 16px;
  line-height: 1.35;
}

.health-submit-desc {
  font-size: 12px;
  line-height: 1.55;
}

.health-submit-right {
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.health-submit-btn {
  justify-content: center;
  padding: 12px 20px;
  font-size: 13px;
  border-radius: 12px;
}

/* ═══ NEWS GRID — Stacked with faded separator ═══ */
.health-news-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
}

.health-news-card {
  padding: 16px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-bottom: none;
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Faded separator line between news cards */
.health-news-card:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(to right, transparent, #000000 20%, #000000 80%, transparent);
  pointer-events: none;
  opacity: 0.7;
}

.health-news-card:last-child {
  border-bottom: none;
}

.health-news-card-top {
  margin-bottom: 8px;
}

.health-news-tag {
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 5px;
}

.health-news-time {
  font-size: 10px;
}

.health-news-title {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  -webkit-line-clamp: 2;
}

.health-news-excerpt {
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.health-news-footer {
  padding-top: 10px;
  border-top: none;
}

.health-news-author {
  font-size: 11px;
}

.health-news-readmore {
  font-size: 11px;
}

/* ═══ BOTTOM CTA ═══ */
.health-bottom-cta {
  border-radius: 16px;
  padding: 24px 20px;
  margin: 24px 0 0 0 !important;
  width: 100% !important;
}

.health-bottom-inner h3 {
  font-size: 16px;
  line-height: 1.35;
}

.health-bottom-inner p {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.health-bottom-actions {
  flex-direction: row;
  gap: 10px;
  justify-content: center;
}

.health-social-btn {
  padding: 10px 16px;
  font-size: 12px;
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  max-width: none;
}

/* ═══ DATA STAMP ═══ */
.health-data-stamp {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 14px 16px;
  font-size: 10px;
}

/* ═══ RESTORE STYLES OVERRIDDEN BY mobile.css ═══ */

/* Restore backgrounds on health cards */
.health-portal .health-body-card,
.health-portal .health-feat-card,
.health-portal .health-hero-stat,
.health-portal .health-submit-cta,
.health-portal .health-bottom-cta {
  background: transparent !important;
  border-radius: 12px !important;
  border: 1px solid #e0f2fe !important;
}

.health-portal .health-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 25%, #ecfeff 50%, #f0fdfa 75%, #f5f3ff 100%) !important;
  border-radius: 0 0 18px 18px !important;
  border: none !important;
}

.health-portal .health-bottom-cta {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%) !important;
  border: none !important;
}

.health-portal .health-submit-icon {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(2,132,199,0.25) !important;
}

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

.health-portal .health-submit-btn-alt {
  background: #ffffff !important;
  border: 1px solid #bae6fd !important;
  box-shadow: none !important;
}

/* Restore hover effects */
.health-portal .health-body-card:hover {
  box-shadow: 0 4px 16px rgba(2,132,199,0.08) !important;
  transform: translateY(-2px) !important;
}

.health-portal .health-feat-card:hover {
  box-shadow: 0 8px 24px rgba(2,132,199,0.1) !important;
  transform: translateY(-3px) !important;
}

.health-portal .health-hero-stat:hover {
  box-shadow: 0 4px 16px rgba(2,132,199,0.1) !important;
  transform: translateY(-2px) !important;
}

/* Restore social button styles */
.health-portal .health-social-btn {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 10px !important;
}

/* Restore tag/badge backgrounds */
.health-portal .health-feat-tag {
  background: #0284c7 !important;
  border-radius: 6px !important;
  border: none !important;
}

.health-portal .health-news-tag {
  background: rgba(2,132,199,0.1) !important;
  border-radius: 5px !important;
  border: none !important;
}

.health-portal .health-hero-badge {
  background: rgba(2,132,199,0.1) !important;
  border-radius: 20px !important;
  border: none !important;
}

/* Restore placeholder backgrounds */
.health-portal .health-feat-placeholder {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe, #cffafe) !important;
  border: none !important;
}

/* Restore body name colors */
.health-portal .health-body-name {
  color: #0284c7 !important;
}

/* ═══ DARK MODE MOBILE ═══ */
body.dark .health-portal .health-body-card,
body.dark .health-portal .health-feat-card,
body.dark .health-portal .health-hero-stat {
  background: transparent !important;
  border-color: rgba(2,132,199,0.2) !important;
}

body.dark .health-portal .health-hero {
  background: linear-gradient(135deg, #0c1929 0%, #0f172a 25%, #0c1e2e 50%, #0f1f1d 75%, #1a1433 100%) !important;
}

body.dark .health-portal .health-feat-placeholder {
  background: linear-gradient(135deg, #0c1929, #0f1e2e) !important;
}

body.dark .health-portal .health-submit-cta {
  background: transparent !important;
}

body.dark .health-portal .health-submit-btn-alt {
  background: #0f172a !important;
  border-color: rgba(2,132,199,0.15) !important;
}

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

body.dark .health-portal .health-news-card:not(:last-child)::after {
  background: linear-gradient(to right, transparent, #475569 20%, #475569 80%, transparent) !important;
}

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