/* ================================================
   ClinicalJunior.com - 2025 Redesign
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2338;
  --navy-mid: #1e4876;
  --blue: #2472a8;
  --blue-light: #4a9fd4;
  --teal: #0097a7;
  --teal-light: #26b7c7;
  --white: #ffffff;
  --bg: #f0f4f8;
  --bg-warm: #f8f9fc;
  --text: #1e3248;
  --text-muted: #4a6177;
  --text-light: #7e97ad;
  --border: #ccd9e6;
  --border-light: #e2eaf2;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #c0392b;
  --info-bg: #ebf5fb;
  --warn-bg: #fef9e7;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(26,58,92,0.08);
  --shadow-md: 0 4px 12px rgba(26,58,92,0.10);
  --shadow-lg: 0 8px 24px rgba(26,58,92,0.14);
  --t: 0.2s ease;
}

/* == RESET == */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.5em; }
hr { border: none; border-top: 1px solid var(--border-light); margin: 2.5rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-light); }
th { background: var(--bg); font-weight: 600; color: var(--navy); }
tr:hover td { background: var(--bg-warm); }

/* == TYPOGRAPHY == */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--navy-mid); }
h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1.25rem; }
strong, b { font-weight: 600; }
blockquote { border-left: 4px solid var(--teal); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--info-bg); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; color: var(--navy); }
code { font-family: 'Courier New', monospace; font-size: 0.875em; background: var(--bg); padding: 0.15em 0.4em; border-radius: var(--r-sm); }

/* == LAYOUT == */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.page-content { padding: 3rem 0; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }

