/* Hero experience: preserve every banner at its original ratio and keep text readable. */
.nh-home .nh-hero { padding-top: 20px; padding-bottom: 34px; }
.nh-home .nh-feature-grid { display: grid; grid-template-columns: minmax(0,2.35fr) minmax(280px,.85fr); gap: 18px; align-items: stretch; }
.nh-home .nh-hero-card { height: 440px; min-height: 0 !important; overflow: hidden; border: 1px solid rgba(6,78,59,.13); border-radius: 26px; background: #fff; box-shadow: 0 22px 56px rgba(6,78,59,.15),0 2px 8px rgba(6,78,59,.06); transition: transform .3s ease,box-shadow .3s ease; }
.nh-home .nh-hero-card:hover { box-shadow: 0 25px 62px rgba(6,78,59,.16),0 3px 10px rgba(6,78,59,.07); }
.nh-home .nh-hero-slider {
    height: 100%; overflow: hidden; padding-bottom: 0; border: 0; border-radius: 0;
    background: #fff; box-shadow: none;
}
.nh-home .nh-hero-slider, .nh-home .nh-hero-slider .swiper-wrapper, .nh-home .nh-hero-slider .swiper-slide { min-width: 0; min-height: 0 !important; height: 100%; }
.nh-home .nh-hero-slide { position: relative; min-width: 0; height: 440px; min-height: 0 !important; display: block; overflow: hidden; background: #e8f3f0; }
.nh-home .nh-hero-slide::after { display: none; }
.nh-home .nh-hero-media {
    position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; display: grid; place-items: center;
    overflow: hidden; background: linear-gradient(145deg,#f8fcfb,#e7f4f0);
}
.nh-home .nh-hero-media::after { content: ''; position: absolute; z-index: 2; inset: auto 0 0; height: 38%; background: linear-gradient(0deg,rgba(2,39,32,.22),transparent); pointer-events: none; }
.nh-home .nh-hero-image {
    position: static; inset: auto; width: 100%; height: 100%; display: block; object-fit: cover;
    object-position: center; border-radius: 0; background: #e8f3f0; filter: saturate(1.02) contrast(1.01); transform: scale(1);
    transition: transform .55s cubic-bezier(.22,1,.36,1),filter .3s ease;
}
.nh-home .nh-hero-card:hover .nh-hero-image { filter: saturate(1.04) contrast(1.012); transform: scale(1.006); }
.nh-home .nh-hero-zoom {
    position: absolute; z-index: 5; right: 18px; top: 18px; bottom: auto; min-height: 38px; padding: 7px 12px;
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.58);
    border-radius: 12px; color: #fff; background: rgba(4,50,42,.76); backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,.18); font: 500 11px 'Kanit',sans-serif; cursor: zoom-in;
    transition: transform .22s ease,background .22s ease,box-shadow .22s ease;
}
.nh-home .nh-hero-zoom:hover { background: #075c4b; box-shadow: 0 12px 28px rgba(0,0,0,.24); transform: translateY(-2px); }
.nh-home .nh-hero-copy {
    position: absolute; z-index: 4; isolation: isolate; left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; min-height: 66px; padding: 10px 12px;
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; color: #fff;
    overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 17px;
    background: linear-gradient(100deg,rgba(3,55,46,.66),rgba(7,119,91,.52));
    box-shadow: 0 10px 30px rgba(1,34,28,.15),inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(10px); transform: none;
}
.nh-home .nh-hero-copy::before { content: ''; position: absolute; z-index: -1; right: 30%; top: 50%; width: 130px; height: 130px; border: 24px solid rgba(255,255,255,.035); border-radius: 50%; transform: translateY(-50%); pointer-events: none; animation: nhHeroOrb 8s ease-in-out infinite; }
.nh-home .nh-hero-copy::after { content: ''; position: absolute; z-index: -1; top: -90%; left: -22%; width: 10%; height: 280%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.085),transparent); transform: skewX(-22deg); pointer-events: none; animation: nhHeroSoftShine 9s ease-in-out infinite; }
.nh-home .nh-hero-label { min-width: 0; display: flex; align-items: center; }
.nh-home .nh-eyebrow { position: relative; z-index: 1; width: max-content; margin: 0; padding: 6px 12px 6px 7px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #ecfff9; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.09); backdrop-filter: blur(8px); font-size: 11px; font-weight: 500; }
.nh-home .nh-eyebrow i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #075b49; background: #c8fae9; box-shadow: 0 5px 14px rgba(0,0,0,.13); font-size: 11px; animation: nhHeroIconPulse 4s ease-in-out infinite; }

@keyframes nhHeroSoftShine {
    0%,62% { left: -22%; opacity: 0; }
    68% { opacity: .7; }
    84%,100% { left: 112%; opacity: 0; }
}
@keyframes nhHeroOrb {
    0%,100% { transform: translateY(-50%) scale(1); opacity: .7; }
    50% { transform: translateY(-54%) scale(1.06); opacity: 1; }
}
@keyframes nhHeroIconPulse {
    0%,100% { box-shadow: 0 5px 14px rgba(0,0,0,.13),0 0 0 0 rgba(200,250,233,0); }
    50% { box-shadow: 0 5px 14px rgba(0,0,0,.13),0 0 0 5px rgba(200,250,233,.10); }
}
.nh-home .nh-hero-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nh-home .nh-hero-title { position: relative; z-index: 1; margin: 0; color: #fff; font-size: clamp(23px,2vw,30px); line-height: 1.16; text-shadow: none; }
.nh-home .nh-hero-title br { display: none; }
.nh-home .nh-hero-text { position: relative; z-index: 1; max-width: 500px; margin: 4px 0 0; color: #d9eee8; font-size: 12px; line-height: 1.5; }
.nh-home .nh-hero-actions { position: relative; z-index: 1; min-width: 0; width: auto; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.nh-home .nh-button { width: auto; min-width: 142px; min-height: 44px; padding-inline: 14px; border-radius: 12px; font-size: 11px; transition: transform .22s ease,box-shadow .22s ease,background .22s ease,border-color .22s ease; }
.nh-home .nh-button i { transition: transform .22s ease; }
.nh-home .nh-button:hover { transform: translateY(-2px); }
.nh-home .nh-button:hover i { transform: scale(1.12); }
.nh-home .nh-button-primary { border: 1px solid #fff; color: #065c4b; background: linear-gradient(180deg,#fff,#effcf7); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.nh-home .nh-button-primary:hover { color: #043f31; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.nh-home .nh-button-glass { border: 1px solid rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.105); box-shadow: inset 0 1px rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.nh-home .nh-button-glass:hover { border-color: rgba(255,255,255,.68); color: #fff; background: rgba(255,255,255,.18); box-shadow: 0 12px 26px rgba(0,0,0,.13); }
.nh-home .nh-hero-slider .swiper-pagination { width: auto; min-height: 24px; left: auto; right: 24px; top: auto; bottom: 91px !important; padding: 4px 7px; display: flex; align-items: center; gap: 2px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(3,48,40,.42); backdrop-filter: blur(8px); text-align: right; }
.nh-home .nh-hero-slider .swiper-pagination-bullet { width: 7px; height: 7px; margin: 0 3px !important; background: #fff; opacity: .48; transition: width .25s ease,opacity .25s ease; }
.nh-home .nh-hero-slider .swiper-pagination-bullet-active { width: 23px; border-radius: 999px; background: #8af0cf; opacity: 1; }
.nh-home .nh-hero-slider .swiper-pagination:empty { display: none; }
.nh-home .nh-quick-strip { position: relative; z-index: 3; width: calc(100% - 48px); margin: 16px auto 0; transform: none; }

.nh-home .nh-director-card { height: 440px; overflow: hidden; display: grid; grid-template-rows: minmax(0,1fr) auto; border: 1px solid rgba(6,78,59,.12); border-radius: 26px; background: #fff; box-shadow: 0 20px 52px rgba(6,78,59,.12); }
.nh-home .nh-director-photo { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: end center; background: radial-gradient(circle at 50% 25%,#e8fffa 0%,#c8ede5 50%,#8fd6c7 100%); }
.nh-home .nh-director-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(0deg,rgba(3,57,47,.18),transparent); pointer-events: none; }
.nh-home .nh-director-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 18px rgba(3,57,47,.18)); }
.nh-home .nh-director-badge { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff; background: rgba(5,83,68,.82); backdrop-filter: blur(8px); font-size: 10px; font-weight: 500; }
.nh-home .nh-director-body { position: relative; z-index: 2; min-height: 128px; padding: 16px 18px 15px; border-top: 3px solid #16a889; background: #fff; }
.nh-home .nh-director-body > span { display: block; margin-bottom: 2px; color: #0f826b; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.nh-home .nh-director-body h2 { margin: 0; color: #073c32; font-size: 19px; line-height: 1.25; }
.nh-home .nh-director-body p { margin: 3px 0 7px; color: #55706a; font-size: 11px; line-height: 1.35; }
.nh-home .nh-director-body a { display: inline-flex; align-items: center; gap: 6px; color: #08745b; font-size: 11px; font-weight: 600; text-decoration: none; }
.nh-home .nh-director-body a:hover { color: #e4572e; }
.nh-home .nh-director-body .nh-director-phone { width: max-content; margin: 0 0 7px; padding: 5px 9px; gap: 7px; border: 1px solid rgba(8,116,91,.14); border-radius: 9px; color: #075f4c; background: #effaf7; transition: color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease; }
.nh-home .nh-director-body .nh-director-phone i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #0b8b6e; font-size: 9px; }
.nh-home .nh-director-body .nh-director-phone:hover { border-color: rgba(8,116,91,.28); color: #064d3f; background: #e1f7f0; transform: translateY(-1px); }

.nh-banner-dialog {
    width: min(96vw,1400px); max-width: none; height: min(92vh,900px); max-height: none; padding: 0;
    border: 0; border-radius: 22px; overflow: hidden; background: #071f1a; box-shadow: 0 30px 90px rgba(0,0,0,.42);
}
.nh-banner-dialog::backdrop { background: rgba(2,18,15,.82); backdrop-filter: blur(6px); }
.nh-banner-dialog-bar { min-height: 58px; padding: 10px 14px 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #e7f5f0; background: #073c32; }
.nh-banner-dialog-bar strong { font-size: 14px; }
.nh-banner-dialog-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.nh-banner-dialog-close:hover { background: rgba(255,255,255,.16); }
.nh-banner-dialog-viewer { height: calc(100% - 58px); overflow: auto; display: grid; place-items: center; background: #102b25; }
.nh-banner-dialog-image { display: block; max-width: 100%; height: auto; }

@media (max-width: 1100px) {
    .nh-home .nh-feature-grid { grid-template-columns: minmax(0,2fr) minmax(250px,.82fr); gap: 14px; }
    .nh-home .nh-hero-copy { gap: 12px; padding-inline: 18px; }
    .nh-home .nh-hero-title { font-size: 24px; }
    .nh-home .nh-hero-text { display: none; }
    .nh-home .nh-button { min-width: 0; padding-inline: 9px; font-size: 10px; }
    .nh-home .nh-director-body h2 { font-size: 17px; }
}

@media (max-width: 800px) {
    .nh-home .nh-hero { padding-top: 14px; padding-bottom: 28px; }
    .nh-home .nh-feature-grid { grid-template-columns: 1fr; }
    .nh-home .nh-hero-card { height: clamp(300px,52vw,390px); border-radius: 22px; }
    .nh-home .nh-hero-slider, .nh-home .nh-hero-slider .swiper-wrapper, .nh-home .nh-hero-slider .swiper-slide { height: 100%; }
    .nh-home .nh-hero-slide { height: 100%; min-height: 0 !important; display: block; }
    .nh-home .nh-hero-media { height: 100%; aspect-ratio: auto; }
    .nh-home .nh-hero-copy { left: 10px; right: 10px; bottom: 10px; min-height: 62px; padding: 10px 12px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
    .nh-home .nh-hero-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nh-home .nh-hero-text { display: block; font-size: 12px; }
    .nh-home .nh-hero-slider .swiper-pagination { top: 14px; right: auto; left: 14px; bottom: auto !important; }
    .nh-home .nh-director-card { height: 260px; grid-template-columns: minmax(190px,42%) minmax(0,1fr); grid-template-rows: 1fr; border-radius: 22px; }
    .nh-home .nh-director-body { min-height: 0; display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 3px solid #16a889; }
}

@media (max-width: 560px) {
    .nh-home .nh-hero { padding-top: 12px; }
    .nh-home .nh-hero-card { height: 270px; border-radius: 18px; }
    .nh-home .nh-hero-slider { padding-bottom: 0; border-radius: 0; }
    .nh-home .nh-hero-media { height: 100%; aspect-ratio: auto; }
    .nh-home .nh-hero-zoom { right: 10px; top: 10px; bottom: auto; width: 36px; min-height: 36px; padding: 0; justify-content: center; }
    .nh-home .nh-hero-zoom span { display: none; }
    .nh-home .nh-hero-copy { left: 8px; right: 8px; bottom: 8px; min-height: 0; padding: 8px 9px 9px; grid-template-columns: 1fr; gap: 7px; border-radius: 14px; }
    .nh-home .nh-eyebrow { font-size: 10px; }
    .nh-home .nh-hero-title { font-size: 21px; }
    .nh-home .nh-hero-text { display: -webkit-box; overflow: hidden; margin-top: 3px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .nh-home .nh-hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 8px; margin-top: 0; }
    .nh-home .nh-hero-actions .nh-button { width: 100%; min-width: 0; min-height: 40px; padding-inline: 6px; font-size: 10px; white-space: nowrap; }
    .nh-home .nh-quick-strip { width: 100%; margin-top: 12px; }
    .nh-home .nh-director-card { height: 232px; grid-template-columns: 42% minmax(0,1fr); border-radius: 18px; }
    .nh-home .nh-director-badge { top: 10px; left: 10px; padding: 6px 8px; font-size: 9px; }
    .nh-home .nh-director-body { padding: 14px; }
    .nh-home .nh-director-body h2 { font-size: 17px; }
    .nh-home .nh-hero-slider .swiper-pagination { top: 10px; left: 10px; right: auto; bottom: auto !important; }
    .nh-banner-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
    .nh-banner-dialog-viewer { display: block; }
    .nh-banner-dialog-image { width: 1200px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .nh-home .nh-hero-zoom,.nh-home .nh-hero-card,.nh-home .nh-hero-image,.nh-home .nh-button,.nh-home .nh-button i { transition: none; }
    .nh-home .nh-hero-copy::before,.nh-home .nh-hero-copy::after,.nh-home .nh-eyebrow i { animation: none; }
}
