/*
Theme Name: Municipality of Lamu
Theme URI: https://municipality.lamu.go.ke
Author: Municipality of Lamu
Author URI: https://lamu.go.ke
Description: Official WordPress theme for the Municipality of Lamu.
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lamu-municipality
Tags: government, municipality, kenya, lamu
*/

/* ── Reset & Variables ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Blue — used for backgrounds, hero, topbar, footer, header border */
  --blue:         #5bbee6;
  --blue-dark:    #2a9fd4;
  --blue-deeper:  #0f6fa0;
  --blue-mid:     #3aadd8;
  --blue-deep-bg: #0d4a6b;   /* deep navy-blue for hero & footer bg */
  --blue-hero:    #0a3d5c;
  --blue-pale:    #e6f6fc;
  --blue-mist:    #f0faff;

  /* Brown — used for buttons, headings, accents, key text */
  --brown:        #653300;
  --brown-mid:    #8a4800;
  --brown-light:  #b06020;
  --brown-pale:   #f9f0e8;
  --brown-hover:  #7a3d00;

  /* Neutrals */
  --white:        #ffffff;
  --cream:        #f7fbfd;   /* blue-tinted cream */
  --slate:        #cce8f4;
  --slate-dark:   #a8d8ef;
  --muted:        #5a7a8a;
  --text:         #0d2a3a;
  --text-light:   #3a5f72;

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(13,74,107,.1);
  --shadow-md:    0 8px 32px rgba(13,74,107,.16);
  --shadow-lg:    0 20px 60px rgba(13,74,107,.22);
  --shadow-brown: 0 4px 20px rgba(101,51,0,.22);

  --radius: 12px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ════════════════════════════════
   TOP BAR  — blue background
════════════════════════════════ */
.topbar {
  background: var(--blue-deep-bg);
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); }
.topbar-item svg { width: 13px; height: 13px; opacity: .65; flex-shrink: 0; }
.topbar-item a { color: rgba(255,255,255,.78); transition: color .2s; }
.topbar-item a:hover { color: #fff; }
.topbar-cta a {
  background: var(--brown);
  color: #fff;
  font-weight: 700; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 18px; border-radius: 30px; transition: all .25s;
  box-shadow: var(--shadow-brown);
}
.topbar-cta a:hover { background: var(--brown-mid); transform: translateY(-1px); }

/* ════════════════════════════════
   HEADER  — white with blue border
════════════════════════════════ */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 16px rgba(91,190,230,.15);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; height: 80px; gap: 24px;
}
.header-spacer { flex: 1; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.logo-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-dark), var(--blue-deeper));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.15);
  flex-shrink: 0; position: relative;
}
.logo-badge::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
}
.logo-badge img, .logo-badge svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.logo-text-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--brown); line-height: 1.2;
}
.logo-text-wrap p {
  font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--blue-dark); margin-top: 2px;
}

/* Navigation */
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-navigation ul li a {
  display: block; font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 17px; border-radius: 8px; transition: all .2s; position: relative;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--brown); background: var(--brown-pale); font-weight: 600;
}
.main-navigation ul li.current-menu-item > a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px; background: var(--brown); border-radius: 2px;
}
.main-navigation ul li.menu-notice > a {
  background: var(--brown) !important; color: var(--white) !important;
  font-weight: 600 !important; border-radius: 8px;
  box-shadow: var(--shadow-brown);
}
.main-navigation ul li.menu-notice > a:hover {
  background: var(--brown-mid) !important; transform: translateY(-1px);
}
.main-navigation ul li.menu-notice > a::after { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.menu-toggle span { width: 22px; height: 2px; background: var(--brown); border-radius: 2px; display: block; }

/* ════════════════════════════════
   HERO  — blue deep background
════════════════════════════════ */
.hero-section {
  position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden;
  background: var(--blue-deep-bg);
  /* Background image is set via inline style from WordPress Customizer */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Blue overlay so text is always readable over any photo */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 75% 50%, rgba(91,190,230,.18) 0%, transparent 65%),
    linear-gradient(135deg, rgba(6,34,54,.88) 0%, rgba(13,74,107,.78) 50%, rgba(26,106,150,.72) 100%);
}

/* Diagonal line texture over overlay */
.hero-lines {
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,.018) 40px, rgba(255,255,255,.018) 41px);
}
.hero-glow {
  position: absolute; top: -80px; right: -80px; width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,190,230,.15) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite; z-index: 1;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.1);opacity:.7} }
.hero-arc { position: absolute; bottom: -2px; left: 0; right: 0; height: 60px; z-index: 2; }
.hero-arc svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 80px 28px 100px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #d4eeff; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 30px; margin-bottom: 22px;
  animation: fadeUp .7s ease both;
}
.hero-eyebrow::before { content:''; width:6px; height:6px; background:var(--blue); border-radius:50%; animation: blink 2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px); font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -.5px; animation: fadeUp .7s .1s ease both;
}
.hero-inner h1 em { font-style: normal; color: var(--blue); }
.hero-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--brown), var(--brown-light));
  border-radius: 2px; margin: 24px 0; animation: fadeUp .7s .2s ease both;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ════════════════════════════════
   PAGE HERO  — blue background
════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #062236 0%, #0d4a6b 50%, #1a6a96 100%);
  padding: 56px 28px 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px);
}
.page-hero-glow {
  position: absolute; top: -80px; right: -80px; width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,190,230,.2) 0%, transparent 70%);
}
.page-hero-arc { position: absolute; bottom: -2px; left: 0; right: 0; height: 50px; }
.page-hero-arc svg { width: 100%; height: 100%; }
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #d4eeff; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 30px; margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px); font-weight: 800; color: var(--white); line-height: 1.15;
}
.page-hero-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--brown), var(--brown-light));
  border-radius: 2px; margin-top: 18px;
}

/* ════════════════════════════════
   INTRO STRIP  — pale blue tint
════════════════════════════════ */
.intro-strip { background: var(--cream); border-bottom: 1px solid var(--slate); padding: 52px 28px; }
.intro-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.intro-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.intro-label::before { content: ''; width: 28px; height: 2px; background: var(--blue); border-radius: 1px; }
.intro-strip h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brown); margin-bottom: 22px; }
.project-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.project-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-light); line-height: 1.55; padding: 8px 0; border-bottom: 1px solid var(--slate); }
.project-list li .bullet { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 5px; }
.intro-cta { padding-top: 26px; }

