/* ================================================
   SkyViewNews - Main Stylesheet
   Mobile-First, AdSense-Ready News Portal
================================================ */

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --dark: #0d1117;
  --dark2: #161b22;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e0e4e8;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ BREAKING NEWS BAR ============ */
.breaking-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
}
.breaking-bar .container { display: flex; align-items: center; gap: 12px; }
.breaking-label {
  background: rgba(0,0,0,0.2);
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 5px;
}
.breaking-ticker { flex: 1; overflow: hidden; position: relative; }
.ticker-inner {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-inner a { color: #fff; margin-right: 20px; opacity: 0.95; }
.ticker-inner a:hover { text-decoration: underline; }
.ticker-inner .sep { margin-right: 20px; opacity: 0.5; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ HEADER ============ */
.site-header { background: var(--white); box-shadow: 0 1px 0 var(--border); position: sticky; top: 0; z-index: 1000; }

.header-top {
  background: var(--dark);
  color: #ccc;
  padding: 6px 0;
  font-size: 0.8rem;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-date { display: flex; align-items: center; gap: 6px; }
.header-social { display: flex; gap: 12px; }
.header-social a { color: #aaa; transition: color var(--transition); font-size: 0.85rem; }
.header-social a:hover { color: var(--primary); }

.header-main { padding: 16px 0; }
.header-main .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.logo-sky { color: var(--primary); }
.logo-news { color: var(--accent); }

.header-ad { flex: 1; display: flex; justify-content: center; }
.ad-placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 1px;
  min-height: 90px; width: 100%; max-width: 728px;
}
.ad-placeholder.wide { min-height: 90px; }

.header-search { flex-shrink: 0; }
.header-search form { display: flex; border: 2px solid var(--border); border-radius: 30px; overflow: hidden; transition: border-color var(--transition); }
.header-search form:focus-within { border-color: var(--primary); }
.header-search input {
  border: none; outline: none; padding: 9px 16px;
  font-family: var(--font-body); font-size: 0.9rem; width: 200px; background: transparent;
}
.header-search button {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 16px; cursor: pointer; font-size: 0.9rem;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

/* ============ NAVIGATION ============ */
.main-nav { background: var(--dark); border-top: 3px solid var(--primary); }
.main-nav .container { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: none; border: none; color: #fff;
  padding: 14px 0; cursor: pointer; font-size: 0.9rem;
  font-family: var(--font-body); gap: 8px; align-items: center;
}
.nav-menu {
  display: flex; list-style: none; flex-wrap: wrap;
}
.nav-menu li a {
  display: block; color: #ccc; padding: 14px 15px; font-size: 0.88rem;
  font-weight: 600; transition: color var(--transition), background var(--transition);
  letter-spacing: 0.2px;
}
.nav-menu li a:hover, .nav-menu li a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-menu li:first-child a:hover { color: var(--primary); background: none; }

/* ============ HERO SECTION ============ */
.hero-section { padding: 28px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

.hero-card {
  display: block; position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); transition: transform var(--transition);
}
.hero-card:hover { transform: translateY(-3px); }
.hero-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hero-card:hover .hero-image img { transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); }
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px;
  color: #fff;
}
.hero-content h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.3; margin: 10px 0 8px; }
.hero-content p { font-size: 0.9rem; opacity: 0.85; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; gap: 16px; margin-top: 12px; font-size: 0.8rem; opacity: 0.8; }
.post-meta span { display: flex; align-items: center; gap: 4px; }

.hero-sidebar { display: flex; flex-direction: column; gap: 10px; }
.hero-mini-card {
  display: flex; gap: 12px; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition);
  padding: 0;
}
.hero-mini-card:hover { box-shadow: var(--shadow-lg); transform: translateX(3px); }
.hero-mini-card img { width: 90px; height: 70px; object-fit: cover; flex-shrink: 0; }
.hero-mini-card div { padding: 10px 12px 10px 0; flex: 1; }
.mini-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-mini-card h4 { font-size: 0.85rem; font-weight: 600; line-height: 1.3; margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-mini-card small { font-size: 0.75rem; color: var(--text-muted); }

/* ============ CATEGORY BADGE ============ */
.category-badge {
  display: inline-block; color: #fff; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}

/* ============ AD BANNER ============ */
.ad-banner-wrap { padding: 20px 0 10px; }

/* ============ MAIN CONTENT + SIDEBAR ============ */
.main-content { padding: 24px 0 40px; }
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }

/* ============ POSTS GRID ============ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }

.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card-image { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-cat-badge {
  position: absolute; top: 10px; left: 10px; color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 8px; border-radius: 3px;
}
.post-card-body { padding: 14px; }
.post-card-body h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post-card-body h3 a { color: var(--text); transition: color var(--transition); }
.post-card-body h3 a:hover { color: var(--primary); }
.post-card-body p { font-size: 0.83rem; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: var(--text-muted); }
.post-card-meta span { display: flex; align-items: center; gap: 3px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.section-header h2 { font-family: var(--font-display); font-size: 1.2rem; display: flex; align-items: center; gap: 8px; border-left: 4px solid var(--primary); padding-left: 12px; }
.section-header h2 i { color: var(--primary); }
.view-all { font-size: 0.82rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 5px; transition: gap var(--transition); }
.view-all:hover { gap: 8px; }

.category-section { margin-top: 36px; }
.posts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.post-card-small { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.post-card-small:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-card-small a img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.35s; }
.post-card-small:hover a img { transform: scale(1.05); }
.post-card-small-body { padding: 10px; }
.post-card-small-body h4 { font-size: 0.82rem; font-weight: 600; line-height: 1.35; margin-bottom: 5px; }
.post-card-small-body h4 a { color: var(--text); }
.post-card-small-body h4 a:hover { color: var(--primary); }
.post-card-small-body small { font-size: 0.72rem; color: var(--text-muted); }

.load-more-wrap { text-align: center; margin-top: 24px; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--border);
  color: var(--text); padding: 12px 28px; border-radius: 30px;
  font-weight: 600; font-size: 0.9rem; transition: all var(--transition);
}
.btn-load-more:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.widget-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.widget-title i { color: var(--primary); }
.ad-widget { padding: 10px; }
.ad-widget .ad-placeholder { min-height: 250px; }

/* Popular Posts */
.popular-posts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.popular-posts li { display: flex; align-items: flex-start; gap: 10px; }
.post-number { background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.popular-posts img { width: 65px; height: 50px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.popular-posts a { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.35; display: block; }
.popular-posts a:hover { color: var(--primary); }
.popular-posts small { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 3px; }

/* Category List */
.category-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.category-list li { display: flex; justify-content: space-between; align-items: center; }
.category-list a { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text); font-weight: 500; transition: color var(--transition); }
.category-list a:hover { color: var(--primary); }
.cat-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; flex-shrink: 0; }
.cat-count { background: var(--bg); color: var(--text-muted); font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-cloud a { background: var(--bg); color: var(--text-light); font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); transition: all var(--transition); }
.tags-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Newsletter Widget */
.newsletter-widget { background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%) !important; color: #fff; }
.newsletter-widget .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }
.newsletter-widget p { font-size: 0.82rem; margin-bottom: 12px; opacity: 0.9; }
.newsletter-widget input { width: 100%; padding: 9px 12px; border-radius: 6px; border: none; font-family: var(--font-body); font-size: 0.85rem; margin-bottom: 8px; }
.newsletter-widget button { width: 100%; padding: 9px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background var(--transition); }
.newsletter-widget button:hover { background: var(--primary-dark); }

/* Footer Recent */
.footer-recent { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-recent a { display: flex; gap: 10px; align-items: flex-start; }
.footer-recent img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.footer-recent strong { font-size: 0.82rem; line-height: 1.3; display: block; color: #ccc; }
.footer-recent small { font-size: 0.72rem; color: #888; }

/* ============ ARTICLE PAGE ============ */
.article-content { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text-muted); }

.article-cat { display: inline-block; color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 5px 12px; border-radius: 4px; margin-bottom: 12px; }
.article-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--dark); }

.article-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.meta-author { display: flex; align-items: center; gap: 10px; }
.author-avatar-small { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; }
.author-name { font-weight: 700; font-size: 0.9rem; display: block; }
.post-date { font-size: 0.78rem; color: var(--text-muted); }
.meta-stats { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-muted); }
.meta-stats span { display: flex; align-items: center; gap: 4px; }

