/*
Theme Name: Decor Idea Daily
Theme URI: https://decorideadaily.com
Author: Decor Idea Daily Team
Author URI: https://decorideadaily.com
Description: A Pinterest-optimized, Mediavine-ready WordPress theme for home decor blogs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: decorideadaily
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, post-formats, theme-options
*/

/* ============================================
   DECOR IDEAS DAILY - Pinterest-Optimized Blog
   Clean, White, Mediavine-Ready Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2c7a7b;
  --primary-light: #e6fffa;
  --primary-dark: #234e52;
  --accent: #d4a373;
  --accent-light: #fefae0;
  --text: #1a202c;
  --text-light: #718096;
  --text-lighter: #a0aec0;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --bg-warm: #fffbf5;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 340px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
h4 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }

p {
  margin-bottom: 1.5rem;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: -0.5px;
}

.site-logo h1 a {
  color: var(--text);
}

.site-logo h1 a:hover {
  color: var(--primary);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  position: relative;
}

.header-search input {
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  width: 200px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  font-family: var(--font-body);
}

.header-search input:focus {
  border-color: var(--primary);
  width: 260px;
}

.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
}

.header-social {
  display: flex;
  gap: 12px;
}

.header-social a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: color 0.2s;
}

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

/* Main Navigation */
.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  gap: 0;
}

.main-nav li a {
  display: block;
  padding: 14px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.main-nav li a:hover,
.main-nav li a.active,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a,
.main-nav li.current-menu-ancestor > a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 5px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--bg-warm);
  padding: 40px 0;
}

.hero-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.hero-overlay .category-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-overlay h2 {
  font-size: 1.75rem;
  color: white;
  margin: 0 0 8px;
}

.hero-overlay h2 a {
  color: white;
}

.hero-overlay h2 a:hover {
  opacity: 0.9;
}

.hero-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.hero-side-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-item .hero-overlay h2 {
  font-size: 1.15rem;
}

/* ============================================
   CONTENT GRID (Homepage)
   ============================================ */
.content-section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--text);
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.post-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

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

/* Pin It Button on Hover */
.pin-it-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e60023;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.post-card:hover .pin-it-btn {
  opacity: 1;
}

.pin-it-btn:hover {
  background: #ad081b;
}

.post-card-body {
  padding: 20px;
}

.post-card-body .category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.post-card-body .category-tag a {
  color: var(--primary);
}

.post-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.post-card-body h3 a {
  color: var(--text);
}

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

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* ============================================
   TWO-COLUMN LAYOUT (Content + Sidebar)
   ============================================ */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 50px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s;
}

.post-header {
  padding: 40px 0 20px;
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.post-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 20px;
}

.post-breadcrumb a {
  color: var(--text-light);
}

.post-header .category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-header .category-tag a {
  color: var(--primary);
}

.post-header h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta .author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta .divider {
  width: 4px;
  height: 4px;
  background: var(--text-lighter);
  border-radius: 50%;
}

.post-hero-image {
  max-width: 900px;
  margin: 30px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.post-hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Post Content */
.post-content-area {
  padding: 30px 0 60px;
}

.post-content {
  max-width: var(--content-width);
  font-size: 18px;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
}

.post-content h3 {
  font-size: 1.375rem;
  margin: 2.5rem 0 1rem;
}

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

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.post-content a:hover {
  text-decoration-color: var(--primary);
}

/* Ad Placeholder */
.ad-placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-lighter);
  font-size: 0.8rem;
}

