/* ═══════════════════════════════════════
   Fix The Logic — style.css v4
   fixthelogic.in  |  Poppins 17px
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0056b3;
  --blue-dark:  #003d80;
  --blue-light: #e8f0fb;
  --gray-900:   #1a1a1a;
  --gray-700:   #333333;
  --gray-500:   #666666;
  --gray-300:   #cccccc;
  --gray-100:   #f5f5f5;
  --footer-bg:  #1e2329;
  --white:      #ffffff;
  --font-head:  'DM Serif Display', Georgia, serif;
  --font-body:  'Poppins', system-ui, sans-serif;
  --max-w:      1200px;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--gray-700); background: var(--white); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue-dark); }
img { display: block; max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── HEADER ─────────────────────────── */
/* ── TOP BAR ─────────────────────────── */
.top-bar {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 34px;
  gap: 0;
}
.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.top-bar-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 0 13px;
  height: 34px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.top-bar-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.top-bar-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-300); box-shadow: 0 1px 6px rgba(0,0,0,.06); position: relative; }
.site-header-wrap { position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--gray-900); letter-spacing: -0.3px; text-decoration: none; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-700); padding: 6px 12px; border-radius: var(--radius); transition: background 0.15s, color 0.15s; white-space: nowrap; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; }

/* ── HERO ───────────────────────────── */
.hero { background: var(--blue); color: var(--white); padding: 72px 24px 68px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; padding: 4px 14px; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem,5vw,3.4rem); line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 18px; }
.hero p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.87); max-width: 580px; margin: 0 auto 28px; }
.hero-search { display: flex; max-width: 480px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.hero-search input { flex: 1; border: none; padding: 14px 18px; font-family: var(--font-body); font-size: 0.9rem; outline: none; color: var(--gray-900); min-width: 0; }
.hero-search button { background: var(--gray-900); color: var(--white); border: none; padding: 14px 22px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.hero-search button:hover { background: #333; }

/* ── PAGE BANNER ─────────────────────── */
.page-banner { background: var(--blue); color: var(--white); padding: 48px 24px 44px; text-align: center; }
.page-banner .breadcrumb { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-banner .breadcrumb a:hover { color: var(--white); text-decoration: none; }
.page-banner h1 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.15; margin-bottom: 12px; }
.page-banner p { font-size: 1rem; color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 auto; }

/* ── CAT STRIP ───────────────────────── */
.cat-strip { background: var(--gray-100); border-bottom: 1px solid var(--gray-300); padding: 12px 0; overflow-x: auto; }
.cat-strip-inner { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.cat-strip .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gray-500); margin-right: 4px; flex-shrink: 0; }
.cat-pill { font-size: 0.75rem; font-weight: 600; color: var(--blue); background: var(--white); border: 1px solid var(--gray-300); border-radius: 20px; padding: 5px 14px; transition: 0.15s; text-decoration: none; flex-shrink: 0; }
.cat-pill:hover { background: var(--blue); color: var(--white); border-color: var(--blue); text-decoration: none; }

/* ── LAYOUT ──────────────────────────── */
.main-section { padding: 48px 0 64px; }
.content-wrap { display: flex; gap: 40px; align-items: flex-start; }
.col-main { flex: 0 0 68%; min-width: 0; }
.section-title { font-family: var(--font-head); font-size: 1.4rem; color: var(--gray-900); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--blue); display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--gray-300); }