/* BUTTONS  — brown background */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 100%);
  color: var(--white); font-size: 13.5px; font-weight: 600; padding: 13px 28px;
  border-radius: 10px; box-shadow: var(--shadow-brown); transition: all .25s;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brown-hover) 0%, var(--brown) 100%); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(101,51,0,.3); }
.btn-primary svg { width: 16px; height: 16px; }

/* ════════════════════════════════
   PROJECTS SECTION
════════════════════════════════ */
.projects-section { padding: 72px 28px 88px; background: var(--white); }
.section-wrap { max-width: 1280px; margin: 0 auto; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; gap: 20px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 28px; height: 2px; background: var(--blue); border-radius: 1px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 800; color: var(--brown); letter-spacing: -.3px; }
.section-count { font-size: 13px; color: var(--muted); font-weight: 500; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--slate); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; height: 200px; overflow: hidden; }
.card-img-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .card-img-inner { transform: scale(1.06); }

/* Card image backgrounds — alternating blue/brown deep tones */
.card-1 { background: linear-gradient(145deg, #062236 0%, #0d4a6b 100%); }
.card-2 { background: linear-gradient(145deg, #3a1a00 0%, #7a3800 100%); }
.card-3 { background: linear-gradient(145deg, #083d5c 0%, #1575a0 100%); }
.card-4 { background: linear-gradient(145deg, #4a2000 0%, #903a00 100%); }
.card-5 { background: linear-gradient(145deg, #0a3050 0%, #1060a0 100%); }
.card-6 { background: linear-gradient(145deg, #5a2800 0%, #a54a00 100%); }

/* Photo background — when a real image is uploaded */
.card-img-photo {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  font-size: 0; /* hide any fallback text */
}
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 55%); }
.card-fy-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92); font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2);
}
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--brown); margin-bottom: 8px; line-height: 1.3; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--slate); }
.card-meta svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--blue-dark); }

/* ════════════════════════════════
   ABOUT PAGE
════════════════════════════════ */
.about-section { padding: 72px 28px 88px; background: var(--white); }
.about-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 800; color: var(--brown); margin-bottom: 22px; }
.about-text p { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }
.about-image-wrap { position: relative; }
.about-image-wrap img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }
.about-image-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(145deg, var(--blue-deep-bg), var(--blue-dark)); display: flex; align-items: center; justify-content: center; font-size: 72px; box-shadow: var(--shadow-md); }
.about-badge { position: absolute; bottom: -18px; left: 24px; background: var(--brown); color: #fff; font-size: 12px; font-weight: 700; padding: 10px 20px; border-radius: 30px; box-shadow: var(--shadow-brown); }

/* Info cards */
.about-cards { max-width: 1280px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--slate); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--blue); }
.info-card.brown-accent { border-top-color: var(--brown); }
.info-card h4 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--brown); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.info-card p { font-size: 14px; line-height: 1.75; color: var(--text-light); }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.info-card ul li { font-size: 13.5px; color: var(--text-light); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.info-card ul li::before { content: '▸'; color: var(--brown); flex-shrink: 0; font-size: 12px; margin-top: 1px; }

/* Functions card */
.functions-card { max-width: 1280px; margin: 24px auto 0; background: var(--cream); border: 1px solid var(--slate); border-radius: var(--radius); padding: 32px; border-top: 3px solid var(--blue); }
.functions-card h4 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--brown); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.functions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; list-style: none; }
.functions-grid li { font-size: 13.5px; color: var(--text-light); display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.functions-grid li::before { content: '▸'; color: var(--brown); flex-shrink: 0; font-size: 12px; margin-top: 2px; }

/* Map */
.map-wrap { max-width: 1280px; margin: 24px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate); box-shadow: var(--shadow-sm); }
.map-wrap img { width: 100%; display: block; max-height: 400px; object-fit: contain; background: var(--cream); }
.map-placeholder { width: 100%; height: 300px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 64px; }

/* ════════════════════════════════
   RESOURCE PAGE
════════════════════════════════ */
.resource-section { padding: 72px 28px 88px; background: var(--white); }
.resource-inner { max-width: 1280px; margin: 0 auto; }
.resource-intro { font-size: 15.5px; color: var(--text-light); line-height: 1.75; margin-bottom: 48px; max-width: 680px; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.resource-card {
  background: var(--white); border: 1px solid var(--slate); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column; gap: 16px;
  border-top: 3px solid var(--blue);
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brown), var(--brown-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; box-shadow: var(--shadow-brown);
}
.resource-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); line-height: 1.35; }
.resource-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.resource-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown);
  color: var(--white);
  font-size: 13px; font-weight: 600; padding: 9px 18px;
  border-radius: 8px; box-shadow: var(--shadow-brown);
  transition: all .2s; align-self: flex-start;
}
.resource-download:hover { background: var(--brown-mid); transform: translateY(-1px); }
.resource-download svg { width: 14px; height: 14px; }

/* ════════════════════════════════
   FOOTER  — blue deep background
════════════════════════════════ */
.site-footer {
  background: var(--blue-deep-bg);
  color: rgba(255,255,255,.7);
  padding-top: 64px; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: -180px; right: -180px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,190,230,.1) 0%, transparent 70%); pointer-events: none;
}
.footer-grid { max-width: 1280px; margin: 0 auto; padding: 0 28px 56px; display: grid; grid-template-columns: 1.8fr 1.2fr 1fr 1fr; gap: 48px; }
.footer-col h6 {
  font-family: 'Playfair Display', serif; font-size: 13.5px; font-weight: 700;
  color: var(--white); margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.footer-col h6::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(91,190,230,.4), transparent); }
.footer-brand-logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(91,190,230,.3);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.footer-brand-logo img, .footer-brand-logo svg { width: 30px; height: 30px; }
.footer-col p { font-size: 13.5px; line-height: 1.75; max-width: 280px; }
.footer-col p a { color: var(--blue); transition: color .2s; }
.footer-col p a:hover { color: #fff; }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.55; }
.footer-contact-list li .ci {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px;
}
.footer-contact-list a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer-contact-list a:hover { color: var(--blue); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 13.5px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 8px; transition: color .2s, gap .2s; padding: 3px 0; }
.footer-links li a::before { content: '→'; font-size: 11px; color: var(--blue); opacity: .8; transition: opacity .2s; }
.footer-links li a:hover { color: var(--white); gap: 12px; }
.footer-links li a:hover::before { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.4);
}

