/*
Theme Name: Collegiate
Theme URI: https://collegiate.pk
Author: Collegiate Team
Author URI: https://collegiate.pk
Description: A modern, AdSense-ready WordPress theme for students, educators, and lifelong learners. Features clean typography, responsive design, and optimized ad placements.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collegiate
Tags: education, blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --c-primary: #1B4965;
  --c-primary-light: #2D6A8F;
  --c-primary-dark: #0F2D40;
  --c-accent: #F4A261;
  --c-accent-hover: #E68A3A;
  --c-secondary: #2A9D8F;
  --c-secondary-light: #3CC0B0;
  --c-bg: #FAFBFC;
  --c-bg-alt: #F0F3F6;
  --c-bg-card: #FFFFFF;
  --c-text: #2C3E50;
  --c-text-light: #5A6C7D;
  --c-text-muted: #8B9DAF;
  --c-border: #E1E8EF;
  --c-border-light: #EDF1F5;
  --c-success: #27AE60;
  --c-warning: #F39C12;
  --c-danger: #E74C3C;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-sm: 0 1px 3px rgba(27, 73, 101, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 73, 101, 0.08);
  --shadow-lg: 0 8px 30px rgba(27, 73, 101, 0.12);
  --shadow-xl: 0 16px 50px rgba(27, 73, 101, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --sidebar-width: 340px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-primary-dark);
  line-height: 1.25;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.2em; }

ul, ol { margin-bottom: 1.2em; padding-left: 1.4em; }

blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 1rem 1.5rem;
  margin: 1.5em 0;
  background: var(--c-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--c-text-light);
}

pre, code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
pre {
  background: var(--c-primary-dark);
  color: #E8F0FE;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}
th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}
th {
  background: var(--c-bg-alt);
  font-weight: 600;
  color: var(--c-primary-dark);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-accent { color: var(--c-accent); }
.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-study { background: #E3F2FD; color: #1565C0; }
.badge-scholarships { background: #E8F5E9; color: #2E7D32; }
.badge-student-life { background: #FFF3E0; color: #E65100; }
.badge-career { background: #F3E5F5; color: #7B1FA2; }

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--c-primary);
  font-weight: 700;
}
.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}
.site-logo span { color: var(--c-accent); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
}
.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--c-text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav .current-menu-item a {
  color: var(--c-primary);
  background: var(--c-bg-alt);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-search input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.nav-search input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(27,73,101,0.1);
  width: 250px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--c-primary);
  font-size: 1.5rem;
}

/* ========================================
   HERO SECTION (Homepage)
======================================== */
.hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-light) 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(244, 162, 97, 0.08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(42, 157, 143, 0.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-label {
  display: inline-block;
  background: rgba(244, 162, 97, 0.2);
  color: var(--c-accent);
  padding: 0.3em 1em;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}
.hero h1 {
  color: white;
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-primary {
  background: var(--c-accent);
  color: white;
}
.btn-primary:hover { background: var(--c-accent-hover); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.5); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent);
}
.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

/* ========================================
   CATEGORY PILLS (Homepage)
======================================== */
.categories-bar {
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border-light);
  padding: 1.2rem 0;
}
.categories-list {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  flex-wrap: wrap;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--c-bg-alt);
  color: var(--c-text-light);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
}
.cat-pill .cat-icon { font-size: 1rem; }

/* ========================================
   MAIN CONTENT LAYOUT
======================================== */
.site-main {
  padding: 3rem 0;
}
.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2.5rem;
  align-items: start;
}

/* ========================================
   POST CARDS
======================================== */
.posts-grid {
  display: grid;
  gap: 1.8rem;
}
.posts-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }

.post-card {
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  transition: all var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.post-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--c-bg-alt), var(--c-border));
}
.post-card-body { padding: 1.4rem; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.post-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.post-card h3 a { color: var(--c-primary-dark); }
.post-card h3 a:hover { color: var(--c-accent); }

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--c-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.read-more:hover { color: var(--c-accent); gap: 0.5rem; }

/* Featured Post (large) */
.post-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border-light);
  transition: all var(--transition);
}
.post-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-featured .post-card-thumb { height: 100%; min-height: 320px; }
.post-featured .post-card-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.post-featured h3 { font-size: 1.5rem; }

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
  position: sticky;
  top: 90px;
}

