/*
Theme Name: Creative Authority Pro
Theme URI: https://blog.historial.id
Author: Antigravity Team
Author URI: https://blog.historial.id
Description: High CPC & High CTR WordPress Theme optimized for Adobe Creative Cloud, Graphic Design, Video Editing Software, and Digital Creativity Tutorials. Featuring built-in AdSense management, Schema markup, and review widgets.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: creative-authority
Tags: blog, adobe, photoshop, graphic-design, software-reviews, high-cpc, adsense-ready, clean, modern
*/

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #0f172a;
  --accent: #e11d48;
  --accent-light: #fff1f2;
  --success: #059669;
  --warning: #f59e0b;
  --danger: #dc2626;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1240px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.35rem;
  color: #334155;
  font-size: 1.0625rem;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Trust Bar */
.trust-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #1e293b;
}
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #818cf8;
  font-weight: 600;
}

/* Header & Nav */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4f46e5 0%, #e11d48 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.site-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.site-title span {
  color: var(--primary);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.main-nav a {
  color: #334155;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--primary);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--secondary);
}

.reading-progress-bar {
  position: fixed;
  top: 72px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #e11d48);
  width: 0%;
  z-index: 999;
}

/* Ad Slots - Optimized for 100% Google AdSense Unit Rendering */
.ad-slot-wrapper {
  margin: 2rem auto;
  text-align: center;
  position: relative;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 100%;
  clear: both;
  overflow: visible;
  display: block;
}

ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 90px;
  margin: 0 auto;
  background: transparent;
}

.aicp {
  display: block;
  width: 100%;
  text-align: center;
}

.ad-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 600;
  user-select: none;
  text-align: center;
}

.ad-slot-header {
  max-width: 970px;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.ad-slot-before-content {
  max-width: 100%;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.ad-slot-before-content ins.adsbygoogle {
  min-height: 250px;
}

.ad-slot-in-content {
  margin: 2.25rem 0;
}

.ad-slot-in-content ins.adsbygoogle {
  min-height: 250px;
}

.ad-slot-sticky-sidebar {
  position: sticky;
  top: 95px;
  z-index: 10;
}

.ad-slot-sticky-sidebar ins.adsbygoogle {
  min-height: 300px;
}

.ad-slot-anchor-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0;
  z-index: 998;
  display: flex;
  justify-content: center;
  align-items: center;
}

.anchor-close-btn {
  position: absolute;
  right: 15px;
  top: -24px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}

/* Layout */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.main-content {
  min-width: 0;
}

/* Sidebar */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  color: var(--secondary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid var(--primary-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Modern Recent Posts Widget in Sidebar */
.widget-header-clean {
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--primary-light);
  position: relative;
}

.widget-header-clean::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.widget-title-clean {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.widget-title-icon {
  font-size: 1.15rem;
}

.recent-posts-clean-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clean-post-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: #f8fafc;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.clean-post-card:hover {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.clean-post-thumb {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.clean-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.clean-post-card:hover .clean-thumb-img {
  transform: scale(1.1);
}

.clean-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.clean-post-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.clean-post-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.clean-post-cat-pill {
  display: inline-block;
  align-self: flex-start;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.clean-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.clean-post-card:hover .clean-post-title {
  color: var(--primary);
}

.clean-post-meta {
  font-size: 0.725rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-dot {
  color: #cbd5e1;
}

/* Permanently Hide Default WP Legacy Widgets */
.widget_recent_comments,
.widget_recent_entries,
.widget_archive,
.widget_categories,
.wp-block-archives,
.wp-block-categories,
.wp-block-latest-comments,
.wp-block-archives-list,
.wp-block-categories-list {
  display: none !important;
}

/* Creative Software Featured Tool Widget */
.creative-featured-tool-card {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.creative-badge-top {
  display: inline-block;
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.creative-tool-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.creative-tool-rating {
  color: #f59e0b;
  font-size: 0.875rem;
  margin: 0.4rem 0 0.75rem;
  font-weight: 700;
}

.creative-tool-cta-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #e11d48 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  transition: opacity 0.2s ease;
}

.creative-tool-cta-btn:hover {
  opacity: 0.95;
  color: #ffffff;
}

/* Single Article */
.single-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb-trail a { color: var(--text-muted); }
.breadcrumb-trail a:hover { color: var(--primary); }
.breadcrumb-sep { color: #cbd5e1; }

.entry-header { margin-bottom: 1.75rem; }

.entry-cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.entry-title {
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--secondary);
  margin-bottom: 1.15rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #334155;
}

.meta-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-verified-badge {
  color: #4f46e5;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* TOC */
.crm-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.crm-toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.crm-toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.crm-toc-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.crm-toc-list li a { color: #334155; }
.crm-toc-list li a:hover { color: var(--primary); text-decoration: underline; }

/* Content Styles */
.entry-content {
  font-size: 1.0625rem;
  color: #1e293b;
  line-height: 1.8;
}

.entry-content p { margin-bottom: 1.5rem; }

.entry-content h2 {
  font-size: 1.65rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.entry-content h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li { margin-bottom: 0.5rem; }

/* Comparison Table */
.crm-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  background: #ffffff;
}

.crm-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem;
  font-weight: 700;
}

.crm-table td {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  vertical-align: middle;
}

.crm-table tr:hover { background-color: #f8fafc; }

.crm-table .badge-best {
  background: #4f46e5;
  color: #ffffff;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
}

.table-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff !important;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.pros-box, .cons-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }

.pros-box h4 { color: #15803d; font-size: 1.1rem; margin-bottom: 0.75rem; }
.cons-box h4 { color: #b91c1c; font-size: 1.1rem; margin-bottom: 0.75rem; }

.pros-box ul, .cons-box ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.pros-box li, .cons-box li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.pros-box li::before { content: "✔"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cons-box li::before { content: "✖"; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

/* Review Card Box */
.crm-review-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-md);
}

.crm-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.crm-review-rating-circle {
  background: #0f172a;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.crm-review-rating-circle .score {
  font-size: 1.5rem;
  font-weight: 800;
  color: #818cf8;
  display: block;
}

.crm-review-rating-circle .stars { font-size: 0.75rem; color: #f59e0b; }

.crm-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.crm-feature-item {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
}

.crm-callout-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.75rem 0;
}

/* Author Box */
.post-author-box {
  display: flex;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}

.author-box-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.author-box-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.author-box-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.author-box-bio {
  font-size: 0.9375rem;
  color: #475569;
}

/* Related */
.related-posts-section { margin-top: 3rem; }
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.related-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.related-post-card:hover { transform: translateY(-3px); }
.related-post-thumb { height: 140px; background: #e2e8f0; overflow: hidden; }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-info { padding: 1rem; }
.related-post-title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.related-post-title a { color: var(--secondary); }
.related-post-title a:hover { color: var(--primary); }

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.post-card:hover { transform: translateY(-4px); }

.post-card-thumb {
  height: 200px;
  background: #cbd5e1;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-card-title a { color: var(--secondary); }
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #94a3b8; font-size: 0.9375rem; }
.footer-col a:hover { color: #818cf8; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  text-align: center;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    gap: 0.75rem;
  }
  .reading-progress-bar {
    top: 60px;
  }
  .site-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .site-title {
    font-size: 1.15rem;
  }
  /* Completely hide Top Design Tools button on mobile */
  .header-cta-btn {
    display: none !important;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
    border-radius: var(--radius-sm);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .single-article { padding: 1.25rem; }
  .entry-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .site-branding {
    gap: 0.5rem;
  }
  .site-tagline {
    display: none;
  }
  .site-title {
    font-size: 1.05rem;
  }
}
