/* ==========================================================================
   MAGNAS LABORATORIES — BLOG STYLESHEET
   Standalone file loaded by blog pages
   Mirrors main website design exactly
   ========================================================================== */

/* ── Google Fonts loaded via PHP head ── */

/* ── CSS Variables — exact match to main site ── */
:root {
  --primary:       #0A5F5F;
  --primary-light: #0F8B8D;
  --primary-dark:  #073F3F;
  --accent:        #C9A961;
  --accent-light:  #E2C47A;
  --dark:          #0A0E27;
  --dark-blue:     #12343B;
  --white:         #FFFFFF;
  --bg-light:      #E8F7F7;
  --gray:          #6B7280;
  --gray-dark:     #374151;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar              { width: 10px; }
::-webkit-scrollbar-track        { background: var(--dark); }
::-webkit-scrollbar-thumb        { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover  { background: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(201, 169, 97, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ml-spin 1s linear infinite;
}

@keyframes ml-spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════
   CANVAS BACKGROUND
══════════════════════════════════════════════════════════════ */
#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR — pixel-perfect match
══════════════════════════════════════════════════════════════ */
.ml-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ml-navbar.scrolled {
  background: rgba(10, 14, 39, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.ml-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.ml-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.ml-brand span {
  color: var(--accent);
}

.ml-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

/* Nav menu */
.ml-nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ml-nav-menu li a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.ml-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.ml-nav-menu li a:hover,
.ml-nav-menu li a.active {
  color: var(--accent);
}

.ml-nav-menu li a:hover::after,
.ml-nav-menu li a.active::after {
  width: 100%;
}

/* Hamburger toggle */
.ml-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.ml-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.ml-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.ml-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.ml-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO — matches .page-hero from main site
══════════════════════════════════════════════════════════════ */
.ml-page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.97) 0%,
    rgba(18, 52, 59, 0.95) 100%
  );
  position: relative;
  padding-top: 80px; /* exact navbar height */
}

.ml-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 2rem 56px;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.ml-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: ml-fadeUp 0.8s ease 0.2s backwards;
}

.ml-page-hero h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -1px;
  animation: ml-fadeUp 0.8s ease 0.4s backwards;
}

.ml-page-hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ml-page-hero .ml-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.75;
  animation: ml-fadeUp 0.8s ease 0.6s backwards;
}

/* Post-hero meta */
.ml-post-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  animation: ml-fadeUp 0.8s ease 0.8s backwards;
}

.ml-post-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.ml-post-meta-row i {
  color: var(--accent);
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes ml-fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ml-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ml-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.ml-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ml-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══════════════════════════════════════════════════════════════
   SECTION HELPERS — identical to main site
══════════════════════════════════════════════════════════════ */
.ml-section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(10, 95, 95, 0.08);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.ml-section-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.875rem, 3.5vw, 3.25rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.ml-section-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.ml-section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS — identical to main site
══════════════════════════════════════════════════════════════ */
.ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.ml-btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  box-shadow: 0 4px 16px rgba(10, 95, 95, 0.3);
}

.ml-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 95, 95, 0.4);
  color: var(--white);
}

.ml-btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.ml-btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
}

.ml-btn-ghost {
  background: var(--bg-light);
  color: var(--gray-dark);
  border-color: rgba(10, 95, 95, 0.12);
}

.ml-btn-ghost:hover {
  background: rgba(10, 95, 95, 0.08);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   BLOG LISTING SECTION
══════════════════════════════════════════════════════════════ */
.ml-blog-section {
  background: var(--bg-light);
  padding: 100px 0;
}

/* Empty state */
.ml-empty {
  text-align: center;
  padding: 80px 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.ml-empty-icon {
  width: 96px;
  height: 96px;
  background: rgba(10, 95, 95, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: var(--primary);
}

.ml-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.ml-empty p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

/* ── Featured Post ── */
.ml-featured {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(10, 95, 95, 0.08);
  box-shadow: 0 4px 24px rgba(10, 95, 95, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 80px;
}

.ml-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(10, 95, 95, 0.13);
}

.ml-featured-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  text-decoration: none;
  color: inherit;
}

.ml-featured-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  min-height: 380px;
}

.ml-featured-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ml-featured:hover .ml-featured-img-wrap img {
  transform: scale(1.05);
}

.ml-featured-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ml-featured-img-placeholder i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.12);
}

