/* Editorial display font — matches mxm_new's blog look/feel (Bebas Neue for
   headlines only; body copy stays on the site's normal system-font stack,
   see --font-sans below, so paragraphs/UI chrome are unaffected). */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  /* Inherit/Adopt user variables */
  --bg-page: #edf3fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f6ff;
  --bg-input: #f5f9ff;
  --bg-strip: #e2ecfa;
  --bg-modal: #ffffff;

  --text-primary: #0c1a30;
  --text-secondary: #334d6e;
  --text-muted: #56718c;
  --text-heading: #00184a;

  --border-color: #bccfe8;
  --border-input: #aec4e0;

  --brand: #002D62;
  --brand-mid: #1250b8;
  --brand-light: #d6e8ff;
  --text-price: #0d5fd1;
  --accent-emerald: #10b981;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.12);
  --shadow-md: 0 1px 4px rgba(8, 28, 65, 0.07), 0 6px 20px rgba(8, 28, 65, 0.09);
  --shadow-premium: 0 10px 30px -10px rgba(0, 45, 98, 0.2);

  --card-radius: 14px;
  --modal-radius: 20px;

  /* Map old variable names so the rest of blog.css works perfectly */
  --bg-primary: var(--bg-page);
  --bg-secondary: var(--bg-card);
  --header-bg: var(--brand);
  --header-text: #ffffff;
  --nav-sub-bg: var(--bg-card);

  --primary-blue: var(--brand);
  --primary-blue-hover: var(--brand-mid);
  --primary-blue-light: var(--brand-light);
  --text-dark: var(--text-primary);

  --font-display: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --border-radius-sm: 6px;
  --border-radius-md: var(--card-radius);
  --border-radius-lg: var(--modal-radius);

  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-page: #050912;
  --bg-card: #0e1625;
  --bg-card-hover: #162035;
  --bg-input: #0b1120;
  --bg-strip: #0a1320;
  --bg-modal: #0f1a2e;

  --text-primary: #eef5ff;
  --text-secondary: #90a8c8;
  --text-muted: #6080a0;
  --text-price: #7eb8ff;
  --text-heading: #eef5ff;

  --border-color: #1e3050;
  --border-input: #243860;

  /* Matches style_home.css dark-mode brand/background so blog pages don't
     shift accent color when the site is toggled to dark mode. */
  --brand: #2563eb;
  --brand-mid: #60a5fa;
  --brand-light: #0e1e3c;
  --brand-text: #aaceff;
  --accent-emerald: #10b981;

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation — matches the real marketplace .navbar (style_home.css)
   so the blog section's header is a structural twin of the main site nav. */
.navbar {
  background: #002D62;
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
  overflow: visible;
}

[data-theme="dark"] .navbar {
  background: #09090d;
  border-bottom: 2px solid var(--text-secondary);
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
}

.nav-logo {
  height: 38px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-trigger {
  background: white;
  color: #002D62;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

[data-theme="dark"] .login-trigger {
  background: #2563eb;
  color: #fff;
}

.user-name-pill {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .user-name-pill {
  background: rgba(37, 99, 235, 0.15);
  color: #e2e8f0;
  border: 1px solid #1e2433;
}

.theme-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

/* Category Strip Navigation */
.category-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  transition: background 0.22s, border-color 0.22s;
  box-shadow: 0 2px 8px rgba(0, 20, 70, 0.04);
}

[data-theme="dark"] .category-strip {
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.category-strip .nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  overflow-x: auto;
  white-space: nowrap;
}

.category-strip .nav-container::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: color 0.18s, background 0.2s, border-color 0.18s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-strip a:hover {
  color: var(--brand);
  background: rgba(0, 45, 98, 0.07);
  transform: translateY(-1px);
}

[data-theme="dark"] .category-strip a:hover {
  color: var(--brand);
  background: rgba(77, 141, 245, 0.1);
}

.category-strip a.cat-active,
.category-strip a.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 10px rgba(0, 45, 98, 0.25) !important;
}

[data-theme="dark"] .category-strip a.cat-active,
[data-theme="dark"] .category-strip a.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 10px rgba(77, 141, 245, 0.25) !important;
}

/* Main Container Layout */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Blog Header (Title + Breadcrumb + Admin switch) */
.blog-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.blog-intro-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; /* Bebas Neue is single-weight; 700/800 just falls back with no visual bolding */
  line-height: 0.95;
  color: var(--text-dark);
  letter-spacing: 0.01em; /* Bebas Neue is already condensed; negative tracking made glyphs crowd/overlap */
  margin-bottom: 0.25rem;
}

