/* ==========================================================================
   Lifershub Innovation Limited
   Tokens: Indigo #2D1B8C (brand) / Indigo-dark #160F45 (deep sections)
           Sky #1FA8DA (accent, from the logo swirl) / Sky-tint #EAF7FD
           Ink #151229 (text) / Off-white #FBFAFC (page background)
   Type:   Sora (display) + Inter (body)
   ========================================================================== */

:root {
  --indigo: #2D1B8C;
  --indigo-dark: #160F45;
  --indigo-soft: #4B36B8;
  --sky: #1FA8DA;
  --sky-tint: #EAF7FD;
  --sky-deep: #0E85B3;
  --ink: #151229;
  --slate: #5B5770;
  --line: #E7E4F2;
  --paper: #FBFAFC;
  --white: #FFFFFF;
  --warn: #C9762B;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 26px;
  --shadow: 0 18px 40px -20px rgba(22, 15, 69, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--indigo-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

a { color: var(--indigo); text-decoration: none; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-soft); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-deep); }
.btn-outline { background: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 20px;
}
.brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--indigo); border-color: var(--sky); }
.nav-links a.nav-cta {
  background: var(--indigo);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none;
}
.nav-links a.nav-cta:hover { background: var(--indigo-soft); }
.nav-links a.nav-cta.active { background: var(--sky-deep); }
.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--indigo-dark);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { margin-top: 10px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 90px;
  background: var(--indigo-dark);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero .kicker {
  font-family: var(--font-display);
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; }
.hero p.lede { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hub-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
}
.hub-ring svg { width: 100%; height: 100%; }

.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(31,168,218,0.35), transparent 70%);
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hub-ring { max-width: 280px; margin-top: 20px; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--indigo);
  color: #fff;
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 24px;
}
.stat-strip .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}
.stat-strip .stat span { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
@media (max-width: 700px) {
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { font-size: 1.05rem; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Services: three distinct treatments (not identical cards) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  border-radius: var(--radius-l);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}
.service-card h3 { font-size: 1.35rem; }
.service-card p { margin-bottom: 0.6em; }
.service-card .benefits { list-style: none; margin: 6px 0 auto; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.service-card .benefits li { padding-left: 18px; position: relative; font-size: 0.95rem; }
.service-card .benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.service-card .learn { margin-top: 20px; font-family: var(--font-display); font-weight: 600; }

.service-dark { background: var(--indigo-dark); color: #fff; }
.service-dark h3, .service-dark p { color: #fff; }
.service-dark p { color: rgba(255,255,255,0.75); }
.service-dark .benefits li { color: rgba(255,255,255,0.88); }
.service-dark .benefits li::before { background: var(--sky); }
.service-dark .learn a { color: var(--sky); }

.service-light { background: var(--white); border: 1.5px solid var(--line); }
.service-light .benefits li::before { background: var(--indigo); }
.service-light .learn a { color: var(--indigo); }

.service-tint { background: var(--sky-tint); }
.service-tint .benefits li::before { background: var(--sky-deep); }
.service-tint .learn a { color: var(--sky-deep); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Project cards ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--slate);
  cursor: pointer;
}
.filter-pill.active, .filter-pill:hover { border-color: var(--indigo); color: var(--indigo); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--sky-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sky-tint);
  color: var(--sky-deep);
}
.project-tag.cybersecurity { background: #F1EAFB; color: var(--indigo); }
.project-tag.cyberkids { background: #FFF1E4; color: var(--warn); }
.project-body h3 { font-size: 1.12rem; margin-bottom: 2px; }
.project-body p { font-size: 0.95rem; margin-bottom: 4px; }
.project-tech { font-size: 0.82rem; color: var(--slate); margin-top: auto; }
.project-body .visit { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
}

.empty-note {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 40px;
  text-align: center;
  color: var(--slate);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
}
.testimonial-stars { color: var(--sky-deep); font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { color: var(--ink); font-size: 1rem; }
.testimonial-name { font-family: var(--font-display); font-weight: 700; margin-top: 14px; }
.testimonial-role { font-size: 0.85rem; color: var(--slate); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--indigo-dark);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
}
.field .hint { font-size: 0.82rem; color: var(--slate); margin-top: 5px; }

.alert { border-radius: var(--radius-s); padding: 14px 18px; margin-bottom: 22px; font-size: 0.95rem; }
.alert-success { background: #E9F8EF; color: #1E7A44; border: 1px solid #C4EAD3; }
.alert-error { background: #FDECEC; color: #B23A3A; border: 1px solid #F5C6C6; }

@media (max-width: 700px) {
  .form-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Pricing packages ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 10px;
}
.package-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.package-card:hover { transform: translateY(-2px); }
.package-card.selected { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(45,27,140,0.12); }
.package-card .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--indigo-dark); margin: 6px 0 10px; }
.package-card .price span { font-size: 0.85rem; font-weight: 500; color: var(--slate); }
.package-card ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: 0.92rem; }
.package-card ul li { margin-bottom: 5px; }
@media (max-width: 900px) { .package-grid { grid-template-columns: 1fr; } }
.package-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .package-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .package-grid-4 { grid-template-columns: 1fr; } }

.package-card .badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: var(--sky-tint);
  border-radius: 999px;
  padding: 3px 8px;
  vertical-align: middle;
  margin-left: 6px;
}
.package-card-custom { border-style: dashed; background: var(--paper); }
.package-card-custom.selected { background: #fff; }
.package-card-custom .custom-budget-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
}
.package-card-custom .custom-budget-input:focus { outline: none; border-color: var(--sky); }

/* ---------- Choice cards (Project Writing: request type, topic picks) ---------- */
.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 10px 0 4px;
}
.choice-btn {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.choice-btn:hover { transform: translateY(-2px); }
.choice-btn.selected { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(45,27,140,0.12); }
.choice-btn h4 { margin: 0 0 4px; font-size: 1rem; }
.choice-btn p { margin: 0; font-size: 0.88rem; color: var(--slate); }
@media (max-width: 700px) { .choice-group { grid-template-columns: 1fr; } }

/* ---------- Downloadable invoice summary (consultation thank-you screen) ---------- */
.invoice-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--sky-tint);
  padding: 18px 20px;
  margin-top: 6px;
}
.invoice-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(14, 133, 179, 0.14);
}
.invoice-summary-row:last-child { border-bottom: none; }
.invoice-summary-row span { color: var(--slate); }
.invoice-summary-row strong { color: var(--indigo-dark); text-align: right; }