/* ── ARTICLE CARDS ───────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.article-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: 0 6px 24px rgba(0,86,179,.13); transform: translateY(-2px); }
.card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--blue-light); }
.card-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,var(--blue-light) 0%,#c8dbf5 100%); display: flex; align-items: center; justify-content: center; }
.card-thumb-placeholder svg { width: 48px; height: 48px; opacity: 0.35; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); background: var(--blue-light); border-radius: 4px; padding: 3px 8px; margin-bottom: 10px; width: fit-content; }
.card-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--gray-900); margin-bottom: 10px; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--blue); text-decoration: none; }
.card-excerpt { font-size: 0.84rem; color: var(--gray-500); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; flex: 1; }
.card-meta { font-size: 0.72rem; color: var(--gray-500); border-top: 1px solid var(--gray-100); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.card-meta .read-more { font-weight: 700; font-size: 0.72rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.empty-category { grid-column: 1/-1; text-align: center; padding: 56px 24px; background: var(--gray-100); border-radius: var(--radius); border: 1px dashed var(--gray-300); }
.empty-category h3 { font-family: var(--font-body); font-weight: 600; color: var(--gray-700); font-size: 1.1rem; margin-bottom: 8px; }
.empty-category p { color: var(--gray-500); font-size: 0.9rem; }

/* ── SIDEBAR ─────────────────────────── */
.col-sidebar { flex: 0 0 30%; min-width: 0; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.widget-head { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--white); background: var(--blue); padding: 11px 18px; }
.widget-body { padding: 18px; }
.widget-body p { font-size: 0.84rem; color: var(--gray-500); line-height: 1.65; }
.about-logo { font-family: var(--font-head); font-size: 1.2rem; color: var(--gray-900); margin-bottom: 10px; }
.about-logo span { color: var(--blue); }
.search-form { display: flex; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.search-form input { flex: 1; border: none; padding: 10px 14px; font-family: var(--font-body); font-size: 0.84rem; outline: none; color: var(--gray-700); background: var(--gray-100); min-width: 0; }
.search-form button { background: var(--blue); color: var(--white); border: none; padding: 10px 16px; cursor: pointer; font-size: 0.78rem; font-weight: 700; font-family: var(--font-body); transition: background 0.15s; white-space: nowrap; }
.search-form button:hover { background: var(--blue-dark); }

/* ── STATIC PAGES ────────────────────── */
.page-content-wrap { padding: 52px 0 72px; }
.page-article { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); }
.page-article h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.35rem; color: var(--gray-900); margin: 32px 0 12px; padding-top: 32px; border-top: 1px solid var(--gray-100); }
.page-article h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.page-article h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; color: var(--gray-900); margin: 24px 0 8px; }
.page-article p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 14px; }
.page-article ul, .page-article ol { padding-left: 22px; margin-bottom: 16px; }
.page-article li { font-size: 0.95rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 6px; }
.page-article strong { color: var(--gray-900); }
.info-box { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0; }
.info-box p { margin-bottom: 0; font-size: 0.9rem; color: var(--gray-700); }

/* ── CONTACT ─────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 36px; }
.contact-card { border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 22px 20px; text-align: center; background: var(--gray-100); }
.contact-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.contact-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--gray-900); margin-bottom: 6px; }
.contact-card p { font-size: 0.82rem; color: var(--gray-500); margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea { border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 10px 14px; font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-900); background: var(--white); outline: none; transition: border-color 0.15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,86,179,0.1); }
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-primary { display: inline-block; background: var(--blue); color: var(--white); border: none; padding: 13px 32px; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; cursor: pointer; letter-spacing: 0.03em; transition: background 0.15s; width: fit-content; }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }

/* ── ARTICLE PAGE ────────────────────── */
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; display: block; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.article-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0 18px; border-bottom: 1px solid var(--gray-100); margin-bottom: 28px; font-size: 0.78rem; color: var(--gray-500); }
.article-meta-bar .article-cat-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); background: var(--blue-light); border-radius: 4px; padding: 4px 10px; }
.article-meta-bar .meta-sep { color: var(--gray-300); }
.article-body h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; color: var(--gray-900); margin: 44px 0 16px; padding-top: 40px; border-top: 1px solid var(--gray-100); line-height: 1.25; }
.article-body h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: none; }
.article-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; color: var(--gray-900); margin: 28px 0 10px; padding-left: 14px; border-left: 3px solid var(--blue); }
.article-body p { font-size: 1rem; color: var(--gray-700); line-height: 1.85; margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 26px; margin-bottom: 20px; }
.article-body li { font-size: 0.97rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 8px; }
.article-body strong { color: var(--gray-900); font-weight: 600; }
.step-box { background: var(--white); border: 1px solid var(--gray-300); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 22px 0 30px; box-shadow: var(--shadow); }
.step-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--blue); color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; border-radius: 50%; flex-shrink: 0; }
.step-title { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--gray-900); }
.step-box p, .step-box li { font-size: 0.93rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 8px; }
.step-box ul, .step-box ol { padding-left: 22px; margin-top: 10px; margin-bottom: 4px; }
.warning-box { background: #fff8e1; border: 1px solid #ffc107; border-left: 4px solid #f57c00; border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 20px; margin: 16px 0; font-size: 0.9rem; color: #5d4037; line-height: 1.7; }
.warning-box strong { color: #e65100; }
.article-img-wrap { margin: 30px 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 16px rgba(0,0,0,.1); }
.article-img-wrap img { width: 100%; display: block; }
.article-img-caption { background: var(--gray-100); padding: 10px 16px; font-size: 0.78rem; color: var(--gray-500); text-align: center; font-style: italic; }
.video-embed-wrap { margin: 34px 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.12); background: #000; }
.video-embed-wrap .video-label { background: var(--blue); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 16px; display: flex; align-items: center; gap: 8px; }
.video-embed-wrap iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }
.summary-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.9rem; }
.summary-table th { background: var(--blue); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-table td { padding: 11px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); font-size: 0.9rem; }
.summary-table tr:nth-child(even) td { background: var(--gray-100); }
.diff-easy { color: #2e7d32; font-weight: 600; }
.diff-mod  { color: #f57c00; font-weight: 600; }
.diff-adv  { color: #c62828; font-weight: 600; }

/* ── TABLE OF CONTENTS ───────────────── */
.toc-box { background: var(--blue-light); border: 1px solid #c2d5ef; border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 0 0 36px; }
.toc-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 14px; }
.toc-list { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.toc-list li { font-size: 0.88rem; line-height: 1.5; }
.toc-list li a { color: var(--blue-dark); font-weight: 500; }
.toc-list li a:hover { color: var(--blue); text-decoration: underline; }

/* ── FAQ SECTION ─────────────────────── */
.faq-section { margin: 44px 0 36px; }
.faq-title { font-family: var(--font-body); font-weight: 700; font-size: 1.45rem; color: var(--gray-900); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.faq-item { border: 1px solid var(--gray-300); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--white); border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.97rem; font-weight: 600; color: var(--gray-900); text-align: left; transition: background 0.15s; }
.faq-question:hover { background: var(--blue-light); }
.faq-question[aria-expanded="true"] { background: var(--blue-light); color: var(--blue); }
.faq-icon { font-size: 1.3rem; font-weight: 400; color: var(--blue); flex-shrink: 0; transition: transform 0.2s; line-height: 1; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; background: var(--white); }
.faq-answer.open { display: block; }
.faq-answer p { font-size: 0.93rem; color: var(--gray-700); line-height: 1.8; margin: 12px 0 0; }

/* ── AUTHOR BOX ──────────────────────── */
.author-box { display: flex; gap: 22px; align-items: flex-start; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 24px 26px; margin-top: 40px; }
.author-avatar-wrap { flex-shrink: 0; }
.author-avatar { width: 64px; height: 64px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; }
.author-info { flex: 1; min-width: 0; }
.author-name-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.author-name-row h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--gray-900); }
.author-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); background: var(--blue-light); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.author-bio { font-size: 0.88rem; color: var(--gray-600, #555); line-height: 1.75; margin-bottom: 14px; }
.author-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.author-social-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--gray-300); border-radius: 20px; font-size: 0.78rem; font-weight: 600; color: var(--gray-700); text-decoration: none; transition: all 0.15s; background: var(--white); }
.author-social-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); text-decoration: none; }
.author-social-link svg { width: 15px; height: 15px; }