/* ════════════════════════════════
   SCROLL REVEAL
════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .functions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 12px; box-shadow: var(--shadow-md); border-top: 2px solid var(--blue); }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; }
  .site-header { position: relative; }
  .intro-inner { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .functions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .resource-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   BLOG — Archive (page-blog.php)
════════════════════════════════════════════ */
.blog-section { padding: 64px 28px 88px; background: #fff; }
.blog-inner { max-width: 1280px; margin: 0 auto; }
.blog-intro { font-size: 16px; color: var(--text-light); line-height: 1.75; max-width: 680px; margin-bottom: 48px; }

/* Featured (first) post */
.blog-featured { margin-bottom: 48px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.blog-featured-link { display: block; text-decoration: none; color: inherit; }
.blog-featured-img {
  position: relative; height: 480px;
  background-size: cover; background-position: center;
  background-color: var(--blue-deep-bg);
  display: flex; align-items: flex-end;
}
.blog-img-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 80px; background: linear-gradient(145deg, #062236, #1a7aaa);
}
.blog-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,22,36,.92) 0%, rgba(6,22,36,.5) 50%, rgba(6,22,36,.1) 100%);
}
.blog-featured-content { position: relative; z-index: 2; padding: 40px 44px; width: 100%; }
.blog-cat-badge {
  display: inline-block; background: var(--brown); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.blog-featured-content h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 14px;
}
.blog-meta { display: flex; gap: 18px; color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-excerpt { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.7; max-width: 580px; margin-bottom: 20px; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brown); color: #fff;
  font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: 8px;
  transition: all .2s; box-shadow: var(--shadow-brown);
}
.blog-featured-link:hover .blog-read-more { background: var(--brown-mid); transform: translateX(3px); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 52px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-img { position: relative; height: 210px; overflow: hidden; }
.blog-card-photo { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .4s; }
.blog-card:hover .blog-card-photo { transform: scale(1.05); }
.blog-card-fallback { width: 100%; height: 100%; background: linear-gradient(145deg, #062236, #1a7aaa); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-card-cat { position: absolute; bottom: 12px; left: 12px; background: var(--brown); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.blog-card-body { padding: 22px; }
.blog-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.blog-card-dot { opacity: .4; }
.blog-card-body h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--brown); line-height: 1.35; margin-bottom: 8px; }
.blog-card-body p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; margin-bottom: 14px; }
.blog-read-link { font-size: 13px; font-weight: 600; color: var(--blue-dark); transition: color .2s; }
.blog-card:hover .blog-read-link { color: var(--brown); }

/* Pagination */
.blog-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.blog-pagination .page-num {
  width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--slate);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; text-decoration: none;
}
.blog-pagination .page-num:hover { border-color: var(--blue); color: var(--blue); }
.blog-pagination .page-num.current { background: var(--brown); border-color: var(--brown); color: #fff; }

/* Empty state */
.blog-empty { text-align: center; padding: 80px 20px; }
.blog-empty-icon { font-size: 64px; margin-bottom: 16px; }
.blog-empty h3 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--brown); margin-bottom: 10px; }
.blog-empty p { font-size: 15px; color: var(--muted); }


/* ════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════ */

/* Hero */
.single-hero {
  position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden;
  background-color: var(--blue-deep-bg);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.single-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,22,36,.95) 0%, rgba(6,22,36,.65) 55%, rgba(6,22,36,.2) 100%);
}
.single-hero-arc { position: absolute; bottom: -2px; left: 0; right: 0; height: 60px; z-index: 2; }
.single-hero-arc svg { width: 100%; height: 100%; }
.single-hero-inner { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 48px 28px 88px; width: 100%; }

/* Breadcrumb */
.single-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.single-breadcrumb a { font-size: 12.5px; color: rgba(255,255,255,.6); transition: color .2s; text-decoration: none; }
.single-breadcrumb a:hover { color: var(--blue); }
.single-breadcrumb span { color: rgba(255,255,255,.3); font-size: 12px; }

.single-cat-badge {
  display: inline-block; background: var(--brown); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.single-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 50px); font-weight: 800; color: #fff;
  line-height: 1.1; letter-spacing: -.4px; margin-bottom: 22px; max-width: 820px;
}
.single-hero-meta { display: flex; align-items: center; gap: 14px; }
.single-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); flex-shrink: 0; }
.single-author-name { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.single-meta-row { display: flex; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 3px; }
.single-meta-row span { display: flex; align-items: center; gap: 4px; }
.single-meta-dot { opacity: .4; }

/* Layout */
.single-layout { max-width: 1280px; margin: 0 auto; padding: 56px 28px 88px; display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }

/* Article content */
.single-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.single-content h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--brown); margin: 36px 0 14px; }
.single-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown); margin: 28px 0 12px; }
.single-content p { margin-bottom: 20px; color: var(--text-light); }
.single-content img { max-width: 100%; border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow-sm); }
.single-content ul, .single-content ol { padding-left: 24px; margin-bottom: 20px; color: var(--text-light); }
.single-content ul li, .single-content ol li { margin-bottom: 8px; line-height: 1.7; }
.single-content blockquote {
  border-left: 4px solid var(--blue); margin: 28px 0; padding: 18px 24px;
  background: var(--blue-mist); border-radius: 0 8px 8px 0; font-style: italic;
  color: var(--text); font-size: 16.5px;
}
.single-content a { color: var(--brown); text-decoration: underline; }
.single-content a:hover { color: var(--brown-mid); }
.single-content figure { margin: 28px 0; }
.single-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.wp-block-image { margin: 24px 0; }

