/* ============================================
   BPC Blog - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --primary: #1a5276;
  --primary-dark: #154360;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --text: #1c2833;
  --text-muted: #5d6d7e;
  --text-light: #aab7c4;
  --bg: #f8f9fa;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border: #e8ecef;
  --border-light: #f0f3f5;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---- Layout Helpers ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-primary { background: #e8f0fe; color: var(--primary); }
.badge-accent { background: #fef3e2; color: var(--accent); }
.badge-green { background: #e8f8f5; color: #1e8449; }
.badge-purple { background: #f5eef8; color: #7d3c98; }
.badge-red { background: #fdedec; color: #c0392b; }

/* ============================
   HEADER
   ============================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm); height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo .logo-icon {
  width: 40px; height: 40px; background: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; font-weight: 700; font-family: var(--font-display);
}
.site-logo .logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.site-logo .logo-text span { color: var(--accent); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text);
}
.main-nav a:hover, .main-nav a.active { background: var(--border-light); color: var(--primary); }

/* Header Search */
.header-search { position: relative; }
.header-search input {
  padding: 8px 36px 8px 14px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.85rem; font-family: var(--font-body);
  width: 200px; transition: var(--transition); outline: none;
  background: var(--bg);
}
.header-search input:focus { border-color: var(--primary); width: 240px; background: #fff; }
.header-search .search-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column; justify-content: center;
  gap: 5px; padding: 4px;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  transition: var(--transition); border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav — hidden by default on ALL screen sizes; JS adds .open class */
.mobile-nav { display: none; }

/* ============================
   HERO
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0d2137 100%);
  color: #fff; padding: 70px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 6px 16px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero .lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat .num {
  display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent);
}
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ============================
   FEATURED / CARDS
   ============================ */
.section-header { margin-bottom: 36px; }
.section-header h2 { margin-bottom: 6px; }
.section-header p { color: var(--text-muted); }
.section-header .view-all { float: right; margin-top: -36px; }

/* Card Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.articles-grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Article Card */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-image { position: relative; overflow: hidden; }
.card-image img {
  width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-cat {
  position: absolute; top: 12px; left: 12px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px;
}
.card-meta .dot { width: 3px; height: 3px; background: var(--text-light); border-radius: 50%; }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border-light);
}
.card-footer .read-link { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.card-footer .read-link:hover { color: var(--accent); }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

/* Featured Hero Card */
.card-featured {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: 1fr 1fr; gap: 0; min-height: 360px;
}
.card-featured .card-image { border-radius: 0; }
.card-featured .card-image img { height: 100%; }
.card-featured .card-body { padding: 36px; justify-content: center; }
.card-featured .card-title { font-size: 1.5rem; }
.card-featured .card-excerpt { font-size: 0.95rem; }

/* ============================
   LAYOUT: Main + Sidebar
   ============================ */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);
  color: var(--text);
}
.widget-posts { display: flex; flex-direction: column; gap: 14px; }
.widget-post { display: flex; gap: 12px; align-items: flex-start; }
.widget-post .post-icon {
  width: 42px; height: 42px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.widget-post .post-info { flex: 1; }
.widget-post .post-title { font-size: 0.87rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.widget-post .post-title:hover { color: var(--primary); }
.widget-post .post-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

/* Categories widget */
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg); transition: var(--transition);
  font-size: 0.88rem; font-weight: 500; color: var(--text);
}
.cat-item:hover { background: var(--primary); color: #fff; }
.cat-item:hover .cat-count { background: rgba(255,255,255,0.25); color: #fff; }
.cat-count {
  background: var(--border); border-radius: 10px;
  padding: 2px 8px; font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.newsletter-widget .widget-title { border-bottom-color: rgba(255,255,255,0.3); color: #fff; }
.newsletter-widget p { font-size: 0.88rem; color: rgba(255,255,255,0.82); margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15);
  color: #fff; font-family: var(--font-body); font-size: 0.88rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: #fff; background: rgba(255,255,255,0.2); }
.newsletter-form button {
  padding: 10px; background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.newsletter-form button:hover { background: var(--accent-light); }

/* ============================
   CATEGORIES STRIP
   ============================ */
.categories-strip { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 0; }
.cats-nav {
  display: flex; gap: 4px; overflow-x: auto; padding: 14px 0;
  scrollbar-width: none;
}
.cats-nav::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); transition: var(--transition);
}
.cat-nav-item:hover, .cat-nav-item.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================
   BLOG PAGE
   ============================ */
.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-list-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); display: grid;
  grid-template-columns: 200px 1fr; gap: 0; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.blog-list-card:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.blog-list-card .card-image img { height: 160px; width: 200px; object-fit: cover; }
.blog-list-card .card-body { padding: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card); cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.wide { width: auto; padding: 0 16px; }

/* ============================
   ARTICLE PAGE
   ============================ */
.article-hero { background: var(--bg-white); padding: 50px 0 0; border-bottom: 1px solid var(--border); }
.article-hero .container { max-width: 900px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.article-title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 20px; }
.article-byline {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted); padding-bottom: 30px;
}
.article-hero-img { margin-top: 30px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.article-hero-img img { width: 100%; height: 400px; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding-top: 48px; }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 1.6rem; margin: 36px 0 16px; color: var(--primary); }
.article-body h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.article-body p { font-size: 1rem; line-height: 1.85; color: var(--text); margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 16px 24px;
  background: #fef9f3; margin: 28px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body blockquote p { margin: 0; font-style: italic; color: var(--text-muted); }
.article-body .highlight-box {
  background: #e8f4fd; border: 1px solid #bee3f8; border-radius: var(--radius-sm);
  padding: 20px 24px; margin: 28px 0;
}
.article-body .highlight-box h4 { color: var(--primary); margin-bottom: 8px; }
.article-toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 32px; }
.article-toc h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 12px; }
.article-toc ol { margin-left: 18px; }
.article-toc li { font-size: 0.88rem; margin-bottom: 6px; }