/* Pinterest Hidden Pin */
.pinterest-hidden-pin {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Social Share Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-share-bar span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; color: white; }
.share-btn.pinterest { background: #e60023; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.email { background: #718096; }

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin: 30px 0;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h4 {
  margin: 0 0 5px;
  font-family: var(--font-heading);
}

.author-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Related Posts */
.related-posts {
  padding: 50px 0;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-grid .post-card-image {
  aspect-ratio: 1/1;
}

.related-grid .post-card-body {
  padding: 14px;
}

.related-grid .post-card-body h3 {
  font-size: 1rem;
}

/* Comments */
.comments-section {
  margin-top: 40px;
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.comments-section h3 {
  margin-bottom: 10px;
  text-align: center;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.comment-author img {
  border-radius: 50%;
}

.comment-respond {
  margin-top: 30px;
}

.comment-respond input,
.comment-respond textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  margin-bottom: 10px;
}

.comment-respond .submit {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s;
}

.comment-respond .submit:hover {
  background: var(--primary-dark);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: relative;
}

.sidebar-widget {
  margin-bottom: 35px;
  padding: 25px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sidebar-widget h4,
.sidebar-widget .widget-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}

/* About Widget */
.about-widget {
  text-align: center;
}

.about-widget img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
}

.about-widget p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Email Signup Widget */
.email-widget {
  background: var(--primary-light);
  border-color: transparent;
}

.email-widget h4,
.email-widget .widget-title {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.email-widget p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.email-widget input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.email-widget button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.email-widget button:hover {
  background: var(--primary-dark);
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.popular-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-item img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-post-item h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 5px;
}

.popular-post-item h5 a {
  color: var(--text);
}

.popular-post-item h5 a:hover {
  color: var(--primary);
}

.popular-post-item .post-date {
  font-size: 0.75rem;
  color: var(--text-lighter);
}

/* Pinterest Follow Widget */
.pinterest-widget {
  background: #fef0ef;
  border-color: transparent;
  text-align: center;
}

.pinterest-widget h4,
.pinterest-widget .widget-title {
  border-bottom-color: #e60023;
}

.pinterest-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e60023;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.pinterest-follow-btn:hover {
  background: #ad081b;
  color: white;
}

/* Sticky Sidebar Ad */
.sidebar-sticky {
  position: sticky;
  top: 100px;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-header {
  text-align: center;
  padding: 50px 0 30px;
  background: var(--bg-warm);
}

.category-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.category-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Pills */
.category-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 25px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.category-pill {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   NEWSLETTER BANNER
   ============================================ */
.newsletter-banner {
  background: var(--primary);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.newsletter-banner h2 {
  color: white;
  font-size: 2rem;
  margin: 0 0 10px;
}

.newsletter-banner p {
  opacity: 0.9;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #c49565;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: #cbd5e0;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a0aec0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #a0aec0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #a0aec0;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #718096;
}

/* Footer menu inline */
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu ul li {
  margin-bottom: 10px;
}

.footer-menu ul li a {
  color: #a0aec0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-menu ul li a:hover {
  color: white;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.pagination .page-numbers:hover:not(.current) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more:hover {
  gap: 8px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background: var(--bg-warm);
  padding: 60px 0;
  text-align: center;
}

.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 50px 20px;
}

.about-content img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 50px 20px;
}

.page-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
  position: relative;
}

.search-form .search-field {
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  width: 200px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  font-family: var(--font-body);
}

.search-form .search-field:focus {
  border-color: var(--primary);
  width: 260px;
}

.search-form .search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN (Mobile First)
   ============================================ */
@media (max-width: 1024px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .mobile-menu-toggle { display: block; }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .header-search { display: none; }

  .hero-featured {
    grid-template-columns: 1fr;
  }

  .hero-main img { height: 300px; }

  .hero-side {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .post-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .post-header h1 { font-size: 2rem; }

  .post-hero-image img { height: 300px; }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .social-share-bar {
    flex-wrap: wrap;
  }

  .post-meta {
    flex-direction: column;
    gap: 8px;
  }

  .post-meta .divider { display: none; }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .post-grid,
  .post-grid.two-col {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .category-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .category-pill { white-space: nowrap; }
}

/* ============================================
   LOADING / LAZY LOAD
   ============================================ */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

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

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .main-nav,
  .sidebar,
  .social-share-bar,
  .newsletter-banner,
  .site-footer,
  .back-to-top,
  .ad-placeholder,
  .pin-it-btn {
    display: none !important;
  }

  body { font-size: 12pt; }
  .post-content { max-width: 100%; }
}

/* ============================================
   WORDPRESS-SPECIFIC STYLES
   ============================================ */
/* WordPress alignment classes */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.alignwide {
  max-width: calc(var(--content-width) + 200px);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress caption */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* WordPress gallery */
.wp-block-gallery {
  margin: 2rem 0;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bg-light);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: var(--text);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