/* Tags */
.single-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 36px 0 28px; padding-top: 28px; border-top: 1px solid var(--slate); }
.single-tags-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.single-tag { background: var(--cream); color: var(--brown); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--slate); transition: all .2s; text-decoration: none; }
.single-tag:hover { background: var(--brown); color: #fff; border-color: var(--brown); }

/* Share */
.single-share { padding: 24px 0 28px; border-top: 1px solid var(--slate); margin-top: 4px; }
.single-share-label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 12px; }
.single-share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 8px;
  text-decoration: none; transition: all .2s;
}
.share-twitter { background: #0f1419; color: #fff; }
.share-twitter:hover { background: #333; }
.share-fb { background: #1877f2; color: #fff; }
.share-fb:hover { background: #0d65d9; }
.share-wa { background: #25d366; color: #fff; }
.share-wa:hover { background: #1ebe5d; }

/* Prev/Next */
.single-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.single-nav-btn {
  background: var(--cream); border: 1px solid var(--slate); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; transition: all .25s;
  display: flex; flex-direction: column; gap: 5px;
}
.single-nav-btn:hover { border-color: var(--blue); background: var(--blue-mist); box-shadow: var(--shadow-sm); }
.single-nav-next { text-align: right; align-items: flex-end; }
.nav-dir { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--blue-dark); }
.nav-title { font-size: 14px; font-weight: 600; color: var(--brown); line-height: 1.35; }

/* Sidebar */
.single-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: #fff; border: 1px solid var(--slate); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sidebar-heading { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.author-card { display: flex; align-items: flex-start; gap: 12px; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--slate); }
.author-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.author-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.sidebar-post { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--slate); text-decoration: none; transition: opacity .2s; }
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { opacity: .8; }
.sidebar-post-img { width: 52px; height: 44px; border-radius: 7px; background-size: cover; background-position: center; flex-shrink: 0; }
.sidebar-post-no-img { background: linear-gradient(145deg, #062236, #1a7aaa); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sidebar-post-text { flex: 1; }
.sidebar-post-text span { display: block; font-size: 13px; font-weight: 600; color: var(--brown); line-height: 1.35; margin-bottom: 3px; }
.sidebar-post-text small { font-size: 11.5px; color: var(--muted); }
.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cat-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--cream); text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 500; transition: all .2s; }
.sidebar-cat-link:hover { background: var(--brown-pale); color: var(--brown); }
.sidebar-cat-count { background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* Comments */
.lamu-comments { margin-top: 48px; padding-top: 36px; border-top: 2px solid var(--slate); }
.comments-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brown); margin-bottom: 24px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.lamu-comment { background: var(--cream); border-radius: var(--radius); padding: 20px; border: 1px solid var(--slate); }
.comment-body-wrap { display: flex; gap: 14px; }
.comment-avatar img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--slate); }
.comment-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-header strong { font-size: 14px; font-weight: 700; color: var(--brown); }
.comment-header time { font-size: 12px; color: var(--muted); }
.comment-pending { font-size: 11px; color: #e68a00; background: #fff8e6; padding: 2px 8px; border-radius: 10px; }
.comment-text p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin: 0; }
.comment-reply a { font-size: 12.5px; color: var(--blue-dark); font-weight: 600; margin-top: 8px; display: inline-block; text-decoration: none; }
.comment-reply a:hover { color: var(--brown); }
.comment-form-wrap { background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--slate); }
.comment-form-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown); margin-bottom: 20px; }
.cf-field { margin-bottom: 16px; }
.cf-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cf-field label span { color: #e00; }
.cf-field input, .cf-field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--slate);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  transition: border-color .2s; outline: none; background: #fff;
}
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--blue); }
.cf-full { grid-column: 1/-1; }
.comment-form .submit {
  background: var(--brown); color: #fff; border: none;
  padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s; box-shadow: var(--shadow-brown);
}
.comment-form .submit:hover { background: var(--brown-mid); transform: translateY(-1px); }
.comments-closed { color: var(--muted); font-style: italic; font-size: 14px; }

/* ════════════════════════
   Responsive — blog
════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-img { height: 340px; }
  .blog-featured-content { padding: 24px 20px; }
  .single-nav { grid-template-columns: 1fr; }
  .single-hero { min-height: 340px; }
}

/* ════════════════════════════════════════════════════
   BLOG — Listing Page
════════════════════════════════════════════════════ */
.blog-section { padding: 64px 28px 88px; background: var(--white); }
.blog-inner   { max-width: 1280px; margin: 0 auto; }

/* ── Featured Post ── */
.blog-featured { margin-bottom: 52px; }
.blog-featured-link {
  display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.blog-featured-link:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(13,74,107,.2); }
.blog-featured-img {
  position: relative; min-height: 400px;
  background: linear-gradient(145deg, var(--blue-deep-bg), var(--blue-mid));
  overflow: hidden;
}
.blog-featured-img .blog-thumb-img { width:100%; height:100%; object-fit:cover; display:block; position:absolute; inset:0; }
.blog-no-thumb { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:80px; color:rgba(255,255,255,.3); }
.blog-img-overlay { position:absolute; inset:0; background: linear-gradient(to right, rgba(0,0,0,.35), transparent 60%); }
.blog-featured-body {
  background: var(--cream); padding: 52px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.blog-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.blog-cat {
  background: var(--brown); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.blog-date { font-size: 13px; color: var(--muted); }
.blog-read { font-size: 13px; color: var(--blue-dark); }
.blog-featured-body h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(22px,3vw,32px);
  font-weight: 800; color: var(--brown); line-height: 1.25;
}
.blog-excerpt { font-size: 15px; line-height: 1.75; color: var(--text-light); }
.blog-readmore {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brown), var(--brown-mid));
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 12px 24px; border-radius: 10px; box-shadow: var(--shadow-brown);
  transition: all .25s; align-self: flex-start;
}
.blog-readmore:hover { filter: brightness(1.1); transform: translateY(-2px); }
.blog-readmore svg { width: 16px; height: 16px; }

/* ── Post Grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 52px; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-img { position: relative; height: 210px; overflow: hidden; background: linear-gradient(145deg, var(--blue-deep-bg), var(--blue-mid)); }
.blog-card-img .blog-thumb-img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s; }
.blog-card:hover .blog-thumb-img { transform: scale(1.05); }
.blog-card-img .blog-img-overlay { background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.blog-card-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brown); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.blog-card-body { padding: 20px; }
.blog-card-meta { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-card-body h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--brown); line-height: 1.35; margin-bottom: 8px; }
.blog-card-body p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; margin-bottom: 12px; }
.blog-card-more { font-size: 13px; font-weight: 600; color: var(--brown); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s; }
.blog-card:hover .blog-card-more { gap: 8px; }

/* ── Pagination ── */
.blog-pagination { display: flex; justify-content: center; margin-top: 8px; }
.blog-pagination .page-numbers { display: inline-flex; list-style: none; gap: 6px; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--slate); color: var(--muted); transition: all .2s;
}
.blog-pagination .page-numbers li a:hover { background: var(--brown-pale); color: var(--brown); border-color: var(--brown); }
.blog-pagination .page-numbers li .current { background: var(--brown); color: #fff; border-color: var(--brown); }
.blog-pagination .page-numbers li a.prev,
.blog-pagination .page-numbers li a.next { width: auto; padding: 0 18px; font-size: 13px; }

/* ── Empty state ── */
.blog-empty { text-align: center; padding: 80px 28px; }
.blog-empty-icon { font-size: 64px; margin-bottom: 20px; }
.blog-empty h3 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--brown); margin-bottom: 12px; }
.blog-empty p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* ════════════════════════════════════════════════════
   BLOG — Single Post