/* ---------- AI insight box ---------- */
.ai-box {
  border-radius: var(--radius-m);
  padding: 24px 26px;
  background: var(--sky-tint);
  border: 1px solid #CDEBF7;
  margin-top: 8px;
}
.ai-box .ai-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sky-deep);
  margin-bottom: 8px;
}
.ai-box p:last-child { margin-bottom: 0; }
.ai-loading { color: var(--slate); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 14px; opacity: 0.95; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc page components ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--sky-tint);
  color: var(--sky-deep);
}

.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 24px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.step-list h4 { margin-bottom: 4px; font-size: 1.02rem; }
.step-list p { margin-bottom: 0; font-size: 0.95rem; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr; } }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.course-card .level { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--sky-deep); margin-bottom: 8px; display: block; }

.chat-box { border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; overflow: hidden; }
.chat-log { padding: 20px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.chat-msg.user { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ai { align-self: flex-start; background: var(--sky-tint); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font-family: var(--font-body); }

/* Login/Admin shared minimal look */
.center-card-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-dark);
  padding: 24px;
}
.center-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--radius-l);
  padding: 40px 36px;
}
.center-card img { height: 42px; margin: 0 auto 22px; }

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--indigo-dark); color: #fff; padding: 26px 20px; }
.admin-sidebar img { height: 36px; margin-bottom: 30px; filter: brightness(0) invert(1); }
.admin-sidebar a {
  display: block;
  color: rgba(255,255,255,0.75);
  padding: 11px 12px;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar .logout-link { margin-top: 26px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; }
.admin-main { padding: 34px 40px; max-width: 1100px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.admin-card b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--indigo-dark); }
.admin-card span { color: var(--slate); font-size: 0.88rem; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.admin-table th { background: var(--sky-tint); font-family: var(--font-display); color: var(--indigo-dark); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; font-family: var(--font-display); }
.badge-new { background: #FDECEC; color: #B23A3A; }
.badge-contacted { background: #FFF3E0; color: var(--warn); }
.badge-closed { background: #E9F8EF; color: #1E7A44; }
.badge-pending { background: #FFF3E0; color: var(--warn); }
.badge-approved { background: #E9F8EF; color: #1E7A44; }
.table-actions a, .table-actions button {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--indigo);
}
.table-actions .danger { color: #B23A3A; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding: 16px 20px; }
  .admin-sidebar img { margin-bottom: 0; height: 28px; }
  .admin-main { padding: 22px 18px; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   SEO / blog additions
   ========================================================================== */
.page-h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--sky); }

.crumbs { font-size: 0.86rem; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--indigo); }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.6; }

.blog-hero { padding: 56px 0 8px; }
.blog-hero p { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 12px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--sky-tint); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h2, .post-body h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.post-body h2 a, .post-body h3 a { color: var(--indigo-dark); }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--indigo); }
.post-body p { font-size: 0.93rem; margin: 0; }
.post-meta { font-size: 0.82rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.post-tag { display: inline-block; font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--sky-deep); }
.post-card .read-more { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }

.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 30px; }
.post-featured .post-thumb { aspect-ratio: auto; min-height: 280px; }
.post-featured .post-body { padding: 30px 32px; justify-content: center; }
.post-featured .post-body h2 { font-size: 1.6rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; text-align: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; background: #fff; }
.pagination .current { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pagination a:hover { border-color: var(--indigo); }

/* Single post */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 24px; }
.article-wrap h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 14px; }
.article-lede { font-size: 1.15rem; color: var(--slate); max-width: none; }
.article-cover { margin: 26px 0 8px; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: auto; display: block; }
.toc { background: var(--sky-tint); border: 1px solid #CDEBF7; border-radius: var(--radius-m); padding: 18px 22px; margin: 26px 0; }
.toc strong { font-family: var(--font-display); color: var(--indigo-dark); display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; font-size: 0.95rem; }
.toc li.sub { margin-left: 16px; list-style: circle; }
.prose { font-size: 1.06rem; line-height: 1.8; color: #2a2740; }
.prose > * { max-width: none; }
.prose p { color: #2a2740; margin: 0 0 1.3em; max-width: none; }
.prose h2 { margin: 1.9em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--sky); color: var(--indigo-dark); font-size: 1.12rem; }
.prose blockquote p { color: inherit; margin: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-s); margin: .4em 0 1.2em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--slate); text-align: center; margin-top: 6px; }
.prose pre { background: var(--indigo-dark); color: #E7E4F2; padding: 16px 18px; border-radius: var(--radius-s); overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.prose code { background: #EFEDF7; padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--sky-tint); font-family: var(--font-display); color: var(--indigo-dark); }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-row strong { font-family: var(--font-display); font-size: .92rem; color: var(--indigo-dark); margin-right: 4px; }
.share-btn { font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--indigo-dark); cursor: pointer; }
.share-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.cta-box { background: var(--indigo-dark); color: #fff; border-radius: var(--radius-m); padding: 28px 30px; margin: 34px 0; }
.cta-box h3 { color: #fff; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,.75); margin-bottom: 16px; }
.related { max-width: 1100px; margin: 0 auto; padding: 20px 24px 70px; }
.related > h2 { font-size: 1.5rem; margin-bottom: 20px; }
.empty-blog { text-align: center; padding: 70px 20px; color: var(--slate); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-featured { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-wrap { padding-top: 32px; }
}

/* Admin: post editor */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--sky-tint); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-s) var(--radius-s) 0 0; }
.editor-toolbar button { font: 600 .85rem var(--font-display); padding: 6px 11px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: var(--indigo-dark); }
.editor-toolbar button:hover { border-color: var(--indigo); }
.editor-surface { min-height: 380px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius-s) var(--radius-s); outline: none; }
.editor-surface:focus { border-color: var(--indigo); }
.editor-source { width: 100%; min-height: 380px; font-family: monospace; font-size: .88rem; }
.seo-box { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; margin-top: 22px; background: #fff; }
.seo-box h4 { margin-bottom: 10px; }
.counter { font-size: .8rem; color: var(--slate); float: right; }
.counter.ok { color: #1E7A44; }
.counter.bad { color: #B23A3A; }
.serp-preview { border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 14px; background: #FBFAFC; }
.serp-preview .t { color: #1a0dab; font-size: 1.1rem; font-family: Arial, sans-serif; }
.serp-preview .u { color: #006621; font-size: .82rem; font-family: Arial, sans-serif; }
.serp-preview .d { color: #545454; font-size: .88rem; font-family: Arial, sans-serif; }