/* Article share */
.article-share { display: flex; align-items: center; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); margin-top: 36px; }
.share-label { font-weight: 600; font-size: 0.9rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; text-decoration: none;
}
.share-fb { background: #e8f0fe; color: #1877f2; }
.share-fb:hover { background: #1877f2; color: #fff; }
.share-tw { background: #e8f8ff; color: #1da1f2; }
.share-tw:hover { background: #1da1f2; color: #fff; }
.share-wa { background: #edfbee; color: #25d366; }
.share-wa:hover { background: #25d366; color: #fff; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag {
  padding: 5px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.8rem; color: var(--text-muted); transition: var(--transition);
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Author Box */
.author-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: flex-start; margin: 36px 0;
}
.author-avatar {
  width: 70px; height: 70px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  color: #fff; flex-shrink: 0;
}
.author-info h4 { margin-bottom: 6px; }
.author-info p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ============================
   SEARCH PAGE
   ============================ */
.search-hero {
  background: var(--bg-white); padding: 50px 0;
  border-bottom: 1px solid var(--border); text-align: center;
}
.search-hero h1 { margin-bottom: 24px; }
.search-box-large {
  display: flex; max-width: 600px; margin: 0 auto;
  border: 2px solid var(--border); border-radius: 50px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.search-box-large input {
  flex: 1; padding: 16px 24px; border: none; outline: none;
  font-size: 1rem; font-family: var(--font-body);
}
.search-box-large button {
  padding: 16px 28px; background: var(--primary); color: #fff; border: none;
  cursor: pointer; font-size: 1rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition);
}
.search-box-large button:hover { background: var(--primary-dark); }
.search-info { font-size: 0.9rem; color: var(--text-muted); margin-top: 16px; }

/* ============================
   PAGES: About, Contact, etc.
   ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 60px 0; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.1rem; }

.prose-content { max-width: 800px; margin: 0 auto; }
.prose-content h2 { color: var(--primary); margin: 36px 0 14px; }
.prose-content h3 { margin: 28px 0 12px; }
.prose-content p, .prose-content li { line-height: 1.85; color: var(--text); }
.prose-content ul { list-style: disc; margin-left: 22px; margin-bottom: 18px; }
.prose-content ol { list-style: decimal; margin-left: 22px; margin-bottom: 18px; }
.prose-content li { margin-bottom: 8px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: var(--transition); background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(26,82,118,0.08);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  background: #edfbee; border: 1px solid #a9dfb0; border-radius: var(--radius-sm);
  padding: 14px 18px; color: #1e8449; font-weight: 500; font-size: 0.9rem; display: none;
}
.form-error { background: #fdedec; border: 1px solid #f5c6cb; border-radius: var(--radius-sm); padding: 14px 18px; color: #c0392b; display: none; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-text strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ============================
   NEWSLETTER SECTION
   ============================ */
.newsletter-section {
  background: linear-gradient(135deg, #1a5276, #0d2137); padding: 70px 0; text-align: center; color: #fff;
}
.newsletter-section h2 { color: #fff; margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }
.newsletter-inline-form {
  display: flex; max-width: 480px; margin: 0 auto; gap: 0;
  border-radius: 50px; overflow: hidden; border: 2px solid rgba(255,255,255,0.2);
}
.newsletter-inline-form input {
  flex: 1; padding: 14px 22px; border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-family: var(--font-body); font-size: 0.95rem; outline: none;
}
.newsletter-inline-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-inline-form button {
  padding: 14px 28px; background: var(--accent); border: none; color: #fff;
  font-weight: 700; font-family: var(--font-body); font-size: 0.95rem;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.newsletter-inline-form button:hover { background: var(--accent-light); }
.newsletter-note { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* ============================
   FOOTER
   ============================ */
.site-footer { background: #0d1b2a; color: #adb5bd; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { color: #fff; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; display: block; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: #6c757d; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #6c757d; font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: #495057; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.82rem; color: #495057; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================
   BREADCRUMB + PAGE META
   ============================ */
.page-meta { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 14px 0; }
.page-meta .breadcrumb { margin: 0; }

/* ============================
   ALERT / NOTICE
   ============================ */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px;
}
.alert-info { background: #e8f4fd; border: 1px solid #bee3f8; color: #1a5276; }
.alert-success { background: #edfbee; border: 1px solid #a9dfb0; color: #1e8449; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-image img { height: 260px; }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-search { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-white); z-index: 999; padding: 20px;
    flex-direction: column; gap: 4px; overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem;
    font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-light);
  }
  .mobile-nav a:hover { background: var(--bg); color: var(--primary); }
  .blog-list-card { grid-template-columns: 1fr; }
  .blog-list-card .card-image img { width: 100%; height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .section-header .view-all { float: none; margin-top: 8px; display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 0 60px; }
  .hero-actions { flex-direction: column; }
  .newsletter-inline-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-inline-form button { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ============================
   AD PLACEHOLDERS
   ============================ */
.ad-unit {
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 12px; text-align: center;
  font-size: 0.75rem; color: var(--text-light); min-height: 90px;
  display: flex; align-items: center; justify-content: center; margin: 24px 0;
}

/* ============================
   UTILITIES
   ============================ */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); }