════════════════════════════════════════════════════ */

/* Post Hero */
.post-hero {
  position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden;
  background: var(--blue-deep-bg);
  background-size: cover; background-position: center;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,34,54,.92) 0%, rgba(13,74,107,.65) 50%, rgba(26,106,150,.3) 100%);
}
.post-hero-arc { position: absolute; bottom: -2px; left: 0; right: 0; height: 54px; z-index: 2; }
.post-hero-arc svg { width: 100%; height: 100%; }
.post-hero-inner {
  position: relative; z-index: 3; max-width: 860px; margin: 0 auto;
  padding: 60px 28px 80px; width: 100%;
}
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 16px; flex-wrap: wrap; }
.post-breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb span { color: rgba(255,255,255,.4); }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-cat-badge {
  background: var(--brown); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
  text-decoration: none; transition: background .2s;
}
.post-cat-badge:hover { background: var(--brown-mid); }
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 46px); font-weight: 800; color: #fff;
  line-height: 1.18; letter-spacing: -.3px; margin-bottom: 22px;
}
.post-hero-meta { display: flex; align-items: center; gap: 12px; }
.post-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); object-fit: cover; flex-shrink: 0; }
.post-author { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.post-hero-date { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Post Layout — content + sidebar */
.post-layout {
  max-width: 1280px; margin: 0 auto; padding: 56px 28px 88px;
  display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start;
}
.post-container { min-width: 0; }

/* Post Content */
.post-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.post-content h2,.post-content h3,.post-content h4 { font-family: 'Playfair Display', serif; color: var(--brown); margin: 36px 0 14px; line-height: 1.3; }
.post-content h2 { font-size: 28px; font-weight: 800; }
.post-content h3 { font-size: 22px; font-weight: 700; }
.post-content h4 { font-size: 18px; font-weight: 700; }
.post-content p { margin-bottom: 22px; }
.post-content a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--brown-mid); }
.post-content img { max-width: 100%; border-radius: 10px; box-shadow: var(--shadow-md); margin: 20px 0; display: block; }
.post-content ul,.post-content ol { padding-left: 24px; margin-bottom: 22px; }
.post-content li { margin-bottom: 8px; line-height: 1.75; }
.post-content blockquote {
  border-left: 4px solid var(--blue); padding: 16px 24px; margin: 28px 0;
  background: var(--blue-mist); border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--text-light);
}
.post-content blockquote p { margin: 0; }
.post-content pre { background: #0d2a3a; color: #e0f4fc; padding: 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; margin-bottom: 22px; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.post-content table th { background: var(--blue-deep-bg); color: #fff; padding: 10px 14px; text-align: left; font-size: 13.5px; }
.post-content table td { padding: 10px 14px; border-bottom: 1px solid var(--slate); font-size: 14px; }
.post-content table tr:nth-child(even) td { background: var(--cream); }
.post-content figure { margin: 20px 0; }
.post-content figure figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Tags + Share */
.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 32px 0; padding: 20px; background: var(--cream); border-radius: 10px; }
.post-tags-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.post-tag { background: var(--white); border: 1px solid var(--slate); color: var(--text-light); font-size: 12.5px; padding: 4px 12px; border-radius: 20px; text-decoration: none; transition: all .2s; }
.post-tag:hover { background: var(--brown-pale); color: var(--brown); border-color: var(--brown); }

