/* NAB-2.3.10 BRAND PAGES: the founder's soft brand gradient as a very light full-page background, white rounded cards
   on top, deep-blue primary and white secondary buttons (no red buttons). Loaded ONLY on /opportunities, the Job
   Connect list, the employer form, /studio and /service/{slug} (@section('head')); never on the homepage or news.
   Colours: the 2.3.9 tokens in nab.css (--nab-brand-sky / mint / cream). Text: navy #0a2540, muted #4f5d6a (>= 6:1 on
   every background here), links and primary #1652b0 (>= 6.4:1 on the lightest background), all WCAG AA. */

body.nab-brand-page {
    background-color: #f7fbfc;
    background-image: linear-gradient(160deg, rgba(230, 244, 252, .8) 0%, rgba(232, 247, 240, .8) 52%, rgba(255, 247, 224, .8) 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
}
/* Header, footer and bottom bar stay white. */

.nb-page { padding-bottom: 32px; }
.nb-card { box-sizing: border-box; margin-top: 16px; padding: 20px; border: 1px solid rgba(10, 37, 64, .08); border-radius: 20px; background: #fff; box-shadow: 0 2px 12px rgba(10, 37, 64, .05); }
@media (min-width: 640px) { .nb-card { padding: 28px; } }
.nb-card > h2:first-child, .nb-h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; color: #0a2540; }
.nb-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #4f5d6a; }

/* Buttons */
.nb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nb-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid #c9d5e3; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; color: #0a2540; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.nb-btn:hover { border-color: #1652b0; color: #1652b0; }
.nb-btn--primary { border-color: #1652b0; background: #1652b0; color: #fff; }
.nb-btn--primary:hover { border-color: #0f3f8c; background: #0f3f8c; color: #fff; }
.nb-btn svg { flex: none; width: 20px; height: 20px; }
.nb-btn:focus-visible, .nb-link:focus-visible, .nb-svc-link:focus-visible { outline: 2px solid #1652b0; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nb-btn, .nb-svc-link { transition: none; } }
.nb-link { font-weight: 700; color: #1652b0; text-decoration: none; }
.nb-link:hover { text-decoration: underline; }

/* Hero (on the page background) */
.nb-hero { padding: 20px 0 8px; }
@media (min-width: 640px) { .nb-hero { padding: 32px 0 12px; } }
.nb-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: #4f5d6a; }
.nb-crumbs a { color: #4f5d6a; text-decoration: none; }
.nb-crumbs a:hover { color: #1652b0; }
.nb-eyebrow { margin: 16px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #1652b0; }
.nb-eyebrow:lang(en) { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.nb-title { margin: 8px 0 0; max-width: 46rem; font-size: 30px; font-weight: 800; line-height: 1.2; color: #0a2540; }
@media (min-width: 640px) { .nb-title { font-size: 40px; } }
.nb-intro { margin: 12px 0 0; max-width: 42rem; font-size: 17px; line-height: 1.75; color: #3d4b57; }

/* Section heading row */
.nb-section { margin-top: 28px; }
.nb-section > .nb-h2 { margin-bottom: 14px; }

/* Service cards */
.nb-svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .nb-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nb-svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nb-svc { min-width: 0; }
.nb-svc-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(10, 37, 64, .08); border-radius: 18px; background: #fff; box-shadow: 0 2px 12px rgba(10, 37, 64, .05); color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.nb-svc-link:hover { box-shadow: 0 8px 24px rgba(10, 37, 64, .1); transform: translateY(-1px); }
.nb-svc-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--nab-brand-band, linear-gradient(120deg, #e6f4fc, #e8f7f0 55%, #fff7e0)); }
.nb-svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-svc-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #1652b0; }
.nb-svc-icon svg { width: 48px; height: 48px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 2px 10px rgba(10, 37, 64, .08); }
.nb-svc-media img ~ .nb-svc-icon { display: none; }               /* an image is shown */
.nb-svc-media.is-broken img { display: none; }                    /* the image failed: a neat icon, never a broken box */
.nb-svc-media.is-broken .nb-svc-icon { display: flex; }
.nb-svc-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.nb-svc-body h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; color: #0a2540; }
.nb-one-line { display: block; margin: 6px 0 0; overflow: hidden; font-size: 14px; line-height: 1.6; color: #4f5d6a; white-space: nowrap; text-overflow: ellipsis; }
.nb-more { display: block; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: #1652b0; }
.nb-svc--small .nb-svc-media { aspect-ratio: auto; height: 72px; }
.nb-svc--small .nb-svc-icon svg { width: 36px; height: 36px; padding: 10px; border-radius: 14px; }

/* Portfolio: large images */
.nb-work-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .nb-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nb-work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nb-work { overflow: hidden; border: 1px solid rgba(10, 37, 64, .08); border-radius: 18px; background: #fff; box-shadow: 0 2px 12px rgba(10, 37, 64, .05); }
.nb-work-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #eef3f6; }
.nb-work-text { padding: 14px 16px 16px; }
.nb-work-text h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.4; color: #0a2540; }
.nb-work-meta { margin: 4px 0 0; font-size: 13px; color: #4f5d6a; }
.nb-work-summary { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #3d4b57; }

/* Contact band: "तपाईंको काम सुरु गरौँ" */
.nb-cta { margin-top: 28px; padding: 24px 20px; border-radius: 22px; background: #fff; border: 1px solid rgba(10, 37, 64, .08); box-shadow: 0 2px 12px rgba(10, 37, 64, .05); background-image: linear-gradient(120deg, rgba(230, 244, 252, .9), rgba(232, 247, 240, .9) 55%, rgba(255, 247, 224, .9)); }
@media (min-width: 640px) { .nb-cta { padding: 32px; } }
.nb-cta h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; color: #0a2540; }
.nb-cta p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #3d4b57; }

/* Service page: image and description */
.nb-figure { margin: 16px 0 0; overflow: hidden; border-radius: 20px; background: #eef3f6; }
.nb-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Jobs pages on the brand background: content blocks become white cards. */
body.nab-brand-page .jl-safety > *, body.nab-brand-page .jl-related { border-radius: 20px; }
body.nab-brand-page .jl-related { margin-top: 8px; padding: 20px !important; border: 1px solid rgba(10, 37, 64, .08) !important; background: #fff; }
body.nab-brand-page .nab-opp-card { margin-top: 16px; padding: 20px !important; border: 1px solid rgba(10, 37, 64, .08) !important; border-radius: 20px; background: #fff; box-shadow: 0 2px 12px rgba(10, 37, 64, .05); }
@media (min-width: 640px) { body.nab-brand-page .nab-opp-card, body.nab-brand-page .jl-related { padding: 28px !important; } }
