/* ══════════════════════════════════════════════
   INSURANCE PRO THEME — Clean, professional
   ══════════════════════════════════════════════ */
:root {
  --primary: #0047AB;
  --primary-dark: #003080;
  --accent: #00A86B;
  --accent-light: #e8f7f1;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #dde4ee;
  --text: #1c2b3a;
  --text-muted: #5a6e82;
  --text-light: #8a9fb5;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,71,171,0.07);
  --shadow-md: 0 4px 24px rgba(0,71,171,0.12);
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.site-title-link { text-decoration: none; display: flex; align-items: center; gap: 14px; }
.site-title-link::before {
  content: '🛡️';
  font-size: 1.6rem;
  flex-shrink: 0;
}
.header-inner h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.header-inner > p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
}
@media (max-width: 600px) { .header-inner > p { display: none; } }

/* ── Layout ── */
.content-layout {
  max-width: var(--max-w);
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  flex: 1;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Article ── */
article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
@media (max-width: 700px) { article { padding: 20px; } }

article h2 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

/* ── Metadata ── */
.crypto-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.crypto-metadata .read-time {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ── Hero image ── */
.article-hero-image {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.image-credit {
  font-size: 0.72rem;
  color: var(--text-light);
  padding: 6px 10px;
  background: var(--bg);
  text-align: right;
}

/* ── Article content ── */
.article-content { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
}
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--primary-dark); }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-content th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}
.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td { background: #f8fbff; }
.article-content tr:last-child td { border-bottom: none; }

/* ── Keyword tags ── */
.keyword-tags {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
}
.keyword-tags strong { color: var(--text-muted); margin-right: 4px; }
.tag {
  background: #e8f0fe;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #c5d8ff;
}

/* ── Related articles ── */
.related-articles {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 14px;
}
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.related-list li { padding-left: 14px; border-left: 3px solid var(--accent-light); }
.related-list a { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.related-list a:hover { color: var(--primary); text-decoration: underline; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
}
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sidebar-list li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { font-size: 0.85rem; font-weight: 600; color: var(--text); display: block; line-height: 1.4; }
.sidebar-list a:hover { color: var(--primary); }
.sidebar-date { font-size: 0.72rem; color: var(--text-light); margin-top: 3px; display: block; }

/* ── Homepage index ── */
.latest-articles {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px;
  flex: 1;
}
.latest-articles::before {
  content: 'Latest Insurance Guides';
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c5d8ff;
}
.article-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-card .meta time {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: #f0f4fb;
  padding: 2px 10px;
  border-radius: 4px;
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  flex: 1;
}
.article-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
  margin-top: auto;
}
.read-more-btn::after { content: '→'; }
.read-more-btn:hover { background: var(--primary-dark); text-decoration: none; }

/* ── Ad slot ── */
.ad-slot { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 20px; }

/* ── Footer ── */
footer {
  background: #1c2b3a;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.82rem;
  margin-top: auto;
}
footer p { max-width: var(--max-w); margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 600px) {
  article h2 { font-size: 1.45rem; }
  .latest-articles { padding: 20px; }
  .article-grid { grid-template-columns: 1fr; }
}