.post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.post-share-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 8px; text-decoration: none; transition: all .2s; }
.share-btn svg { width: 14px; height: 14px; }
.share-fb { background: #1877f2; color: #fff; }
.share-fb:hover { background: #1558b0; }
.share-tw { background: #1da1f2; color: #fff; }
.share-tw:hover { background: #0d87d0; }
.share-wa { background: #25d366; color: #fff; }
.share-wa:hover { background: #1aad52; }

/* Author Box */
.post-author-box {
  display: flex; gap: 20px; align-items: flex-start; padding: 28px;
  background: var(--cream); border-radius: 14px; border: 1px solid var(--slate);
  border-left: 4px solid var(--brown); margin-bottom: 36px;
}
.post-author-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.post-author-info { flex: 1; }
.post-author-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-dark); display: block; margin-bottom: 4px; }
.post-author-info strong { font-size: 16px; font-family: 'Playfair Display', serif; color: var(--brown); display: block; margin-bottom: 8px; }
.post-author-info p { font-size: 14px; line-height: 1.7; color: var(--text-light); margin: 0; }

/* Prev / Next Nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 52px; }
.post-nav-item {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  background: var(--cream); border-radius: 12px; border: 1px solid var(--slate);
  text-decoration: none; transition: all .2s;
}
.post-nav-item:hover { border-color: var(--brown); background: var(--brown-pale); }
.post-nav-dir { font-size: 11.5px; font-weight: 700; color: var(--blue-dark); letter-spacing: .5px; text-transform: uppercase; }
.post-nav-title { font-size: 14.5px; font-weight: 600; color: var(--brown); line-height: 1.4; }
.post-nav-next { text-align: right; }

/* Related Posts */
.related-posts { margin-bottom: 52px; }
.related-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--brown); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate); transition: transform .25s, box-shadow .25s; display: block; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-img { height: 150px; position: relative; overflow: hidden; background: linear-gradient(145deg, var(--blue-deep-bg), var(--blue-mid)); }
.related-img .blog-thumb-img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s; }
.related-card:hover .blog-thumb-img { transform: scale(1.06); }
.related-body { padding: 14px; }
.related-body .blog-date { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.related-body h4 { font-family: 'Playfair Display', serif; font-size: 14.5px; font-weight: 700; color: var(--brown); line-height: 1.35; }

/* Comments */
.post-comments { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--slate); }
.post-comments .comments-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--brown); margin-bottom: 24px; }
.post-comments .comment-form input[type=text],
.post-comments .comment-form input[type=email],
.post-comments .comment-form textarea { border: 1px solid var(--slate); border-radius: 8px; padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; width: 100%; transition: border-color .2s; }
.post-comments .comment-form input:focus,
.post-comments .comment-form textarea:focus { border-color: var(--blue); outline: none; }
.post-comments .comment-form .submit { background: var(--brown); color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.post-comments .comment-form .submit:hover { background: var(--brown-mid); }
.post-comments .comment-body { background: var(--cream); padding: 18px; border-radius: 10px; margin-bottom: 16px; }
.post-comments .comment-author { font-weight: 700; color: var(--brown); }
.post-comments .comment-metadata { font-size: 12px; color: var(--muted); }
.post-comments .comment-content p { font-size: 14.5px; line-height: 1.7; color: var(--text-light); margin-top: 10px; }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--slate); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--blue); }
.widget-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 16px; }
.sidebar-search { display: flex; border: 1px solid var(--slate); border-radius: 8px; overflow: hidden; }
.sidebar-search input { flex: 1; border: none; padding: 9px 12px; font-size: 13.5px; font-family: 'DM Sans', sans-serif; outline: none; background: transparent; }
.sidebar-search button { background: var(--brown); color: #fff; border: none; padding: 0 14px; font-size: 16px; cursor: pointer; transition: background .2s; }
.sidebar-search button:hover { background: var(--brown-mid); }
.sidebar-cats { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats li a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--text-light); text-decoration: none; transition: all .2s; }
.sidebar-cats li a:hover { background: var(--brown-pale); color: var(--brown); }
.sidebar-cats li a span { background: var(--slate); color: var(--muted); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.sidebar-recent { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-recent li a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 6px; border-radius: 8px; transition: background .2s; }
.sidebar-recent li a:hover { background: var(--cream); }
.sidebar-recent li a img,.sidebar-recent .recent-no-thumb { width: 54px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: linear-gradient(145deg,var(--blue-deep-bg),var(--blue-mid)); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sidebar-recent li a div { flex: 1; min-width: 0; }
.sidebar-recent li a span { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-recent li a small { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: block; }
.sidebar-tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-tagcloud a { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: var(--cream); border: 1px solid var(--slate); color: var(--text-light); text-decoration: none; transition: all .2s; }
.sidebar-tagcloud a:hover { background: var(--brown-pale); color: var(--brown); border-color: var(--brown); }

/* Blog Hero Meta box on listing page */
.blog-hero-meta-box { display: flex; gap: 10px; margin-bottom: 36px; align-items: center; flex-wrap: wrap; }

/* Responsive — Blog */
@media (max-width: 1024px) {
  .blog-featured-link { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 260px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   BLOG — Archive (post listing)
════════════════════════════════ */
.blog-section { padding: 72px 28px 96px; background: var(--white); }
.blog-inner   { max-width: 1280px; margin: 0 auto; }

/* Featured/latest post — big hero card */
.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 56px;
  border: 1px solid var(--slate); min-height: 360px;
}
.blog-featured-img {
  position: relative; overflow: hidden; background: var(--blue-deep-bg);
  display: flex; align-items: center; justify-content: center;
}
.blog-featured-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-placeholder { font-size: 80px; }
.blog-featured-body {
  padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.blog-featured-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.blog-featured-label::before { content: ''; width: 26px; height: 2px; background: var(--blue); border-radius: 1px; }
.blog-featured-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px,2.5vw,32px); font-weight: 800;
  color: var(--brown); line-height: 1.2; margin-bottom: 16px;
}
.blog-featured-body h2 a { color: inherit; transition: color .2s; }
.blog-featured-body h2 a:hover { color: var(--blue-dark); }
.blog-featured-excerpt { font-size: 14.5px; color: var(--text-light); line-height: 1.75; margin-bottom: 24px; flex: 1; }
.blog-featured-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.blog-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.blog-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.blog-cat-badge {
  background: var(--blue-pale); color: var(--blue-deeper);
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 30px; letter-spacing: .4px;
}

/* Post grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--slate); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img { position: relative; height: 200px; overflow: hidden; background: var(--blue-deep-bg); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; }
/* gradient fallbacks by card index */
.blog-ph-1{background:linear-gradient(145deg,#062236,#0d4a6b)}
.blog-ph-2{background:linear-gradient(145deg,#3a1a00,#7a3800)}
.blog-ph-3{background:linear-gradient(145deg,#083d5c,#1575a0)}
.blog-ph-4{background:linear-gradient(145deg,#4a2000,#903a00)}
.blog-ph-5{background:linear-gradient(145deg,#0a3050,#1060a0)}
.blog-ph-6{background:linear-gradient(145deg,#5a2800,#a54a00)}
.blog-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--brown); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.blog-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: var(--brown);
  line-height: 1.3; margin-bottom: 10px;
}
.blog-card-body h3 a { color: inherit; transition: color .2s; }
.blog-card-body h3 a:hover { color: var(--blue-dark); }
.blog-card-excerpt { font-size: 13.5px; color: var(--text-light); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--slate); gap: 10px; flex-wrap: wrap; }
.blog-card-date { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.blog-card-date svg { width: 12px; height: 12px; }
.blog-read-more { font-size: 12.5px; font-weight: 600; color: var(--brown); display: flex; align-items: center; gap: 5px; transition: gap .2s, color .2s; }
.blog-read-more:hover { color: var(--blue-dark); gap: 8px; }
.blog-read-more svg { width: 13px; height: 13px; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; transition: all .2s;
  border: 1.5px solid var(--slate); color: var(--muted); background: var(--white);
}
.blog-pagination a:hover { border-color: var(--brown); color: var(--brown); background: var(--brown-pale); }
.blog-pagination .current { background: var(--brown); color: #fff; border-color: var(--brown); }
.blog-pagination .prev-next { width: auto; padding: 0 18px; gap: 6px; }

/* Sidebar layout */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: var(--cream); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; border: 1px solid var(--slate); }
.sidebar-widget h5 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.sidebar-widget h5::after { content: ''; flex: 1; height: 1.5px; background: var(--slate); border-radius: 1px; }
.sidebar-recent li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate); }
.sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent-thumb { width: 60px; height: 52px; border-radius: 7px; overflow: hidden; flex-shrink: 0; background: var(--blue-deep-bg); }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-info a { font-size: 13px; font-weight: 600; color: var(--brown); line-height: 1.35; display: block; margin-bottom: 4px; transition: color .2s; }
.sidebar-recent-info a:hover { color: var(--blue-dark); }
.sidebar-recent-info span { font-size: 11.5px; color: var(--muted); }
.sidebar-cats { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sidebar-cats li a { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--text-light); padding: 7px 12px; border-radius: 8px; transition: all .2s; }
.sidebar-cats li a:hover { background: var(--brown-pale); color: var(--brown); }
.sidebar-cats li a span { background: var(--slate); color: var(--blue-deeper); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

/* ════════════════════════════════
   SINGLE POST page
════════════════════════════════ */
.single-hero {
  background: linear-gradient(135deg, #062236 0%, #0d4a6b 50%, #1a6a96 100%);
  padding: 56px 28px 70px; position: relative; overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
}
.single-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.35) saturate(.8);
}
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,34,54,.95) 0%, rgba(6,34,54,.5) 60%, transparent 100%);
}
.single-hero::before { content:''; position:absolute;inset:0;background:repeating-linear-gradient(-45deg,transparent,transparent 40px,rgba(255,255,255,.018) 40px,rgba(255,255,255,.018) 41px); z-index:1; }
.single-hero-arc { position: absolute; bottom: -2px; left: 0; right: 0; height: 54px; z-index: 3; }
.single-hero-arc svg { width: 100%; height: 100%; }
.single-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; width: 100%; padding-bottom: 16px; }
.single-post-cat { display: inline-flex; align-items: center; gap: 7px; background: var(--brown); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 4px 14px; border-radius: 30px; margin-bottom: 16px; }
.single-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(26px,4vw,44px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.single-post-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.single-meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.75); }
.single-meta-item svg { width: 14px; height: 14px; opacity: .8; }
.single-meta-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }

.single-post-layout { max-width: 1200px; margin: 0 auto; padding: 56px 28px 96px; display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }

/* Article content */
.single-post-content {}
.post-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800; color: var(--brown); margin: 36px 0 14px; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown); margin: 28px 0 10px; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--blue-dark); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { border-left: 3px solid var(--blue); margin: 28px 0; padding: 16px 24px; background: var(--blue-mist); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-light); }
.post-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 24px 0; max-width: 100%; }
.post-content pre { background: #1e2a3a; color: #c5e8ff; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; margin-bottom: 20px; }

/* Tags + share */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--slate); align-items: center; }
.post-tags-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.post-tag { background: var(--blue-pale); color: var(--blue-deeper); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 30px; transition: all .2s; }
.post-tag:hover { background: var(--blue); color: #fff; }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--slate); flex-wrap: wrap; }
.post-share-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.post-share a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--slate); color: var(--muted); transition: all .2s; font-size: 14px; }
.post-share a:hover { border-color: var(--brown); color: var(--brown); background: var(--brown-pale); }

