.np-home {
  --np-home-ink: #163f3c;
  --np-home-muted: #5b716d;
  --np-home-green: #74b83f;
  --np-home-green-dark: #3f873c;
  --np-home-blue: #4aa8c5;
  --np-home-blue-dark: #26758c;
  --np-home-orange: #ef8b32;
  --np-home-orange-dark: #b95708;
  --np-home-pale-green: #f1f8ec;
  --np-home-pale-blue: #eef8fb;
  --np-home-pale-orange: #fff6e9;
  --np-home-border: #d7e7df;
  --np-home-shadow: 0 14px 38px rgba(25, 75, 67, 0.09);
  background:
    radial-gradient(circle at 8% 12%, rgba(116, 184, 63, 0.12) 0 120px, transparent 121px),
    radial-gradient(circle at 94% 43%, rgba(74, 168, 197, 0.12) 0 150px, transparent 151px),
    radial-gradient(circle at 5% 82%, rgba(239, 139, 50, 0.1) 0 110px, transparent 111px),
    linear-gradient(180deg, #fbfdf9 0%, #eef8fb 43%, #f4faee 72%, #fff9f0 100%);
  border: 1px solid rgba(205, 226, 215, 0.85);
  border-radius: 36px;
  box-sizing: border-box;
  color: var(--np-home-ink);
  container-name: np-home;
  container-type: inline-size;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(14px, 2.5vw, 30px);
}

.np-home *,
.np-home *::before,
.np-home *::after {
  box-sizing: border-box;
}

.np-home a {
  text-decoration: none;
}

.np-home a:focus-visible,
.np-home button:focus-visible,
.np-home input:focus-visible {
  outline: 3px solid rgba(74, 168, 197, 0.5);
  outline-offset: 3px;
}

.np-home-hero {
  align-items: center;
  background:
    radial-gradient(circle at 90% 5%, rgba(74, 168, 197, 0.14) 0 90px, transparent 91px),
    radial-gradient(circle at 76% 96%, rgba(239, 139, 50, 0.12) 0 72px, transparent 73px),
    linear-gradient(135deg, #f3faee 0%, #eef8f7 58%, #fff8ed 100%);
  border: 1px solid #d3e7da;
  border-radius: 28px;
  box-shadow: var(--np-home-shadow);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  position: relative;
}

.np-home-hero__content,
.np-home-hero__visual {
  position: relative;
  z-index: 1;
}

.np-home-eyebrow,
.np-home-section__label {
  color: var(--np-home-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.np-home-hero h2 {
  background: none;
  border: 0;
  color: var(--np-home-ink);
  font-size: clamp(2rem, 4.7vw, 3.65rem);
  letter-spacing: -0.035em;
  line-height: 1.28;
  margin: 0;
  padding: 0;
}

.np-home-hero h2::before,
.np-home-hero h2::after,
.np-home-section h2::before,
.np-home-section h2::after,
.np-home-trust h2::before,
.np-home-trust h2::after {
  display: none;
}

.np-home-title-line {
  display: block;
}

.np-home-title-line--accent {
  background: linear-gradient(transparent 68%, rgba(239, 139, 50, 0.27) 68%);
  color: var(--np-home-green-dark);
}

.np-home-hero__lead {
  color: #3e5f5a;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  margin: 22px 0 0;
  max-width: 700px;
}

.np-home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0;
  padding: 0;
}

.np-home-badges li {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #cfe2d7;
  border-radius: 999px;
  color: #315f57;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 9px 13px;
}

.np-home-search {
  background: #fff;
  border: 1px solid #cfe1d8;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(34, 83, 74, 0.08);
  display: flex;
  max-width: 660px;
  padding: 6px;
}

.np-home-search input[type="search"] {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--np-home-ink);
  flex: 1;
  font-size: 1rem;
  min-width: 0;
  padding: 11px 13px;
}

.np-home-search input[type="search"]::placeholder {
  color: #879a96;
}

.np-home-search button {
  background: var(--np-home-green-dark);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 20px;
}

.np-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.np-home-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.35;
  min-height: 48px;
  padding: 12px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.np-home-button:hover {
  transform: translateY(-2px);
}

.np-home-button--primary {
  background: var(--np-home-green-dark);
  box-shadow: 0 8px 18px rgba(63, 135, 60, 0.22);
  color: #fff !important;
}

.np-home-button--primary:hover {
  background: #347432;
}

.np-home-button--secondary {
  background: var(--np-home-blue-dark);
  border: 1px solid var(--np-home-blue-dark);
  box-shadow: 0 8px 18px rgba(38, 117, 140, 0.2);
  color: #fff !important;
}

.np-home-button--secondary:hover {
  background: #1f6478;
  border-color: #1f6478;
  box-shadow: 0 10px 22px rgba(38, 117, 140, 0.27);
}

.np-home-hero__visual {
  align-items: center;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin: 0;
}

.np-home-hero__visual img {
  filter: drop-shadow(0 14px 16px rgba(34, 83, 74, 0.17));
  height: auto;
  margin: 14px auto -36px;
  max-width: 250px;
  width: 100%;
}

.np-home-hero__bubble {
  background: #fff;
  border: 2px solid #e7c486;
  border-radius: 18px;
  color: #78531c;
  font-size: 0.94rem;
  line-height: 1.65;
  padding: 13px 18px;
  position: relative;
  text-align: center;
}

.np-home-hero__bubble::after {
  background: #fff;
  border-bottom: 2px solid #e7c486;
  border-right: 2px solid #e7c486;
  bottom: -8px;
  content: "";
  height: 14px;
  left: calc(50% - 7px);
  position: absolute;
  transform: rotate(45deg);
  width: 14px;
}

.np-home-hero__bubble strong {
  color: var(--np-home-orange);
}

.np-home-section {
  margin-top: clamp(64px, 9vw, 104px);
}

.np-home-section__header {
  margin: 0 auto 30px;
  max-width: 760px;
  text-align: center;
}

.np-home-section__header h2,
.np-home-trust h2 {
  background: none;
  border: 0;
  color: var(--np-home-ink);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.np-home-section__header > p:last-child {
  color: var(--np-home-muted);
  margin: 13px auto 0;
}

.np-home-purpose-grid,
.np-home-subject-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-home-purpose-card,
.np-home-subject-card {
  background: #fff;
  border: 1px solid var(--np-home-border);
  border-radius: 20px;
  color: var(--np-home-ink) !important;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.np-home-purpose-card:nth-child(1) {
  border-top: 5px solid var(--np-home-green);
}

.np-home-purpose-card:nth-child(2) {
  border-top: 5px solid var(--np-home-blue);
}

.np-home-purpose-card:nth-child(3) {
  border-top: 5px solid var(--np-home-orange);
}

.np-home-purpose-card:hover,
.np-home-subject-card--active:hover {
  border-color: #9fc9ae;
  box-shadow: var(--np-home-shadow);
  transform: translateY(-4px);
}

.np-home-purpose-card__number {
  color: var(--np-home-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.np-home-purpose-card h3,
.np-home-subject-card h3 {
  color: var(--np-home-ink);
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 14px 0 10px;
}

.np-home-purpose-card p,
.np-home-subject-card p {
  color: var(--np-home-muted);
  font-size: 0.94rem;
  margin: 0 0 18px;
}

.np-home-card-link {
  align-self: flex-start;
  background: #e5f3dc;
  border-radius: 999px;
  color: var(--np-home-green-dark);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: auto;
  padding: 7px 12px;
}

.np-home-purpose-card:nth-child(2) .np-home-card-link {
  background: #e4f4f8;
  color: var(--np-home-blue-dark);
}

.np-home-purpose-card:nth-child(3) .np-home-card-link {
  background: #fff0df;
  color: var(--np-home-orange-dark);
}

.np-home-subject-card {
  overflow: hidden;
  padding-top: 62px;
}

.np-home-subject-card--active {
  background: linear-gradient(150deg, #fff 0%, var(--np-home-pale-green) 100%);
  border-color: #b8d9bd;
}

.np-home-subject-card--coming {
  background: #f8faf9;
  border-style: dashed;
}

.np-home-subject-card__status {
  background: var(--np-home-green-dark);
  border-radius: 0 0 0 14px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 13px;
  position: absolute;
  right: 0;
  top: 0;
}

.np-home-subject-card--coming .np-home-subject-card__status {
  background: #869590;
}

.np-home-subject-card__icon {
  align-items: center;
  background: var(--np-home-pale-blue);
  border-radius: 50%;
  color: #327d91;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  letter-spacing: -0.02em;
  width: 54px;
}

.np-home-subject-card--active .np-home-subject-card__icon {
  background: #e5f3dc;
  color: var(--np-home-green-dark);
}

.np-home-course {
  background: linear-gradient(180deg, #f7fbf5 0%, #fff 100%);
  border: 1px solid #dceadf;
  border-radius: 26px;
  padding: clamp(30px, 5vw, 58px);
  scroll-margin-top: 24px;
}

.np-home-course-units {
  display: grid;
  gap: 34px;
  margin-top: 32px;
}

.np-home-course-unit {
  margin: 0;
}

.np-home-course-unit__title {
  align-items: center;
  border-bottom: 2px solid #dceadf;
  color: var(--np-home-ink);
  display: flex;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  gap: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 0 2px 10px;
}

.np-home-course-unit__number {
  background: #e7f4df;
  border-radius: 999px;
  color: var(--np-home-green-dark);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
}

.np-home-course-unit .np-home-roadmap {
  margin-top: 14px;
}

.np-home-roadmap {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.np-home-roadmap li {
  margin: 0;
}

.np-home-roadmap a {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe9e1;
  border-radius: 15px;
  color: var(--np-home-ink) !important;
  display: flex;
  gap: 15px;
  height: 100%;
  padding: 17px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.np-home-roadmap a:hover {
  border-color: #9fc9ae;
  box-shadow: 0 10px 22px rgba(34, 83, 74, 0.08);
  transform: translateY(-2px);
}

.np-home-roadmap__number {
  align-items: center;
  background: var(--np-home-pale-green);
  border-radius: 50%;
  color: var(--np-home-green-dark);
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 0.8rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
}

.np-home-roadmap strong {
  color: var(--np-home-ink);
  display: block;
  font-size: 0.98rem;
  line-height: 1.5;
}

.np-home-roadmap small {
  color: var(--np-home-muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 3px;
}

@media (max-width: 520px) {
  .np-home-course-units {
    gap: 28px;
  }

  .np-home-course-unit__title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

.np-home-section__action {
  margin-top: 28px;
  text-align: center;
}

.np-home-section__action .np-home-button--secondary {
  background: var(--np-home-orange-dark);
  border-color: var(--np-home-orange-dark);
  box-shadow: 0 8px 18px rgba(185, 87, 8, 0.2);
}

.np-home-section__action .np-home-button--secondary:hover {
  background: #984604;
  border-color: #984604;
  box-shadow: 0 10px 22px rgba(185, 87, 8, 0.27);
}

.np-home-latest-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-home-latest-card {
  background: #fff;
  border: 1px solid var(--np-home-border);
  border-radius: 18px;
  box-shadow: 0 9px 26px rgba(25, 75, 67, 0.06);
  margin: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.np-home-latest-card:hover {
  box-shadow: var(--np-home-shadow);
  transform: translateY(-4px);
}

.np-home-latest-card__image {
  background: var(--np-home-pale-green);
  display: block;
  overflow: hidden;
}

.np-home-latest-card__image img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.np-home-latest-card:hover .np-home-latest-card__image img {
  transform: scale(1.025);
}

.np-home-latest-card__placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  color: var(--np-home-green-dark);
  display: flex;
  font-weight: 900;
  justify-content: center;
}

.np-home-latest-card__body {
  padding: 18px 19px 21px;
}

.np-home-latest-card time {
  color: #82928e;
  display: block;
  font-size: 0.74rem;
  margin-bottom: 7px;
}

.np-home-latest-card h3 {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.np-home-latest-card h3 a {
  color: var(--np-home-ink) !important;
}

.np-home-latest-card h3 a:hover {
  color: var(--np-home-green-dark) !important;
}

.np-home-empty {
  background: var(--np-home-pale-green);
  border-radius: 14px;
  color: var(--np-home-muted);
  padding: 20px;
  text-align: center;
}

.np-home-trust {
  align-items: center;
  background: linear-gradient(135deg, var(--np-home-pale-blue), #f8fbf5);
  border: 1px solid #d5e6e6;
  border-radius: 24px;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: clamp(64px, 9vw, 104px);
  padding: clamp(28px, 5vw, 50px);
}

.np-home-trust p:not(.np-home-section__label) {
  color: var(--np-home-muted);
  margin: 15px 0 0;
}

.np-home-trust__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.np-home-trust__links a {
  background: var(--np-home-green-dark);
  border: 1px solid var(--np-home-green-dark);
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 11px 17px;
  text-align: center;
}

.np-home-trust__links a:hover {
  background: #347432;
  border-color: #347432;
}

.np-home-trust__links a:last-child {
  background: var(--np-home-blue-dark);
  border-color: var(--np-home-blue-dark);
}

.np-home-trust__links a:last-child:hover {
  background: #1f6478;
  border-color: #1f6478;
}

@media (max-width: 900px) {
  .np-home-hero {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding-bottom: 42px;
  }

  .np-home-purpose-grid,
  .np-home-subject-grid,
  .np-home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-home-subject-card:last-child,
  .np-home-purpose-card:last-child {
    grid-column: 1 / -1;
  }

  .np-home-trust {
    grid-template-columns: 1fr;
  }

  .np-home-trust__links {
    flex-direction: row;
  }

  .np-home-trust__links a {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .np-home-hero {
    grid-template-columns: 1fr;
    padding: 30px 22px 0;
  }

  .np-home-hero__visual {
    margin-top: 12px;
  }

  .np-home-hero__visual img {
    margin-bottom: -18px;
    max-width: 190px;
  }

  .np-home-search {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .np-home-search button {
    min-height: 44px;
  }

  .np-home-actions,
  .np-home-trust__links {
    flex-direction: column;
  }

  .np-home-button {
    width: 100%;
  }

  .np-home-purpose-grid,
  .np-home-subject-grid,
  .np-home-roadmap,
  .np-home-latest-grid {
    grid-template-columns: 1fr;
  }

  .np-home-subject-card:last-child,
  .np-home-purpose-card:last-child {
    grid-column: auto;
  }

  .np-home-course {
    border-radius: 20px;
    padding: 28px 17px;
  }

  .np-home-roadmap a {
    padding: 14px;
  }
}

/*
 * Cocoon keeps the sidebar beside the main column on desktop. This landing
 * page needs the full content width, otherwise the hero remains in two
 * columns while its actual container is too narrow.
 */
body.page-id-103 .content-in {
  display: block;
}

body.page-id-103 #main.main {
  float: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: 100%;
}

body.page-id-103 #sidebar.sidebar {
  display: none;
}

/* The homepage is a navigation hub, so Cocoon's automatic article TOC is redundant. */
body.page-id-103 .toc,
body.page-id-103 #toc {
  display: none !important;
}

/* Respond to the homepage column itself, not only to the browser width. */
@container np-home (max-width: 900px) {
  .np-home-hero {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .np-home-hero h2 {
    font-size: 2.7rem;
  }

  .np-home-hero__visual {
    margin-top: 12px;
  }

  .np-home-hero__visual img {
    margin-bottom: -22px;
    max-width: 210px;
  }

  .np-home-purpose-grid,
  .np-home-subject-grid,
  .np-home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-home-subject-card:last-child,
  .np-home-purpose-card:last-child {
    grid-column: 1 / -1;
  }

  .np-home-trust {
    grid-template-columns: 1fr;
  }

  .np-home-trust__links {
    flex-direction: row;
  }

  .np-home-trust__links a {
    flex: 1;
  }
}

@container np-home (max-width: 620px) {
  .np-home-hero {
    padding: 30px 22px 0;
  }

  .np-home-hero h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    letter-spacing: -0.02em;
  }

  .np-home-search {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .np-home-actions,
  .np-home-trust__links {
    flex-direction: column;
  }

  .np-home-button {
    width: 100%;
  }

  .np-home-purpose-grid,
  .np-home-subject-grid,
  .np-home-roadmap,
  .np-home-latest-grid {
    grid-template-columns: 1fr;
  }

  .np-home-subject-card:last-child,
  .np-home-purpose-card:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-home *,
  .np-home *::before,
  .np-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
