/* ══════════════════════════════════════════════════════════════════════
   ModernTheme — EaglePress Magazine Theme
   ══════════════════════════════════════════════════════════════════════ */

/* ── Color palettes ──────────────────────────────────────────────────── */
:root {
  --mt-hdr-bg:    #1d4ed8;
  --mt-hdr-text:  #ffffff;
  --mt-nav-bg:    #1e3a8a;
  --mt-ticker-bg: #2563eb;
  --mt-accent:    #3b82f6;
  --mt-accent-h:  #1d4ed8;
  --mt-footer-bg: #0f172a;
}
[data-mt-color="blue"]   { --mt-hdr-bg:#1d4ed8; --mt-nav-bg:#1e3a8a; --mt-ticker-bg:#2563eb; --mt-accent:#3b82f6; --mt-accent-h:#1d4ed8; --mt-hdr-text:#fff; }
[data-mt-color="red"]    { --mt-hdr-bg:#dc2626; --mt-nav-bg:#991b1b; --mt-ticker-bg:#ef4444; --mt-accent:#f87171; --mt-accent-h:#dc2626; --mt-hdr-text:#fff; }
[data-mt-color="green"]  { --mt-hdr-bg:#15803d; --mt-nav-bg:#14532d; --mt-ticker-bg:#16a34a; --mt-accent:#22c55e; --mt-accent-h:#15803d; --mt-hdr-text:#fff; }
[data-mt-color="purple"] { --mt-hdr-bg:#7c3aed; --mt-nav-bg:#4c1d95; --mt-ticker-bg:#8b5cf6; --mt-accent:#a78bfa; --mt-accent-h:#7c3aed; --mt-hdr-text:#fff; }
[data-mt-color="pink"]   { --mt-hdr-bg:#db2777; --mt-nav-bg:#831843; --mt-ticker-bg:#ec4899; --mt-accent:#f472b6; --mt-accent-h:#db2777; --mt-hdr-text:#fff; }
[data-mt-color="yellow"] { --mt-hdr-bg:#d97706; --mt-nav-bg:#92400e; --mt-ticker-bg:#f59e0b; --mt-accent:#fbbf24; --mt-accent-h:#d97706; --mt-hdr-text:#fff; }
[data-mt-color="dark"]   { --mt-hdr-bg:#0f172a; --mt-nav-bg:#1e293b; --mt-ticker-bg:#334155; --mt-accent:#60a5fa; --mt-accent-h:#3b82f6; --mt-hdr-text:#f1f5f9; }
[data-mt-color="white"]  { --mt-hdr-bg:#f0f4f8; --mt-nav-bg:#e2e8f0; --mt-ticker-bg:#3b82f6; --mt-accent:#2563eb; --mt-accent-h:#1d4ed8; --mt-hdr-text:#1e293b; }

/* ── Light / Dark page body ──────────────────────────────────────────── */
:root {
  --mt-bg:       #f1f5f9;
  --mt-card-bg:  #ffffff;
  --mt-text:     #1e293b;
  --mt-muted:    #64748b;
  --mt-border:   #e2e8f0;
  --mt-shadow:   0 2px 10px rgba(0,0,0,.07);
  --mt-shadow-h: 0 6px 22px rgba(0,0,0,.13);
  --mt-input-bg: #fff;
  --mt-code-bg:  #f8fafc;
}
[data-mt-dark="true"] {
  --mt-bg:       #0f172a;
  --mt-card-bg:  #1e293b;
  --mt-text:     #e2e8f0;
  --mt-muted:    #94a3b8;
  --mt-border:   #334155;
  --mt-shadow:   0 2px 10px rgba(0,0,0,.3);
  --mt-shadow-h: 0 6px 22px rgba(0,0,0,.45);
  --mt-input-bg: #1e293b;
  --mt-code-bg:  #0f172a;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.mt-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--mt-bg);
  color: var(--mt-text);
  line-height: 1.6;
  font-size: 15px;
  transition: background .25s, color .25s;
}
a { color: var(--mt-accent); text-decoration: none; }
a:hover { color: var(--mt-accent-h); }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout wrapper ──────────────────────────────────────────────────── */
.mt-wrap    { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.mt-wrap-sm { max-width: 800px;  margin: 0 auto; padding: 0 16px; }

/* ══════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════ */
.mt-header {
  background: var(--mt-hdr-bg);
  color: var(--mt-hdr-text);
  text-align: center;
  padding: 28px 16px 24px;
  position: relative;
  overflow: hidden;
}
.mt-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.mt-header-inner { position: relative; z-index: 1; }
.mt-logo-link { color: inherit; text-decoration: none; }
.mt-site-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mt-tagline {
  font-size: .95rem;
  opacity: .8;
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════ */
.mt-navbar {
  background: var(--mt-nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}
.mt-nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.mt-nav-inner::-webkit-scrollbar { display: none; }
.mt-nav-link {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
  display: block;
  transition: color .15s, background .15s;
  border-bottom: 3px solid transparent;
}
.mt-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.mt-nav-link.mt-active { color: #fff; border-bottom-color: rgba(255,255,255,.7); }
[data-mt-color="white"] .mt-nav-link { color: rgba(0,0,0,.65); }
[data-mt-color="white"] .mt-nav-link:hover { color: #000; background: rgba(0,0,0,.05); }
[data-mt-color="white"] .mt-nav-link.mt-active { color: #000; border-bottom-color: var(--mt-accent); }
.mt-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  flex-shrink: 0;
  color: rgba(255,255,255,.72);
  font-size: 11.5px;
}
[data-mt-color="white"] .mt-nav-right { color: rgba(0,0,0,.5); }
.mt-datetime { white-space: nowrap; }
.mt-dark-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.mt-dark-btn:hover { background: rgba(255,255,255,.22); transform: rotate(20deg); }
[data-mt-color="white"] .mt-dark-btn { background: rgba(0,0,0,.07); border-color: rgba(0,0,0,.15); color: #333; }

/* Mobile hamburger */
.mt-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 10px 14px;
  flex-shrink: 0;
}
[data-mt-color="white"] .mt-menu-btn { color: #333; }

/* ══════════════════════════════════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════════════════════════════════ */
.mt-ticker {
  background: var(--mt-ticker-bg);
  color: #fff;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  font-size: 12.5px;
}
.mt-ticker-label {
  background: rgba(0,0,0,.22);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  gap: 5px;
  flex-shrink: 0;
}
.mt-ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.mt-ticker-scroll {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: mt-scroll 35s linear infinite;
  will-change: transform;
}
.mt-ticker-scroll:hover { animation-play-state: paused; }
.mt-ticker-item a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 0 28px 0 0;
}
.mt-ticker-item a:hover { color: #fff; text-decoration: underline; }
.mt-ticker-sep { opacity: .4; padding-right: 28px; }
@keyframes mt-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════════════════════════════════════ */
.mt-main { padding: 24px 0 40px; }

/* ══════════════════════════════════════════════════════════════════════
   FEATURED SECTION  (carousel + 2×2 sidebar)
   ══════════════════════════════════════════════════════════════════════ */
.mt-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 18px;
  margin-bottom: 32px;
  align-items: start;
}

/* ── Carousel ──────────────────────────────────────────────────────── */
.mt-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  aspect-ratio: 16/9;
  box-shadow: var(--mt-shadow-h);
}
.mt-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.mt-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}
.mt-carousel-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .4s;
}
.mt-carousel-slide:hover .mt-carousel-img { opacity: .75; }
.mt-carousel-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: .4;
}
.mt-carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
  padding: 52px 22px 20px;
  color: #fff;
}
.mt-carousel-cat {
  display: inline-block;
  background: var(--mt-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-decoration: none;
}
.mt-carousel-title {
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.mt-carousel-title a { color: #fff; }
.mt-carousel-title a:hover { color: rgba(255,255,255,.85); }
.mt-carousel-meta { font-size: 12px; opacity: .75; }

.mt-carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  z-index: 10;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.mt-carousel-btn:hover { background: rgba(0,0,0,.75); transform: translateY(-50%) scale(1.08); }
.mt-carousel-prev { left: 12px; }
.mt-carousel-next { right: 12px; }
.mt-carousel-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.mt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.mt-dot.mt-active { background: #fff; transform: scale(1.25); }

/* ── 2×2 Sidebar posts ─────────────────────────────────────────────── */
.mt-sidebar-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100%;
}
.mt-sb-card {
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--mt-shadow);
}
.mt-sb-card:hover { box-shadow: var(--mt-shadow-h); transform: translateY(-2px); }
.mt-sb-img-wrap { position: relative; overflow: hidden; }
.mt-sb-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s;
}
.mt-sb-card:hover .mt-sb-img { transform: scale(1.04); }
.mt-sb-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--mt-border) 0%, var(--mt-card-bg) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; opacity: .4;
}
.mt-sb-body { padding: 9px 10px 10px; flex: 1; display: flex; flex-direction: column; }
.mt-sb-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mt-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.mt-sb-title a { color: inherit; }
.mt-sb-title a:hover { color: var(--mt-accent); }
.mt-sb-meta { font-size: 10px; color: var(--mt-muted); margin-top: 5px; }

/* ══════════════════════════════════════════════════════════════════════
   SECTION HEADING
   ══════════════════════════════════════════════════════════════════════ */
.mt-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mt-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--mt-text);
  white-space: nowrap;
}
.mt-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--mt-accent), transparent);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   POST GRID CARDS
   ══════════════════════════════════════════════════════════════════════ */
.mt-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}
.mt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mt-grid-4 { grid-template-columns: repeat(4, 1fr); }

.mt-card {
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--mt-shadow);
  transition: box-shadow .2s, transform .2s;
}
.mt-card:hover { box-shadow: var(--mt-shadow-h); transform: translateY(-3px); }
.mt-card-img-wrap { overflow: hidden; }
.mt-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .45s;
}
.mt-card:hover .mt-card-img { transform: scale(1.05); }
.mt-card-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--mt-border) 0%, var(--mt-card-bg) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; opacity: .3;
}
.mt-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.mt-card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--mt-accent);
  margin-bottom: 7px;
}
.mt-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mt-text);
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mt-card-title a { color: inherit; }
.mt-card-title a:hover { color: var(--mt-accent); }
.mt-card-excerpt {
  font-size: 13px;
  color: var(--mt-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.mt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--mt-border);
  font-size: 11.5px;
  color: var(--mt-muted);
  gap: 6px;
  flex-wrap: wrap;
}
.mt-card-author { display: flex; align-items: center; gap: 5px; }
.mt-card-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--mt-accent);
  display: flex; align-items: center; gap: 3px;
}
.mt-card-read-more:hover { color: var(--mt-accent-h); }