/* Author card */
.post-author-card { display: flex; gap: 20px; padding: 24px; background: var(--cream); border-radius: var(--radius); margin-top: 32px; border: 1px solid var(--slate); border-left: 3px solid var(--blue); }
.post-author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--slate); }
.post-author-info h5 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.post-author-info p { font-size: 13.5px; color: var(--text-light); line-height: 1.6; }

/* Related posts */
.related-posts { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--slate); }
.related-posts h4 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--brown); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .blog-layout        { grid-template-columns: 1fr; }
  .blog-sidebar       { position: static; }
  .single-post-layout { grid-template-columns: 1fr; }
  .blog-featured      { grid-template-columns: 1fr; min-height: auto; }
  .blog-featured-img  { height: 260px; }
  .related-grid       { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .blog-grid    { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 28px; }
}

/* ════════════════════════════════════════════════════
   BLOG — helper function (PHP side)
════════════════════════════════════════════════════ */
/* (lamu_read_time() is defined in functions.php)    */

/* ════════════════════════════════════════════════════
   BLOG LISTING PAGE
════════════════════════════════════════════════════ */
.blog-section { padding: 56px 28px 88px; background: var(--white); }
.blog-inner   { max-width: 1280px; margin: 0 auto; }

.blog-intro {
  font-size: 16px; line-height: 1.75; color: var(--text-light);
  max-width: 680px; margin-bottom: 36px;
}

/* ── Filter bar ── */
.blog-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--slate);
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--cream); border: 1px solid var(--slate);
  padding: 6px 16px; border-radius: 30px; transition: all .2s;
}
.filter-btn:hover { background: var(--brown-pale); color: var(--brown); border-color: var(--brown); }
.filter-btn.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.filter-count {
  font-size: 11px; background: rgba(255,255,255,.3); padding: 1px 7px; border-radius: 20px;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,.25); }

/* ── Stats row ── */
.blog-stats {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}

/* ── Featured post ── */
.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--slate);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 52px;
  transition: transform .3s, box-shadow .3s;
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-featured-img-wrap {
  position: relative; min-height: 360px; display: block; overflow: hidden;
  background: linear-gradient(145deg, var(--blue-deep-bg), var(--blue-dark));
}
.blog-featured-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.blog-featured:hover .blog-featured-img { transform: scale(1.04); }
.blog-featured-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 360px;
}
.blog-featured-img-placeholder svg { width: 64px; height: 64px; }
.blog-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.15) 0%, transparent 60%);
}
.blog-featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--brown); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; box-shadow: var(--shadow-brown);
}
.blog-featured-body {
  padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.blog-featured-body h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800;
  color: var(--brown); line-height: 1.25; margin: 0;
}
.blog-featured-body h2 a { color: inherit; transition: color .2s; }
.blog-featured-body h2 a:hover { color: var(--blue-dark); }
.blog-featured-body p { font-size: 15px; color: var(--text-light); line-height: 1.7; }
.blog-read-more { align-self: flex-start; margin-top: 4px; }

/* ── Meta row (date, read time, category) ── */
.blog-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--muted);
}
.blog-cat-tag {
  background: var(--blue-pale); color: var(--blue-deeper);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.blog-date { display: flex; align-items: center; gap: 5px; }
.blog-date svg { width: 12px; height: 12px; }
.blog-read-time::before { content: '·'; margin-right: 4px; opacity: .5; }

/* ── Grid ── */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 52px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--slate); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img-wrap {
  position: relative; height: 210px; overflow: hidden; display: block;
  background: linear-gradient(145deg, var(--blue-deep-bg), var(--blue-dark));
}
.blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card-img { transform: scale(1.06); }
.blog-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder svg { width: 48px; height: 48px; }
.blog-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 55%); }
.blog-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--brown); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card-body h3 {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
  color: var(--brown); line-height: 1.35; margin: 0;
}
.blog-card-body h3 a { color: inherit; transition: color .2s; }
.blog-card-body h3 a:hover { color: var(--blue-dark); }
.blog-card-body p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; flex: 1; }
.blog-more-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: auto;
  font-size: 13px; font-weight: 600; color: var(--brown); transition: gap .2s, color .2s;
}
.blog-more-link:hover { gap: 8px; color: var(--blue-dark); }
.blog-more-link svg { width: 12px; height: 12px; }

