/* ============================================================
   MahmudulMaruf — Unified Design System
   mm-design-system.css
   Import this in every page. Replaces style.css for the new
   design. Keep bootstrap.css & other vendors loaded separately.
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #f4f0e8;
  --surface:      #ffffff;
  --surface-soft: #faf6f0;
  --surface-muted:#ede5d8;
  --text:         #17140f;
  --muted:        #6a5f53;
  --border:       #e3d9cc;
  --accent:       #c0430b;
  --accent-dark:  #943310;
  --accent-soft:  #f6e0d4;

  /* Dark surface (hero, bio) */
  --dark-bg:      #111519;
  --dark-surface: #1a2028;

  /* Shadows */
  --shadow-sm:    0 4px 18px rgba(15,12,8,.06);
  --shadow-md:    0 16px 42px rgba(15,12,8,.09);
  --shadow-lg:    0 28px 62px rgba(15,12,8,.12);

  /* Radius */
  --r-sm:  14px;
  --r-md:  22px;
  --r-lg:  32px;
  --r-pill:999px;

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  /* Transitions */
  --ease: cubic-bezier(.32,.72,0,1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}

button, input, select, textarea { font: inherit; }

h1,h2,h3,h4,h5,h6 { font-family: var(--serif); line-height: 1.2; color: var(--text); }

/* ── PAGE LOADER ────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
#loader.show { opacity: 1; visibility: visible; transition: opacity .4s ease; }

.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--surface-muted);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOP BAR ────────────────────────────────────────────────── */
.mm-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mm-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.mm-topbar .social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mm-topbar .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.mm-topbar .social a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateY(-2px);
}
.mm-topbar .search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  width: 100%; max-width: 300px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mm-topbar .search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,67,11,.1);
}
.mm-topbar .search-wrap .fa { color: var(--muted); font-size: 13px; }
.mm-topbar .search-wrap input {
  width: 100%; border: none; outline: none;
  background: transparent; color: var(--text);
  font-size: 14px; font-family: var(--sans);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.mm-header {
  background: var(--surface);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 var(--border);
}

.mm-logo-row {
  text-align: center;
  padding: 30px 0 0;
  position: relative;
}
.mm-logo-row h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.mm-logo-row h1 a span { color: var(--accent); }
.mm-tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 18px;
}

/* ── NAV ────────────────────────────────────────────────────── */
.mm-nav .navbar {
  padding: 0;
  background: var(--surface) !important;
  justify-content: center;
  border-top: 1px solid var(--border);
}
.mm-nav .navbar-nav { gap: 0; flex-wrap: wrap; justify-content: center; }
.mm-nav .nav-link {
  font-family: var(--mono) !important;
  font-size: 10.5px !important;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted) !important;
  padding: 14px 13px !important;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mm-nav .nav-link:hover,
.mm-nav .nav-link.active { color: var(--text) !important; }
.mm-nav .nav-link.active { border-bottom-color: var(--accent); }

.mm-nav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  font-family: var(--mono);
  font-size: 12px;
  min-width: 200px;
  animation: menuIn .18s var(--ease);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mm-nav .dropdown-item {
  letter-spacing: .05em;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease;
}
.mm-nav .dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Mobile burger */
.mm-burger {
  position: absolute; left: 18px; top: 22px;
  background: transparent; border: none;
  cursor: pointer; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 300;
}
.mm-burger span,
.mm-burger span::before,
.mm-burger span::after {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; position: relative;
}
.mm-burger span::before,
.mm-burger span::after { content: ''; position: absolute; left: 0; }
.mm-burger span::before { top: -7px; }
.mm-burger span::after  { bottom: -7px; }

