:root {
  --primary: #0b1f3a;
  --primary-dark: #08162b;
  --primary-soft: #162b4d;
  --text: #17202b;
  --muted: #5e6875;
  --line: #d9e0e8;
  --bg: #f3f6fa;
  --white: #fff;
  --shadow: 0 14px 40px rgba(7, 22, 43, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--primary); border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; z-index: 50; box-shadow: 0 10px 30px rgba(7,22,43,.18); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.branding { display: flex; align-items: center; gap: 16px; min-width: 0; }
.custom-logo { max-height: 72px; width: auto; }
.site-title { font-size: 1.5rem; font-weight: 800; display: inline-block; color: #fff; }
.site-description { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: .95rem; }
.main-nav { background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,.08); }
.main-nav ul { list-style: none; display: flex; padding: 0; margin: 0; gap: 2px; flex-wrap: wrap; }
.main-nav li a { color: #fff; display: block; padding: 14px 18px; font-weight: 700; }
.main-nav li a:hover, .main-nav li.current-menu-item a { background: var(--primary-soft); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; border-radius: 10px; padding: 10px 14px; }
.hero-section { background: linear-gradient(135deg, rgba(11,31,58,.96), rgba(8,22,43,.94)); color: #fff; }
.hero-inner { padding: 88px 0; }
.hero-content { max-width: 700px; }
.badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px; font-size: .9rem; margin-bottom: 18px; }
.hero-content h1 { font-size: clamp(2rem, 4vw, 4rem); margin: 0 0 14px; line-height: 1.05; }
.hero-content p { font-size: 1.08rem; line-height: 1.7; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button-primary, .button-secondary { border-radius: 14px; padding: 14px 20px; font-weight: 700; display: inline-block; }
.button-primary { background: #fff; color: var(--primary); }
.button-primary:hover { background: #eef3f9; }
.button-secondary { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.button-secondary:hover { background: rgba(255,255,255,.06); }
.section-block { padding: 38px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2, .archive-header h1, .entry-title { margin: 0; }
.archive-header { padding: 28px 0 10px; }
.archive-header p { color: var(--muted); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 16px 0 30px; }
.post-card, .single-card, .mini-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.thumb-wrap { aspect-ratio: 16/10; background: #ececec; display: block; overflow: hidden; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-thumb { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 700; color: var(--primary); background: linear-gradient(135deg, #e8eef6, #f7f9fc); }
.card-body { padding: 18px; }
.card-date, .entry-meta { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.card-title { font-size: 1.2rem; line-height: 1.35; margin: 0 0 10px; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { color: #333; line-height: 1.7; }
.single-wrap { padding: 30px 0 50px; }
.single-card { padding: 0; }
.single-thumb img { width: 100%; max-height: 560px; object-fit: cover; }
.entry-header, .entry-content { padding: 26px; }
.entry-content { line-height: 1.8; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mini-card { padding: 24px; }
.mini-card h3 { margin-top: 0; }
.pagination-wrap { padding-bottom: 42px; }
.site-footer { background: var(--primary-dark); color: #fff; margin-top: 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 36px 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #f1f1f1; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 26px; color: #d8d8d8; }
.empty-state { background: var(--white); border-radius: 16px; padding: 20px; border: 1px solid var(--line); }
@media (max-width: 980px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 0; }
  .site-title { font-size: 1.1rem; }
  .site-description { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .hero-inner { padding: 64px 0; }
  .posts-grid, .quick-links, .footer-grid { grid-template-columns: 1fr; }
  .entry-header, .entry-content { padding: 18px; }
}

.branding .custom-logo-link, .branding .site-logo img { display:block; }
.branding .site-logo { flex: 0 0 auto; }
.custom-logo { max-height: 80px; width: auto; }
.site-text { min-width: 0; }
.card-title a:hover, .entry-title a:hover, .site-footer a:hover { color: var(--primary-soft); }
@media (max-width: 760px) { .custom-logo { max-height: 64px; } .branding { gap: 12px; } }