/* Share Bar */
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.share-bar span { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.share-bar a, .share-bar button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 5px; font-size: 0.78rem;
  font-weight: 600; font-family: var(--font-body); cursor: pointer;
  border: none; transition: opacity var(--transition);
}
.share-bar a:hover, .share-bar button:hover { opacity: 0.85; }
.share-fb { background: #3b5998; color: #fff; }
.share-tw { background: #000; color: #fff; }
.share-wa { background: #25d366; color: #fff; }
.share-li { background: #0077b5; color: #fff; }
.share-copy { background: var(--bg); color: var(--text); border: 1px solid var(--border) !important; }

.article-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }

.in-article-ad { margin: 24px 0; }

/* Article Body */
.article-body { font-size: 1rem; line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 28px 0 12px; color: var(--dark); }
.article-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; }
.article-body h4 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--primary); background: var(--bg); padding: 16px 20px; margin: 20px 0; font-style: italic; color: var(--text-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body hr { border: none; border-top: 2px solid var(--border); margin: 28px 0; }
.article-body img { border-radius: var(--radius); max-width: 100%; height: auto; margin: 16px 0; }
.article-body strong { color: var(--dark); }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border); }
.article-tags i { color: var(--text-muted); }
.article-tags a { background: var(--bg); color: var(--text-light); font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); transition: all var(--transition); }
.article-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Author Box */
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border-radius: var(--radius); padding: 20px; margin: 28px 0; border: 1px solid var(--border); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; flex-shrink: 0; }
.author-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.author-box p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* Related Posts */
.related-posts { margin-bottom: 32px; }
.related-posts h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { display: block; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; transition: transform 0.3s; }
.related-card:hover img { transform: scale(1.03); }
.related-card h5 { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card small { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 3px; }

/* Comments */
.comments-section { margin-top: 32px; }
.comments-section h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; font-size: 1rem; }
.comment-body { flex: 1; background: var(--bg); padding: 14px; border-radius: 0 var(--radius) var(--radius) var(--radius); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-header strong { font-size: 0.9rem; }
.comment-header time { font-size: 0.75rem; color: var(--text-muted); }
.comment-body p { font-size: 0.88rem; line-height: 1.6; color: var(--text); }

/* Comment Form */
.comment-form h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group label span { color: var(--primary); }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group small { font-size: 0.75rem; color: var(--text-muted); }
.btn-submit {
  background: var(--primary); color: #fff; border: none; padding: 12px 28px;
  border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ============ PAGE HERO ============ */
.page-hero { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); border-left: 5px solid var(--primary); }
.page-hero h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.page-hero h1 i { color: var(--primary); }
.page-hero p { color: var(--text-light); font-size: 0.9rem; }
.post-count { display: inline-block; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; margin-top: 6px; }

/* ============ SEARCH FORM ============ */
.search-form-large { display: flex; gap: 8px; margin: 16px 0 0; }
.search-form-large input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; outline: none; }
.search-form-large input:focus { border-color: var(--primary); }
.search-form-large button { background: var(--primary); color: #fff; border: none; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: var(--font-body); }
.search-info { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }

/* Posts List */
.posts-list { display: flex; flex-direction: column; gap: 20px; }
.post-list-item { display: flex; gap: 16px; background: var(--white); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-list-item img { width: 160px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.post-list-item h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 6px 0; }
.post-list-item h3 a { color: var(--text); }
.post-list-item h3 a:hover { color: var(--primary); }
.post-list-item p { font-size: 0.85rem; color: var(--text-light); }

/* No Posts */
.no-posts { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-posts i { font-size: 3rem; margin-bottom: 12px; display: block; opacity: 0.3; }
.no-posts h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* ============ STATIC PAGE ============ */
.static-page { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.static-page h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 20px; color: var(--dark); border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.page-content h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 24px 0 10px; }
.page-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
.page-content p { font-size: 0.93rem; line-height: 1.75; margin-bottom: 14px; color: var(--text-light); }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 14px; }
.page-content li { font-size: 0.93rem; margin-bottom: 4px; color: var(--text-light); }
.contact-form-wrap { background: var(--bg); padding: 24px; border-radius: var(--radius); margin-top: 28px; }
.contact-form-wrap h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 18px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; background: var(--white); border: 1px solid var(--border); color: var(--text); transition: all var(--transition); }
.pagination a:hover, .pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-prev, .pagination .page-next { width: auto; padding: 0 14px; }

/* ============ FOOTER ============ */
.footer-ad-wrap { background: var(--white); padding: 16px 0; border-top: 1px solid var(--border); }
.site-footer { background: var(--dark2); color: #ccc; margin-top: 40px; }
.footer-top { padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-heading { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.footer-col p { font-size: 0.82rem; line-height: 1.7; color: #aaa; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 0.82rem; color: #aaa; display: flex; align-items: center; gap: 6px; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #aaa; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; }
.newsletter-form input { width: 100%; padding: 8px 12px; border-radius: 6px; border: none; margin-bottom: 8px; font-family: var(--font-body); font-size: 0.85rem; }
.newsletter-form button { width: 100%; background: var(--primary); color: #fff; border: none; padding: 9px; border-radius: 6px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; }
.newsletter-form button:hover { background: var(--primary-dark); }
.footer-pages-links { margin-top: 12px; font-size: 0.75rem; }
.footer-pages-links a { color: #888; }
.footer-pages-links a:hover { color: var(--primary); }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: #888; }

/* ============ 404 PAGE ============ */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-family: var(--font-display); font-size: 5rem; color: var(--primary); font-weight: 900; }
.error-page h2 { font-size: 1.5rem; margin: 8px 0 16px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-row { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .header-main .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-ad { display: none; }
  .header-search input { width: 150px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--dark); z-index: 999; padding: 8px 0;
  }
  .nav-menu.open { display: flex; }
  .main-nav { position: relative; }
  .hero-content h1 { font-size: 1.3rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .posts-row { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .post-list-item { flex-direction: column; }
  .post-list-item img { width: 100%; height: 160px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-content h1 { font-size: 1.1rem; }
  .hero-content p { display: none; }
  .posts-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .share-bar { flex-direction: row; overflow-x: auto; }
  .share-bar a, .share-bar button { font-size: 0.72rem; padding: 5px 8px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .pagination a { width: 32px; height: 32px; font-size: 0.8rem; }
  .logo-text { font-size: 1.5rem; }
}
