/* ============================================================
   AFLM — Shared styles for content pages:
   sta-je-healthspan.html, kongres.html, genetski-testovi.html
   ============================================================ */

/* ---------- Generic content hero (article / landing pages) ---------- */
.content-hero { position: relative; background: radial-gradient(ellipse at 20% 0%, #12233b 0%, var(--navy-950) 62%); color: var(--text-light); padding: 64px 0 60px; overflow: hidden; text-align: center; }
.content-hero .eyebrow { justify-content: center; width: 100%; }
.content-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 14px; }
.content-hero .tagline { margin: 18px auto 0; max-width: 640px; font-size: 1.05rem; font-weight: 600; color: var(--gold-300); line-height: 1.6; }
.content-hero .meta { margin-top: 18px; font-size: 0.82rem; color: var(--text-muted-onnavy); }
.content-hero .hero-desc { max-width: 620px; margin: 20px auto 0; color: var(--text-muted-onnavy); line-height: 1.85; font-size: 0.95rem; }
.content-hero .cta-row { justify-content: center; display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.content-hero-image { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.content-hero-image img { width: 100%; display: block; }

/* ---------- Article typography ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; color: var(--ink); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 10px; color: var(--ink); font-family: var(--font-body); font-weight: 800; }
.article-body p { font-size: 0.98rem; line-height: 1.8; color: var(--text-body); margin-bottom: 18px; }
.article-body .quote-box { margin: 34px auto; }
.article-factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 8px; }
.article-factor { background: var(--bg-alt); border-radius: var(--radius-md); padding: 20px 20px 18px; }
.article-factor .ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border-soft); color: var(--gold-600); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.article-factor h4 { font-size: 0.92rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 800; }
.article-factor p { font-size: 0.84rem; margin-bottom: 0; line-height: 1.6; }
.article-checklist { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.article-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.6; color: var(--text-body); }
.article-checklist li svg { color: var(--gold-500); flex-shrink: 0; margin-top: 4px; }
.article-sources { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; padding: 18px 22px; background: var(--bg-alt); border-radius: var(--radius-md); }
.article-sources li { padding-left: 14px; position: relative; }
.article-sources li::before { content: "—"; position: absolute; left: 0; }
.article-note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 22px; }
.article-meta-bar { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 700px) { .article-factor-grid { grid-template-columns: 1fr; } }

/* ---------- Congress: funnel chain ---------- */
.funnel-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 34px 0; }
.funnel-step { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-light); background: var(--navy-800); border: 1px solid rgba(224,181,104,0.3); border-radius: 999px; padding: 10px 16px; }
.funnel-arrow { color: var(--gold-500); font-weight: 700; }

/* ---------- Congress: concept 4 pillars ---------- */
.concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.concept-card { background: var(--navy-900); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 24px 20px; color: var(--text-light); }
.concept-card .roman { color: var(--gold-400); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 8px; }
.concept-card h4 { font-size: 1rem; margin-bottom: 10px; }
.concept-card p { font-size: 0.84rem; color: var(--text-muted-onnavy); line-height: 1.6; }
@media (max-width: 900px) { .concept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .concept-grid { grid-template-columns: 1fr; } }

/* ---------- Congress: theme group + cards ---------- */
.theme-group { margin-top: 56px; }
.theme-group:first-child { margin-top: 0; }
.theme-group-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.theme-group-head .roman { color: var(--gold-600); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.theme-group-head h3 { font-size: 1.3rem; margin-top: 8px; }
.theme-group-head p { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }
.theme-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 18px; background: #fff; scroll-margin-top: 96px; }
.theme-card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.theme-card-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-950); color: var(--gold-400); font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.theme-card-title h4 { font-size: 1.08rem; color: var(--ink); font-family: var(--font-body); font-weight: 800; letter-spacing: 0.01em; }
.theme-card-title span { display: block; font-size: 0.82rem; color: var(--gold-600); font-weight: 700; margin-top: 2px; }
.theme-card > p.lead { font-size: 0.92rem; color: var(--text-body); line-height: 1.7; margin-bottom: 16px; }
.theme-card .areas-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.theme-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.theme-tags span { background: var(--bg-alt); border-radius: 999px; padding: 6px 13px; font-size: 0.78rem; color: var(--text-body); }
.theme-card .message { border-left: 3px solid var(--gold-500); padding: 4px 16px; font-size: 0.86rem; font-style: italic; color: var(--text-body); }

/* ---------- Congress: closing session ---------- */
.closing-session { text-align: center; max-width: 700px; margin: 0 auto; }
.closing-session p { font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.closing-manifesto { margin-top: 26px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--gold-300); line-height: 1.7; }

/* ---------- Congress: simple two-col list ---------- */
.two-col-list { columns: 2; gap: 40px; margin-top: 24px; }
.two-col-list li { font-size: 0.92rem; line-height: 1.9; break-inside: avoid; }
.two-col-list.on-navy-list li { color: var(--text-muted-onnavy); }
@media (max-width: 640px) { .two-col-list { columns: 1; } }

/* ---------- Congress: why-participate row ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 34px; }
.reason-item { text-align: center; }
.reason-item .ic { width: 54px; height: 54px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--border-soft); color: var(--gold-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.reason-item h4 { font-size: 0.88rem; margin-bottom: 8px; }
.reason-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .reasons-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } }
@media (max-width: 560px) { .reasons-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Congress: info rows (location / format) ---------- */
.info-rows { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 30px auto 0; }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 0.88rem; }
.info-row strong { color: var(--ink); }
.info-row span { color: var(--text-muted); text-align: right; }