/* ── RELATED POSTS ───────────────────── */
.related-posts { margin-top: 44px; }
.related-posts h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--gray-900); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* ── FOOTER ──────────────────────────── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col .footer-logo { font-family: var(--font-head); font-size: 1.35rem; color: var(--white); margin-bottom: 12px; }
.footer-col .footer-logo span { color: #6aaef5; }
.footer-col p { font-size: 0.84rem; line-height: 1.75; margin-bottom: 16px; color: rgba(255,255,255,0.6); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.84rem; transition: color 0.15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-col ul li a::before { content: '›'; color: #6aaef5; font-size: 1rem; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: rgba(255,255,255,0.7); transition: all 0.15s; text-decoration: none; }
.footer-social-link:hover { background: var(--blue); border-color: var(--blue); color: var(--white); text-decoration: none; }
.footer-social-link svg { width: 16px; height: 16px; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 800px; margin: 0 auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.35); }


/* ── Focus / keyboard accessibility ─────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 960px) {
  .content-wrap { flex-direction: column; }
  .col-main, .col-sidebar { flex: none; width: 100%; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-bar-nav a { font-size: 0.62rem; padding: 0 8px; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-300); box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 12px 16px; gap: 2px; z-index: 200; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .nav-toggle { display: flex; }
  .articles-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 20px 44px; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-article { padding: 24px 20px; }
  .author-box { flex-direction: column; gap: 16px; }
  .author-name-row { flex-direction: column; gap: 6px; }
  .toc-box { padding: 16px 18px; }
}

/* ── Cookie Consent Banner ──────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1e2329;
  border-top: 3px solid var(--blue);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}
#cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p {
  flex: 1;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.82);
  margin: 0;
  line-height: 1.55;
  min-width: 240px;
}
.cookie-inner p a { color: #7ab3f5; text-decoration: underline; }
.cookie-inner p strong { color: #fff; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.88; }
.cookie-btn-accept { background: var(--blue); color: #fff; }
.cookie-btn-decline { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 16px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── AdSense Ad Units ─────────────────────────────────── */
.adsense-wrap {
  clear: both;
  text-align: center;
  margin: 28px auto;
  overflow: hidden;
  max-width: 100%;
}
.adsense-wrap ins {
  display: block;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .adsense-wrap {
    margin: 16px auto;
  }
}

/* ── Print ───────────────────────────── */
@media print {
  .site-header-wrap, .col-sidebar, .related-posts, .author-box, .faq-section, .adsense-wrap, #cookie-banner { display: none !important; }
  .content-wrap { display: block; }
  .col-main { width: 100%; }
  .article-body a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: var(--gray-500); }
  body { font-size: 12pt; }
}
