/* ============================================
   COOKIEPRIME BLOG - COMPLETE DARK THEME
   Includes: Dark theme + Blog post styling + Thumbnails + Wider layout + Tables + Hero Image + Page Content
   ============================================ */

/* CookiePrime Banner - Prevent Global Styles from Breaking It */
#cookie-prime-banner,
#cookie-prime-banner * {
  color: inherit !important;
  font-family: inherit !important;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg-base: #020617;
  --bg-surface: #0f172a;
  --bg-surface-light: #1e293b;
  --prime: #6366f1;
  --prime-glow: rgba(99, 102, 241, 0.4);
  --accent: #10b981;
  --warning: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --radius: 16px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Apply dark text color only to your blog content */
.main-content {
  color: var(--text-main);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Typography ---------- */
/* Headings - Scoped to your blog content only */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.main-content h1 { font-size: 3rem; line-height: 1.15; }
.main-content h2 { font-size: 2.25rem; line-height: 1.3; }
.main-content h3 { font-size: 1.5rem; line-height: 1.4; }

.main-content a {
  color: var(--prime);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-content a:hover {
  color: #818cf8;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.7rem 0;
  background: rgba(2, 6, 23, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 28px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-blog-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.logo-brand span {
  color: var(--prime);
}

.logo-blog {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-left: 0.25rem;
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--prime);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-main);
}

.nav-cta {
  background: var(--prime) !important;
  color: white !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 40px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  border: 1px solid transparent !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: transparent !important;
  border-color: var(--prime) !important;
  box-shadow: 0 0 15px var(--prime-glow) !important;
  color: white !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero Section with Image ---------- */
.hero {
  padding: 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-overlay {
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(2px);
  padding: 3rem 2rem;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Fallback gradient if no image */
.hero-no-image {
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-base) 70%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin: 2rem 0 3rem;
  border: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
  color: var(--text-main);
}

.hero h1 span {
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--prime);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 10px 25px var(--prime-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--prime-glow);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Features Section ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0 4rem;
}

.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: all 0.3s;
  text-align: center;
}

.feature:hover {
  border-color: var(--prime);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Recent Posts ---------- */
.recent-posts {
  margin: 3rem 0 4rem;
}

.recent-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.recent-posts h2 {
  font-size: 2rem;
  color: var(--text-main);
  border-bottom: 3px solid var(--prime);
  padding-bottom: 0.25rem;
}

.recent-posts .view-all {
  color: var(--prime);
  font-weight: 600;
  font-size: 0.95rem;
}

.recent-posts .view-all:hover {
  color: #818cf8;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--prime);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Post Card Thumbnail */
.post-card-thumbnail {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.05);
}

.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-card h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--prime);
}

.post-card .post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-card .read-more {
  color: var(--prime);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.post-card .read-more:hover {
  color: #818cf8;
}

/* ---------- Blog List ---------- */
.page-title {
  font-size: 2.5rem;
  color: var(--text-main);
  margin: 2rem 0 1.5rem;
  border-bottom: 3px solid var(--prime);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.blog-list {
  margin: 2rem 0;
}

.blog-post-item {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.blog-post-item:hover {
  border-color: var(--prime);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Blog Post Item with Thumbnail */
.blog-post-item-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.blog-post-thumbnail {
  flex: 0 0 200px;
  max-width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-post-thumbnail img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-post-thumbnail:hover img {
  transform: scale(1.05);
}

.blog-post-content {
  flex: 1;
}

.blog-post-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-post-item h2 a {
  color: var(--text-main);
  text-decoration: none;
}

.blog-post-item h2 a:hover {
  color: var(--prime);
}

.blog-post-item .post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.blog-post-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tags {
  margin-left: 0.75rem;
}

.tag {
  background: var(--bg-surface-light);
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

.pagination a {
  padding: 0.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--prime);
  color: white;
  border-color: var(--prime);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  color: var(--text-muted);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-about h3 span {
  color: var(--prime);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  color: var(--text-muted);
}

.footer-links h4,
.footer-social h4 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: var(--prime);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.social-links a:hover {
  border-color: var(--prime);
  color: var(--prime);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom p {
  color: var(--text-muted);
}

.footer-privacy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-privacy a:hover {
  color: var(--prime);
}

/* ---------- BLOG POST STYLING ---------- */

.blog-post {
  max-width: 1000px;
  margin: 2rem auto;
  background: var(--bg-surface);
  padding: 3rem 4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.8;
}

/* Blog Post Hero Image */
.blog-post-hero {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-post-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-post h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.2;
}

.blog-post .post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-post .post-meta .tags {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-post .post-meta .tag {
  background: var(--bg-surface-light);
  padding: 0.15rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: lowercase;
}

.blog-post p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.blog-post h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 1.8rem;
  line-height: 1.3;
}

.blog-post h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: 1.4rem;
  line-height: 1.3;
}

.blog-post h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 1.2rem;
}

.blog-post ul,
.blog-post ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.blog-post ul li,
.blog-post ol li {
  margin-bottom: 0.5rem;
}

.blog-post ul ul,
.blog-post ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.blog-post blockquote {
  border-left: 4px solid var(--prime);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-surface-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-post blockquote p {
  margin-bottom: 0;
}

.blog-post code {
  background: var(--bg-surface-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-family: 'Fira Code', monospace;
}

.blog-post pre {
  background: var(--bg-surface-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.blog-post pre code {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-main);
}

.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.blog-post figure {
  margin: 1.5rem 0;
}

.blog-post figure img {
  margin: 0;
}

.blog-post figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.blog-post hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.blog-post a {
  color: var(--prime);
  text-decoration: none;
}

.blog-post a:hover {
  color: #818cf8;
  text-decoration: underline;
}

.blog-post strong {
  color: var(--text-main);
  font-weight: 600;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-navigation a {
  color: var(--prime);
  font-weight: 500;
  transition: color 0.2s;
}

.post-navigation a:hover {
  color: #818cf8;
}

/* ---------- TABLE STYLING ---------- */

.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-post table thead {
  background: var(--bg-surface-light);
}

.blog-post table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--prime);
}

.blog-post table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.blog-post table tr:last-child td {
  border-bottom: none;
}

.blog-post table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* ---------- PAGE CONTENT (Privacy, Terms, About) ---------- */
.page-content {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--bg-surface);
  padding: 3rem 4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.8;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.page-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.page-content ul,
.page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.page-content ul li,
.page-content ol li {
  margin-bottom: 0.75rem;
}

.page-content a {
  color: var(--prime);
  text-decoration: none;
}

.page-content a:hover {
  color: #818cf8;
  text-decoration: underline;
}

.page-content strong {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
  .page-content {
    padding: 2rem;
  }
  
  .page-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .page-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }
  
  .page-content p,
  .page-content ul,
  .page-content ol {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: 1.25rem;
  }
  
  .page-content h1 {
    font-size: 1.5rem;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: 1rem;
    background: var(--bg-surface);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .site-nav.open {
    display: flex;
  }
  
  .hero {
    min-height: 400px;
  }
  
  .hero-overlay {
    min-height: 400px;
    padding: 2rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .recent-posts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .blog-post {
    padding: 1.5rem;
  }
  
  .blog-post h1 {
    font-size: 1.8rem;
  }
  
  .blog-post h2 {
    font-size: 1.5rem;
  }
  
  .blog-post h3 {
    font-size: 1.2rem;
  }
  
  .blog-post p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  
  .blog-post ul,
  .blog-post ol {
    font-size: 0.95rem;
  }
  
  .blog-post blockquote {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .blog-post pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .blog-post .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .blog-post table {
    font-size: 0.9rem;
  }
  
  .blog-post table th,
  .blog-post table td {
    padding: 0.5rem 0.75rem;
  }
  
  .page-content {
    padding: 1.5rem;
  }
  
  .page-content h1 {
    font-size: 1.8rem;
  }
  
  .page-content h2 {
    font-size: 1.3rem;
  }
  
  .page-content p,
  .page-content ul,
  .page-content ol {
    font-size: 0.95rem;
  }
  
  /* Thumbnail responsive */
  .blog-post-item-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-post-thumbnail {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  
  .blog-post-thumbnail img {
    height: 160px;
  }
  
  .post-card-thumbnail {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    min-height: 350px;
  }
  
  .hero-overlay {
    min-height: 350px;
    padding: 1.5rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .blog-post {
    padding: 1rem;
  }
  
  .blog-post h1 {
    font-size: 1.5rem;
  }
  
  .blog-post table {
    font-size: 0.75rem;
  }
  
  .blog-post table th,
  .blog-post table td {
    padding: 0.4rem 0.5rem;
  }
  
  .page-content {
    padding: 1rem;
  }
  
  .page-content h1 {
    font-size: 1.5rem;
  }
  
  .blog-post-thumbnail img {
    height: 120px;
  }
  
  .post-card-thumbnail {
    height: 120px;
  }
}

/* RTL Support for Arabic Pages */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .post-meta {
  direction: rtl;
}

.rtl .tags {
  direction: rtl;
}

.rtl .tag {
  direction: rtl;
}

.rtl .post-navigation {
  direction: rtl;
}

.rtl .post-navigation a:first-child {
  float: right;
}

.rtl .post-navigation a:last-child {
  float: left;
}

/* ---------- PINNED / MOST READ POSTS ---------- */
.pinned-posts {
  margin: 3rem 0 4rem;
  padding: 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 2px solid var(--prime);
  position: relative;
}

.pinned-posts::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--prime), var(--prime-glow));
  border-radius: var(--radius) var(--radius) 0 0;
}

.pinned-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pinned-posts h2 {
  font-size: 2rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card.pinned {
  position: relative;
  border-color: var(--prime);
}

.post-card.pinned:hover {
  border-color: #818cf8;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.pinned-badge {
  display: inline-block;
  background: var(--prime);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .pinned-posts {
    padding: 1.5rem;
  }
  
  .pinned-posts h2 {
    font-size: 1.5rem;
  }
}