/* ---------- Gene tests: intro grid ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.pill-list span { background: var(--bg-alt); border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; color: var(--text-body); border: 1px solid var(--border-soft); }

/* ---------- Gene tests: test card ---------- */
.gene-tests-list { display: flex; flex-direction: column; gap: 20px; }
.gene-test-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px 32px; background: #fff; scroll-margin-top: 96px; }
.gene-test-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.gene-test-num { font-size: 0.76rem; font-weight: 800; color: var(--text-muted); }
.gene-test-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-950); color: var(--gold-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gene-test-name { font-size: 1.25rem; color: var(--ink); }
.gene-test-tagline { font-size: 0.88rem; color: var(--gold-600); font-weight: 700; margin: 4px 0 16px 62px; }
.gene-test-card p.lead { font-size: 0.92rem; line-height: 1.75; margin-bottom: 18px; }
.gene-test-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 16px; }
.gene-test-cols h5 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.gene-test-cols ul { display: flex; flex-direction: column; gap: 7px; }
.gene-test-cols li { font-size: 0.85rem; color: var(--text-body); line-height: 1.5; padding-left: 14px; position: relative; }
.gene-test-cols li::before { content: "•"; position: absolute; left: 0; color: var(--gold-500); }
.gene-test-card .punchline { border-left: 3px solid var(--gold-500); padding: 2px 16px; font-size: 0.85rem; font-style: italic; color: var(--text-body); margin-top: 4px; }
.gene-test-card .note-box { background: #fdf6ea; border: 1px solid #ecd7ab; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.82rem; color: #7a5a1e; margin-top: 14px; }
.gene-test-card .note-box strong { display: block; margin-bottom: 4px; }
@media (max-width: 640px) { .gene-test-cols { grid-template-columns: 1fr; } .gene-test-tagline { margin-left: 0; } .gene-test-card-head { flex-wrap: wrap; } }

/* ---------- Gene tests: quick jump nav ---------- */
.gene-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 30px 0 0; }
.gene-jump a { font-size: 0.74rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border-soft); color: var(--text-body); }
.gene-jump a:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- Gene tests: goal → test map ---------- */
.goal-map { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 30px auto 0; }
.goal-map-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; background: var(--bg-alt); border-radius: var(--radius-sm); flex-wrap: wrap; }
.goal-map-row .goal { font-size: 0.86rem; color: var(--text-body); }
.goal-map-row .test { font-size: 0.82rem; font-weight: 800; color: var(--gold-600); text-align: right; }

/* ---------- Gene tests: process steps (horizontal) ---------- */
.process-h-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 34px; }
.process-h-step { text-align: center; }
.process-h-step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-950); color: var(--gold-400); font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.process-h-step h4 { font-size: 0.86rem; margin-bottom: 8px; }
.process-h-step p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .process-h-steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .process-h-steps { grid-template-columns: 1fr; } }

/* ---------- 3-column variants (process / concept grids) ---------- */
.process-h-steps.g3, .concept-grid.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .process-h-steps.g3, .concept-grid.g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-h-steps.g3, .concept-grid.g3 { grid-template-columns: 1fr; } }

/* ---------- Shared: limitations / disclaimer list ---------- */
.limits-list { max-width: 640px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 10px; }
.limits-list li { font-size: 0.88rem; color: var(--text-muted-onnavy); line-height: 1.6; padding-left: 18px; position: relative; }
.limits-list li::before { content: "×"; position: absolute; left: 0; color: var(--gold-400); font-weight: 800; }
