/* Homepage — UCC-inspired layout */

.hero--news {
  min-height: min(92vh, 820px);
  align-items: stretch;
}

.hero--news .hero__slide {
  display: flex;
  align-items: flex-end;
}

.hero--news .hero__slide::after {
  background: linear-gradient(
    105deg,
    rgba(15, 28, 46, 0.92) 0%,
    rgba(15, 28, 46, 0.68) 45%,
    rgba(15, 28, 46, 0.35) 100%
  );
}

.hero__slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 5rem 0 8.5rem;
}

.hero__tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-navy);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 0.75rem;
  max-width: 18ch;
}

.hero__headline a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
}

.hero__headline a:hover,
.hero__headline a:focus-visible {
  color: var(--color-accent);
}

.hero__date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero__toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 28, 46, 0.55);
  backdrop-filter: blur(12px);
}

.hero__toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__dock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0;
}

.hero__dock-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.hero__dock-link:hover,
.hero__dock-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__dock-link--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-navy);
}

.hero__dock-link--accent:hover,
.hero__dock-link--accent:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--color-navy);
}

.hero--news .hero__controls {
  position: static;
  transform: none;
  padding: 0.65rem 0;
}

.hero__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s;
}

.hero__nav-btn:hover,
.hero__nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero__controls-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* VC welcome — warm band after hero */
.home-vc-band {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(232, 160, 32, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(122, 31, 53, 0.08), transparent 50%),
    linear-gradient(180deg, #fff9f2 0%, var(--color-white) 100%);
  border-top: 4px solid var(--color-primary);
  border-bottom: 1px solid rgba(122, 31, 53, 0.12);
}

.home-vc-band .vc-welcome {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid rgba(122, 31, 53, 0.1);
  box-shadow: var(--shadow-md);
}

.home-vc-band .section__eyebrow {
  color: var(--color-primary-dark);
}

/* Programme pathways */
.prog-pathways {
  padding: 3.75rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.prog-pathways__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.prog-pathways__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.prog-path-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.25s;
}

.prog-path-card:hover,
.prog-path-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(122, 31, 53, 0.25);
}

.prog-path-card__level {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.prog-path-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.prog-path-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.prog-path-card__cta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

/* Credibility strip */
.cred-band {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a3348 100%);
  color: #fff;
}

.cred-band__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.cred-band__header .section__title {
  color: #fff;
  margin-bottom: 0.35rem;
}

.cred-band__header .section__desc {
  color: rgba(255, 255, 255, 0.72);
}

.cred-band .section__eyebrow,
.stats-band .section__eyebrow {
  color: var(--color-accent);
}

.cred-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cred-card {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cred-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.cred-card--link:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 160, 32, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.cred-card--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cred-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.cred-card__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cred-card__hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

.home-about-band {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.home-faculties-band {
  background: linear-gradient(180deg, var(--color-surface-2) 0%, #eef0f4 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.home-faculties-band .faculties-grid {
  gap: 1.15rem;
}

.stats-band__intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.stats-band--bento .stats-band__intro {
  text-align: left;
  margin-bottom: 0;
}

.stats-band__intro .section__title {
  color: #fff;
  margin-bottom: 0.35rem;
}

.stats-band__intro .section__desc {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin: 0 auto;
}

.stats-band--bento .stats-band__intro .section__desc {
  max-width: none;
  margin: 0;
}

/* News + announcements split */
.home-feed {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.home-feed__col-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-news-grid {
  display: grid;
  gap: 1rem;
}

.home-news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.home-news-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(122, 31, 53, 0.2);
}

.home-news-item__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-2);
}

.home-news-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-item__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.home-news-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.home-news-item__title a {
  color: var(--color-text);
}

.home-news-item__title a:hover {
  color: var(--color-primary);
}

.home-news-item__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.announce-list {
  display: grid;
  gap: 0.85rem;
}

.announce-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.announce-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.announce-card__type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.announce-card__title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.announce-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Research highlights */
.research-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.research-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.research-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.research-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.research-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
}

.research-card__title a {
  color: var(--color-text);
}

.research-card__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Student Activities */
.student-activities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.activity-cluster {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.activity-cluster__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.activity-cluster__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.activity-cluster__photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.activity-cluster__caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.activity-cluster__link {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.activity-cluster__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Experience SLUK */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.experience-card {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #fff;
  isolation: isolate;
}

.experience-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease-out);
}

.experience-card:hover .experience-card__media {
  transform: scale(1.05);
}

.experience-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 28, 46, 0.92) 0%, rgba(15, 28, 46, 0.25) 70%);
  z-index: 1;
}

.experience-card__body {
  position: relative;
  z-index: 2;
}

.experience-card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.experience-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.experience-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.5rem;
}

.experience-card__go {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.vc-welcome--compact blockquote p + p {
  display: none;
}

@media (max-width: 1024px) {
  .prog-pathways__grid,
  .cred-band__grid,
  .student-activities__grid,
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .research-highlights {
    grid-template-columns: 1fr;
  }

  .hero__toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--news .hero__controls {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero--news {
    min-height: min(88vh, 700px);
  }

  .hero__slide-content {
    padding: 2.5rem 0 11rem;
  }

  .hero__headline {
    max-width: none;
    font-size: clamp(1.5rem, 7.5vw, 2.25rem);
  }

  .hero__toolbar-inner {
    gap: 0.65rem;
  }

  .hero__dock {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 0.35rem;
  }

  .hero__dock::-webkit-scrollbar {
    display: none;
  }

  .hero__dock-link {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hero__controls-group {
    width: 100%;
    justify-content: center;
  }

  .prog-pathways {
    padding: 2.5rem 0;
  }

  .prog-path-card {
    min-height: auto;
    padding: 1.25rem;
  }

  .home-feed__col-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .announce-card {
    padding: 0.875rem 1rem;
  }

  .activity-cluster {
    padding: 1rem;
  }

  .activity-cluster__photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
  }

  .experience-card {
    min-height: 220px;
  }

  .prog-pathways__grid,
  .cred-band__grid,
  .student-activities__grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .home-news-item {
    grid-template-columns: 1fr;
  }

  .home-news-item__img {
    max-height: 160px;
    aspect-ratio: 16 / 9;
  }
}
