:root {
  --ink: #1b1b2f;
  --muted: #66667a;
  --line: #d9d9e3;
  --paper: #ffffff;
  --soft: #f4f1fa;

  /* UiTM Colours */
  --uitm: #5b2d90;
  --uitm-dark: #32174d;
  --uitm-light: #7b4db3;
  --gold: #d4a017;
  --teal: #00838f;
  --rose: #c2185b;

  --shadow: 0 18px 55px rgba(91, 45, 144, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* TOP BAR */
.utility-bar {
  background: var(--uitm-dark);
  color: #ffffff;
  font-size: 13px;
}

.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.quick-links {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.quick-links a {
  opacity: 0.9;
}

.quick-links a:hover {
  color: var(--gold);
}

/* NAVIGATION */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to right, #ffffff, #f7f2ff);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--uitm);
}

.brand img {
  width: 178px;
  height: auto;
}

.brand span {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  color: #353445;
}

.nav-links a:hover {
  color: var(--uitm);
}

/* BUTTONS */
.login-open,
.button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-open,
.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--uitm), var(--uitm-light));
}

.login-open:hover,
.button.primary:hover {
  background: linear-gradient(135deg, var(--uitm-dark), var(--uitm));
  transform: translateY(-2px);
  transition: 0.3s;
}

.login-open {
  padding: 10px 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--uitm-dark);
}

/* HERO */
.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(50, 23, 77, 0.95) 0%, rgba(91, 45, 144, 0.78) 48%, rgba(0, 131, 143, 0.52) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 84px 0 124px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* NOTICE */
.notice-band {
  background: linear-gradient(135deg, var(--uitm-dark), var(--uitm));
  color: #ffffff;
  transform: translateY(-48px);
  margin-bottom: -48px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.notice-grid article {
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.notice-grid strong,
.notice-grid span {
  display: block;
}

.notice-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

/* SECTIONS */
.section {
  padding: 88px 0;
}

.section h2 {
  margin: 0 0 22px;
  color: var(--uitm);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}

.about-section p {
  color: var(--muted);
}

/* LEADER CARD */
.leader-panel {
  padding: 28px;
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.leader-panel h3 {
  margin: 0 0 12px;
  color: var(--uitm);
  font-size: 18px;
}

.leader-name {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

dl,
dd {
  margin: 0;
}

.leader-panel div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  font-weight: 700;
}

/* CARDS */
.specialisations,
.outcomes {
  background: var(--soft);
}

.specialisation-grid,
.programme-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.specialisation-grid article,
.programme-grid article,
.stats-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--uitm);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(91, 45, 144, 0.08);
}

.specialisation-grid article:hover,
.programme-grid article:hover,
.stats-grid article:hover {
  transform: translateY(-4px);
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.specialisation-grid span {
  color: var(--rose);
  font-weight: 800;
}

.specialisation-grid h3,
.programme-grid h3 {
  margin: 18px 0 10px;
  color: var(--uitm);
  font-size: 20px;
  line-height: 1.25;
}

.specialisation-grid p,
.programme-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.text-link,
.programme-grid a,
.footer-links a,
address a {
  color: var(--teal);
  font-weight: 800;
}

.text-link:hover,
.programme-grid a:hover,
.footer-links a:hover,
address a:hover {
  color: var(--gold);
}

.programme-grid article {
  display: flex;
  flex-direction: column;
}

.programme-grid a {
  margin-top: auto;
}

/* NEWS SECTION */
.news-section {
  background: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(91, 45, 144, 0.08);
}

.news-card:hover {
  transform: translateY(-4px);
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.news-image {
  height: 190px;
  overflow: hidden;
  background: var(--soft);
}

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

.news-card:hover .news-image img {
  transform: scale(1.05);
  transition: 0.4s;
}

.news-content {
  padding: 24px;
}

.news-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-content h3 {
  margin: 0 0 12px;
  color: var(--uitm);
  font-size: 21px;
  line-height: 1.3;
}

.news-content p {
  margin: 0 0 18px;
  color: var(--muted);
}

.news-content a {
  color: var(--teal);
  font-weight: 800;
}

.news-content a:hover {
  color: var(--gold);
}

/* VISION SECTION */
.vision-section {
  background: linear-gradient(135deg, var(--uitm-dark), var(--uitm));
  color: #ffffff;
}

.vision-section h2 {
  color: #ffffff;
}

.tab-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
}

.tabs {
  display: grid;
  gap: 10px;
  align-self: start;
}

.tab {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tab.active {
  color: var(--uitm-dark);
  background: var(--gold);
  border-color: var(--gold);
}

.tab-panel {
  display: none;
  max-width: 790px;
}

.tab-panel.active {
  display: block;
}

.tab-panel p,
.tab-panel li {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

/* OUTCOMES */
.outcome-layout {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 24px;
}

.peo-card {
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--uitm-dark), var(--uitm));
}

.peo-card h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: 24px;
}

.peo-card li {
  margin-bottom: 12px;
}

.po-list {
  display: grid;
  gap: 12px;
}

.po-list article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #ffffff;
}

.po-list strong {
  color: var(--uitm);
  font-size: 20px;
}

/* STATS */
.stats-section {
  padding: 64px 0;
}

.stats-grid article {
  min-height: 150px;
}

.stats-grid span {
  display: block;
  color: var(--uitm);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.stats-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  padding: 64px 0 24px;
  color: #ffffff;
  background: var(--uitm-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #ffffff;
}

address,
.footer-links {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* LOGIN DIALOG */
.login-dialog {
  width: min(420px, calc(100% - 30px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
}

.login-dialog::backdrop {
  background: rgba(18, 12, 28, 0.72);
}

.login-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 34px;
  background: #ffffff;
}

.login-panel h2 {
  margin: 0;
  color: var(--uitm);
  font-size: 34px;
}

.login-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.login-panel input,
.login-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #ffffff;
}

.login-panel input:focus,
.login-panel select:focus {
  outline: 2px solid rgba(91, 45, 144, 0.25);
  border-color: var(--uitm);
}

.show-password {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.show-password input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.login-actions a {
  color: var(--teal);
}

.close-login {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--uitm-dark);
  font-size: 22px;
  cursor: pointer;
}

.close-login:hover {
  background: var(--uitm);
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .utility-inner,
  .quick-links {
    flex-wrap: wrap;
  }

  .brand img {
    width: 132px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .notice-grid,
  .two-column,
  .specialisation-grid,
  .programme-grid,
  .news-grid,
  .tab-shell,
  .outcome-layout,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .notice-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .copyright {
    display: block;
  }
}

@media (max-width: 560px) {
  .utility-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
    gap: 6px;
  }

  .quick-links {
    margin-left: 0;
  }

  .hero-content {
    padding-top: 64px;
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .po-list article {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 190px;
  }
}