/* ============================================================
   Modern 2026 layer — Custom Nursing Assignments
   Presentation only. Brand: crimson red (kept), modernized.
   ============================================================ */
:root {
  --m26-primary: #c62840;
  --m26-primary-dark: #9e1c31;
  --m26-primary-soft: #fdf0f2;
  --m26-ink: #1c2230;
  --m26-body: #45505f;
  --m26-muted: #8a93a3;
  --m26-line: #e8ebf0;
  --m26-bg: #f7f8fa;
  --m26-radius: 14px;
  --m26-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -8px rgba(16,24,40,.12);
  --m26-shadow-lg: 0 12px 40px -10px rgba(198,40,64,.28);
  --m26-head-font: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --m26-body-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--m26-body-font) !important;
  color: var(--m26-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--m26-head-font) !important;
  color: var(--m26-ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.entry-content h2 { font-size: 1.75rem; margin: 2.4em 0 .8em; }
.entry-content h3 { font-size: 1.3rem; margin: 2em 0 .6em; }
.entry-content p { margin-bottom: 1.25em; }
.entry-content a { color: var(--m26-primary); text-decoration: none; font-weight: 500; }
.entry-content a:hover { color: var(--m26-primary-dark); text-decoration: underline; }

/* ---------- Top bar ---------- */
.wpbf-pre-header, #wpbf-pre-header {
  background: var(--m26-ink) !important;
  color: #cdd5e0 !important;
  font-size: 13px;
  padding: 7px 0;
}
.wpbf-pre-header a, #wpbf-pre-header a { color: #fff !important; font-weight: 600; }