.breadcrumb {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-blue);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
}

.breadcrumb li.active {
  color: var(--text-secondary);
  font-weight: 500;
}

.blog-actions-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Main Grid Layout (Feed View) */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

/* Feed View Container */
.blog-feed-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Featured Blog Post Card */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.featured-image-wrapper {
  position: relative;
  min-height: 320px;
  background-color: var(--primary-blue-light);
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.featured-card:hover .featured-image-wrapper img {
  transform: scale(1.03);
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.featured-content h2 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.featured-content h2 a:hover {
  color: var(--primary-blue);
}

.featured-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--border-color);
}

.author-name {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Regular Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

.post-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--primary-blue-light);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.post-card-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

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

.widget {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  /* Deliberately NOT var(--font-display) — Bebas Neue is a tall condensed
     caps font meant for big editorial headlines (mxm_new only ever uses it
     at 24px+); at this small sidebar-label size it reads as cramped rather
     than "editorial", so this stays on the normal UI font stack. */
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-left: 3px solid var(--primary-blue);
  padding-left: 0.75rem;
}

/* Sidebar Search Widget */
.search-widget-form {
  position: relative;
}

.search-widget-form input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-widget-form input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

.search-widget-form i {
  position: absolute;
  left: 0.75rem;
  top: 70%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Category list widget */
.categories-list {
  list-style: none;
}

.categories-list li {
  margin-bottom: 0.5rem;
}

.categories-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.categories-list li a:hover,
.categories-list li.active a {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-weight: 500;
}

.category-count {
  font-size: 0.75rem;
  background: var(--border-color);
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  font-weight: 600;
}

.categories-list li a:hover .category-count,
.categories-list li.active a .category-count {
  background: var(--primary-blue);
  color: #ffffff;
}

/* Tags Cloud Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.tag-badge:hover,
.tag-badge.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* Dynamic Reading View */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 3rem 4rem;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2rem;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.article-header .category-badge {
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.005em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.share-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

.article-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 2.25rem;
}

/* Rich Article Body Content styling */
.article-body {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.05;
  margin: 2rem 0 1rem 0;
  color: var(--text-dark);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-dark);
}

.article-body blockquote {
  border-left: 4px solid var(--primary-blue);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body img {
  max-width: 100%;
  border-radius: var(--border-radius-sm);
  margin: 1.5rem 0;
}

/* Administrative posting forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
}

#toast-notification.success {
  border-left: 4px solid var(--accent-emerald);
}

#toast-notification.error {
  border-left: 4px solid #ef4444;
}

/* Empty State / Not Found State styling */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--border-color);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
  display: none;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--primary-blue);
  width: 0;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

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

  .featured-image-wrapper {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 16px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-links a span,
  .nav-links a {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 1.5rem 1rem;
  }

  .header-main {
    padding: 0.75rem 1rem;
  }

  .header-search {
    display: none;
    /* Hide main search bar on mobile, rely on sidebar/page filters */
  }

  .blog-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .article-container {
    padding: 1.5rem;
  }

  .article-cover {
    height: 240px;
  }
}

/* Footer Styling matching MiniXmart's real site footer (homepage.html) */
.site-footer {
  background: #eaf2fb;
  color: #0d3b6e;
  padding: 2.5rem 2rem 0 2rem;
  border-top: 1px solid #d0e4f5;
  margin-top: 4rem;
  transition: background 0.22s, border-color 0.22s;
}

[data-theme="dark"] .site-footer {
  background: #06060a;
  border-top-color: #1e2433;
}

.footer-links-bar {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-col h4 {
  color: #0d3b6e;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .footer-col h4 {
  color: #334155;
}

.footer-col a {
  display: block;
  color: #0d3b6e;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.65;
  text-decoration: underline;
}

[data-theme="dark"] .footer-col a {
  color: #94a3b8;
}

[data-theme="dark"] .footer-col a:hover {
  color: #60a5fa;
}

.footer-copy {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid #d0e4f5;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

[data-theme="dark"] .footer-copy {
  border-top-color: #1e2433;
  color: #334155;
}

@media (max-width: 768px) {
  .footer-links-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
}

/* =============================================================================
   EDITORIAL BLOG LAYOUT — full visual match to mxm_new's community blog
   (full-bleed hero + story-grid, no sidebar). Everything above this point
   (.blog-layout, .sidebar, .widget*, .featured-card, .posts-grid, .post-card,
   .blog-intro, .article-meta, .article-cover, .category-badge, .post-meta,
   .author-*) is now DEAD CSS — blog.html/article.html no longer use those
   classes — but is left in place rather than deleted, since no other
   template on this site references them and removing working rules on a
   guess is riskier than a few unused KB of CSS. Safe to delete later once
   confirmed nothing else depends on it.
   ============================================================================= */

.blog-page-wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem 6rem; }

.blog-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-blue); margin: 2.5rem 0 8px;
}
[data-theme="dark"] .blog-eyebrow { color: var(--brand-mid); }