.ml-featured-img-placeholder span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.18);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.ml-featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--accent);
  color: var(--dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.ml-featured-body {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

/* Blog meta */
.ml-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.ml-meta-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.ml-meta-date,
.ml-meta-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 0.85rem;
}

.ml-meta i {
  font-size: 0.78rem;
  opacity: 0.85;
}

.ml-featured-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.ml-featured:hover .ml-featured-title {
  color: var(--primary);
}

.ml-featured-excerpt {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  flex: 1;
}

/* ── Blog Grid ── */
.ml-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── Blog Card ── */
.ml-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(10, 95, 95, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.ml-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(10, 95, 95, 0.12);
  border-color: var(--primary);
}

.ml-card-img {
  height: 220px;
  background: linear-gradient(135deg, #e8f4f4 0%, #c8e0e0 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.ml-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ml-card:hover .ml-card-img img {
  transform: scale(1.06);
}

.ml-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.22;
}

.ml-cat-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.ml-card-body {
  padding: 1.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ml-card-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0.875rem 0 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.ml-card:hover .ml-card-title {
  color: var(--primary);
}

.ml-card-excerpt {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.ml-card-link:hover {
  color: var(--accent);
  gap: 11px;
}

/* ══════════════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════════════ */
.ml-post-section {
  background: var(--white);
  padding: 80px 0 100px;
}

.ml-post-feat-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(10, 95, 95, 0.12);
  max-height: 520px;
}

.ml-post-feat-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.ml-post-body {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(10, 95, 95, 0.08);
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(10, 95, 95, 0.06);
  margin-bottom: 3rem;
}

/* ── Post typography ── */
.ml-post-content {
  font-size: 1.0625rem;
  color: var(--gray-dark);
  line-height: 1.9;
}

.ml-post-content h1,
.ml-post-content h2,
.ml-post-content h3,
.ml-post-content h4,
.ml-post-content h5,
.ml-post-content h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ml-post-content h1 { font-size: 2rem; }
.ml-post-content h2 { font-size: 1.75rem; color: var(--primary); }
.ml-post-content h3 { font-size: 1.375rem; }
.ml-post-content h4 { font-size: 1.125rem; }

.ml-post-content p {
  margin-bottom: 1.5rem;
}

.ml-post-content ul,
.ml-post-content ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.ml-post-content li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
}

.ml-post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--gray-dark);
  font-size: 1.05rem;
}

.ml-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.75rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ml-post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ml-post-content a:hover {
  color: var(--accent);
}

.ml-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
}

.ml-post-content th,
.ml-post-content td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(10, 95, 95, 0.12);
  text-align: left;
}

.ml-post-content th {
  background: var(--bg-light);
  color: var(--dark);
  font-weight: 700;
}

.ml-post-content tr:hover td {
  background: rgba(10, 95, 95, 0.02);
}

.ml-post-content code {
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

.ml-post-content pre {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.ml-post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Post footer row */
.ml-post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 95, 95, 0.1);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ml-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.ml-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gray-dark);
  font-weight: 500;
  border: 1px solid rgba(10, 95, 95, 0.08);
}

.ml-tag i {
  color: var(--primary);
  font-size: 0.78rem;
}

.ml-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ml-share > span {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 600;
}

.ml-share a {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  border: 1px solid rgba(10, 95, 95, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.ml-share a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.ml-post-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   RELATED / LIGHT SECTION
══════════════════════════════════════════════════════════════ */
.ml-related-section {
  background: var(--bg-light);
  padding: 100px 0;
}

.ml-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   CTA — identical to main site
══════════════════════════════════════════════════════════════ */
.ml-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.ml-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ml-cta h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ml-cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.ml-cta .ml-btn {
  background: var(--accent);
  color: var(--dark);
  border: none;
  font-size: 1.125rem;
  padding: 18px 40px;
}

.ml-cta .ml-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.4);
  color: var(--dark);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — identical to main site
══════════════════════════════════════════════════════════════ */
.ml-footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 30px;
}

.ml-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 60px;
}

.ml-footer-col h4 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.ml-footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.ml-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ml-footer-col ul li {
  margin-bottom: 0.875rem;
}

.ml-footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-block;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.ml-footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.ml-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ml-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.ml-social a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.ml-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — exact same as main site
══════════════════════════════════════════════════════════════ */

