/*
 * HOME-V6-01: NAB V6.1 news-first homepage design, ported to the Laravel V2 homepage
 * (resources/views/homepage/index.blade.php). Plain CSS, scoped to body.nh, loaded
 * only by the homepage. Design source: NAB V6.1 prototype (Next.js, 23 Oct 2026),
 * with these deliberate changes:
 *  - text is never hidden behind a scroll animation: everything is visible without
 *    JavaScript (V6.1 started sections at opacity 0);
 *  - small labels are at least 12px and body text 15-16px, for Devanagari readability
 *    (V6.1 used 7-11px);
 *  - motion is limited to hover transitions and is removed for prefers-reduced-motion.
 */

body.nh {
    --nh-ink: #0a2540;
    --nh-ink-hover: #153e59;
    --nh-muted: #5f6f78;
    --nh-paper: #f7f8f6;
    --nh-red: #c8102e;
    --nh-line: #dce2df;
    --nh-green: #2f6f56;
    --nh-green-bg: #eaf0e9;
    --nh-green-line: #d3dfd2;
    --nh-sans: "DM Sans", "Noto Sans Devanagari", "Mukta", ui-sans-serif, system-ui, sans-serif;
    --nh-display: "Manrope", "Noto Sans Devanagari", "Mukta", ui-sans-serif, system-ui, sans-serif;

    background: var(--nh-paper);
    color: var(--nh-ink);
    font-family: var(--nh-sans);
    font-size: 16px;
    line-height: 1.65;
}

.nh main *, .nh main *::before, .nh main *::after { box-sizing: border-box; }
.nh main a { color: inherit; text-decoration: none; }
.nh main a:hover { color: var(--nh-red); }
.nh main a:focus-visible { outline: 3px solid #b47827; outline-offset: 4px; border-radius: 4px; }
.nh main :is(h1, h2, h3, p) { margin: 0; }
.nh main :is(h1, h2, h3) { font-family: var(--nh-display); font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; }
.nh main :lang(ne) :is(h1, h2, h3), .nh main:lang(ne) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.45; }
.nh main img { display: block; width: 100%; height: 100%; object-fit: cover; }

.nh-shell { width: min(1280px, 100%); margin-inline: auto; padding-inline: 48px; box-sizing: border-box; }
.nh-ticker { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--nh-line); }

