/* Home page — news, announcements, contacts. */

.nu-home-section {
  padding-top: 20px;
  padding-bottom: 10px;
}

.nu-home-section--after-band {
  padding-top: 20px;
}

/* Institutes band — full-bleed bg, content in .nu-wrap */
.nu-home-inst {
  width: 100%;
  padding: 56px 0 64px;
  background: var(--navy-tint-2);
}

.nu-home-inst .nu-sec-head {
  justify-content: flex-start;
}

.nu-instgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.nu-inst {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 0;
  background: var(--paper);
  border-radius: var(--r);
  padding: 30px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 58, 93, 0.07);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.nu-inst:hover {
  box-shadow: 0 10px 26px rgba(0, 58, 93, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.nu-inst-logo {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.nu-inst-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nu-inst > span:last-child {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.nu-inst:hover > span:last-child {
  color: var(--navy);
}

.nu-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.nu-sec-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.nu-allbtn {
  position: relative;
  top: 5px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 11px 24px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.nu-allbtn:hover {
  background: var(--cyan);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nu-cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.nu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nu-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 3;
}

.nu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 58, 93, 0.16);
  border-color: transparent;
}

.nu-card:hover::before {
  transform: scaleX(1);
}

.nu-card-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, var(--navy-80), var(--navy));
}

.nu-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.nu-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nu-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-2);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nu-card-date i {
  color: var(--cyan);
  font-size: 12px;
}

.nu-card-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.32;
  margin: 0 0 10px;
}

.nu-card-title a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.nu-card-title a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.nu-card-ex {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray);
  margin: 0;
  flex: 1;
}

.nu-card-more {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  width: fit-content;
  text-decoration: none;
  text-underline-offset: 4px;
}

.nu-card:hover .nu-card-more {
  text-decoration: underline;
}

/* Contacts band — full-bleed bg (outside .nu-shell), content in .nu-wrap */
.nu-home-contacts {
  width: 100%;
  background: var(--navy-tint-2);
  color: var(--ink);
  padding: 30px 0 40px;
}

.nu-hc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.nu-hc-head .ttl {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}

.nu-hc-head .sub {
  margin: 0;
  color: var(--gray);
  font-size: 13.5px;
  max-width: 340px;
  text-align: right;
  line-height: 1.5;
}

.nu-cgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 32px;
}

.nu-ccard {
  padding: 2px 30px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.nu-ccard:nth-child(3n + 1) {
  border-left: 0;
  padding-left: 0;
}

.nu-ccard h3 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.38;
}

.nu-ccard h3 .note {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  margin-top: 2px;
}

.nu-ccard .ph-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nu-ccard .ph-list a {
  font-size: 13.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  width: fit-content;
  transition: color 0.14s ease;
}

.nu-ccard .ph-list a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.nu-ccard .ph-list .mail {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .nu-cardgrid {
    grid-template-columns: 1fr 1fr;
  }

  .nu-cgrid {
    grid-template-columns: 1fr 1fr;
  }

  .nu-inst {
    flex-basis: calc((100% - 22px) / 2);
  }

  .nu-ccard:nth-child(3n + 1) {
    border-left: 1px solid var(--line);
    padding-left: 30px;
  }

  .nu-ccard:nth-child(2n + 1) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .nu-cardgrid,
  .nu-cgrid {
    grid-template-columns: 1fr;
  }

  .nu-inst {
    flex-basis: 100%;
  }

  .nu-ccard {
    border-left: 0 !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }

  .nu-ccard:first-child {
    border-top: 0;
  }

  .nu-hc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nu-hc-head .sub {
    text-align: left;
  }

  .nu-sec-head {
    flex-wrap: wrap;
    gap: 12px;
  }
}
