/* Portal page styles */
:root {
  --plan-blue: #0b4f9c;
  --plan-blue-dark: #073a73;
  --plan-yellow: #ffc20e;
  --page-bg: #f2f6fb;
  --text: #1d2b3a;
  --muted: #5b6b7c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5%;
  background: #fff;
  border-bottom: 1px solid #e1e8f0;
}

.topbar img {
  display: block;
  height: 56px;
  width: auto;
}

.topbar-tag {
  font-weight: 900;
  color: var(--plan-blue);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero {
  padding: 56px 5% 64px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--plan-blue-dark) 0%, var(--plan-blue) 60%, #1a7fd1 100%);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.hero p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plan-yellow);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 16px;
}

.section {
  margin-bottom: 40px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--plan-blue-dark);
}

.section-title i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

/* Section colour themes */
.sec-hr       { --accent: #0b4f9c; --tint: #e3edfa; }
.sec-finance  { --accent: #c75b12; --tint: #fcefe4; }
.sec-programs { --accent: #00857c; --tint: #e0f4f2; }
.sec-it       { --accent: #6a3fa0; --tint: #efe9f7; }

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(16, 42, 67, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 42, 67, .14);
}

.card[hidden] {
  display: none;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
  font-size: 1.4rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card p {
  margin: 0 0 18px;
  font-size: .92rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s ease;
}

.btn:hover {
  filter: brightness(.88);
}

.btn:focus-visible {
  outline: 3px solid var(--plan-yellow);
  outline-offset: 2px;
}

/* Footer */
.copyright {
  padding: 20px;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid #e1e8f0;
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    text-align: center;
  }

  .topbar img {
    height: 44px;
  }
}