/* Small labels */
.nh-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }
.nh-eyebrow:lang(ne), :lang(ne) .nh-eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.nh-red { color: var(--nh-red); }
.nh-green { color: var(--nh-green); }
.nh-light { color: #dbe5e8; }
.nh-pale { color: #b0c2c8; }
.nh-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--nh-red); flex-shrink: 0; }
.nh-read { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.nh-read span { transition: transform .2s; }
.nh-read:hover span { transform: translateX(3px); }
.nh-quiet { font-weight: 500; color: var(--nh-muted) !important; }

/* Edition bar */
.nh-top { padding-top: 26px; padding-bottom: 36px; }
.nh-editionbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.nh-views { display: inline-flex; gap: 4px; padding: 4px; background: #eceeeb; border-radius: 10px; }
.nh-view { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--nh-muted) !important; }
.nh-view.is-active { background: #fff; color: var(--nh-ink) !important; box-shadow: 0 1px 2px rgba(10, 37, 64, .08); }
.nh-flag { width: 12px; height: 14px; background: var(--nh-red); clip-path: polygon(0 0, 100% 45%, 40% 45%, 100% 100%, 0 100%); }
.nh-edition { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nh-muted); letter-spacing: .06em; }
/* NAB-2.3.12: the edition label keeps its place on the right now that the near-me link is gone. */
.nh-editionbar > .nh-edition { margin-left: auto; }
/* RELEASE-2.2.2: Nepali (Devanagari) labels get no letter-spacing; Latin ones keep it. */
.nh-edition:lang(ne), .nh-focus-heading span:lang(ne), .nh-number:lang(ne) { letter-spacing: 0; }
/* NAV-01C: below 1024 px the edition switcher is not shown, to keep the first screen simple.
   Its links (Global news = World category, Near me = Opportunities #near-me) stay in the
   category row, the Menu sheet and the Jobs / Opportunities pages. */
@media (max-width: 1023px) {
    .nh-top .nh-editionbar { display: none; }
}

/* Heading */
.nh-top-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.nh-top-heading h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 650; margin-top: 10px; }
.nh-tagline { font-size: 15px; color: #3f515c; text-align: right; line-height: 1.6; }
.nh-tagline span { display: block; font-size: 13px; color: var(--nh-muted); }

/* Lead + In focus */
.nh-headline { display: grid; grid-template-columns: 1.58fr 1fr; gap: 34px; }
.nh-headline.is-single { grid-template-columns: 1fr; }
.nh-lead { position: relative; min-height: 440px; border-radius: 14px; overflow: hidden; background: var(--nh-ink); isolation: isolate; }
.nh-lead-link { position: absolute; inset: 0; display: block; color: #fff !important; }
.nh-lead img { position: absolute; inset: 0; z-index: -2; filter: saturate(.85); transition: transform .8s; }
.nh-lead:hover img { transform: scale(1.035); }
.nh-lead-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 30, 50, .12) 10%, rgba(7, 30, 50, .25) 35%, rgba(7, 30, 50, .92) 100%); }
/* NAB-2.2.5: lead without the article's own photo = a clean text card (no poster, no shade over text). */
.nh-lead.is-text { display: flex; min-height: 340px; background: #fff; border: 1px solid #dde5ec; box-shadow: inset 0 5px 0 #c8102e; }
.nh-lead.is-text .nh-lead-link { position: static; display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 28px; padding: 30px 32px 28px; color: var(--nh-ink) !important; }
.nh-lead.is-text .nh-lead-shade { display: none; }
.nh-lead.is-text .nh-lead-topline, .nh-lead.is-text .nh-lead-copy { position: static; }
.nh-lead.is-text .nh-glass { background: #eef3f7; }
.nh-lead.is-text .nh-eyebrow.nh-light { color: #c8102e; }
.nh-lead.is-text .nh-lead-copy h2 { max-width: 760px; font-size: clamp(28px, 3.2vw, 42px); color: var(--nh-ink); }
.nh-lead.is-text .nh-lead-sub { max-width: 680px; color: #4b5d6b; }
.nh-lead.is-text .nh-lead-read { color: #5b6770; }
.nh-lead.is-text .nh-round { border-color: #c5d0da; }
.nh-lead.is-text:hover .nh-round { background: var(--nh-ink); color: #fff; }
.nh-lead-topline { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; }
.nh-glass { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; background: rgba(247, 248, 246, .92); color: var(--nh-ink); padding: 6px 11px; border-radius: 5px; }
:lang(ne) .nh-glass { text-transform: none; letter-spacing: 0; }
.nh-lead-copy { position: absolute; left: 30px; right: 30px; bottom: 26px; display: block; }
.nh-lead-copy .nh-eyebrow { margin-bottom: 12px; font-size: 12px; }
.nh-lead-copy h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.24; max-width: 620px; font-weight: 600; }
.nh-lead-sub { display: block; margin-top: 12px; max-width: 520px; font-size: 15px; line-height: 1.7; color: #d3dde1; }
.nh-lead-read { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: 13px; color: #d3dde1; }
.nh-round { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; transition: background .2s, color .2s, transform .2s; }
.nh-lead:hover .nh-round { background: #fff; color: var(--nh-ink); transform: rotate(45deg); }

.nh-focus { display: flex; flex-direction: column; }
.nh-focus-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1.5px solid var(--nh-ink); }
.nh-focus-heading h2 { font-size: 19px; }
.nh-focus-heading span { font-size: 12px; letter-spacing: .12em; color: var(--nh-muted); }
.nh-focus-item { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--nh-line); }
.nh-focus-item > div { flex: 1; min-width: 0; }
.nh-focus-item h3 { font-size: 18px; line-height: 1.45; margin-top: 6px; }
.nh-focus-item .nh-read { font-size: 13px; margin-top: 6px; }
.nh-thumb { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #e3e9e3; }
.nh-thumb img { filter: saturate(.75); transition: transform .4s; }
.nh-thumb:hover img { transform: scale(1.08); }

.nh-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: #7a8a91; }
.nh-meta span:first-child { color: var(--nh-red); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
:lang(ne) .nh-meta span:first-child { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* Category sections */
.nh-section { padding-top: 36px; padding-bottom: 40px; scroll-margin-top: 90px; }
.nh-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--nh-line); padding-top: 26px; margin-bottom: 26px; }
.nh-number { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; color: #75858c; margin-bottom: 8px !important; }
.nh-number span { width: 28px; height: 1px; background: #aab7bb; }
.nh-section-heading h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; }
.nh-intro { margin-top: 6px !important; font-size: 15px; color: var(--nh-muted); }
.nh-section-action { white-space: nowrap; }
.nh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.nh-card { display: flex; flex-direction: column; min-width: 0; }
.nh-card-image { display: block; height: 180px; border-radius: 10px; overflow: hidden; background: #e3e9e3; margin-bottom: 16px; }
.nh-card-image img { filter: saturate(.75); transition: transform .6s; }
.nh-card-image:hover img { transform: scale(1.05); }
.nh-card h3 { font-size: 19px; line-height: 1.42; margin-top: 8px; }
.nh-card.is-first h3 { font-size: 21px; }
.nh-card-sub { margin-top: 8px !important; font-size: 14px; line-height: 1.7; color: var(--nh-muted); }

/* Jobs & Opportunities */
.nh-opps { margin-top: 30px; padding: 48px 0 40px; background: var(--nh-green-bg); border-block: 1px solid var(--nh-green-line); scroll-margin-top: 90px; }
.nh-opps-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.nh-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border: 1px solid #ccdacc; border-radius: 12px; background: #f6f9f3; color: #37765e; }
.nh-opps-intro h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; margin-top: 12px; }
.nh-opps-text { margin-top: 14px !important; max-width: 420px; font-size: 16px; color: #4d6458; }
.nh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nh-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; font-size: 15px; font-weight: 600; transition: background .2s, transform .2s; }
.nh-primary { background: var(--nh-ink); color: #fff !important; }
.nh-primary:hover { background: var(--nh-ink-hover); transform: translateY(-2px); }
.nh-secondary { background: #fff; border-color: #ced9d5; color: var(--nh-ink) !important; }
.nh-secondary:hover { background: #f1f5f2; }
.nh-white { background: #f8faf7; color: var(--nh-ink) !important; flex-shrink: 0; }
.nh-white:hover { background: #dcece6; transform: translateY(-2px); }
.nh-active { display: flex; align-items: center; gap: 8px; margin-bottom: 14px !important; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--nh-green); }
:lang(ne) .nh-active { text-transform: none; letter-spacing: 0; font-size: 13px; }
.nh-active .nh-dot { background: #3e8065; }
.nh-job { display: flex; align-items: flex-start; gap: 14px; padding: 18px; margin-bottom: 12px; background: #fff; border: 1px solid var(--nh-line); border-radius: 11px; transition: transform .2s, border-color .2s; }
.nh-job:hover { transform: translateY(-2px); border-color: #b4cbbd; }
.nh-job-initial { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #dce4d8; border-radius: 9px; background: #edf2eb; color: #4f6b5a; font-family: var(--nh-display); font-size: 18px; font-weight: 700; }
.nh-job-copy { flex: 1; min-width: 0; }
.nh-job-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #6f8075; }
.nh-job-copy h3 { font-size: 18px; line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.nh-job-company { margin-top: 2px !important; font-size: 14px; color: #6f8075; }
.nh-job-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.nh-jobs-empty { padding: 18px; background: #fff; border: 1px dashed #c4d3c6; border-radius: 11px; color: #4d6458; }
.nh-disclaimer { margin-top: 12px !important; font-size: 13px; color: #6f7f72; }

/* Trust */
.nh-trust { display: flex; align-items: center; gap: 22px; padding-top: 46px; padding-bottom: 46px; }
.nh-trust-symbol { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border: 1px solid #d5dfd5; border-radius: 50%; background: #edf2ea; color: #3b7b62; }
.nh-trust-copy h2 { font-size: 22px; margin-top: 6px; }
.nh-trust-copy p:last-child { margin-top: 6px; font-size: 15px; color: var(--nh-muted); }
.nh-trust-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-left: auto; flex-shrink: 0; }

/* NAB Studio */
.nh-studio { background: var(--nh-ink); color: #fff; }
.nh-studio-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.nh-studio h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 550; margin-top: 10px; }
.nh-studio-content p:last-child { margin-top: 8px; font-size: 15px; color: #b9cad3; }
.nh-studio a.nh-white:hover { color: var(--nh-ink) !important; }

/* Responsive */
@media (max-width: 1100px) {
    .nh-shell { padding-inline: 32px; }
    .nh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nh-opps-layout { gap: 40px; }
}
@media (max-width: 900px) {
    .nh-headline, .nh-opps-layout { grid-template-columns: 1fr; }
    .nh-lead { min-height: 400px; }
}
@media (max-width: 640px) {
    .nh-shell { padding-inline: 16px; }
    .nh-top { padding-top: 18px; }
    .nh-editionbar { margin-bottom: 22px; }
    .nh-views { width: 100%; }
    .nh-view { flex: 1; justify-content: center; padding: 0 10px; }
    .nh-edition { display: none; }
    .nh-top-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nh-tagline { text-align: left; }
    .nh-lead { min-height: 380px; border-radius: 12px; }
    .nh-lead-copy { left: 20px; right: 20px; bottom: 20px; }
    .nh-lead.is-text { min-height: 280px; }
    .nh-lead.is-text .nh-lead-link { padding: 22px 20px 20px; }
    .nh-grid { grid-template-columns: 1fr; gap: 26px; }
    .nh-card-image { height: 200px; }
    .nh-section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .nh-trust { flex-direction: column; align-items: flex-start; }
    .nh-trust-links { margin-left: 0; }
    .nh-studio-content { flex-direction: column; align-items: flex-start; }
    .nh-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .nh *, .nh *::before, .nh *::after { transition: none !important; animation: none !important; }
    .nh-lead:hover img, .nh-thumb:hover img, .nh-card-image:hover img, .nh-job:hover, .nh-primary:hover, .nh-white:hover { transform: none !important; }
}
