/* ═══════════════════════════════════════════════════════
   Nursing Guru — Clean, Simple, Modern
   Brand: Olive Gold #8B9A1A
   ═══════════════════════════════════════════════════════ */

:root {
  --ng-green:        #8B9A1A;
  --ng-green-dark:   #6d790f;
  --ng-green-light:  #f3f6e0;
  --ng-green-mid:    #aabb22;
  --ng-gold:         #c8a800;
  --ng-dark:         #1c2000;
  --ng-text:         #374151;
  --ng-muted:        #6b7280;
  --ng-border:       #e8ecdc;
  --ng-bg:           #f9faf4;
  --ng-white:        #ffffff;
  --ng-radius:       12px;
  --ng-radius-lg:    20px;
  --ng-shadow:       0 2px 12px rgba(139,154,26,.10);
  --ng-shadow-md:    0 6px 24px rgba(139,154,26,.14);
  --sidebar-w:       260px;
}

/* ── Reset & Base ────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--ng-text); background: var(--ng-white); }
a { color: var(--ng-green); }
a:hover { color: var(--ng-green-dark); }
img { max-width: 100%; }

/* Bootstrap primary overrides */
.btn-primary                  { background: var(--ng-green);      border-color: var(--ng-green); color: #fff; font-weight: 600; }
.btn-primary:hover            { background: var(--ng-green-dark);  border-color: var(--ng-green-dark); color: #fff; }
.btn-primary:focus            { box-shadow: 0 0 0 .25rem rgba(139,154,26,.3); }
.btn-outline-primary          { color: var(--ng-green); border-color: var(--ng-green); font-weight: 600; }
.btn-outline-primary:hover    { background: var(--ng-green); border-color: var(--ng-green); color: #fff; }
.text-primary                 { color: var(--ng-green) !important; }
.bg-primary                   { background: var(--ng-green) !important; }
.border-primary               { border-color: var(--ng-green) !important; }
.badge.bg-primary             { background: var(--ng-green) !important; }
.form-control:focus,
.form-select:focus            { border-color: var(--ng-green); box-shadow: 0 0 0 .2rem rgba(139,154,26,.18); }
.form-check-input:checked     { background-color: var(--ng-green); border-color: var(--ng-green); }

/* ── NAVBAR ──────────────────────────────────────────── */
.ng-nav {
  background: #fff;
  border-bottom: 3px solid var(--ng-green);
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 0;
}
.ng-nav .navbar-brand img   { height: 48px; width: auto; }
.ng-nav .nav-link           { color: #444; font-weight: 500; padding: 20px 14px; font-size: .93rem; transition: color .15s; }
.ng-nav .nav-link:hover,
.ng-nav .nav-link.active    { color: var(--ng-green); }
.ng-nav .nav-link.active    { font-weight: 700; }
.ng-nav .dropdown-menu      { border: none; box-shadow: var(--ng-shadow-md); border-radius: var(--ng-radius); border-top: 3px solid var(--ng-green); margin-top: 0; }
.ng-nav .dropdown-item:hover{ background: var(--ng-green-light); color: var(--ng-green); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #1c2300 0%, #2e3a08 60%, #3d4f0c 100%);
  padding: 72px 0 64px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,212,74,.12);
  border: 1px solid rgba(200,212,74,.3);
  border-radius: 50px; padding: 5px 16px; margin-bottom: 24px;
}
.hero-eyebrow span { color: #c8d44a; font-size: .82rem; font-weight: 600; letter-spacing: .5px; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; color: #fff; line-height: 1.2;
  letter-spacing: -.5px; margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #c8d44a, #e8c200);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.75; margin-bottom: 36px; max-width: 520px; }

/* Hero search box */
.hero-search {
  background: #fff; border-radius: 14px;
  padding: 6px; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
  max-width: 640px; margin-bottom: 20px;
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: 10px 14px;
  font-size: .95rem; background: transparent; min-width: 0;
}
.hero-search .hs-cat {
  border: none; border-left: 1px solid #eee;
  padding: 10px 12px; font-size: .88rem;
  background: transparent; outline: none; color: #555;
  white-space: nowrap;
}
.hero-search .hs-btn {
  background: var(--ng-green); color: #fff;
  border: none; border-radius: 10px; padding: 11px 24px;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.hero-search .hs-btn:hover { background: var(--ng-green-dark); }

/* Hero CTA buttons */
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Shared button base */
.hero-btns .btn-nurse,
.hero-btns .btn-employer {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; transition: all .25s;
  border-radius: 14px; padding: 14px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  min-width: 220px;
}
/* Icon circle */
.hero-btns .btn-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
/* Text block */
.hero-btns .btn-text { display: flex; flex-direction: column; text-align: left; }
.hero-btns .btn-label { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.hero-btns .btn-sub   { font-size: .75rem; opacity: .82; margin-top: 2px; font-weight: 400; }

/* Nurse (primary) */
.hero-btns .btn-nurse {
  background: linear-gradient(135deg, #8B9A1A, #b8cc22);
  color: #fff; border: none;
}
.hero-btns .btn-nurse .btn-icon { background: rgba(255,255,255,.2); color: #fff; }
.hero-btns .btn-nurse:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(139,154,26,.5); color: #fff; }

/* Employer (secondary) */
.hero-btns .btn-employer {
  background: rgba(255,255,255,.13);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.hero-btns .btn-employer .btn-icon { background: rgba(255,255,255,.15); color: #fff; }
.hero-btns .btn-employer:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); color: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.25); }

/* Hero stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stat .num { display: block; font-size: 1.6rem; font-weight: 800; color: #c8d44a; line-height: 1; }
.hero-stat .lbl { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── TRUST BAR ───────────────────────────────────────── */
.trust-bar { background: var(--ng-green); padding: 18px 0; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #fff; }
.trust-item i { font-size: 1.3rem; opacity: .85; }
.trust-item strong { font-size: .88rem; }
.trust-item span { font-size: .78rem; opacity: .8; }

/* ── SECTION HEADERS ─────────────────────────────────── */
.section-label {
  display: inline-block;
  background: var(--ng-green-light); color: var(--ng-green);
  border-radius: 6px; padding: 4px 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-h { font-size: 1.75rem; font-weight: 800; color: var(--ng-dark); letter-spacing: -.3px; margin-bottom: 8px; }
.section-sub { color: var(--ng-muted); font-size: .95rem; }
.section-line {
  width: 48px; height: 3px; border-radius: 3px;
  background: var(--ng-green); margin: 10px 0 0;
}

/* ── CARDS ───────────────────────────────────────────── */
.ng-card {
  background: #fff; border-radius: var(--ng-radius);
  border: 1px solid var(--ng-border);
  transition: box-shadow .2s, transform .2s;
}
.ng-card:hover { box-shadow: var(--ng-shadow-md); transform: translateY(-3px); }

/* ── CATEGORY CARDS ──────────────────────────────────── */
.cat-card {
  background: #fff; border-radius: var(--ng-radius);
  border: 1.5px solid var(--ng-border);
  padding: 24px 12px; text-align: center;
  text-decoration: none; display: block;
  transition: all .2s;
}
.cat-card:hover { border-color: var(--ng-green); box-shadow: var(--ng-shadow-md); transform: translateY(-4px); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 12px;
}
.cat-hosp  { background: #e8f0fe; color: #1a56db; }
.cat-corp  { background: #d1fae5; color: #065f46; }
.cat-home  { background: #fef3c7; color: #92400e; }
.cat-over  { background: #ede9fe; color: #5b21b6; }
.cat-clin  { background: #fee2e2; color: #991b1b; }
.cat-diag  { background: #cffafe; color: #0e7490; }
.cat-name  { font-weight: 700; font-size: .9rem; color: #111; }
.cat-sub   { font-size: .75rem; color: var(--ng-muted); margin-top: 3px; }

/* ── JOB CARDS ───────────────────────────────────────── */
.job-card {
  background: #fff; border-radius: var(--ng-radius);
  border: 1.5px solid var(--ng-border); padding: 20px;
  transition: all .2s;
}
.job-card:hover { border-color: var(--ng-green); box-shadow: var(--ng-shadow-md); transform: translateY(-2px); }
.job-logo {
  width: 48px; height: 48px; border-radius: 10px;
  object-fit: contain; background: var(--ng-green-light);
  border: 1px solid var(--ng-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.job-title { font-weight: 700; font-size: .97rem; color: #111; text-decoration: none; }
.job-title:hover { color: var(--ng-green); }
.job-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ng-bg); border: 1px solid var(--ng-border);
  border-radius: 6px; padding: 3px 10px; font-size: .75rem; color: var(--ng-muted);
}

/* Job list row */
.job-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--ng-border);
  transition: background .15s;
}
.job-row:last-child { border-bottom: none; }
.job-row:hover { background: var(--ng-bg); }

/* ── WHY CARDS ───────────────────────────────────────── */
.why-card {
  background: #fff; border-radius: var(--ng-radius);
  border: 1.5px solid var(--ng-border); padding: 28px 24px;
  transition: all .2s;
}
.why-card:hover { border-color: var(--ng-green); box-shadow: var(--ng-shadow-md); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--ng-green-light); color: var(--ng-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px;
}

/* ── TESTIMONIALS ────────────────────────────────────── */
.testi-card {
  background: #fff; border-radius: var(--ng-radius);
  border: 1.5px solid var(--ng-border); padding: 28px;
}
.testi-stars { color: var(--ng-gold); font-size: .9rem; margin-bottom: 12px; }
.testi-text  { font-size: .93rem; color: #444; line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ng-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

/* ── CTA SECTION ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1c2300 0%, #2e3a08 100%);
  padding: 64px 0;
}

/* ── FOOTER ──────────────────────────────────────────── */
.ng-footer { background: #111608; color: #aaa; padding: 48px 0 24px; }
.ng-footer img { height: 38px; filter: brightness(0) invert(1) opacity(.85); }
.ng-footer h6 { color: var(--ng-green-mid); font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.ng-footer a { color: #888; text-decoration: none; font-size: .88rem; line-height: 2; }
.ng-footer a:hover { color: var(--ng-green-mid); }
.ng-footer-bottom { border-top: 1px solid #1e2600; margin-top: 32px; padding-top: 20px; font-size: .82rem; color: #555; }
.social-link {
  width: 34px; height: 34px; border-radius: 50%;
  background: #1e2600; color: #777;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; text-decoration: none;
}
.social-link:hover { background: var(--ng-green); color: #fff; }

/* ── DASHBOARD LAYOUT ────────────────────────────────── */
.dash-sidebar {
  width: var(--sidebar-w); background: #fff;
  border-right: 1px solid var(--ng-border);
  position: fixed; top: 71px; bottom: 0; left: 0;
  overflow-y: auto; z-index: 100;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.15) transparent;
}
.dash-main { margin-left: var(--sidebar-w); padding: 28px; background: var(--ng-bg); min-height: calc(100vh - 71px); }
@media(max-width:991px) {
  .dash-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 20px 16px; }
}
.dash-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 8px; margin: 2px 8px;
  color: #6b7280; font-size: .88rem; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.dash-nav-link:hover, .dash-nav-link.active {
  background: var(--ng-green-light); color: var(--ng-green);
}
.dash-nav-link i { width: 18px; text-align: center; }
.dash-section-label {
  padding: 12px 18px 4px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: #9ca3af;
}

/* ── ADMIN LAYOUT ────────────────────────────────────── */
.admin-sidebar { background: #0f1400; width: var(--sidebar-w); }
.admin-sidebar .nav-link { color: #8a9a6a; padding: 9px 18px; border-radius: 8px; margin: 2px 8px; font-size: .88rem; }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { background: rgba(139,154,26,.18); color: #c8d44a; }
.admin-sidebar .nav-section { padding: 14px 18px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #3d5010; }
.admin-topbar { background: #fff; height: 58px; border-bottom: 3px solid var(--ng-green); position: sticky; top: 0; z-index: 99; }
.admin-content { margin-left: var(--sidebar-w); padding: 28px; background: var(--ng-bg); min-height: calc(100vh - 58px); }

/* ── PLAN CARD ───────────────────────────────────────── */
.plan-featured { border: 2px solid var(--ng-green) !important; }

/* ── UTILS ───────────────────────────────────────────── */
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.text-ng  { color: var(--ng-green) !important; }
.bg-ng-lt { background: var(--ng-green-light) !important; }

/* ── Footer heading ──────────────────────────────────────────── */
.ng-footer-heading {
  color: var(--ng-green-mid);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.ng-footer-bottom {
  border-top: 1px solid #1e2600;
  margin-top: 32px;
  padding-top: 20px;
  font-size: .82rem;
  color: #555;
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   (added — closes gaps left by the original stylesheet)
   ═══════════════════════════════════════════════════════ */

/* Global safety net: nothing should ever force horizontal scroll */
html, body { overflow-x: hidden; max-width: 100%; }

/* ── Dashboard sidebar: classes used in markup but never styled ── */
.dash-brand { padding: 18px 20px; border-bottom: 1px solid var(--ng-border); flex-shrink: 0; }
.dash-user {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--ng-border);
}
.dash-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dash-nav { list-style: none; margin: 0; padding: 8px 0; }
.dash-sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--ng-border); flex-shrink: 0; }
.dash-sidebar { display: flex; flex-direction: column; }
.dash-topbar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--ng-radius);
  padding: 10px 16px; margin-bottom: 16px;
  border: 1px solid var(--ng-border);
}
.dash-topbar #sidebarToggle { display: none; }

/* ── Navbar: let login/register buttons wrap instead of overflowing ── */
@media (max-width: 991px) {
  .ng-nav .d-flex.align-items-center.gap-2 {
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ng-border);
  }
}

/* ── Hero search: stack on small screens instead of squeezing ── */
@media (max-width: 575px) {
  .hero { padding: 48px 0 40px; }
  .hero-search { flex-wrap: wrap; padding: 10px; }
  .hero-search input { flex: 1 1 100%; padding: 10px 6px; }
  .hero-search .hs-cat {
    flex: 1 1 auto; border-left: none; border-top: 1px solid #eee;
    padding: 8px 6px;
  }
  .hero-search .hs-btn { flex: 0 0 auto; padding: 10px 18px; }
  .hero-btns .btn-nurse, .hero-btns .btn-employer { min-width: 0; width: 100%; }
  .hero-stats { gap: 18px; }
}

/* ── Dashboard + Admin sidebars: mobile drawer + backdrop ── */
@media (max-width: 991px) {
  .dash-topbar #sidebarToggle { display: inline-flex; }
  body.sidebar-open { overflow: hidden; }
}
@media (max-width: 767px) {
  #adminTopbar { flex-wrap: wrap; row-gap: 10px; }
  #adminTopbar #adminGlobalSearch { width: 140px !important; }
  #adminTopbar .btn.btn-outline-secondary { display: none; }
}
@media (max-width: 480px) {
  #adminTopbar #adminGlobalSearch { width: 100px !important; }
  .admin-content { padding: .85rem !important; }
}

/* Sidebar backdrop, shared by dashboard + admin drawers */
.ng-sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 1035;
}
@media (max-width: 991px) {
  body.sidebar-open .ng-sidebar-backdrop { display: block; }
}
@media (max-width: 767px) {
  body.admin-sidebar-open .ng-sidebar-backdrop { display: block; }
}

/* ── Generic small-screen table/card comfort ── */
@media (max-width: 575px) {
  .table-responsive .table { font-size: .82rem; }
  .admin-content, .dash-main { padding-left: 12px !important; padding-right: 12px !important; }
}

/* ═══════════════════════════════════════════════════════
   CARD TEXT ALIGNMENT / TRUNCATION FIXES
   `.min-w-0` is used in several card layouts but Bootstrap 5
   ships no such utility, so flex children never shrank and
   long names (e.g. long hospital names) overflowed the card
   instead of truncating.
   ═══════════════════════════════════════════════════════ */
.min-w-0 { min-width: 0 !important; }

/* Long words / unbroken strings must never push a card wider */
.ng-card, .job-card { overflow-wrap: anywhere; word-break: break-word; }

/* ── Employer cards ─────────────────────────────────── */
.employer-card-head { min-width: 0; min-height: 52px; }

.employer-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* long names wrap to 2 lines, then ellipsis */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.employer-verified {
  color: var(--ng-green);
  font-size: .85rem;
  margin-left: 4px;
  vertical-align: baseline;
}
.employer-industry {
  font-size: .82rem;
  line-height: 1.3;
  margin-top: 2px;
}

/* Tag row shouldn't stretch the card either */
.employer-card .job-tag { max-width: 100%; min-width: 0; }
.employer-card .job-tag i { flex-shrink: 0; }

/* ── Small screens: tighter padding, no cramped 2-up grid ── */
@media (max-width: 575.98px) {
  .employer-card { padding: 16px !important; }
  .employer-card-head { gap: 12px !important; }
  .employer-name { font-size: .92rem; }
  .employer-card .job-tag { font-size: .72rem; padding: 3px 8px; }
}
