/*
Theme Name: TelegramChannels Lite
Theme URI: http://besttelegramchannels.net
Author: BestTelegramChannels
Description: Lightweight fast theme for Telegram channel directories.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: telegramchannels-lite
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --bg:          #f2f5fa;
  --surface:     #ffffff;
  --surface2:    #eaeff8;
  --border:      #dde3f0;
  --accent:      #2AABEE;
  --accent-dk:   #1a94d4;
  --accent2:     #29B680;
  --text:        #18202e;
  --muted:       #5f6b8a;
  --muted-lt:    #9aa3bf;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow:      0 2px 8px rgba(0,0,0,.07), 0 6px 20px rgba(0,0,0,.05);
  --shadow-md:   0 6px 24px rgba(0,0,0,.11);
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      10px;
  --radius-sm:   6px;
  --max-w:       1100px;
  --sidebar-w:   272px;
  --gap:         28px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent-dk); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); color: var(--text); line-height: 1.25; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }

/* ── WRAPPER ── */
.site-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════ */
#site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }

.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 34px; height: 34px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.site-logo .name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--text); }
.site-logo .name span { color: var(--accent); }

#site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; padding: 0; margin: 0; }
#site-nav ul li a { font-size: .87rem; font-weight: 500; color: var(--muted); padding: 6px 12px; border-radius: var(--radius-sm); transition: all .18s; }
#site-nav ul li a:hover, #site-nav ul li.current-menu-item > a { color: var(--accent); background: #e6f5fd; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: .85rem; }

/* ════════════════════════════════════════════════
   ARCHIVE HERO (non-homepage)
════════════════════════════════════════════════ */
.hero-band {
  background: linear-gradient(135deg, #e6f3fb 0%, #eef7ff 50%, #e8f0fb 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 44px; position: relative; overflow: hidden;
}
.hero-band::before { content:''; position:absolute; top:-60px; right:-60px; width:300px; height:300px; background:radial-gradient(circle,rgba(42,171,238,.12) 0%,transparent 70%); pointer-events:none; }
.hero-band h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: .4rem; }
.hero-band h1 em { font-style: normal; color: var(--accent); }
.hero-band p { color: var(--muted); font-size: .97rem; max-width: 500px; margin: 0; }

/* ════════════════════════════════════════════════
   CONTENT LAYOUT
════════════════════════════════════════════════ */
#content-area { padding: 32px 0 56px; }
.content-grid { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--gap); align-items: start; }

/* ════════════════════════════════════════════════
   POST CARDS (archive)
════════════════════════════════════════════════ */
.posts-list { display: flex; flex-direction: column; gap: 10px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .15s; }
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.post-card .cat-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); background: #e6f5fd; border: 1px solid #c5e4f8; padding: 2px 8px; border-radius: 20px; margin-bottom: 7px; }
.post-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; line-height: 1.35; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); }
.post-card .excerpt { color: var(--muted); font-size: .87rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .post-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .76rem; color: var(--muted-lt); }

/* ════════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════════ */
.single-post-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow-sm); }
.single-post-wrap .post-header { margin-bottom: 24px; }
.single-post-wrap .cat-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); background: #e6f5fd; border: 1px solid #c5e4f8; padding: 2px 8px; border-radius: 20px; margin-bottom: 10px; }
.single-post-wrap h1.post-title { font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 800; margin-bottom: 10px; }
.single-post-wrap .post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.single-post-wrap .post-meta span { display: flex; align-items: center; gap: 5px; }
.divider { height: 1px; background: var(--border); margin: 22px 0; }

