/* ===========================================
   Eximigo - Global Trade Simplified
   Main Stylesheet
   =========================================== */

/* --- CSS Variables --- */
:root {
  --color-header: #082868;
  --color-cta: #0B9052;
  --color-cta-hover: #097a44;
  --color-bg: #FDFDFD;
  --color-card: #CCD4D7;
  --color-text: #1a1a2e;
  --color-text-muted: #5a6478;
  --color-border: #d8dde3;
  --color-white: #ffffff;
  --color-danger: #dc3545;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --max-width: 1200px;
  --spacing: 1rem;
}

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

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-cta); text-decoration: none; }
a:hover { color: var(--color-cta-hover); }
ul, ol { list-style: none; }

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

/* ===========================================
   HEADER
   =========================================== */
.site-header {
  background: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.site-logo img { height: 38px; width: auto; }

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  display: block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Nav — centered column */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.10);
}

.site-nav a.active {
  color: var(--color-white);
  background: rgba(11,144,82,0.18);
  box-shadow: inset 0 -2px 0 var(--color-cta);
}

/* Right slot: search icon + mobile toggle */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

/* Search icon button */
.header-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: #0B9052;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}

.header-search-icon:hover {
  background: #0A2E6E;
  color: #fff;
  transform: scale(1.08);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  background: linear-gradient(135deg, var(--color-header) 0%, #0d3d8c 60%, #1a5fab 100%);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  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-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(11,144,82,0.4);
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,144,82,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-primary {
  background: var(--color-header);
  color: var(--color-white);
}

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

/* ===========================================
   CATEGORY CAROUSEL
   =========================================== */
.category-carousel-section {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 64px;
  z-index: 900;
}

.category-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-carousel::-webkit-scrollbar { display: none; }

.cat-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--color-header);
  color: var(--color-white);
  border-color: var(--color-header);
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-header);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-cta);
  white-space: nowrap;
}

.section-link:hover { color: var(--color-cta-hover); text-decoration: underline; }

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

/* Post Card */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-card);
}

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

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

.post-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-cta);
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  flex: 1;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--color-cta); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.85rem;
}

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

/* ===========================================
   TOOLS PREVIEW
   =========================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tool-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.25s;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-cta);
}

.tool-icon {
  width: 48px;
  height: 48px;
  background: #e8f5ee;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-cta);
}

.tool-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.tool-info p { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.5; }

/* ===========================================
   NEWSLETTER
   =========================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-header), #0d3d8c);
  color: var(--color-white);
  padding: 4rem 1.25rem;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

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

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.96);
  color: var(--color-text);
}

.newsletter-form button {
  padding: 0.75rem 1.75rem;
  background: var(--color-cta);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--color-cta-hover); }

.newsletter-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  min-height: 1.2em;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  background: #0a1f4e;
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
}

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

.footer-brand .logo-text { font-size: 1.4rem; color: white; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-btn {
  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.75);
  transition: all 0.2s;
  font-size: 0.8rem;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--color-cta);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================================
   BREADCRUMB
   =========================================== */
.breadcrumb {
  padding: 0.85rem 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-cta); }
.breadcrumb span { color: var(--color-text); font-weight: 500; }

/* ===========================================
   ARTICLE / POST PAGE
   =========================================== */
.post-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  align-items: start;
}

.post-main { min-width: 0; overflow: hidden; }
.post-sidebar { min-width: 0; }

.post-header { margin-bottom: 1.5rem; }

.post-category-badge {
  display: inline-block;
  background: #e8f5ee;
  color: var(--color-cta);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-header);
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.post-meta span { display: flex; align-items: center; gap: 0.4rem; }

.post-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.75rem;
  aspect-ratio: 16/8;
  background: var(--color-card);
}

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

/* Table of Contents */
.toc-box {
  background: #f0f4f8;
  border-left: 4px solid var(--color-header);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-box h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-header);
  margin-bottom: 0.75rem;
}

.toc-list { display: flex; flex-direction: column; gap: 0.35rem; }

.toc-list li { counter-increment: toc-counter; }

.toc-list a {
  font-size: 0.88rem;
  color: var(--color-text);
  display: flex;
  gap: 0.5rem;
}

.toc-list a:hover { color: var(--color-cta); }

.toc-list .toc-h3 { padding-left: 1.25rem; font-size: 0.83rem; }

/* Article Content */
.article-content { font-size: 1rem; line-height: 1.85; }

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-header);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.75rem 0 0.75rem;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content a { color: var(--color-cta); text-decoration: underline; }
.article-content a:hover { color: var(--color-cta-hover); }

.article-content blockquote {
  border-left: 4px solid var(--color-cta);
  padding: 1rem 1.5rem;
  background: #f0f9f5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.article-content th {
  background: var(--color-header);
  color: white;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
}