/* ── Pagination ── */
.blog-pagination { display: flex; justify-content: center; margin-top: 16px; }
.blog-pagination .page-numbers {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0;
}
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1.5px solid var(--slate); border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.blog-pagination .page-numbers li a:hover { background: var(--brown-pale); color: var(--brown); border-color: var(--brown); }
.blog-pagination .page-numbers li span.current { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ── Empty state ── */
.blog-empty {
  text-align: center; padding: 80px 20px;
  border: 2px dashed var(--slate); border-radius: var(--radius); background: var(--cream);
}
.blog-empty-icon { font-size: 52px; margin-bottom: 16px; }
.blog-empty h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--brown); margin-bottom: 10px; }
.blog-empty p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* ════════════════════════════════════════════════════
   SINGLE POST PAGE
════════════════════════════════════════════════════ */

/* ── Hero ── */
.single-hero {
  position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden;
  background: var(--blue-deep-bg);
  background-size: cover; background-position: center;
}
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,34,54,.92) 0%, rgba(13,74,107,.65) 50%, rgba(26,106,150,.3) 100%);
}
.single-hero-arc { position: absolute; bottom: -2px; left: 0; right: 0; height: 54px; z-index: 2; }
.single-hero-arc svg { width: 100%; height: 100%; }
.single-hero-inner {
  position: relative; z-index: 3; width: 100%; max-width: 860px;
  margin: 0 auto; padding: 40px 28px 80px;
}
.single-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  margin-bottom: 20px; transition: color .2s;
}
.single-back-link:hover { color: #fff; }
.single-back-link svg { width: 14px; height: 14px; }
.single-meta-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.single-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: #fff;
  line-height: 1.2; margin: 0 0 20px;
}
.single-hero-divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--brown), var(--brown-light)); border-radius: 2px; margin-bottom: 20px; }
.single-author-row { display: flex; align-items: center; gap: 12px; }
.single-author-avatar { border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.single-author-name { display: block; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9); }
.single-updated { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* ── Layout ── */
.single-layout {
  max-width: 1280px; margin: 0 auto; padding: 60px 28px 88px;
  display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}

/* ── Post body ── */
.single-content {}
.post-body { font-size: 16px; line-height: 1.85; color: var(--text); }
.post-body h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--brown); margin: 36px 0 16px; }
.post-body h3 { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--brown); margin: 28px 0 12px; }
.post-body h4 { font-size: 17px; font-weight: 700; color: var(--text); margin: 22px 0 10px; }
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--blue-dark); text-decoration: underline; }
.post-body a:hover { color: var(--brown); }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { margin-bottom: 6px; }
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; box-shadow: var(--shadow-sm); }
.post-body blockquote {
  margin: 28px 0; padding: 20px 24px 20px 28px;
  background: var(--blue-mist); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-light); font-size: 16.5px;
}
.post-body pre {
  background: #0d2a3a; color: #e0f4fc; padding: 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: 14px; line-height: 1.6; margin-bottom: 20px;
}
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.post-body table th { background: var(--blue-mist); color: var(--brown); font-weight: 700; padding: 10px 14px; border: 1px solid var(--slate); text-align: left; }
.post-body table td { padding: 9px 14px; border: 1px solid var(--slate); }
.post-body table tr:nth-child(even) td { background: var(--cream); }

/* Tags */
.single-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--slate);
}
.tags-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tag-pill {
  font-size: 12px; font-weight: 500; color: var(--blue-deeper);
  background: var(--blue-pale); border: 1px solid var(--slate);
  padding: 4px 12px; border-radius: 20px; transition: all .2s;
}
.tag-pill:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }

/* Share bar */
.single-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 24px; padding: 20px; background: var(--cream);
  border: 1px solid var(--slate); border-radius: var(--radius);
}
.share-label { font-size: 13px; font-weight: 700; color: var(--text); margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 7px 16px; border-radius: 8px;
  transition: all .2s; color: #fff;
}
.share-btn svg { width: 13px; height: 13px; }
.share-fb { background: #1877f2; }
.share-fb:hover { background: #0d65d9; }
.share-tw { background: #1da1f2; }
.share-tw:hover { background: #0c85d0; }
.share-wa { background: #25d366; }
.share-wa:hover { background: #1aad52; }

/* Post nav */
.single-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--slate);
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 5px; padding: 16px 20px;
  background: var(--cream); border: 1px solid var(--slate); border-radius: var(--radius);
  transition: all .2s;
}
.post-nav-item:hover { background: var(--brown-pale); border-color: var(--brown); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--blue-dark); }
.post-nav-title { font-size: 14px; font-weight: 600; color: var(--brown); line-height: 1.4; }

/* Comments */
.single-comments { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--slate); }
.single-comments .comments-title { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--brown); margin-bottom: 24px; }
.comment-form input, .comment-form textarea { border: 1.5px solid var(--slate); border-radius: 8px; padding: 10px 14px; font-family: 'DM Sans', sans-serif; width: 100%; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form .submit { background: var(--brown); color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 600; cursor: pointer; transition: background .2s; }
.comment-form .submit:hover { background: var(--brown-mid); }

/* ── Sidebar ── */
.single-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.sidebar-card {
  background: var(--white); border: 1px solid var(--slate);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue);
}
.sidebar-card-title {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700;
  color: var(--brown); margin-bottom: 16px;
}

/* Author card */
.author-card { text-align: center; border-top-color: var(--brown); }
.author-card-avatar { border-radius: 50%; border: 3px solid var(--blue-pale); margin: 0 auto 12px; display: block; }
.author-card-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 8px; display: block; }
.author-card-bio { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.author-card-link { font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.author-card-link:hover { color: var(--brown); }

/* Categories list */
.sidebar-cat-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--text-light); padding: 7px 0;
  border-bottom: 1px solid var(--slate); transition: color .2s;
}
.sidebar-cat-list li a:hover { color: var(--brown); }
.cat-count {
  font-size: 11px; background: var(--blue-pale); color: var(--blue-deeper);
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}

/* Recent posts */
.sidebar-recent-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.sidebar-recent-list li { display: flex; gap: 10px; align-items: flex-start; }
.recent-thumb-wrap { flex-shrink: 0; }
.recent-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; display: block; }
.recent-info { display: flex; flex-direction: column; gap: 4px; }
.recent-title { font-size: 13px; font-weight: 600; color: var(--brown); line-height: 1.4; transition: color .2s; }
.recent-title:hover { color: var(--blue-dark); }
.recent-date { font-size: 11.5px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img-wrap { min-height: 240px; }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .single-post-nav { grid-template-columns: 1fr; }
}
