/*
Theme Name: AIWRITER KIT
Theme URI: https://aiwriterkit.io
Author: AIWRITER KIT
Author URI: https://aiwriterkit.io
Description: A modern AI-powered health knowledge blog theme covering human health, mental health, nutrition, fitness, plant health, animal health, beauty, and lifestyle wellness.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aiwriterkit
Tags: blog, health, wellness, clean, modern, responsive, two-columns, custom-colors, custom-logo, featured-images, full-width-template, post-formats, sticky-post, translation-ready
*/

/* ========================================
   CSS VARIABLES & ROOT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --primary: #E8490F;
  --primary-hover: #c93d0c;
  --primary-light: #fef3ee;
  --secondary: #3b82f6;
  --background: #ffffff;
  --muted-bg: #f5f5f5;
  --foreground: #1e2432;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --radius: 0.5rem;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

ul { list-style: none; }

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

/* Logo */
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a, .main-nav .nav-link {
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: none; border: none;
  display: flex; align-items: center; gap: 0.3rem;
}

.main-nav a:hover, .main-nav .nav-link:hover { background: var(--muted-bg); color: var(--foreground); }
.main-nav a.current-menu-item, .main-nav a.current_page_item { background: var(--muted-bg); }

/* Dropdown */
.menu-item-has-children { position: relative; }

.menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 0.2rem;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 200;
}

.menu-item-has-children:hover .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: 0;
}

.sub-menu li a:hover { background: var(--muted-bg); }

/* Search icon */
.header-search a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 1rem;
}
.header-search a:hover { background: var(--muted-bg); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: var(--foreground);
}

/* Contact button */
.btn-contact {
  background: var(--primary);
  color: #fff !important;
  padding: 0.4rem 1.2rem !important;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-contact:hover { background: var(--primary-hover) !important; color: #fff !important; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted-bg); color: var(--foreground); }

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 65vh;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1602052577122-f73b9710adba') center/cover no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

.hero-search {
  display: flex; gap: 0.75rem;
  max-width: 560px; margin: 0 auto 2rem;
  flex-wrap: wrap;
}

.hero-search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  min-width: 200px;
  outline: none;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section { padding: 5rem 0; }
.section-muted { background: var(--muted-bg); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; gap: 1rem; flex-wrap: wrap;
}
.section-header-row h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.section-header-row p { color: var(--muted); }

/* ========================================
   CATEGORY CARDS
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--foreground);
}

.category-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.category-card h3 { font-size: 1rem; font-weight: 600; color: var(--foreground); }
.category-card p { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

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

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  transition: all 0.2s;
  display: flex; flex-direction: column;
  text-decoration: none;
}

.article-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.article-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.article-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-card-image img { transform: scale(1.05); }

.article-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.article-card-body {
  padding: 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}

.article-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.article-card:hover .article-card-body h3 { color: var(--primary); }

.article-card-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8rem; color: var(--muted);
  margin-top: auto;
}

.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ========================================
   NEWSLETTER BANNER
   ======================================== */
.newsletter-banner {
  background: var(--primary);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-banner h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.newsletter-banner p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex; gap: 0.75rem; justify-content: center; max-width: 460px; margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  min-width: 200px;
  outline: none;
}

.newsletter-form button {
  background: var(--foreground);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.85; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--muted-bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; max-width: 220px; line-height: 1.6; }

.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--foreground); margin-bottom: 1rem; }

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--foreground); }

.footer-newsletter p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }

.footer-newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.footer-newsletter-form input {
  flex: 1; min-width: 130px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.875rem;
  outline: none;
  background: #fff;
}

.footer-newsletter-form button {
  background: var(--primary); color: #fff;
  border: none; padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-newsletter-form button:hover { background: var(--primary-hover); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--muted); }
.footer-legal a:hover { color: var(--foreground); }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--foreground); background: var(--border); }

/* ========================================
   BLOG PAGE
   ======================================== */
.blog-hero { background: var(--muted-bg); padding: 4rem 0; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.blog-hero p { color: var(--muted); font-size: 1.05rem; }

.blog-filters {
  display: flex; gap: 1rem; align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.blog-search-wrap {
  flex: 1; min-width: 220px;
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  background: #fff;
  gap: 0.5rem;
}

.blog-search-wrap input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-main); font-size: 0.9rem;
}

.blog-category-filter {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer; outline: none;
  min-width: 160px;
}

/* ========================================
   SINGLE POST
   ======================================== */
.single-post-hero { background: var(--muted-bg); padding: 3rem 0; }
.single-post-hero .post-badge {
  display: inline-block;
  background: var(--primary); color: #fff;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  margin-bottom: 1rem;
}

.single-post-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 800px; margin-bottom: 1rem; }
.single-post-hero .post-meta { display: flex; gap: 1.5rem; color: var(--muted); font-size: 0.875rem; flex-wrap: wrap; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}

.post-featured-image { width: 100%; border-radius: calc(var(--radius)*1.5); margin-bottom: 2rem; max-height: 440px; object-fit: cover; }

.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--foreground); }
.post-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { font-weight: 700; }
.post-content blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; color: var(--muted); font-style: italic; margin: 1.5rem 0; }

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

.sidebar-widget {
  background: var(--muted-bg);
  border-radius: calc(var(--radius)*1.5);
  padding: 1.5rem;
}

.sidebar-widget h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.toc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.toc-list a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.toc-list a:hover { color: var(--primary); }

/* FAQ */
.faq-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { margin-bottom: 1.5rem; }
.faq-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--foreground); }
.faq-item p { font-size: 0.95rem; color: var(--muted); }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero { background: var(--muted-bg); padding: 5rem 0; text-align: center; }
.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.about-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*1.5);
  padding: 2rem;
}

.info-card .card-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.25rem;
}

.info-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.info-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.philosophy-section { background: var(--muted-bg); }
.philosophy-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.philosophy-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.philosophy-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.philosophy-item p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*1.5);
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.team-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-card .team-role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-hero { background: var(--muted-bg); padding: 4rem 0; text-align: center; }
.contact-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.contact-hero p { color: var(--muted); font-size: 1.05rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 0; align-items: start; }

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*1.5);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-form-card h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--muted-bg);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); background: #fff; }

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}

.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.contact-info-card h4 { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
.contact-info-card p { font-size: 0.9rem; font-weight: 500; }

.office-hours-card {
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.office-hours-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.office-hours-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }

/* ========================================
   PAGINATION
   ======================================== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; padding: 3rem 0; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; color: var(--foreground);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ========================================
   TEXT CENTER UTILITY
   ======================================== */
.text-center { text-align: center; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header-row { flex-direction: column; }
  .hero-search { flex-direction: column; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
}

.mobile-nav a:hover { background: var(--muted-bg); }

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */
.wp-block-image { margin: 1.5rem 0; }
.alignwide { margin-left: -2rem; margin-right: -2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
.screen-reader-text { position: absolute; left: -9999em; }