/* 1024 — tablet landscape */
@media (max-width: 1024px) {
  .ml-blog-grid     { grid-template-columns: repeat(2, 1fr); }
  .ml-related-grid  { grid-template-columns: repeat(2, 1fr); }
  .ml-footer-grid   { grid-template-columns: 1fr 1fr; }
}

/* 768 — tablet portrait / large phones */
@media (max-width: 768px) {
  /* Mobile nav drawer */
  .ml-nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    transition: left 0.4s ease;
  }

  .ml-nav-menu.open {
    left: 0;
  }

  .ml-nav-menu li a {
    font-size: 1.2rem;
  }

  .ml-menu-toggle {
    display: flex;
  }

  /* Hero */
  .ml-page-hero    { min-height: 52vh; }
  .ml-hero-inner   { padding: 50px 2rem 42px; }

  /* Featured */
  .ml-featured              { margin-bottom: 50px; }
  .ml-featured-link         { grid-template-columns: 1fr; min-height: auto; }
  .ml-featured-img-wrap     { min-height: 260px; max-height: 300px; }
  .ml-featured-body         { padding: 2rem; }
  .ml-featured-title        { font-size: 1.5rem; }
  .ml-featured-excerpt      { font-size: 1rem; }

  /* Grid */
  .ml-blog-grid    { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Section */
  .ml-blog-section  { padding: 64px 0; }
  .ml-section-header { margin-bottom: 44px; }

  /* Post */
  .ml-post-section   { padding: 50px 0 70px; }
  .ml-post-container { padding: 0 1.5rem; }
  .ml-post-body      { padding: 2rem 1.5rem; }
  .ml-post-foot      { flex-direction: column; align-items: flex-start; }
  .ml-post-actions   { flex-direction: column; width: 100%; }
  .ml-post-actions .ml-btn { width: 100%; justify-content: center; }

  /* Related */
  .ml-related-section { padding: 64px 0; }
  .ml-related-grid    { grid-template-columns: 1fr; gap: 1.25rem; }

  /* CTA + Footer */
  .ml-cta         { padding: 64px 0; }
  .ml-footer      { padding: 56px 0 24px; }
  .ml-footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 40px; }
}

/* 640 — medium phones */
@media (max-width: 640px) {
  .ml-container        { padding: 0 1.25rem; }
  .ml-post-container   { padding: 0 1.25rem; }
  .ml-hero-inner       { padding: 44px 1.25rem 38px; }
  .ml-hero-badge       { font-size: 0.72rem; padding: 8px 16px; }
  .ml-blog-section     { padding: 56px 0; }
  .ml-card-img         { height: 190px; }
  .ml-card-body        { padding: 1.5rem; }
  .ml-card-title       { font-size: 1.1rem; }
  .ml-related-section  { padding: 56px 0; }
}

/* 480 — iPhone / small Android */
@media (max-width: 480px) {
  .ml-brand             { font-size: 1.25rem; }
  .ml-brand-logo        { height: 30px; }
  .ml-blog-section      { padding: 48px 0; }
  .ml-featured-img-wrap { min-height: 220px; }
  .ml-featured-body     { padding: 1.5rem; }
  .ml-featured-title    { font-size: 1.3rem; }
  .ml-card-img          { height: 175px; }
  .ml-card-body         { padding: 1.375rem; }
  .ml-post-body         { padding: 1.5rem 1.125rem; }
  .ml-post-content      { font-size: 1rem; }
  .ml-post-content h2   { font-size: 1.5rem; }
  .ml-post-content h3   { font-size: 1.25rem; }
  .ml-btn               { padding: 13px 22px; font-size: 0.9375rem; }
  .ml-cta .ml-btn       { padding: 15px 26px; }
  .ml-section-title     { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* 380 — iPhone SE */
@media (max-width: 380px) {
  .ml-container      { padding: 0 1rem; }
  .ml-post-container { padding: 0 1rem; }
  .ml-hero-inner     { padding: 40px 1rem 36px; }
  .ml-hero-badge     {
    font-size: 0.65rem;
    padding: 7px 14px;
    max-width: 90%;
    white-space: normal;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .ml-post-body      { padding: 1.25rem 1rem; }
}

/* 481–767 — mid phones: 2 col grid */
@media (min-width: 481px) and (max-width: 767px) {
  .ml-blog-grid    { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ml-related-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}