.entry-content { font-size: .96rem; line-height: 1.8; color: #374060; }
.entry-content h2 { font-size: 1.25rem; margin: 1.7rem 0 .6rem; }
.entry-content h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.entry-content a { color: var(--accent); border-bottom: 1px solid rgba(42,171,238,.28); }
.entry-content a:hover { color: var(--accent-dk); border-color: var(--accent-dk); }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 12px 18px; margin: 1.4rem 0; background: #eef7ff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-style: italic; }

.tg-join-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; font-weight: 600; font-size: .9rem; padding: 11px 22px; border-radius: var(--radius-sm); border-bottom: none !important; margin: 18px 0; transition: background .18s, transform .15s; }
.tg-join-btn:hover { background: var(--accent-dk) !important; transform: translateY(-1px); color: #fff !important; }
.tg-join-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ════════════════════════════════════════════════
   SOCIAL SHARING
════════════════════════════════════════════════ */
.social-share {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.social-share-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 12px;
}
.social-share-buttons {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: filter .18s, transform .15s;
  line-height: 1;
}
.share-btn:hover { filter: brightness(.88); transform: translateY(-1px); color: #fff; }
.share-btn svg { flex-shrink: 0; }

.share-facebook  { background: #1877f2; }
.share-twitter   { background: #14171a; }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #2aabee; }
.share-copy      { background: #6b7694; }
.share-copy.copied { background: #29B680; }

/* ════════════════════════════════════════════════
   RELATED POSTS
════════════════════════════════════════════════ */
.related-posts { margin-top: 24px; }

.related-posts-title {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 800;
  color: var(--text); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.related-posts-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.related-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, transform .15s;
}
.related-post-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.related-post-card .rp-cat {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent); margin-bottom: 6px;
}
.related-post-card h3 { font-size: .87rem; font-weight: 700; line-height: 1.35; margin-bottom: 7px; }
.related-post-card h3 a { color: var(--text); }
.related-post-card h3 a:hover { color: var(--accent); }
.related-post-card .rp-date { font-size: .72rem; color: var(--muted-lt); }

/* ════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm); font-size: .84rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .18s; box-shadow: var(--shadow-sm); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 78px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.widget-title { font-family: var(--font-head); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { color: var(--text); }
.cat-list li a:hover { color: var(--accent); }
.cat-list .count { font-size: .7rem; background: var(--surface2); color: var(--muted); padding: 1px 7px; border-radius: 20px; }
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; color: var(--text); font-family: var(--font-body); font-size: .87rem; outline: none; transition: border-color .18s; }
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form input::placeholder { color: var(--muted-lt); }
.search-form button { background: var(--accent); border: none; border-radius: var(--radius-sm); padding: 9px 13px; color: #fff; cursor: pointer; font-size: .82rem; font-weight: 600; transition: background .18s; }
.search-form button:hover { background: var(--accent-dk); }
.recent-posts-list { list-style: none; padding: 0; margin: 0; }
.recent-posts-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list li a { font-size: .85rem; color: var(--text); line-height: 1.4; display: block; }
.recent-posts-list li a:hover { color: var(--accent); }
.recent-posts-list .rp-date { font-size: .71rem; color: var(--muted-lt); margin-top: 2px; }

/* ════════════════════════════════════════════════
   ARCHIVE HEADER
════════════════════════════════════════════════ */
.archive-header { margin-bottom: 20px; }
.archive-header .arch-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.archive-header h1 { font-size: 1.55rem; font-weight: 800; }
.archive-header .arch-count { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* ════════════════════════════════════════════════
   NO RESULTS / 404
════════════════════════════════════════════════ */
.no-results { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.no-results .icon { font-size: 2.8rem; margin-bottom: 14px; }
.no-results h2 { margin-bottom: 8px; }
.no-results p { color: var(--muted); }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
#site-footer { background: #fff; border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════
   BREADCRUMBS
════════════════════════════════════════════════ */
.breadcrumbs { font-size: .78rem; color: var(--muted-lt); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .4; }
.breadcrumbs .current { color: var(--text); }

/* ════════════════════════════════════════════════
   COMMENTS
════════════════════════════════════════════════ */
.comments-section { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow-sm); }
.comments-section h3 { font-size: .97rem; margin-bottom: 16px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 22px 0; }
.comment-body { border-bottom: 1px solid var(--border); padding: 12px 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: .8rem; }
.comment-author-name { font-weight: 600; color: var(--text); }
.comment-date { color: var(--muted-lt); }
.comment-text { font-size: .89rem; color: #3d4d6a; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px; color: var(--text); font-family: var(--font-body); font-size: .89rem; outline: none; transition: border-color .18s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); padding: 11px 22px; font-family: var(--font-body); font-size: .89rem; font-weight: 600; cursor: pointer; transition: background .18s; width: fit-content; }
.submit-btn:hover { background: var(--accent-dk); }

/* ════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ════════════════════════════════════════════════
   HOMEPAGE — HERO
════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  background: linear-gradient(145deg, #091525 0%, #0c1e38 45%, #081522 100%);
  padding: 80px 0 68px;
  overflow: hidden;
}
.hp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hp-hero-orb { position: absolute; border-radius: 50%; filter: blur(64px); }
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(42,171,238,.28) 0%, transparent 70%); top: -140px; right: -80px; }
.orb-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(41,182,128,.2) 0%, transparent 70%); bottom: -80px; left: 4%; }
.orb-3 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(91,127,255,.15) 0%, transparent 70%); top: 35%; left: 38%; }
.hp-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }

.hp-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(42,171,238,.14); border: 1px solid rgba(42,171,238,.32); color: #7dd3f8; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 14px; border-radius: 20px; }
.hp-hero-badge svg { width: 13px; height: 13px; fill: #2aabee; }

.hp-hero-title { font-family: var(--font-head); font-size: clamp(1.9rem, 5.5vw, 3.3rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.hp-hero-title em { font-style: normal; background: linear-gradient(90deg, #2aabee 0%, #29e6a7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hp-hero-sub { font-size: 1rem; color: rgba(255,255,255,.58); max-width: 500px; line-height: 1.65; margin: 0; }

.hp-search-form { width: 100%; max-width: 570px; }
.hp-search-inner { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 5px 5px 5px 16px; box-shadow: 0 8px 32px rgba(0,0,0,.32); }
.hp-search-icon { width: 17px; height: 17px; stroke: #9aa3bf; flex-shrink: 0; margin-right: 10px; }
.hp-search-inner input[type="search"] { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: .97rem; color: var(--text); background: transparent; padding: 8px 0; }
.hp-search-inner input::placeholder { color: #b0b8d0; }
.hp-search-inner button { background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 11px 22px; font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .18s; }
.hp-search-inner button:hover { background: var(--accent-dk); }

.hp-quick-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.hp-quick-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.82); font-size: .81rem; font-weight: 500; padding: 6px 13px; border-radius: 20px; transition: all .18s; }
.hp-quick-pill:hover { background: rgba(42,171,238,.22); border-color: rgba(42,171,238,.45); color: #fff; }

/* ── STATS BAR ── */
.hp-stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.hp-stats-grid { display: flex; align-items: center; justify-content: center; }
.hp-stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 40px; }
.hp-stat strong { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; color: var(--accent); line-height: 1; display: block; margin-bottom: 3px; }
.hp-stat span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.hp-stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ── SECTION SHELL ── */
.hp-section { padding: 56px 0; }
.hp-section-alt { background: var(--surface2); }
.hp-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 14px; }
.hp-section-head--center { justify-content: center; text-align: center; }
.hp-section-title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--text); margin-bottom: 3px; }
.hp-section-sub { font-size: .88rem; color: var(--muted); margin: 0; }
.hp-view-all { font-size: .84rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.hp-view-all:hover { color: var(--accent-dk); }

/* ── CATEGORY GRID ── */
.hp-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.hp-cat-card { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); transition: all .18s; text-decoration: none; }
.hp-cat-card:hover { border-color: var(--accent); box-shadow: 0 4px 18px rgba(42,171,238,.14); transform: translateY(-2px); }
.hp-cat-icon { font-size: 1.5rem; width: 42px; height: 42px; background: #eef5fb; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.hp-cat-info { flex: 1; min-width: 0; }
.hp-cat-info h3 { font-size: .86rem; font-weight: 700; color: var(--text); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-cat-info span { font-size: .73rem; color: var(--muted); }
.hp-cat-arrow { font-size: .88rem; color: var(--muted-lt); transition: transform .18s, color .18s; flex-shrink: 0; }
.hp-cat-card:hover .hp-cat-arrow { transform: translateX(3px); color: var(--accent); }

/* ── POSTS GRID ── */
.hp-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; transition: all .18s; }
.hp-post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.hp-post-card-top { display: flex; align-items: center; gap: 9px; }
.hp-post-icon { font-size: 1.25rem; width: 34px; height: 34px; background: #eef5fb; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hp-post-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); background: #e6f5fd; border: 1px solid #c5e4f8; padding: 2px 8px; border-radius: 20px; }
.hp-post-card h3 { font-size: .93rem; font-weight: 700; line-height: 1.35; margin: 0; }
.hp-post-card h3 a { color: var(--text); }
.hp-post-card h3 a:hover { color: var(--accent); }
.hp-post-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.hp-post-date { font-size: .73rem; color: var(--muted-lt); }
.hp-post-link { font-size: .76rem; font-weight: 700; color: var(--accent); }
.hp-post-link:hover { color: var(--accent-dk); }

/* ── HOW IT WORKS ── */
.hp-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 780px; margin: 0 auto; }
.hp-step { flex: 1; text-align: center; padding: 0 22px; }
.hp-step-num { width: 46px; height: 46px; background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.hp-step h3 { font-size: .97rem; font-weight: 800; margin-bottom: 7px; }
.hp-step p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.6; }
.hp-step-arrow { font-size: 1.3rem; color: var(--muted-lt); flex-shrink: 0; padding-top: 14px; }

/* ── ALL CATS PILLS ── */
.hp-allcats { display: flex; flex-wrap: wrap; gap: 9px; }
.hp-allcat-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 13px; font-size: .84rem; color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm); transition: all .18s; }
.hp-allcat-pill:hover { border-color: var(--accent); color: var(--accent); background: #eef8ff; transform: translateY(-1px); }
.hp-allcat-count { background: var(--surface2); color: var(--muted); font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }

/* ── CTA BAND ── */
.hp-cta-band { background: linear-gradient(135deg, #091525 0%, #0c1e38 100%); padding: 56px 0; }
.hp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.hp-cta-inner h2 { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.hp-cta-inner p { font-size: .88rem; color: rgba(255,255,255,.5); margin: 0; }
.hp-cta-search { display: flex; gap: 7px; flex-shrink: 0; }
.hp-cta-search input[type="search"] { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 11px 15px; color: #fff; font-family: var(--font-body); font-size: .89rem; outline: none; width: 240px; transition: border-color .18s; }
.hp-cta-search input::placeholder { color: rgba(255,255,255,.38); }
.hp-cta-search input:focus { border-color: var(--accent); }
.hp-cta-search button { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); padding: 11px 20px; font-weight: 700; font-size: .89rem; cursor: pointer; transition: background .18s; }
.hp-cta-search button:hover { background: var(--accent-dk); }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hp-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  #site-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; box-shadow: var(--shadow); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: block; }
  .single-post-wrap { padding: 20px 16px; }
  .comments-section { padding: 18px 16px; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-posts-grid { grid-template-columns: 1fr; }
  .hp-stats-grid { flex-wrap: wrap; }
  .hp-stat { padding: 14px 22px; }
  .hp-stat-divider { display: none; }
  .hp-steps { flex-direction: column; align-items: center; gap: 20px; }
  .hp-step-arrow { transform: rotate(90deg); padding: 0; }
  .hp-cta-inner { flex-direction: column; }
  .hp-cta-search { width: 100%; }
  .hp-cta-search input { flex: 1; width: auto; }
  .hp-section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .hp-hero { padding: 52px 0 46px; }
  .hp-cat-grid { grid-template-columns: 1fr 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .social-share-buttons { gap: 6px; }
  .share-btn { font-size: .79rem; padding: 8px 12px; }
}