/* ── HERO / CAROUSEL ────────────────────────────────────────── */
.mm-hero {
  background: var(--dark-bg);
  color: #fff;
  position: relative; overflow: hidden;
}
.mm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(192,67,11,.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(192,67,11,.08) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.mm-hero .owl-carousel { position: relative; z-index: 1; }

/* Hero slide */
.mm-slide {
  display: flex;
  align-items: center; justify-content: center;
  min-height: 340px; padding: 56px 28px;
}
.mm-slide-inner {
  max-width: 720px; width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  backdrop-filter: blur(14px);
}
.mm-slide-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(246,224,212,.9); margin-bottom: 16px;
}
.mm-slide-label::before {
  content: ''; width: 22px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.mm-slide-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700; line-height: 1.22; margin-bottom: 18px;
}
.mm-slide-ref {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; color: rgba(255,255,255,.65);
}
.mm-slide-ref a {
  color: rgba(246,224,212,.85);
  border-bottom: 1px solid rgba(246,224,212,.3);
  padding-bottom: 1px;
}
.mm-slide-ref a:hover { color: #fff; }

/* Carousel dots (override owl) */
.mm-hero .owl-dots {
  text-align: center; padding: 16px 0; position: relative; z-index: 2;
}
.mm-hero .owl-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  margin: 0 4px;
  transition: all .25s var(--ease);
  border: none; cursor: pointer;
}
.mm-hero .owl-dot.active {
  background: var(--accent); width: 24px; border-radius: 8px;
}

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.mm-page-hero {
  background: var(--dark-bg);
  padding: 56px 0 52px;
  position: relative; overflow: hidden;
}
.mm-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 90% at 80% 50%, rgba(192,67,11,.15) 0%, transparent 65%);
  pointer-events: none;
}
.mm-page-hero .container { position: relative; z-index: 1; }
.mm-page-eyebrow {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(246,224,212,.75);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.mm-page-eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.mm-page-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.mm-page-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.8;
}

/* ── MAIN LAYOUT ────────────────────────────────────────────── */
.mm-main {
  max-width: 1180px; margin: 0 auto;
  padding: 56px 40px 96px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}
@media (max-width: 991px) {
  .mm-main {
    grid-template-columns: 1fr;
    padding: 42px 24px 72px;
    gap: 40px;
  }
}
@media (max-width: 575px) {
  .mm-main { padding: 32px 16px 60px; }
}

/* Section header */
.mm-section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px; margin-bottom: 32px; gap: 16px;
}
.mm-section-title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  letter-spacing: -.02em;
}
.mm-section-link {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(192,67,11,.3);
  padding-bottom: 1px;
  white-space: nowrap;
}
.mm-section-link:hover { border-bottom-color: var(--accent); }

/* ── POST CARDS ─────────────────────────────────────────────── */
.mm-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 650px) {
  .mm-post-grid { grid-template-columns: 1fr; }
}

.mm-post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none; color: inherit;
}
.mm-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.mm-post-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--surface-soft);
}
.mm-post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.mm-post-card:hover .mm-post-thumb img { transform: scale(1.07); }

.mm-post-body {
  padding: 22px; flex: 1;
  display: flex; flex-direction: column;
}

/* Category pill */
.mm-post-cat {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 12px;
  border-radius: var(--r-pill);
}
.mm-post-cat.prog   { background: #fbe7db; color: #b94020; }
.mm-post-cat.net    { background: #e5f1eb; color: #2a6347; }
.mm-post-cat.islam  { background: #e5eeff; color: #1b4bb8; }
.mm-post-cat.other  { background: var(--surface-soft); color: var(--muted); }

.mm-post-title {
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  line-height: 1.3; flex: 1;
  margin-bottom: 16px; color: var(--text);
}

.mm-post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: .04em;
  margin-top: auto; border-top: 1px solid var(--border);
  padding-top: 14px;
}
.mm-post-meta .mm-avatar {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--border);
}
.mm-post-meta .dot { opacity: .4; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.mm-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.mm-pagination .page-item .page-link {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50% !important;
  border: 1px solid var(--border) !important;
  font-family: var(--mono); font-size: 12px;
  color: var(--text) !important; background: var(--surface);
  padding: 0; transition: all .2s var(--ease);
}
.mm-pagination .page-item .page-link:hover {
  background: var(--accent); color: #fff !important;
  border-color: var(--accent) !important;
}
.mm-pagination .page-item.active .page-link {
  background: var(--accent); color: #fff !important;
  border-color: var(--accent) !important;
}
.mm-pagination .page-item.disabled .page-link {
  opacity: .38; pointer-events: none;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.mm-sidebar-block {
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.mm-sidebar-heading {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-muted);
  margin-bottom: 18px;
}

.post-content-body pre,
.post-content-body code {
    display: block !important;
    visibility: visible !important;
}

/* Bio card */
.mm-bio {
  background: linear-gradient(145deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
  color: #fff;
  padding: 26px 22px;
  border-radius: var(--r-md);
  position: relative; overflow: hidden;
}
.mm-bio::after {
  content: '';
  position: absolute; right: -50px; bottom: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(192,67,11,.2) 0%, transparent 70%);
  pointer-events: none;
}
.mm-bio-avatar {
  width: 68px; height: 68px;
  border-radius: 20px; object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
  margin-bottom: 14px; display: block;
}
.mm-bio-name {
  font-family: var(--serif); font-size: 21px;
  font-weight: 700; margin-bottom: 10px;
}
.mm-bio-desc {
  font-size: 13.5px; color: rgba(255,255,255,.72);
  line-height: 1.75; margin-bottom: 18px;
}
.mm-bio-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff !important;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--r-pill);
  transition: background .2s var(--ease);
}
.mm-bio-btn:hover { background: var(--accent-dark); color: #fff; }
.mm-bio-social {
  display: flex; gap: 10px; margin-top: 16px;
}
.mm-bio-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.65);
  border-radius: var(--r-sm);
  transition: all .2s var(--ease);
}
.mm-bio-social a:hover {
  border-color: rgba(246,224,212,.5);
  color: #fff; background: rgba(246,224,212,.1);
}

