/*
Theme Name: NurseHomeworks Homepage
Theme URI: https://nursehomeworks.com/
Description: WordPress blog theme matched to the NurseHomeworks application UI.
Author: NurseHomeworks
Version: 1.0.9
Template: astra
Text Domain: nursehomeworks-homepage
*/

:root {
  --nh-slate-950: #020617;
  --nh-slate-900: #0f172a;
  --nh-slate-800: #1e293b;
  --nh-slate-600: #475569;
  --nh-slate-500: #64748b;
  --nh-slate-200: #e2e8f0;
  --nh-slate-100: #f1f5f9;
  --nh-slate-50: #f8fafc;
  --nh-emerald-600: #059669;
  --nh-emerald-500: #10b981;
  --nh-indigo-600: #4f46e5;
  --nh-white: #fff;
  --nh-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nh-slate-800);
  background: var(--nh-slate-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.nh-container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.nh-serif { font-family: Georgia, Cambria, "Times New Roman", serif; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.nh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
}
body.admin-bar .nh-header { top: 32px; }
.nh-header-row { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.nh-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nh-brand img { width: 240px; height: 40px; object-fit: contain; }
.nh-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nh-nav a {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  line-height: 64px;
  transition: color .2s ease;
}
.nh-nav a:hover, .nh-nav a[aria-current="page"] { color: var(--nh-indigo-600); }
.nh-nav a[aria-current="page"]::after {
  content: ""; position: absolute; right: 0; bottom: 13px; left: 0;
  height: 2px; border-radius: 999px; background: var(--nh-indigo-600);
}
.nh-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--nh-emerald-600);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .2);
}
.nh-header-cta:hover { background: #047857; color: #fff; }
.nh-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: var(--nh-slate-800);
  background: transparent;
  cursor: pointer;
}
.nh-menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s ease; }
.nh-mobile-nav { display: none; padding: 8px 24px 22px; border-top: 1px solid var(--nh-slate-100); background: #fff; }
.nh-mobile-nav a { display: block; padding: 11px 4px; color: #374151; font-weight: 600; border-bottom: 1px solid var(--nh-slate-100); }
.nh-mobile-nav .nh-header-cta { display: flex; margin-top: 14px; color: #fff; border: 0; }
.nh-mobile-nav.is-open { display: block; }

.nh-blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--nh-slate-950) url("assets/nursing-hero.webp") center 38% / cover no-repeat;
}
.nh-blog-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(2, 6, 23, .97) 12%, rgba(15, 23, 42, .89) 58%, rgba(15, 23, 42, .76));
}
.nh-blog-hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -260px;
  border-radius: 50%; background: rgba(16, 185, 129, .18); filter: blur(45px);
}
.nh-blog-hero-inner { max-width: 790px; padding-block: 86px 94px; }
.nh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px;
  border: 1px solid rgba(52, 211, 153, .28); border-radius: 999px;
  color: #a7f3d0; background: rgba(16, 185, 129, .12); font-size: 13px; font-weight: 700;
}
.nh-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.nh-blog-hero h1 { margin: 0; max-width: 720px; color: #fff; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; letter-spacing: -.025em; }
.nh-blog-hero p { max-width: 680px; margin: 24px 0 0; color: #cbd5e1; font-size: 18px; line-height: 1.75; }

.nh-main { padding-block: 74px 96px; }
.nh-section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.nh-section-head h2 { margin: 0; color: var(--nh-slate-900); font-size: clamp(32px, 3vw, 45px); line-height: 1.12; }
.nh-section-head p { max-width: 540px; margin: 0; color: var(--nh-slate-600); }
.nh-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nh-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border: 1px solid var(--nh-slate-200); border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.nh-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: var(--nh-shadow); }
.nh-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--nh-slate-100); }
.nh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nh-card:hover .nh-card-media img { transform: scale(1.025); }
.nh-card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.nh-card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--nh-emerald-600); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nh-card h2 { margin: 14px 0 12px; color: var(--nh-slate-900); font-size: 24px; line-height: 1.24; letter-spacing: -.01em; }
.nh-card h2 a:hover { color: var(--nh-emerald-600); }
.nh-card-excerpt { margin: 0 0 22px; color: var(--nh-slate-600); font-size: 15px; }
.nh-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--nh-slate-100); }
.nh-card-meta { color: var(--nh-slate-500); font-size: 12px; }
.nh-read-more { color: var(--nh-indigo-600); font-size: 14px; font-weight: 800; }
.nh-read-more:hover { color: #4338ca; }
.nh-pagination { margin-top: 50px; }
.nh-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nh-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--nh-slate-200); border-radius: 8px; color: var(--nh-slate-600); background: #fff; font-weight: 700; }
.nh-pagination .page-numbers.current, .nh-pagination .page-numbers:hover { color: #fff; background: var(--nh-indigo-600); border-color: var(--nh-indigo-600); }

.nh-article-hero { padding: 76px 0 84px; color: #fff; background: var(--nh-slate-950); }
.nh-article-hero-inner { max-width: 900px; }
.nh-breadcrumb { margin-bottom: 24px; color: #94a3b8; font-size: 13px; font-weight: 700; }
.nh-breadcrumb a { color: #a7f3d0; }
.nh-article-hero h1 { margin: 0; color: #fff; font-size: clamp(40px, 5vw, 66px); line-height: 1.06; letter-spacing: -.025em; }
.nh-article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: #cbd5e1; font-size: 14px; }
.nh-article-shell { width: min(100% - 48px, 940px); margin: -30px auto 96px; position: relative; }
.nh-article {
  overflow: hidden; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--nh-slate-200);
  border-radius: 22px; background: #fff; box-shadow: var(--nh-shadow);
}
.nh-article-featured { margin: calc(clamp(28px, 5vw, 64px) * -1) calc(clamp(28px, 5vw, 64px) * -1) 42px; }
.nh-article-featured img { width: 100%; max-height: 540px; object-fit: cover; }
.nh-content { color: #334155; font-size: 18px; line-height: 1.85; }
.nh-content > *:first-child { margin-top: 0; }
.nh-content h2, .nh-content h3, .nh-content h4 { margin: 1.8em 0 .65em; color: var(--nh-slate-900); font-family: Georgia, Cambria, "Times New Roman", serif; line-height: 1.2; }
.nh-content h2 { font-size: 34px; }
.nh-content h3 { font-size: 27px; }
.nh-content a { color: var(--nh-emerald-600); text-decoration: underline; text-underline-offset: 3px; }
.nh-content img { margin-block: 34px; border-radius: 14px; }
.nh-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 4px solid var(--nh-emerald-500); border-radius: 0 12px 12px 0; background: var(--nh-slate-50); }
.nh-content .awasam-promo3 .button img, .nh-content .awasam-promo3 .button-whatsapp img { display: none; }
.nh-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.nh-content th, .nh-content td { padding: 12px 14px; border: 1px solid var(--nh-slate-200); }
.nh-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.nh-post-nav a { display: block; min-height: 100%; padding: 20px; border: 1px solid var(--nh-slate-200); border-radius: 14px; color: var(--nh-slate-800); background: #fff; font-weight: 700; }
.nh-post-nav a:hover { border-color: #a7f3d0; color: var(--nh-emerald-600); }

.nh-footer { color: #cbd5e1; background: var(--nh-slate-900); }
.nh-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-block: 64px 52px; }
.nh-footer-brand img { width: 240px; height: 40px; object-fit: contain; margin-bottom: 22px; }
.nh-footer p { margin: 0; color: #cbd5e1; font-size: 14px; }
.nh-footer h2 { margin: 0 0 18px; color: #fff; font-size: 18px; }
.nh-footer ul { list-style: none; margin: 0; padding: 0; }
.nh-footer li + li { margin-top: 9px; }
.nh-footer a { color: #cbd5e1; font-size: 14px; }
.nh-footer a:hover { color: #6ee7b7; }
.nh-footer-bottom { padding: 22px 0; border-top: 1px solid rgba(148, 163, 184, .14); color: #64748b; text-align: center; font-size: 12px; }

@media (max-width: 1024px) {
  .nh-nav, .nh-header > .nh-container > .nh-header-cta { display: none; }
  .nh-menu-toggle { display: block; }
  .nh-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) { body.admin-bar .nh-header { top: 46px; } }

@media (max-width: 700px) {
  .nh-container, .nh-article-shell { width: min(100% - 32px, 1200px); }
  .nh-brand img { width: 216px; height: 36px; }
  .nh-header-row { min-height: 64px; }
  .nh-blog-hero-inner { padding-block: 68px 74px; }
  .nh-blog-hero h1 { font-size: 43px; }
  .nh-blog-hero p { font-size: 16px; }
  .nh-main { padding-block: 54px 72px; }
  .nh-section-head { display: block; }
  .nh-section-head p { margin-top: 14px; }
  .nh-post-grid { grid-template-columns: 1fr; }
  .nh-card h2 { font-size: 26px; }
  .nh-article-hero { padding-block: 62px 72px; }
  .nh-article-hero h1 { font-size: 40px; }
  .nh-article-shell { margin-top: -24px; margin-bottom: 72px; }
  .nh-article { border-radius: 18px; }
  .nh-content { font-size: 17px; }
  .nh-content h2 { font-size: 29px; }
  .nh-content h3 { font-size: 24px; }
  .nh-content .awasam-promo3 h2 { font-size: 26px; line-height: 1.25; }
  .nh-post-nav { grid-template-columns: 1fr; }
  .nh-footer-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 52px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