.article-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.article-content tr:nth-child(even) { background: #f8f9fa; }

.article-content code {
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: monospace;
}

.article-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
  max-width: 100%;
  white-space: pre;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Ad Slots */
.ad-slot {
  background: #f5f5f5;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 1.5rem;
  margin: 2rem 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.ad-slot-banner { min-height: 90px; }
.ad-slot-rectangle { min-height: 250px; }
.ad-slot-inline { min-height: 100px; }

/* Author Box */
.author-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  margin: 2.5rem 0;
  align-items: flex-start;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-card);
  flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.author-info .author-title { font-size: 0.8rem; color: var(--color-cta); font-weight: 500; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; }
.author-links { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.author-links a { font-size: 0.8rem; color: var(--color-cta); font-weight: 500; }
.author-links a:hover { color: var(--color-cta-hover); }

/* Social Share */
.social-share {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-share span { font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  color: white;
}

.share-linkedin { background: #0077b5; }
.share-linkedin:hover { background: #005c8e; color: white; }
.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #1daa54; color: white; }
.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #0c63cf; color: white; }
.share-twitter { background: #1da1f2; }
.share-twitter:hover { background: #0d8ddb; color: white; }

/* Related Posts */
.related-posts h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-header);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Sidebar */
.post-sidebar { position: sticky; top: 120px; }

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-header);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-border);
}

.sidebar-post-list { display: flex; flex-direction: column; gap: 0.85rem; }

.sidebar-post {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sidebar-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-card);
  flex-shrink: 0;
}

.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-post-info a {
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  display: block;
}

.sidebar-post-info a:hover { color: var(--color-cta); }
.sidebar-post-info span { font-size: 0.75rem; color: var(--color-text-muted); }

/* ===========================================
   SEARCH PAGE
   =========================================== */
.search-page { padding: 3rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }

.search-bar-large {
  display: flex;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.search-bar-large input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar-large input:focus { border-color: var(--color-cta); }

.search-bar-large button {
  padding: 0.85rem 1.75rem;
  background: var(--color-header);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar-large button:hover { background: #0a2f6e; }

.search-results-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ===========================================
   ERROR PAGES
   =========================================== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 3rem 1.25rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-card);
  line-height: 1;
}

.error-page h1 {
  font-size: 1.75rem;
  color: var(--color-header);
  margin: 0.5rem 0 0.75rem;
}

.error-page p {
  color: var(--color-text-muted);
  max-width: 400px;
  margin-bottom: 2rem;
}

/* ===========================================
   CATEGORY PAGE
   =========================================== */
.category-header {
  background: var(--color-header);
  color: white;
  padding: 3rem 1.25rem;
  text-align: center;
}

.category-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.category-header p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.category-post-count {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

/* ===========================================
   BLOG PAGE
   =========================================== */
.blog-header {
  background: var(--color-header);
  color: white;
  padding: 3rem 1.25rem;
  text-align: center;
}

.blog-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.blog-header p { color: rgba(255,255,255,0.75); }

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

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  padding: 0 0.75rem;
}

.page-btn:hover,
.page-btn.active {
  background: var(--color-header);
  color: white;
  border-color: var(--color-header);
}

/* ===========================================
   TAGS
   =========================================== */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tag-badge {
  display: inline-block;
  background: #eef2f7;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  transition: all 0.2s;
  text-decoration: none;
}

.tag-badge:hover {
  background: var(--color-header);
  color: white;
}

/* ===========================================
   RESOURCE DOWNLOAD
   =========================================== */
.resource-download-box {
  background: linear-gradient(135deg, #e8f5ee, #f0f9f5);
  border: 1px solid #b8e0cc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.resource-download-box .icon {
  width: 52px;
  height: 52px;
  background: var(--color-cta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.resource-download-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.resource-download-box p { font-size: 0.85rem; color: var(--color-text-muted); }
.resource-download-box .btn-cta { margin-left: auto; flex-shrink: 0; }

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

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: 1 / -1;
    padding-bottom: 0.5rem;
  }
  .menu-toggle { display: flex; }
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    overflow: hidden;
  }
  .site-logo { min-width: 0; overflow: hidden; }
  .site-logo img { height: 32px; flex-shrink: 0; }
  .logo-text { font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo-tagline { display: none; }

  .articles-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 2.5rem 0; }

  .author-box { flex-direction: column; }
  .resource-download-box { flex-direction: column; }
  .resource-download-box .btn-cta { margin-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"],
  .newsletter-form button { width: 100%; }
  .social-share { flex-direction: column; align-items: flex-start; }
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
  background: #f8fafc;
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.faq-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-header);
  margin-bottom: 0.6rem;
}

.faq-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--color-cta); }

.faq-question[aria-expanded="true"] { color: var(--color-cta); }

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-cta);
}

.faq-answer {
  display: none;
  padding: 0 0.25rem 1.25rem;
}

.faq-answer.open { display: block; }

.faq-answer p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

.faq-answer p a {
  color: var(--color-cta);
  text-decoration: underline;
}

.faq-answer p strong { color: var(--color-text); }

/* ===========================================
   UTILITIES
   =========================================== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.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; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Highlight / notice boxes */
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.notice-info { background: #e8f4fd; border-left: 4px solid #2196f3; color: #1565c0; }
.notice-success { background: #e8f5ee; border-left: 4px solid var(--color-cta); color: #1b5e20; }
.notice-warning { background: #fff8e1; border-left: 4px solid #ffc107; color: #856404; }