/* Sidebar search */
.mm-sidebar-search {
  display: grid; grid-template-columns: 1fr auto;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface-soft);
  transition: box-shadow .2s var(--ease);
}
.mm-sidebar-search:focus-within {
  box-shadow: 0 0 0 3px rgba(192,67,11,.1);
  border-color: var(--accent);
}
.mm-search-input {
  border: none; padding: 11px 16px;
  font-size: 14px; background: transparent;
  outline: none; color: var(--text);
  width: 100%;
}
.mm-search-icon {
  border: none; background: var(--text); color: #fff;
  min-width: 48px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background .2s var(--ease);
}
.mm-search-icon:hover { background: var(--accent); }

/* Popular posts */
.mm-popular-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-muted);
  transition: opacity .2s ease;
  text-decoration: none; color: inherit;
}
.mm-popular-item:last-child { border-bottom: none; }
.mm-popular-item:hover { opacity: .82; }
.mm-popular-num {
  font-family: var(--serif); font-size: 22px;
  font-weight: 900; color: var(--surface-muted);
  width: 26px; line-height: 1; padding-top: 2px;
  flex-shrink: 0;
}
.mm-popular-title {
  font-size: 13.5px; font-weight: 600;
  line-height: 1.45; color: var(--text); margin-bottom: 4px;
}
.mm-popular-meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}

/* Tags */
.mm-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.mm-tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .07em; padding: 7px 13px;
  border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-pill);
  transition: all .2s var(--ease);
  display: inline-flex; align-items: center;
  cursor: pointer; text-decoration: none;
}
.mm-tag:hover {
  background: var(--text); color: #fff;
  border-color: var(--text);
}

/* Quote block */
.mm-quote {
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  padding: 18px 20px; border-radius: var(--r-sm);
}
.mm-quote p {
  font-family: var(--serif); font-size: 14.5px;
  font-style: italic; color: var(--text); line-height: 1.7;
  margin-bottom: 8px;
}
.mm-quote cite {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: .06em;
}

/* ── PROFILE PAGE ───────────────────────────────────────────── */
.mm-profile-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px; align-items: start;
}
@media (max-width: 991px) {
  .mm-profile-grid { grid-template-columns: 1fr; gap: 40px; }
}