.blog-page-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(40px, 6vw, 72px); line-height: 0.95; color: var(--text-heading); margin: 0 0 10px;
}

.blog-page-sub { color: var(--text-secondary); font-size: 1rem; max-width: 560px; margin-bottom: 2.5rem; }

.blog-search-banner {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--card-radius);
  padding: 0.9rem 1.25rem; margin-bottom: 2rem; color: var(--text-secondary); font-size: 0.9rem;
}
.blog-search-banner a { margin-left: 0.75rem; font-weight: 700; color: var(--primary-blue); text-decoration: none; }
.blog-search-banner a:hover { text-decoration: underline; }

.blog-empty { text-align: center; padding: 6rem 2rem; color: var(--text-muted); }
.blog-empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.blog-empty h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--text-heading); margin-bottom: 0.5rem; }
.blog-empty p { margin-bottom: 1.5rem; }

/* Featured hero story — full-bleed image, overlaid headline (matches
   mxm_new's .story-hero exactly, using this site's own card-radius/shadow
   tokens instead of introducing new ones). */
.story-hero {
  position: relative; display: block; border-radius: var(--card-radius); overflow: hidden;
  min-height: 460px; margin-bottom: 3.5rem; background: var(--bg-card);
  box-shadow: var(--shadow-premium); text-decoration: none;
}
.story-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.2,0.6,0.2,1);
}
.story-hero:hover img { transform: scale(1.045); }
.story-hero .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.82) 100%);
}
.story-hero .hero-content {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 40px 44px; color: #fff;
}
.story-tag {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 14px; backdrop-filter: blur(4px);
}
.story-hero .hero-content h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.0; margin: 0 0 12px; max-width: 780px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-excerpt { font-size: 15px; color: rgba(255,255,255,0.88); max-width: 560px; line-height: 1.55; margin: 0 0 14px; }
.hero-meta { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.02em; }

.stories-section-title {
  font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0.02em;
  color: var(--text-heading); margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color);
}

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .story-grid { grid-template-columns: 1fr; }
  .blog-page-wrap { padding: 0 1.25rem 4rem; }
  .story-hero .hero-content { padding: 28px 24px; }
}

.story-card { display: block; text-decoration: none; }
.story-card .story-thumb {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--card-radius);
  overflow: hidden; margin-bottom: 16px; background: var(--border-color);
}
.story-card .story-thumb img { width: 100%; height: 100%; display: block; transition: transform 0.5s cubic-bezier(0.2,0.6,0.2,1); }
.story-card:hover .story-thumb img { transform: scale(1.08); }
.story-tag-inline {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
  padding: 3px 10px; border-radius: 999px;
}
.story-card h3 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em;
  font-size: 24px; line-height: 1.08; color: var(--text-heading); margin: 0 0 8px; transition: color 0.15s;
}
.story-card:hover h3 { color: var(--primary-blue); }
.story-excerpt { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; margin-bottom: 8px; }
.story-meta { font-size: 11.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.02em; }

/* Article page — full-bleed hero, same treatment as the blog listing's
   featured story, then a centered reading column below. */
.article-hero { position: relative; width: 100%; min-height: 52vh; max-height: 620px; overflow: hidden; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
}
.article-hero .hero-inner {
  position: relative; z-index: 2; max-width: 880px; margin: 0 auto; height: 100%;
  min-height: 52vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px 24px; color: #fff;
}
.article-hero h1 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.0; margin: 8px 0 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.article-byline { font-size: 13px; color: rgba(255,255,255,0.78); font-weight: 600; }

.article-content-wrap { max-width: 720px; margin: 0 auto; padding: 2.5rem 24px 6rem; }

.article-share { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.article-share-label { font-size: 0.8rem; color: var(--text-muted); margin-right: 0.25rem; }

.article-back-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-top: 3rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border-color); width: 100%; text-decoration: none;
}
.article-back-link:hover { color: var(--primary-blue); }