/* == SITE HEADER == */
.site-header { background: var(--white); border-bottom: 3px solid var(--teal); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-top { padding: 0.75rem 0; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.site-logo img { max-height: 70px; width: auto; object-fit: contain; }
.logo-fallback { display: flex; flex-direction: column; }
.logo-fallback .site-name { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.logo-fallback .site-tagline { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }
.header-search form { display: flex; gap: 0.5rem; }
.header-search input[type="text"] { padding: 0.45rem 1rem; border: 2px solid var(--border); border-radius: var(--r-full); font-family: var(--font); font-size: 0.875rem; width: 210px; outline: none; transition: border-color var(--t); }
.header-search input[type="text"]:focus { border-color: var(--blue); }
.btn-search { background: var(--navy); color: white; border: none; padding: 0.45rem 1rem; border-radius: var(--r-full); cursor: pointer; font-size: 0.85rem; font-weight: 500; font-family: var(--font); transition: background var(--t); }
.btn-search:hover { background: var(--blue); }

/* == NAVIGATION == */
nav.main-nav { background: var(--navy); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.nav-links { display: flex; list-style: none; padding: 0; margin: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 0 1.1rem; height: 50px; line-height: 50px; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500; transition: background var(--t), color var(--t); white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li > a.active { background: rgba(255,255,255,0.12); color: white; }
.nav-links > li > a.nav-cta { background: var(--teal); color: white; margin: 9px 0.5rem; height: 32px; line-height: 32px; border-radius: var(--r-full); padding: 0 1.2rem; font-weight: 600; font-size: 0.85rem; }
.nav-links > li > a.nav-cta:hover { background: var(--teal-light); }
.nav-links > li .dropdown { display: none; position: absolute; top: 100%; left: 0; background: white; border-radius: 0 var(--r-md) var(--r-md) var(--r-md); box-shadow: var(--shadow-lg); min-width: 230px; z-index: 200; overflow: hidden; border-top: 3px solid var(--teal); }
.nav-links > li:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown li a { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.2rem; color: var(--text) !important; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); transition: background var(--t); height: auto; line-height: 1.5; }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--bg); color: var(--navy) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: white; font-size: 1.4rem; align-items: center; }

/* == HERO (home page) == */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%); padding: 4rem 0; color: white; }
.hero-content { max-width: 660px; }
.hero h1 { font-size: 2.6rem; color: white; margin-bottom: 1rem; line-height: 1.15; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.5rem; border-radius: var(--r-full); font-weight: 600; font-size: 0.95rem; font-family: var(--font); cursor: pointer; transition: all var(--t); border: 2px solid transparent; text-decoration: none; }
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-light); color: white; }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--navy-mid); color: white; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* == PAGE HEADER (inner pages) == */
.page-header { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 2.5rem 0; color: white; }
.page-header h1 { color: white; font-size: 1.9rem; margin-bottom: 0.5rem; }
.page-header p.lead { color: rgba(255,255,255,0.78); font-size: 1rem; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; margin-bottom: 1rem; opacity: 0.75; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { opacity: 0.4; }

/* == CARD GRID == */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: white; border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: box-shadow var(--t), transform var(--t); text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.card-icon { width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; flex-shrink: 0; }
.icon-ent { background: #e8f4fd; color: #1a6fa8; }
.icon-psych { background: #e8faf0; color: #1e8449; }
.icon-cardio { background: #fdeaea; color: #a93226; }
.icon-exam { background: #fef9e7; color: #b7770d; }
.icon-surgery { background: #f4ecf7; color: #6c3483; }
.icon-anaes { background: #eafaf1; color: #148f77; }
.icon-st3 { background: #fef0e7; color: #ca6f1e; }
.icon-news { background: #e9f7f7; color: #0097a7; }
.card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--navy); }
.card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.card-arrow { font-size: 0.85rem; font-weight: 600; color: var(--blue); margin-top: auto; }
.article-count { font-size: 0.78rem; background: var(--bg); padding: 0.2em 0.6em; border-radius: var(--r-full); color: var(--text-muted); display: inline-block; margin-top: 0.5rem; }

/* == ARTICLE / CONTENT PAGES == */
.article-wrap { background: white; border-radius: var(--r-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.article-wrap h2 { border-bottom: 2px solid var(--border-light); padding-bottom: 0.75rem; }
.article-wrap h2:first-of-type { margin-top: 0; }
.article-wrap p { color: var(--text); }
.article-wrap ul, .article-wrap ol { margin-bottom: 1.25rem; }
.article-wrap li { margin-bottom: 0.4rem; }
.article-wrap a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-wrap a:hover { color: var(--navy); }
.article-wrap img { border-radius: var(--r-md); box-shadow: var(--shadow-md); margin: 1.5rem auto; }
.img-right { float: right; margin: 0 0 1.5rem 2rem; max-width: 280px; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.img-left { float: left; margin: 0 2rem 1.5rem 0; max-width: 280px; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.clearfix::after { content: ''; display: table; clear: both; }
.figure { margin: 2rem 0; text-align: center; }
.figure img { margin: 0 auto; max-width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.figure figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* == CALLOUT BOXES == */
.callout { border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 0.5rem; }
.callout-info { background: var(--info-bg); border-color: var(--blue); }
.callout-warning { background: var(--warn-bg); border-color: var(--warning); }
.callout-danger { background: #fdedec; border-color: var(--danger); }
.callout-success { background: #eafaf1; border-color: var(--success); }

/* == FAQ ACCORDION == */
.faq-section { background: white; border-radius: var(--r-lg); padding: 2rem 2.5rem; margin: 3rem 0; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.faq-section > h2 { margin-top: 0; font-size: 1.35rem; border-bottom: 2px solid var(--border-light); padding-bottom: 1rem; margin-bottom: 0.5rem; }
details { border-bottom: 1px solid var(--border-light); }
details:last-child { border-bottom: none; }
summary { padding: 1rem 0.25rem; cursor: pointer; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: space-between; list-style: none; font-size: 0.95rem; transition: color var(--t); user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--blue); min-width: 24px; text-align: right; flex-shrink: 0; transition: transform var(--t); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--blue); }
.faq-answer { padding: 0.25rem 0.25rem 1.25rem; color: var(--text); font-size: 0.95rem; line-height: 1.75; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.5em; }
.faq-answer li { margin-bottom: 0.35rem; }

/* == REFERENCES == */
.references-section { background: var(--bg); border-radius: var(--r-lg); padding: 2rem 2.5rem; margin: 3rem 0; border: 1px solid var(--border); }
.references-section > h2 { margin-top: 0; font-size: 1.2rem; border-bottom: 2px solid var(--border); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.ref-list { list-style: none; padding: 0; counter-reset: ref; }
.ref-list li { counter-increment: ref; padding: 0.6rem 0 0.6rem 2.5rem; position: relative; font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid var(--border-light); line-height: 1.55; }
.ref-list li:last-child { border-bottom: none; }
.ref-list li::before { content: counter(ref) '.'; position: absolute; left: 0; font-weight: 700; color: var(--blue); }
.ref-list li a { color: var(--blue); word-break: break-all; }

/* == AUTHOR CARD (sidebar) == */
.author-card { background: white; border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); border-top: 4px solid var(--teal); margin-bottom: 1.5rem; }
.author-card .label { font-size: 0.75rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.author-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.author-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.author-bio { font-size: 0.875rem; color: var(--text); margin-bottom: 1.25rem; line-height: 1.65; }
.author-links { display: flex; flex-direction: column; gap: 0.5rem; }
.author-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--blue); font-weight: 500; padding: 0.5rem 0.75rem; border-radius: var(--r-md); background: var(--bg); transition: all var(--t); }
.author-link:hover { background: var(--navy); color: white; }

/* == SIDEBAR WIDGETS == */
.widget { background: white; border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 1.5rem; }
.widget h3 { margin: 0 0 1rem; font-size: 1rem; color: var(--navy); border-bottom: 2px solid var(--border-light); padding-bottom: 0.75rem; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 0.875rem; color: var(--blue); display: flex; align-items: center; gap: 0.4rem; }
.widget ul li a:hover { color: var(--navy); }

/* == NEWS & RESEARCH ITEMS == */
.news-item { background: white; border-radius: var(--r-lg); padding: 2rem 2.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); border-left: 4px solid var(--navy); }
.news-item.research { border-left-color: var(--teal); }
.news-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.news-date { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.news-tag { font-size: 0.73rem; background: var(--bg); color: var(--text-muted); padding: 0.2em 0.65em; border-radius: var(--r-full); font-weight: 600; }
.news-item h2 { font-size: 1.3rem; margin: 0 0 1rem; border-bottom: none; padding-bottom: 0; }
.news-item p { font-size: 0.95rem; margin-bottom: 1rem; }
.news-item p:last-child { margin-bottom: 0; }
.news-item a { color: var(--blue); }
.news-item a:hover { color: var(--navy); }

/* == SPECIALTY INDEX PAGES == */
.specialty-intro { background: white; border-radius: var(--r-lg); padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.specialty-intro p { margin-bottom: 0; }
.topic-group { background: white; border-radius: var(--r-lg); padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.topic-group h2 { font-size: 1.25rem; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border-light); }
.topic-list { list-style: none; padding: 0; }
.topic-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border-light); }
.topic-list li:last-child { border-bottom: none; }
.topic-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.topic-list li a { color: var(--blue); font-weight: 500; flex: 1; font-size: 0.9rem; }
.topic-list li a:hover { color: var(--navy); }
.topic-list .article-date { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; }

/* == LINKS PAGE == */
.links-group { background: white; border-radius: var(--r-lg); padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.links-group h2 { font-size: 1.2rem; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border-light); }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border-light); }
.link-list li:last-child { border-bottom: none; }
.link-list li a { color: var(--blue); font-weight: 500; font-size: 0.9rem; }
.link-list li a:hover { color: var(--navy); }
.link-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* == ST3 PAGE == */
.st3-box { background: white; border-radius: var(--r-lg); padding: 1.75rem 2rem; margin-bottom: 1.25rem; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); border-left: 4px solid var(--warning); }
.st3-box h3 { margin-top: 0; font-size: 1.15rem; }
.interview-q { background: var(--info-bg); border-radius: var(--r-md); padding: 1.25rem; margin: 1rem 0; border: 1px solid var(--border); }
.interview-q .q-label { font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; font-size: 0.95rem; }
.interview-q .q-label::before { content: 'Q: '; color: var(--blue); }
.interview-q .a-label { font-size: 0.95rem; }
.interview-q .a-label::before { content: 'A: '; font-weight: 700; color: var(--teal); }

/* == HOME SECTIONS == */
.home-section { padding: 3.5rem 0; }
.home-section.alt { background: white; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 1.7rem; margin: 0 0 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.update-feed { list-style: none; padding: 0; }
.update-feed li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.update-feed li:last-child { border-bottom: none; }
.update-date { min-width: 80px; font-size: 0.78rem; font-weight: 600; color: var(--text-light); padding-top: 2px; white-space: nowrap; }
.vik-section { background: var(--navy-dark); color: white; padding: 3rem 0; }
.vik-section h2 { color: white; }
.vik-section p { color: rgba(255,255,255,0.8); }
.vik-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.vik-link { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); color: white; padding: 0.6rem 1.2rem; border-radius: var(--r-full); font-size: 0.9rem; font-weight: 500; transition: background var(--t); }
.vik-link:hover { background: var(--teal); color: white; }

/* == FOOTER == */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .f-name { font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { color: rgba(255,255,255,0.55); font-size: 1.1rem; transition: color var(--t); }
.footer-social a:hover { color: white; }
footer h4 { color: white; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color var(--t); }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.8rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: white; }
.footer-disclaimer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.07); font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* == UTILITY == */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; padding: 0.2em 0.65em; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 600; }
.badge-navy { background: var(--navy); color: white; }
.badge-teal { background: var(--teal); color: white; }
.badge-orange { background: var(--warning); color: white; }
.back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--navy); color: white; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-md); transition: all var(--t); opacity: 0; pointer-events: none; z-index: 500; border: none; font-family: var(--font); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--blue); }

/* == PRINT == */
@media print {
  .site-header, nav.main-nav, footer, .back-to-top, .author-card, .sidebar, .faq-section { display: none; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: black; }
  a { color: black; }
  .page-header { background: none; padding: 0; }
  .page-header h1 { color: black; }
  .article-wrap { box-shadow: none; border: none; padding: 0; }
}

/* == RESPONSIVE == */
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 2.5rem 0; }
  .header-search { display: none; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); z-index: 300; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links > li > a { height: auto; line-height: 1.5; padding: 0.75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links > li > a.nav-cta { margin: 0.75rem 1rem; }
  .dropdown { display: none !important; }
  .nav-toggle { display: flex; }
  nav.main-nav .container { position: relative; }
  .nav-inner { height: 48px; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
  .img-right, .img-left { float: none; max-width: 100%; margin: 1rem 0; }
  .article-wrap { padding: 1.5rem; }
  .faq-section { padding: 1.5rem; }
  .news-item { padding: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .page-content { padding: 2rem 0; }
  .home-section { padding: 2.5rem 0; }
}