.widget {
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-light);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}

/* Ad Slot Widget */
.ad-slot {
  background: var(--c-bg-alt);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.85rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
}
.ad-slot-label { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Popular Posts Widget */
.popular-post {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-border-light);
}
.popular-post:last-child { border-bottom: none; }
.popular-post-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--c-border);
  font-weight: 700;
  min-width: 28px;
}
.popular-post-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.popular-post-title a { color: var(--c-text); }
.popular-post-title a:hover { color: var(--c-accent); }
.popular-post-date { font-size: 0.78rem; color: var(--c-text-muted); margin-top: 0.2rem; }

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: white;
  border: none;
}
.newsletter-widget .widget-title { color: white; border-bottom-color: var(--c-accent); }
.newsletter-widget p { font-size: 0.9rem; opacity: 0.9; }
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}
.newsletter-form .btn {
  width: 100%;
  justify-content: center;
}

/* Tags Cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-link {
  padding: 0.3em 0.8em;
  background: var(--c-bg-alt);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--c-text-light);
  transition: all var(--transition);
}
.tag-link:hover { background: var(--c-primary); color: white; }

/* ========================================
   SINGLE POST
======================================== */
.single-post-header {
  padding: 3rem 0 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.single-post-header .badge { margin-bottom: 1rem; }
.single-post-header h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.post-meta-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}
.post-meta-full .separator { width: 4px; height: 4px; border-radius: 50%; background: var(--c-border); }

.post-featured-image {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-featured-image img { width: 100%; height: 400px; object-fit: cover; }

.post-content {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content h2 { margin-top: 2em; }
.post-content h3 { margin-top: 1.5em; }

/* In-Article Ad */
.in-article-ad {
  margin: 2.5rem -2rem;
  padding: 0;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
}
.author-info h4 { margin-bottom: 0.3rem; }
.author-info p { font-size: 0.9rem; color: var(--c-text-light); margin-bottom: 0; }

/* Related Posts */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.related-posts h2 { text-align: center; margin-bottom: 1.5rem; }

/* ========================================
   PAGE TEMPLATES
======================================== */
.page-header {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.85; font-size: 1.1rem; }

.page-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--c-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(27,73,101,0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ========================================
   PAGINATION
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}
.pagination a, .pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.pagination a {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-light);
}
.pagination a:hover { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.pagination .current {
  background: var(--c-primary);
  color: white;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand .site-logo, .footer-brand .site-logo .logo-icon { color: white; }
.footer-brand p { font-size: 0.92rem; opacity: 0.75; line-height: 1.6; }

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--c-accent); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--c-accent); color: white; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.6;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); }
.footer-bottom-links a:hover { color: white; }

/* ========================================
   ADSENSE PLACEMENTS
======================================== */
.ad-banner-top {
  background: var(--c-bg-alt);
  padding: 0.8rem 0;
  text-align: center;
  border-bottom: 1px solid var(--c-border-light);
}
.ad-between-posts {
  grid-column: 1 / -1;
  padding: 1rem 0;
}

/* ========================================
   BREADCRUMBS
======================================== */
.breadcrumbs {
  padding: 0.8rem 0;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.breadcrumbs a { color: var(--c-text-light); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .separator { margin: 0 0.4rem; opacity: 0.5; }

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--c-accent); transform: translateY(-2px); }

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-card-thumb { min-height: 220px; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; order: 3; padding: 1rem 0; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 0.7rem 0; }
  .menu-toggle { display: block; }
  .nav-search { display: none; }

  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat-number { font-size: 1.5rem; }

  .posts-grid.grid-2, .posts-grid.grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .single-post-header h1 { font-size: 1.7rem; }
  .post-meta-full { flex-wrap: wrap; justify-content: center; }
  .author-box { flex-direction: column; text-align: center; }
  .author-avatar { margin: 0 auto; }
}

@media (max-width: 480px) {
  :root { --max-width: 100%; }
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.5rem; }
  .categories-list { flex-wrap: nowrap; }
}