.mm-profile-photo {
  width: 100%; border-radius: var(--r-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

/* Section divider heading */
.mm-divider-heading {
  display: flex; align-items: center; gap: 18px;
  margin: 36px 0 22px;
}
.mm-divider-heading::before,
.mm-divider-heading::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}
.mm-divider-heading span {
  font-family: var(--serif); font-size: 20px;
  font-weight: 700; white-space: nowrap; color: var(--text);
}

/* Skill list */
.mm-skill-list {
  list-style: none; padding: 0;
}
.mm-skill-list > li {
  margin-bottom: 14px;
}
.mm-skill-item {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: var(--text);
  margin-bottom: 6px;
}
.mm-skill-sub {
  list-style: none; padding: 0;
  margin-left: 28px;
}
.mm-skill-sub li {
  font-size: 14px; color: var(--muted);
  padding: 3px 0; line-height: 1.6;
}
.mm-skill-sub li::before {
  content: '–'; margin-right: 8px;
  color: var(--accent); font-weight: 700;
}

/* Timeline (experience / education) */
.mm-timeline {
  list-style: none; padding: 0; position: relative;
}
.mm-timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.mm-timeline-item {
  position: relative; padding-left: 42px; margin-bottom: 28px;
}
.mm-timeline-item::before {
  content: ''; position: absolute;
  left: 8px; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}
.mm-timeline-title {
  font-family: var(--serif); font-size: 17px;
  font-weight: 700; margin-bottom: 4px; color: var(--text);
}
.mm-timeline-sub {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--accent); letter-spacing: .05em;
  margin-bottom: 4px;
}
.mm-timeline-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}

/* Project list */
.mm-project-list {
  list-style: none; padding: 0;
}
.mm-project-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.mm-project-list li:last-child { border-bottom: none; }
.mm-project-list a { color: var(--accent); font-weight: 600; }
.mm-project-list a:hover { text-decoration: underline; }
.mm-project-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* CV download button */
.mm-cv-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--r-pill);
  margin-top: 32px;
  transition: background .2s var(--ease), transform .2s var(--ease);
  border: none; cursor: pointer;
}
.mm-cv-btn:hover { background: var(--accent); transform: translateY(-2px); color: #fff; }

/* ── BLOG SINGLE ────────────────────────────────────────────── */
.mm-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mm-article-cover {
  width: 100%; aspect-ratio: 16/7; object-fit: cover;
}
.mm-article-body { padding: 36px 40px; }
@media (max-width: 575px) {
  .mm-article-body { padding: 24px 20px; }
}
.mm-article h1 {
  font-family: var(--serif); font-size: clamp(26px,4vw,42px);
  font-weight: 900; letter-spacing: -.02em;
  margin-bottom: 18px; line-height: 1.15;
}
.mm-article h2 { font-size: 24px; margin: 32px 0 14px; }
.mm-article h3 { font-size: 20px; margin: 28px 0 12px; }
.mm-article p { margin-bottom: 20px; color: #2a2520; }
.mm-article code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; color: var(--accent-dark);
}
.mm-article pre {
  background: var(--dark-bg); border-radius: var(--r-md);
  padding: 22px 26px; overflow-x: auto;
  margin: 24px 0;
}
.mm-article pre code {
  background: transparent; border: none;
  color: #e2d9cc; font-size: 13.5px; padding: 0;
}
.mm-article blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 22px; background: var(--surface-soft);
  border-radius: var(--r-sm); margin: 24px 0;
}
.mm-article blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--text); margin: 0;
}
.mm-article img { border-radius: var(--r-md); margin: 28px 0; }
.mm-article ul, .mm-article ol { padding-left: 22px; margin-bottom: 20px; }
.mm-article li { margin-bottom: 8px; }

/* ── UTILITY PAGE SECTIONS (programming, networking, etc.) ─── */
.mm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px; margin-bottom: 32px;
}
.mm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none; color: inherit;
}
.mm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mm-card-thumb {
  aspect-ratio: 16/9; overflow: hidden; background: var(--surface-soft);
}
.mm-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.mm-card:hover .mm-card-thumb img { transform: scale(1.07); }
.mm-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.mm-card-title {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  line-height: 1.3; flex: 1; color: var(--text);
}

/* ── Container that receives the injected cards ── */
#p_content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Horizontal post card ── */
.mm-post-card--horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15,12,8,.05);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  text-decoration: none;
  color: inherit;
  min-height: 120px;
}
.mm-post-card--horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15,12,8,.11);
}

/* Thumbnail (left side) */
.mm-post-thumb-h {
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
  flex-shrink: 0;
}
.mm-post-thumb-h img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.mm-post-card--horizontal:hover .mm-post-thumb-h img {
  transform: scale(1.07);
}

/* Body (right side) */
.mm-post-card--horizontal .mm-post-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

/* Top row: category pill + date */
.mm-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.mm-post-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
  white-space: nowrap;
}

