/* Smart Health Reporter — Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b2a;
  --navy-light: #1a2f4a;
  --red: #c0392b;
  --red-hover: #a93226;
  --gray-bg: #f4f6f8;
  --gray-mid: #e8ecf0;
  --gray-text: #6b7280;
  --dark-text: #1f2937;
  --white: #ffffff;
  --border: #dde3ea;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 8px;
}
.btn {
  display: inline-block; padding: 10px 22px;
  background: var(--red); color: var(--white);
  font-size: 13px; font-weight: 600; border-radius: 3px;
  transition: background 0.2s;
}
.btn:hover { background: var(--red-hover); color: var(--white); }
.divider { border: none; border-top: 1px solid var(--border); margin: 30px 0; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: #9ab0c8;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #1e3a5a;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.topbar .topbar-date { font-weight: 400; }
.topbar .topbar-links a {
  color: #9ab0c8; margin-left: 18px; font-size: 12px;
}
.topbar .topbar-links a:hover { color: var(--white); }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  padding: 20px 0 0;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 46px; height: 46px; background: var(--red);
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 26px; height: 26px; fill: var(--white); }
.logo-text .name {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.5px; line-height: 1.1;
}
.logo-text .tagline {
  font-size: 11px; color: var(--gray-text);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.header-search {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.header-search input {
  border: none; outline: none; padding: 9px 14px;
  font-size: 14px; width: 240px; color: var(--dark-text);
  background: var(--white);
}
.header-search button {
  background: var(--navy); border: none; cursor: pointer;
  padding: 9px 14px; color: var(--white);
}
.header-search button svg { width: 16px; height: 16px; fill: var(--white); }

/* ── NAVIGATION ── */
.main-nav {
  background: var(--navy);
}
.nav-list {
  display: flex; align-items: center;
}
.nav-list li a {
  display: block; padding: 13px 18px;
  color: #c5d8ea; font-size: 13px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.nav-list li a:hover,
.nav-list li a.active {
  background: var(--red); color: var(--white);
}

/* ── BREAKING BAR ── */
.breaking-bar {
  background: var(--red);
  padding: 9px 0;
  font-size: 13px;
}
.breaking-bar .container {
  display: flex; align-items: center; gap: 14px;
}
.breaking-tag {
  background: var(--white); color: var(--red);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.breaking-text { color: var(--white); }
.breaking-text a { color: var(--white); text-decoration: underline; }

/* ── HERO / FEATURED ── */
.hero { padding: 36px 0 20px; background: var(--white); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto auto;
  gap: 24px;
}
.hero-main {
  grid-column: 1; grid-row: 1 / 3;
  position: relative;
}
.hero-main .article-img {
  width: 100%; height: 380px; object-fit: cover; border-radius: 4px;
  background: linear-gradient(135deg, #1a2f4a 0%, #2d6a8a 100%);
}
.hero-main .article-img-placeholder {
  width: 100%; height: 380px; border-radius: 4px;
  background: linear-gradient(135deg, #1a2f4a 0%, #2d6a8a 100%);
  display: flex; align-items: flex-end; padding: 24px;
}
.hero-main .article-body { padding-top: 16px; }
.hero-main .article-title {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700; line-height: 1.25;
  color: var(--navy); margin: 8px 0 10px;
}
.hero-main .article-title a:hover { color: var(--red); }
.hero-main .article-excerpt {
  font-size: 16px; color: #4b5563; line-height: 1.65;
}

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 14px; border-bottom: 1px solid var(--border); padding-bottom: 20px;
}
.side-card:last-child { border-bottom: none; }
.side-card .card-img {
  width: 110px; height: 80px; object-fit: cover; border-radius: 3px;
  background: linear-gradient(135deg, #2d4a6a 0%, #3a7a9a 100%);
  flex-shrink: 0;
}
.side-card .card-img-placeholder {
  width: 110px; height: 80px; border-radius: 3px; flex-shrink: 0;
}
.side-card .card-title {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700; line-height: 1.3;
  color: var(--navy);
}
.side-card .card-title a:hover { color: var(--red); }
.side-card .card-meta { font-size: 12px; color: var(--gray-text); margin-top: 6px; }

/* ── ARTICLE META ── */
.article-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--gray-text); flex-wrap: wrap;
}
.article-meta .author { font-weight: 600; color: var(--navy); }
.article-meta .sep { color: var(--border); }
.article-meta .date { }
.article-meta .read-time { }
.badge {
  display: inline-block; padding: 3px 9px;
  border-radius: 2px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-red { background: var(--red); color: var(--white); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-gray { background: var(--gray-mid); color: var(--gray-text); }

/* ── MAIN CONTENT LAYOUT ── */
.content-section { padding: 40px 0; }
.content-section.gray-bg { background: var(--gray-bg); }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: var(--navy);
}
.section-header a {
  font-size: 13px; color: var(--red); font-weight: 600;
}
.section-header a:hover { color: var(--red-hover); }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── ARTICLE CARD ── */
.article-card { }
.article-card .card-img-full {
  width: 100%; height: 180px; object-fit: cover; border-radius: 4px;
  background: linear-gradient(135deg, #1a3a5a 0%, #2a6a8a 100%);
  margin-bottom: 14px;
}
.article-card .card-img-placeholder {
  width: 100%; height: 180px; border-radius: 4px;
  margin-bottom: 14px;
}
.article-card .card-category {
  font-size: 11px; font-weight: 700; color: var(--red);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.article-card .card-title {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700; line-height: 1.35;
  color: var(--navy); margin-bottom: 8px;
}
.article-card .card-title a:hover { color: var(--red); }
.article-card .card-excerpt {
  font-size: 14px; color: #6b7280; line-height: 1.6; margin-bottom: 10px;
}
.article-card .card-meta {
  font-size: 12px; color: var(--gray-text);
}

/* Gradient placeholders for article images */
.grad-1 { background: linear-gradient(135deg, #1a3a5a 0%, #2a7a6a 100%); }
.grad-2 { background: linear-gradient(135deg, #2d1a5a 0%, #5a2a7a 100%); }
.grad-3 { background: linear-gradient(135deg, #1a3a1a 0%, #2a6a3a 100%); }
.grad-4 { background: linear-gradient(135deg, #5a1a1a 0%, #8a3a2a 100%); }
.grad-5 { background: linear-gradient(135deg, #1a4a5a 0%, #2a6a9a 100%); }
.grad-6 { background: linear-gradient(135deg, #3a2a1a 0%, #7a5a2a 100%); }
.grad-7 { background: linear-gradient(135deg, #1a2a4a 0%, #2a4a8a 100%); }
.grad-8 { background: linear-gradient(135deg, #1a4a2a 0%, #2a8a5a 100%); }
.grad-9 { background: linear-gradient(135deg, #4a1a3a 0%, #8a2a6a 100%); }
.grad-10 { background: linear-gradient(135deg, #2a1a4a 0%, #5a3a8a 100%); }

/* ── SIDEBAR ── */
.sidebar { }
.sidebar-widget {
  background: var(--gray-bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 20px; margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 14px;
}
.sidebar-list li {
  border-bottom: 1px solid var(--border); padding: 10px 0;
  font-size: 14px; line-height: 1.45;
}
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list li a { color: var(--navy); font-weight: 600; }
.sidebar-list li a:hover { color: var(--red); }
.sidebar-list .meta { display: block; font-size: 12px; color: var(--gray-text); margin-top: 3px; }
.newsletter-box { text-align: center; }
.newsletter-box p { font-size: 14px; color: #4b5563; margin-bottom: 14px; line-height: 1.5; }
.newsletter-box input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 14px; margin-bottom: 8px; outline: none;
}
.newsletter-box input[type="email"]:focus { border-color: var(--navy); }
.newsletter-box .btn { width: 100%; text-align: center; }
.newsletter-box .disclaimer { font-size: 11px; color: var(--gray-text); margin-top: 8px; }

/* ── AD UNIT ── */
.ad-unit {
  background: var(--gray-bg); border: 1px dashed var(--border);
  text-align: center; padding: 40px 20px; color: var(--gray-text);
  font-size: 12px; border-radius: 3px;
}

/* ── ARTICLE PAGE ── */
.article-page { padding: 40px 0; }
.article-page .article-header { margin-bottom: 28px; }
.article-page .article-headline {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 700; line-height: 1.2;
  color: var(--navy); margin: 12px 0 16px;
}
.article-page .article-subhead {
  font-size: 19px; color: #4b5563; line-height: 1.55; margin-bottom: 18px;
  font-family: var(--font-serif); font-style: italic;
}
.article-page .article-byline {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-light); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: 18px;
  font-weight: 700; flex-shrink: 0;
}
.byline-info .author-name {
  font-weight: 700; font-size: 14px; color: var(--navy);
}
.byline-info .author-title {
  font-size: 13px; color: var(--gray-text);
}
.byline-info .pub-date { font-size: 12px; color: var(--gray-text); margin-top: 2px; }
.article-hero-img {
  width: 100%; height: 440px; object-fit: cover; border-radius: 4px;
  margin-bottom: 10px;
}
.article-hero-placeholder {
  width: 100%; height: 440px; border-radius: 4px; margin-bottom: 10px;
}
.img-caption {
  font-size: 12px; color: var(--gray-text); margin-bottom: 28px;
  font-style: italic;
}
.article-body {
  font-family: var(--font-serif);
  font-size: 18px; line-height: 1.8; color: #1f2937;
}
.article-body h2 {
  font-size: 24px; font-weight: 700; color: var(--navy);
  margin: 36px 0 14px; font-family: var(--font-serif);
}
.article-body h3 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin: 28px 0 10px; font-family: var(--font-serif);
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol {
  padding-left: 28px; margin-bottom: 20px;
}
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 22px; margin: 28px 0;
  background: var(--gray-bg); border-radius: 0 4px 4px 0;
  font-style: italic; color: #374151;
}
.article-body .key-fact {
  background: #eef4fb; border: 1px solid #c5d8ea;
  border-radius: 4px; padding: 16px 20px; margin: 24px 0;
}
.article-body .key-fact strong { color: var(--navy); }
.article-sources {
  font-size: 13px; color: var(--gray-text);
  border-top: 1px solid var(--border); padding-top: 20px; margin-top: 36px;
  font-family: var(--font-sans);
}
.article-sources h4 { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.article-sources ol { padding-left: 20px; }
.article-sources ol li { margin-bottom: 6px; list-style: decimal; }

/* ── AUTHOR BIO BOX ── */
.author-bio-box {
  background: var(--gray-bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px; margin: 36px 0;
  display: flex; gap: 20px; font-family: var(--font-sans);
}
.author-bio-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy-light); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: 24px;
  font-weight: 700; flex-shrink: 0;
}
.author-bio-text .name {
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.author-bio-text .credentials {
  font-size: 13px; color: var(--red); margin-bottom: 8px;
}
.author-bio-text p { font-size: 14px; color: #4b5563; line-height: 1.6; }

/* ── STATIC PAGES ── */
.static-page { padding: 50px 0; }
.static-page .page-title {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.static-page .page-subtitle {
  font-size: 16px; color: var(--gray-text); margin-bottom: 30px;
}
.static-page .page-body {
  font-size: 15px; line-height: 1.8; color: #374151;
  max-width: 820px;
}
.static-page .page-body h2 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: var(--navy);
  margin: 32px 0 12px; border-bottom: 2px solid var(--red); padding-bottom: 6px;
}
.static-page .page-body h3 {
  font-size: 18px; font-weight: 700; color: var(--navy); margin: 22px 0 8px;
}
.static-page .page-body p { margin-bottom: 16px; }
.static-page .page-body ul, .static-page .page-body ol {
  padding-left: 24px; margin-bottom: 16px;
}
.static-page .page-body ul li { list-style: disc; margin-bottom: 6px; }
.static-page .page-body ol li { list-style: decimal; margin-bottom: 6px; }
.static-page .page-body a { color: var(--red); text-decoration: underline; }
.info-box {
  background: #eef4fb; border-left: 4px solid var(--navy);
  padding: 16px 20px; border-radius: 0 4px 4px 0; margin: 20px 0;
}
.info-box p { margin-bottom: 0; font-size: 14px; }
.warning-box {
  background: #fef3f2; border-left: 4px solid var(--red);
  padding: 16px 20px; border-radius: 0 4px 4px 0; margin: 20px 0;
}
.warning-box p { margin-bottom: 0; font-size: 14px; }

/* ── FOOTER ── */
.footer-top {
  background: var(--navy); color: #9ab0c8; padding: 50px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px; line-height: 1.65; margin-bottom: 16px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--white);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 14px; border-bottom: 1px solid #2a4a6a; padding-bottom: 8px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #9ab0c8; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  background: #0a1520; color: #6b88a0;
  padding: 18px 0; font-size: 12px;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-disclaimer {
  background: #081018; color: #4a6a82;
  padding: 14px 0; font-size: 11px; line-height: 1.6;
}
.footer-compliance-links {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.footer-compliance-links a { color: #6b88a0; font-size: 12px; }
.footer-compliance-links a:hover { color: var(--white); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px 0; font-size: 13px; color: var(--gray-text);
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 8px; }

/* ── TAGS ── */
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.tag {
  display: inline-block; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 12px; color: var(--gray-text);
  background: var(--white);
}
.tag:hover { border-color: var(--red); color: var(--red); }

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; gap: 6px; margin: 30px 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 14px; color: var(--navy);
}
.pagination a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── SEARCH BOX ── */
.search-inline {
  display: flex; border: 2px solid var(--navy); border-radius: 4px; overflow: hidden;
}
.search-inline input {
  flex: 1; padding: 12px 16px; border: none; outline: none; font-size: 15px;
}
.search-inline button {
  background: var(--navy); border: none; cursor: pointer;
  padding: 12px 18px; color: var(--white); font-weight: 600; font-size: 14px;
}
.search-inline button:hover { background: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .logo-text .name { font-size: 20px; }
  .header-search { display: none; }
  .nav-list { flex-wrap: wrap; }
  .nav-list li a { padding: 10px 12px; font-size: 12px; }
  .hero-side { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .article-page .article-headline { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: 1fr; }
  .article-page .article-headline { font-size: 22px; }
}
