/* Diploma page details, loaded after the shared service styles. */

.nbu-hero-design {
  white-space: nowrap;
}

.nbu-proof-inner {
  overflow: visible !important;
}

.nbu-proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nbu-proof-item {
  min-width: 0;
  aspect-ratio: auto;
  overflow: visible !important;
  border-radius: 0 !important;
}

.nbu-proof-img {
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.nbu-proof-img-link {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.nbu-proof-img-link::after {
  content: "↗";
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--narrow-bg-secondary, #262322);
  color: var(--narrow-bg-primary, #fff7ec);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}

.nbu-proof-img-link:focus-visible {
  outline: 3px solid var(--narrow-accent);
  outline-offset: -3px;
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(38, 35, 34, 0.18);
}

.nbu-proof-img-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .nbu-proof-img-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(38, 35, 34, 0.18);
  }

  .nbu-proof-img-link:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.sv-showcase.nbu-tools {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 2.5rem;
  box-sizing: border-box;
}

.nbu-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 247, 236, 0.07);
}

.nbu-tool-row:last-child {
  border-bottom: 0;
}

.nbu-tool-name,
.nbu-tool-role {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.nbu-tool-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--narrow-bg-primary);
  letter-spacing: -0.01em;
}

.nbu-tool-role {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(255, 247, 236, 0.55);
}

@media (max-width: 768px) {
  .nbu-hero-title .nbu-hero-word,
  .nbu-hero-title .nbu-hero-design {
    display: block;
    white-space: normal;
  }

  .nbu-proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sv-showcase.nbu-tools {
    min-height: 0 !important;
    padding: 1.25rem !important;
  }

  .nbu-tool-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.2rem;
    padding: 0.85rem 0;
  }

  .nbu-tool-role {
    text-align: left;
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nbu-proof-img-link,
  .nbu-proof-img-link::after {
    transition: none;
  }

  .nbu-proof-img-link:hover,
  .nbu-proof-img-link:focus-visible {
    transform: none;
  }
}

/* Diploma reviews and frames for customer photos. */
.nbu-reviews, .nbu-client-photos {
  padding: clamp(4rem, 6vw, 6rem) clamp(1rem, 3vw, 2.5rem);
}
.nbu-reviews { background: var(--narrow-bg-secondary, #262322); color: var(--narrow-text-light, #fff7ec); }
.nbu-client-photos { background: var(--narrow-bg-primary, #fff7ec); color: var(--narrow-text-primary, #262322); }
.nbu-extra-inner { max-width: 1400px; margin: 0 auto; }
.nbu-extra-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  align-items: end;
  gap: 1.5rem 3rem;
}
.nbu-reviews .section-tag { color: rgba(255,247,236,.55); }
.nbu-extra-title {
  max-width: 18ch;
  margin: .9rem 0 0;
  color: inherit;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.nbu-extra-intro { margin: 0; color: var(--narrow-text-secondary); font-size: .9375rem; line-height: 1.7; }
.nbu-reviews .nbu-extra-intro { color: rgba(255,247,236,.65); }
.nbu-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.nbu-review-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid rgba(255,247,236,.14);
  border-radius: 16px;
  background: rgba(255,247,236,.025);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nbu-review-mark { color: var(--narrow-accent, #ff784f); font-size: 2rem; font-weight: 700; line-height: 1; }
.nbu-review-card blockquote {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--narrow-text-light, #fff7ec);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.65;
}
.nbu-review-label { color: rgba(255,247,236,.65); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nbu-client-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.nbu-client-photo-placeholder {
  display: flex;
  min-width: 0;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(255,120,79,.4);
  border-radius: 14px;
  background: rgba(255,120,79,.035);
  color: var(--narrow-text-secondary, #6b625c);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.nbu-client-photo-icon { display: block; width: 2rem; color: var(--narrow-accent, #ff784f); }
.nbu-client-photo-icon svg { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) {
  .nbu-review-card:hover { border-color: rgba(255,120,79,.6); box-shadow: 0 0 28px rgba(255,120,79,.12); }
}
@media (max-width: 768px) {
  .nbu-extra-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .nbu-reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .nbu-client-photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nbu-review-card { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nbu-review-card { transition: none; }
}

/* The first review is the focal card; two compact cards sit alongside it. */
.nbu-reviews-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.nbu-review-card { gap: 1.25rem; background: linear-gradient(145deg, rgba(255,247,236,.055), rgba(255,247,236,.015)); }
.nbu-review-card:first-child { grid-row: span 2; padding: clamp(2rem, 3.3vw, 3rem); }
.nbu-review-mark { font-family: Georgia, serif; font-size: 4rem; font-weight: 400; line-height: .65; }
.nbu-review-card blockquote { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; }
.nbu-review-card:first-child blockquote { max-width: 30ch; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.5; }
.nbu-review-label { display: block; width: 100%; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,247,236,.13); }
@media (max-width: 768px) {
  .nbu-reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .nbu-review-card:first-child { grid-row: auto; padding: 1.5rem; }
  .nbu-review-card:first-child blockquote { font-size: 1.25rem; }
}

/* The theme globally forces article elements to block. */
.nbu-reviews .nbu-review-card { display: flex !important; box-sizing: border-box; }

/* Four sample cards and illustrative star ratings. */
.nbu-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nbu-review-card:first-child { grid-row: auto; padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.nbu-review-card:first-child blockquote { max-width: none; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; }
.nbu-review-head { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.nbu-review-stars { flex: 0 0 auto; color: var(--narrow-accent, #ff784f); font-size: 1.125rem; letter-spacing: .08em; line-height: 1; white-space: nowrap; }
@media (max-width: 768px) {
  .nbu-reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .nbu-review-card:first-child { padding: 1.5rem; }
}