/* Title */
.mm-post-card--horizontal .mm-post-title {
  font-family: var(--serif);
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
  margin: 0;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row */
.mm-post-card--horizontal .mm-post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 11px;
}
.mm-post-author { font-weight: 500; color: var(--text); }
.mm-dot { opacity: .35; }
.mm-post-read { display: flex; align-items: center; }
.mm-post-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.mm-post-card--horizontal:hover .mm-post-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Category pills (reuse from design system) */
.mm-post-cat {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.mm-post-cat.prog  { background: #fbe7db; color: #b94020; }
.mm-post-cat.net   { background: #e5f1eb; color: #2a6347; }
.mm-post-cat.islam { background: #e5eeff; color: #1b4bb8; }
.mm-post-cat.other { background: var(--surface-soft); color: var(--muted); }

/* Avatar */
.mm-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── "Load more" button ── */
.mm-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 8px;
}
.mm-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s var(--ease),
              border-color .2s var(--ease),
              transform .2s var(--ease),
              box-shadow .2s var(--ease);
  box-shadow: 0 4px 18px rgba(15,12,8,.05);
}
.mm-load-more-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(192,67,11,.22);
}
.mm-load-more-btn:active {
  transform: translateY(0);
}
.mm-load-more-btn .mm-spin {
  display: inline-block;
  animation: mm-spin .7s linear infinite;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }
.mm-load-more-btn.loading .mm-btn-label { display: none; }
.mm-load-more-btn:not(.loading) .mm-spin { display: none; }

/* Post count badge */
.mm-post-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  padding: 6px 0 2px;
}
.mm-post-count strong { color: var(--text); }

/* ── Empty state ── */
.mm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px;
  gap: 12px;
}
.mm-empty-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
}
.mm-empty-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.mm-empty-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.7;
}
.mm-empty-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(192,67,11,.3);
  padding-bottom: 1px;
  margin-top: 4px;
  text-decoration: none;
  transition: border-color .18s;
}
.mm-empty-link:hover { border-bottom-color: var(--accent); }

/* ── Scroll reveal (matches index.php) ── */
.mm-reveal {
    opacity: 1 !important;
    transform: none !important;
}
.mm-reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .mm-post-card--horizontal {
    grid-template-columns: 110px 1fr;
    min-height: 100px;
  }
  .mm-post-card--horizontal .mm-post-body {
    padding: 14px 16px;
    gap: 6px;
  }
  .mm-post-date { display: none; }
}
@media (max-width: 420px) {
  .mm-post-card--horizontal {
    grid-template-columns: 90px 1fr;
  }
  .mm-post-card--horizontal .mm-post-title {
    font-size: 14px;
  }
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .mm-post-card--horizontal,
  .mm-post-thumb-h img,
  .mm-post-arrow,
  .mm-load-more-btn,
  .mm-reveal {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── CONTACT ────────────────────────────────────────────────── */
.mm-contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 575px) { .mm-contact-form { padding: 24px 20px; } }
.mm-form-group { margin-bottom: 22px; }
.mm-form-label {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.mm-form-control {
  width: 100%; padding: 13px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none; color: var(--text);
  font-size: 15px; font-family: var(--sans);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mm-form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,67,11,.1);
}
textarea.mm-form-control { min-height: 140px; resize: vertical; }
.mm-submit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--r-pill);
  border: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.mm-submit-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.mm-footer {
  background: #111519;
  color: rgba(255,255,255,.5);
  padding: 46px 40px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em;
}
.mm-footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 18px;
}
.mm-footer-logo {
  font-family: var(--serif); font-size: 20px;
  font-weight: 700; color: rgba(255,255,255,.9);
}
.mm-footer-logo span { color: var(--accent); }
.mm-footer-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.mm-footer-links a {
  color: rgba(255,255,255,.45);
  text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em;
  transition: color .2s var(--ease);
}
.mm-footer-links a:hover { color: rgba(255,255,255,.9); }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.mm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.mm-reveal.visible {
  opacity: 1; transform: none;
}

/* ── RESPONSIVE TOPBAR ──────────────────────────────────────── */
@media (max-width: 767px) {
  .mm-topbar .container {
    flex-direction: column; align-items: stretch;
  }
  .mm-topbar .search-wrap { max-width: 100%; }
  .mm-footer { padding: 34px 18px; }
  .mm-slide-inner { padding: 28px 22px; }
  .mm-slide { min-height: 260px; padding: 32px 16px; }
}