/* ══════════════════════════════════════════════════════════════════════
   ARTICLE / SINGLE POST VIEW
   ══════════════════════════════════════════════════════════════════════ */
.mt-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.mt-article {
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--mt-shadow);
}
.mt-article-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.mt-article-body { padding: 28px 32px 32px; }
.mt-article-cats { margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.mt-article-cat {
  display: inline-block;
  background: var(--mt-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.mt-article-cat:hover { background: var(--mt-accent-h); color: #fff; }
.mt-article-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--mt-text);
  margin-bottom: 14px;
}
.mt-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--mt-muted);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--mt-border);
  margin-bottom: 24px;
}
.mt-article-meta-item { display: flex; align-items: center; gap: 4px; }
.mt-article-content {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--mt-text);
}
.mt-article-content h1,.mt-article-content h2,.mt-article-content h3,
.mt-article-content h4,.mt-article-content h5,.mt-article-content h6 {
  font-weight: 800; line-height: 1.25; margin: 1.6em 0 .7em; color: var(--mt-text);
}
.mt-article-content h1 { font-size: 1.9em; }
.mt-article-content h2 { font-size: 1.5em; }
.mt-article-content h3 { font-size: 1.25em; }
.mt-article-content p  { margin-bottom: 1.1em; }
.mt-article-content ul,.mt-article-content ol { margin: .8em 0 1em 1.6em; }
.mt-article-content li { margin-bottom: .35em; }
.mt-article-content a  { color: var(--mt-accent); text-decoration: underline; }
.mt-article-content blockquote {
  border-left: 4px solid var(--mt-accent);
  padding: 10px 20px;
  margin: 1.2em 0;
  background: var(--mt-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--mt-muted);
}
.mt-article-content pre {
  background: var(--mt-code-bg);
  border: 1px solid var(--mt-border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13.5px;
  margin: 1em 0;
}
.mt-article-content code {
  background: var(--mt-code-bg);
  border: 1px solid var(--mt-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.mt-article-content pre code { background: none; border: none; padding: 0; }
.mt-article-content hr { border: none; border-top: 2px solid var(--mt-border); margin: 2em 0; }
.mt-article-content img { border-radius: 8px; margin: 1em 0; max-width: 100%; }
.mt-article-content table { width:100%; border-collapse:collapse; margin:1em 0; font-size:14px; }
.mt-article-content th,.mt-article-content td { border:1px solid var(--mt-border); padding:8px 12px; }
.mt-article-content th { background:var(--mt-bg); font-weight:700; }
.mt-article-tags { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--mt-border); display: flex; gap: 6px; flex-wrap: wrap; }
.mt-tag {
  display: inline-block;
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  color: var(--mt-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  transition: background .15s, color .15s;
}
.mt-tag:hover { background: var(--mt-accent); border-color: var(--mt-accent); color: #fff; }
.mt-article-author-box {
  margin-top: 24px;
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mt-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--mt-border);
}
.mt-author-name { font-weight: 700; font-size: 14.5px; color: var(--mt-text); margin-bottom: 4px; }
.mt-author-bio  { font-size: 13px; color: var(--mt-muted); line-height: 1.5; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.mt-sidebar { display: flex; flex-direction: column; gap: 20px; }
.mt-sidebar-widget {
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--mt-shadow);
}
.mt-widget-title {
  background: var(--mt-accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 10px 16px;
}
.mt-widget-body { padding: 14px 16px; }
.mt-recent-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--mt-border);
}
.mt-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.mt-recent-thumb {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.mt-recent-thumb-ph {
  width: 58px; height: 58px;
  background: var(--mt-bg);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; opacity: .35;
}
.mt-recent-item-title { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--mt-text); }
.mt-recent-item-title a { color: inherit; }
.mt-recent-item-title a:hover { color: var(--mt-accent); }
.mt-recent-item-date { font-size: 11px; color: var(--mt-muted); margin-top: 3px; }
.mt-cat-list { list-style: none; }
.mt-cat-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--mt-border);
  display: flex; justify-content: space-between; align-items: center;
}
.mt-cat-item:last-child { border-bottom: none; }
.mt-cat-item a { font-size: 13px; color: var(--mt-text); }
.mt-cat-item a:hover { color: var(--mt-accent); }
.mt-cat-count { font-size: 11px; background: var(--mt-bg); padding: 2px 7px; border-radius: 10px; color: var(--mt-muted); }