/* ---------- Header / nav ---------- */
.wpbf-navigation, .wpbf-navigation .wpbf-menu {
  font-family: var(--m26-body-font);
}
#header, .wpbf-header, header.site-header {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--m26-line), 0 6px 24px -12px rgba(16,24,40,.18);
  position: sticky; top: 0; z-index: 900;
}
.wpbf-menu > .menu-item > a {
  color: var(--m26-ink) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.wpbf-menu > .menu-item > a:hover { color: var(--m26-primary) !important; background: var(--m26-primary-soft); }
/* "Place Order" as a button */
.wpbf-menu .menu-item a[href*="/order"] {
  background: var(--m26-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  box-shadow: var(--m26-shadow-lg);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wpbf-menu .menu-item a[href*="/order"]:hover {
  background: var(--m26-primary-dark) !important;
  transform: translateY(-1px);
}

/* ---------- Breadcrumbs ---------- */
.wpbf-breadcrumbs, .breadcrumbs, .breadcrumb-trail {
  font-size: 13px; color: var(--m26-muted);
  padding: 14px 0 0; text-transform: none;
}
.wpbf-breadcrumbs a { color: var(--m26-primary); font-weight: 600; }

/* ---------- Hero (wrapped by JS on home) ---------- */
.m26-hero {
  background: linear-gradient(115deg, #8e1226 0%, #c62840 55%, #e0455a 100%);
  border-radius: 22px;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.6rem, 5vw, 3.5rem);
  margin: 1.4rem 0 2.6rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--m26-shadow-lg);
}
.m26-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(400px 240px at -5% 110%, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}
.m26-hero h1, .m26-hero h2, .m26-hero p, .m26-hero ul, .m26-hero li { color: #fff !important; }
.m26-hero h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 .5em; font-weight: 800; }
.m26-hero ul { list-style: none; padding: 0; margin: 1.2em 0 0; }
.m26-hero li { padding-left: 1.9em; position: relative; margin-bottom: .55em; font-weight: 500; }
.m26-hero li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35em; height: 1.35em; line-height: 1.35em; text-align: center;
  background: rgba(255,255,255,.2); border-radius: 50%; font-size: .85em; font-weight: 700;
}

/* ---------- CTA buttons (class added by JS) ---------- */
.m26-btn {
  display: inline-block !important;
  background: var(--m26-primary) !important;
  color: #fff !important;
  font-family: var(--m26-head-font);
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 30px !important;
  border-radius: 999px !important;
  box-shadow: var(--m26-shadow-lg);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.m26-btn:hover { background: var(--m26-primary-dark) !important; color: #fff !important; transform: translateY(-2px); }
.m26-btn--ghost {
  background: #fff !important; color: var(--m26-primary) !important;
  border: 2px solid var(--m26-primary) !important; box-shadow: none;
}
.m26-btn--ghost:hover { background: var(--m26-primary-soft) !important; }
.m26-hero .m26-btn { background: #fff !important; color: var(--m26-primary) !important; }
.m26-hero .m26-btn:hover { background: #ffe9ec !important; }

/* ---------- Content images ---------- */
.entry-content img, .wpbf-post-content img {
  border-radius: var(--m26-radius);
  box-shadow: var(--m26-shadow);
}

/* ---------- Blog archive cards ---------- */
.blog .wpbf-post, .archive .wpbf-post, article.wpbf-post {
  background: #fff;
  border: 1px solid var(--m26-line);
  border-radius: var(--m26-radius);
  padding: 30px 32px;
  margin-bottom: 26px;
  box-shadow: var(--m26-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog .wpbf-post:hover, .archive .wpbf-post:hover {
  transform: translateY(-3px);
  border-color: #f3c3cc;
  box-shadow: 0 16px 44px -14px rgba(198,40,64,.22);
}
.wpbf-post .entry-title, .wpbf-post .entry-title a {
  font-family: var(--m26-head-font) !important;
  font-size: 1.45rem !important; font-weight: 700; color: var(--m26-ink) !important;
  line-height: 1.35; text-decoration: none;
}
.wpbf-post .entry-title a:hover { color: var(--m26-primary) !important; }
.wpbf-post .entry-meta, .entry-meta { font-size: 13px; color: var(--m26-muted); text-transform: none; letter-spacing: .02em; }
.wpbf-post .entry-meta a { color: var(--m26-primary); font-weight: 600; }
.read-more, .wpbf-read-more, a.more-link {
  display: inline-block !important;
  background: var(--m26-primary-soft) !important;
  color: var(--m26-primary) !important;
  font-weight: 700 !important; font-size: 14px !important;
  padding: 9px 20px !important; border-radius: 999px !important;
  text-decoration: none !important; border: none !important;
  transition: background .18s ease, color .18s ease;
}
.read-more:hover, .wpbf-read-more:hover, a.more-link:hover {
  background: var(--m26-primary) !important; color: #fff !important;
}
/* archive layout: article list spacing fix */
.blog #main .wpbf-post:first-of-type { margin-top: 10px; }

/* ---------- Pagination ---------- */
.pagination .page-numbers, .nav-links .page-numbers {
  border-radius: 10px !important; border: 1px solid var(--m26-line) !important;
  color: var(--m26-ink) !important; font-weight: 600; min-width: 40px; text-align: center;
}
.pagination .page-numbers.current, .nav-links .page-numbers.current {
  background: var(--m26-primary) !important; color: #fff !important; border-color: var(--m26-primary) !important;
}

/* ---------- Sidebar widgets ---------- */
.widget, .wpbf-sidebar .widget {
  background: #fff; border: 1px solid var(--m26-line); border-radius: var(--m26-radius);
  padding: 22px 24px; margin-bottom: 22px; box-shadow: var(--m26-shadow);
}
.widget .widget-title, .widgettitle {
  font-family: var(--m26-head-font) !important; font-size: 1.05rem !important;
  color: var(--m26-ink) !important; margin-bottom: .8em;
  padding-bottom: .6em; border-bottom: 2px solid var(--m26-primary-soft);
}
.widget ul { list-style: none; padding-left: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--m26-line); }
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--m26-body); font-weight: 500; }
.widget a:hover { color: var(--m26-primary); }
.search-form input[type="search"], .widget_search input[type="search"], input.search-field {
  border: 1.5px solid var(--m26-line) !important; border-radius: 10px !important;
  padding: 10px 14px !important; font-family: var(--m26-body-font);
}
.search-form button, .search-submit, input[type="submit"] {
  background: var(--m26-primary) !important; color: #fff !important;
  border: none !important; border-radius: 10px !important; font-weight: 700;
  padding: 10px 18px !important; cursor: pointer;
}

/* ---------- Single post ---------- */
.single .entry-title { font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }
.single .entry-content { font-size: 17px; }
.single .entry-content > p:first-of-type { font-size: 1.12em; color: var(--m26-ink); }
.single .post-thumbnail img, .single .entry-media img { border-radius: var(--m26-radius); }

/* ---------- Services pages: h2 sections as cards ---------- */
.page .entry-content h2 {
  position: relative; padding-left: 18px;
}
.page .entry-content h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--m26-primary), #ef7d8f);
}

/* ---------- Footer ---------- */
#footer, .wpbf-footer, footer.site-footer {
  background: var(--m26-ink) !important;
  color: #b9c2cf !important;
  font-size: 14.5px;
  padding: 40px 0 !important;
}
#footer a, .wpbf-footer a, footer.site-footer a { color: #e8edf4 !important; font-weight: 500; }
#footer a:hover, .wpbf-footer a:hover { color: #ff8fa0 !important; }

/* ---------- Misc ---------- */
::selection { background: var(--m26-primary); color: #fff; }
.m26-hidden-artifact { display: none !important; }

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .m26-hero { border-radius: 16px; padding: 1.8rem 1.3rem; }
  .blog .wpbf-post, .archive .wpbf-post { padding: 22px 20px; }
}
