/* Kaizen Pharmaceuticals — News page */
:root {
  --nw-blue: #2c45dd;
  --nw-blue-dark: #2338c4;
  --nw-blue-header: #3b55e8;
  --nw-navy: #04072a;
  --nw-teal-dark: #07675a;
  --nw-green: #2fd897;
  --nw-white: #ffffff;
  --nw-tint: #e4eaff;
  --nw-mint: #e4f5f1;
  --nw-ease: cubic-bezier(.2, .8, .2, 1);
}

.nw-page-scope,
.nw-page-scope *,
.nw-page-scope *::before,
.nw-page-scope *::after {
  box-sizing: border-box;
}

.nw-page-scope.nw-body {
  margin: 0;
  background: var(--nw-teal-dark);
  font-family: Poppins, sans-serif;
  color: var(--nw-white);
}

.nw-page-scope.nw-body a {
  color: var(--nw-green);
  text-decoration: none;
}

.nw-page-scope.nw-body a:hover {
  color: var(--nw-white);
}

.nw-page-scope.nw-body button {
  font-family: inherit;
}

.nw-page-scope.nw-body img {
  display: block;
}

.nw-page-scope .is-green {
  color: var(--nw-green);
}

.nw-page-scope .nw-page {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  background: var(--nw-teal-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nw-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  min-height: calc(100vh - 112px);
  background: var(--nw-blue);
  overflow: hidden;
}

.nw-hero__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--nw-navy);
}

.nw-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-hero__text {
  padding: clamp(40px, 5vw, 80px) clamp(24px, 4.4vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  overflow: hidden;
}

.nw-hero__title {
  margin: 0;
  font: 700 clamp(40px, 4.8vw, 80px)/1.02 Poppins, sans-serif;
  letter-spacing: -.035em;
  color: var(--nw-white);
  text-wrap: balance;
}

.nw-hero__lead {
  margin: 0;
  font: 400 17px/1.7 Poppins, sans-serif;
  color: var(--nw-white);
  text-wrap: pretty;
  max-width: 580px;
}

.nw-latest {
  background: var(--nw-teal-dark);
  padding: 80px clamp(16px, 5vw, 88px) 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nw-latest__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nw-latest__head h3 {
  margin: 0;
  font: 700 clamp(26px, 2.4vw, 34px)/1.1 Poppins, sans-serif;
  letter-spacing: -.02em;
  color: var(--nw-white);
}

.nw-latest__head p {
  margin: 0;
  font: 400 16px/1.6 Poppins, sans-serif;
  color: var(--nw-mint);
}

.nw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nw-filter {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: var(--nw-white);
  font: 600 14px/1 Poppins, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.nw-filter:hover {
  border-color: var(--nw-green);
}

.nw-filter.is-active {
  background: var(--nw-green);
  color: var(--nw-navy);
  border-color: var(--nw-green);
}

.nw-filter:focus-visible {
  outline: 2px solid var(--nw-green);
  outline-offset: 2px;
}

.nw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(280px, calc((100% - 48px) / 3))), 1fr));
  gap: 24px;
}

.nw-card[hidden] {
  display: none;
}

.nw-page-scope.nw-body .nw-card {
  position: relative;
  display: block;
  min-height: clamp(320px, 25vw, 380px);
  overflow: hidden;
  border-radius: 6px;
  background: var(--nw-navy);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow .45s ease;
}

.nw-page-scope.nw-body .nw-card:hover {
  box-shadow: 0 30px 60px rgba(4, 7, 42, .35);
}

.nw-card__img {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 1.2s var(--nw-ease);
}

.nw-card:hover .nw-card__img {
  transform: scale(1.06);
}

.nw-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.nw-card__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 30px 32px 28px;
  background: rgba(26, 36, 128, .82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: height .55s var(--nw-ease), background .45s ease;
  pointer-events: none;
}

.nw-card:hover .nw-card__panel {
  height: 64%;
  background: rgba(44, 69, 221, .92);
}

.nw-card__title {
  font: 700 clamp(17px, 1.4vw, 21px)/1.3 Poppins, sans-serif;
  letter-spacing: -.01em;
  color: var(--nw-white);
  text-wrap: pretty;
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.nw-card:hover .nw-card__title {
  text-decoration: underline;
}

.nw-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nw-card__tag {
  font: 500 14px/1.3 Poppins, sans-serif;
  color: #d6deff;
}

.nw-card__arrow {
  font: 400 22px/1 Poppins, sans-serif;
  color: var(--nw-white);
  transition: transform .35s ease;
}

.nw-card:hover .nw-card__arrow {
  transform: translateX(6px);
}

.nw-empty {
  margin: 0;
  font: 500 16px/1.6 Poppins, sans-serif;
  color: var(--nw-mint);
}

@media (prefers-reduced-motion: reduce) {
  .nw-page-scope *,
  .nw-page-scope *::before,
  .nw-page-scope *::after {
    animation: none !important;
    transition: none !important;
  }
}