/* ══════════════════════════════════════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════════════════════════════════════ */
.mt-comments-section { margin-top: 28px; }
.mt-comments-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.mt-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mt-border);
}
.mt-comment:last-of-type { border-bottom: none; }
.mt-comment-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; flex-shrink:0; border:2px solid var(--mt-border); }
.mt-comment-meta { font-size: 12px; color: var(--mt-muted); margin-bottom: 5px; }
.mt-comment-meta strong { color: var(--mt-text); font-size: 13px; }
.mt-comment-text { font-size: 14px; line-height: 1.6; color: var(--mt-text); }
.mt-comment-form { margin-top: 24px; }
.mt-comment-form textarea,.mt-comment-form input {
  width: 100%;
  background: var(--mt-input-bg);
  border: 1px solid var(--mt-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--mt-text);
  font-family: inherit;
  transition: border-color .2s;
  margin-bottom: 10px;
  display: block;
}
.mt-comment-form textarea:focus,.mt-comment-form input:focus {
  outline: none; border-color: var(--mt-accent); box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.mt-comment-form textarea { resize: vertical; min-height: 100px; }

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════ */
.mt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--mt-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.mt-btn:hover { background: var(--mt-accent-h); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.mt-btn:active { transform: translateY(0); }
.mt-btn-outline {
  background: transparent;
  color: var(--mt-accent);
  border: 2px solid var(--mt-accent);
  box-shadow: none;
}
.mt-btn-outline:hover { background: var(--mt-accent); color: #fff; }
.mt-btn-sm { padding: 6px 14px; font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════ */
.mt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  flex-wrap: wrap;
}
.mt-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  color: var(--mt-text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.mt-page-btn:hover { background: var(--mt-accent); color: #fff; border-color: var(--mt-accent); }
.mt-page-btn.mt-active { background: var(--mt-accent); color: #fff; border-color: var(--mt-accent); }
.mt-page-btn.mt-disabled { opacity: .4; pointer-events: none; }
.mt-page-prev,.mt-page-next { width: auto; padding: 0 14px; gap: 5px; }

/* ══════════════════════════════════════════════════════════════════════
   FORMS (login / register / search)
   ══════════════════════════════════════════════════════════════════════ */
.mt-form-wrap {
  max-width: 440px;
  margin: 40px auto;
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  border-radius: 16px;
  padding: 36px 38px;
  box-shadow: var(--mt-shadow-h);
}
.mt-form-logo { text-align: center; margin-bottom: 24px; }
.mt-form-logo h1 { font-size: 1.5rem; font-weight: 900; color: var(--mt-text); }
.mt-form-logo p  { color: var(--mt-muted); font-size: 13px; margin-top: 4px; }
.mt-form-group { margin-bottom: 16px; }
.mt-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--mt-muted); margin-bottom: 5px; }
.mt-form-input {
  width: 100%;
  background: var(--mt-input-bg);
  border: 1.5px solid var(--mt-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--mt-text);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.mt-form-input:focus {
  outline: none;
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.mt-form-btn {
  width: 100%;
  background: var(--mt-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 6px;
}
.mt-form-btn:hover { background: var(--mt-accent-h); }
.mt-form-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.mt-form-footer { text-align: center; font-size: 13px; color: var(--mt-muted); margin-top: 16px; }

/* ══════════════════════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════════════════════ */
.mt-profile-header {
  background: var(--mt-card-bg);
  border: 1px solid var(--mt-border);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--mt-shadow);
}
.mt-profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mt-accent); }
.mt-profile-name { font-size: 1.3rem; font-weight: 800; color: var(--mt-text); }
.mt-profile-role { font-size: 12px; color: var(--mt-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 3px 0; }
.mt-profile-bio  { font-size: 13.5px; color: var(--mt-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════
   PAGE HERO BANNER (category / tag / search headers)
   ══════════════════════════════════════════════════════════════════════ */
.mt-archive-banner {
  background: linear-gradient(135deg, var(--mt-hdr-bg) 0%, var(--mt-nav-bg) 100%);
  color: var(--mt-hdr-text);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 24px;
}
.mt-archive-banner h1 { font-size: 1.6rem; font-weight: 900; }
.mt-archive-banner p  { font-size: 13.5px; opacity: .8; margin-top: 5px; }

/* ══════════════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════════════ */
.mt-404 { text-align: center; padding: 60px 20px; }
.mt-404-code { font-size: 7rem; font-weight: 900; color: var(--mt-border); line-height: 1; }
.mt-404-msg  { font-size: 1.4rem; font-weight: 700; color: var(--mt-text); margin: 12px 0 8px; }
.mt-404-sub  { color: var(--mt-muted); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.mt-footer {
  background: var(--mt-footer-bg);
  color: #94a3b8;
  margin-top: 40px;
  border-top: 3px solid var(--mt-accent);
}
.mt-footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.mt-footer-brand h3 { color: #f1f5f9; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.mt-footer-brand p  { font-size: 13px; line-height: 1.6; }
.mt-footer-col-title { color: #e2e8f0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 12px; }
.mt-footer-links-list { list-style: none; }
.mt-footer-links-list li { margin-bottom: 7px; }
.mt-footer-links-list a { color: #94a3b8; font-size: 13px; transition: color .15s; }
.mt-footer-links-list a:hover { color: #f1f5f9; }
.mt-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 14px 16px;
  text-align: center;
  font-size: 12.5px;
}
.mt-footer-bottom a { color: var(--mt-accent); }
.mt-py-credit { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════════════════════════════════ */
.mt-search-bar {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}
.mt-search-bar input {
  flex: 1;
  background: var(--mt-input-bg);
  border: 1.5px solid var(--mt-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--mt-text);
  font-family: inherit;
}
.mt-search-bar input:focus { outline: none; border-color: var(--mt-accent); }
.mt-search-bar button {
  background: var(--mt-accent);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mt-featured { grid-template-columns: 1fr; }
  .mt-sidebar-posts { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .mt-article-layout { grid-template-columns: 1fr; }
  .mt-footer-top { grid-template-columns: 1fr 1fr; }
  .mt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mt-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mt-site-title { font-size: 1.6rem; }
  .mt-nav-inner { display: none; }
  .mt-nav-inner.mt-open { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .mt-navbar { flex-wrap: wrap; position: sticky; }
  .mt-menu-btn { display: flex; }
  .mt-sidebar-posts { grid-template-columns: repeat(2, 1fr); }
  .mt-grid-2,.mt-grid-3,.mt-grid-4 { grid-template-columns: 1fr; }
  .mt-footer-top { grid-template-columns: 1fr; gap: 20px; }
  .mt-article-body { padding: 18px 16px 22px; }
  .mt-form-wrap { padding: 24px 20px; }
}
