/* Nippon Life Sciences - hero slider (preview) */
.nls-hero { position: relative; z-index: 1; overflow: hidden; background: var(--nls-teal-deep); color: #fff; }
.nls-hero-track { position: relative; min-height: 600px; }
.nls-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; padding: 40px 0 110px; background: linear-gradient(115deg, #0f3342 0%, #174555 48%, var(--accent-d, #174555) 130%); }
.nls-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.nls-slide:before { content: ""; position: absolute; right: -8%; top: 50%; width: 760px; height: 760px; margin-top: -380px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--accent, #e31e24) 0%, var(--accent-d, #a5121a) 72%); opacity: .92; }
.nls-slide:after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .10); }
.nls-slide-in { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; width: 100%; }
.nls-slide-text { max-width: 580px; }
.nls-slide-tag { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.nls-slide h2 { margin: 0 0 18px; color: #fff; font-size: 54px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.nls-slide p { margin: 0 0 30px; color: #d8e6ec; font-size: 18px; line-height: 1.7; max-width: 520px; }
.nls-slide-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.nls-slide-btns .btn { padding: 14px 30px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.nls-slide-img { position: relative; display: flex; align-items: center; justify-content: center; }
.nls-slide-img img { display: block; width: 100%; max-width: 470px; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
/* entrance animation */
.nls-slide .nls-slide-tag, .nls-slide h2, .nls-slide p, .nls-slide-btns { opacity: 0; transform: translateY(22px); }
.nls-slide-img img { opacity: 0; transform: translateX(40px) scale(.96); }
.nls-slide.active .nls-slide-tag, .nls-slide.active h2, .nls-slide.active p, .nls-slide.active .nls-slide-btns { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.nls-slide.active h2 { transition-delay: .12s; } .nls-slide.active p { transition-delay: .24s; } .nls-slide.active .nls-slide-btns { transition-delay: .36s; }
.nls-slide.active .nls-slide-img img { opacity: 1; transform: none; transition: opacity .9s ease .2s, transform .9s ease .2s; }
/* controls */
.nls-hero-arrow { position: absolute; top: 50%; z-index: 6; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(15, 51, 66, .55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color .2s ease, transform .2s ease; }
.nls-hero-arrow:hover { background: var(--nls-red); transform: scale(1.08); }
.nls-hero-prev { left: 22px; } .nls-hero-next { right: 22px; }
.nls-hero-dots { position: absolute; left: 0; right: 0; bottom: 82px; z-index: 6; display: flex; justify-content: center; gap: 10px; }
.nls-hero-dot { position: relative; width: 56px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; cursor: pointer; }
.nls-hero-dot:after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.nls-hero-dot.active:after { width: 100%; animation: nlsProg var(--dur, 6500ms) linear; }
.nls-hero.paused .nls-hero-dot.active:after { animation-play-state: paused; }
.nls-hero.static .nls-hero-dot.active:after { animation: none; }
@keyframes nlsProg { from { width: 0; } to { width: 100%; } }
@media (max-width: 991px) {
  .nls-hero-track { min-height: 720px; }
  .nls-slide { padding: 30px 0 100px; align-items: flex-start; }
  .nls-slide-in { grid-template-columns: 1fr; gap: 18px; }
  .nls-slide-img { order: -1; } .nls-slide-img img { max-width: 300px; }
  .nls-slide:before { width: 520px; height: 520px; right: -20%; top: 90px; margin-top: 0; }
  .nls-slide h2 { font-size: 38px; } .nls-slide p { font-size: 16px; margin-bottom: 22px; }
  .nls-hero-arrow { display: none; }
}
@media (max-width: 575px) {
  .nls-hero-track { min-height: 690px; }
  .nls-slide h2 { font-size: 30px; } .nls-slide-img img { max-width: 240px; }
  .nls-slide-btns .btn { flex: 1 1 100%; text-align: center; }
  .nls-hero-dots { bottom: 60px; } .nls-hero-dot { width: 38px; }
}
@media (prefers-reduced-motion: reduce) { .nls-slide, .nls-slide * { transition: none !important; } }

.nls-slide-in:before, .nls-slide-in:after { display: none !important; }

.nls-slide-in { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
@media (max-width: 1199px) { .nls-slide-in { max-width: 970px; } }
@media (max-width: 991px) { .nls-slide-in { max-width: 750px; } }
@media (max-width: 767px) { .nls-slide-in { max-width: 100%; } }

@media (max-width: 575px) { .nls-hero-track { min-height: 760px; } .nls-slide { padding-bottom: 130px; } .nls-hero-dots { bottom: 92px; } }

/* arrows: smaller + tucked in; hidden where they would cover text (swipe + dots remain) */
.nls-hero-arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 22px; }
.nls-hero-prev { left: 8px; } .nls-hero-next { right: 8px; }
@media (max-width: 1279px) { .nls-hero-arrow { display: none; } }
/* phones: more room so the dots never touch the buttons */
@media (max-width: 575px) { .nls-hero-track { min-height: 800px; } .nls-slide { padding-bottom: 150px; } .nls-hero-dots { bottom: 112px; } }
