:root {
  /* New palette derived from the updated logos – WCAG focused */
  --navy: #1A365D;
  --navy-dark: #12253F;
  --teal: #0F766E;
  --teal-light: #14B8A6;
  --gold: #D69E2E;
  --gold-dark: #B7791F;
  --charcoal: #2D3748;
  --gray: #4A5568;
  --light: #F7FAFC;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--light);
}

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

a:hover {
  color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--navy-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 72px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: rgba(255,255,255,0.92);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--teal);
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #0F4C5C 100%);
  color: white;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--light);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.93;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: #E8B84A;
  box-shadow: 0 6px 20px rgba(214, 158, 46, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.65);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-dark {
  background: var(--navy-dark);
  color: white;
}

.section-dark .section-title {
  color: var(--gold);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 54, 93, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--teal);
}

.faq-question .icon {
  transition: transform 0.25s;
  color: var(--gold);
  font-size: 1.2rem;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.35rem 1.25rem;
  color: var(--gray);
  border-top: 1px solid rgba(26, 54, 93, 0.08);
  padding-top: 1rem;
}

/* News */
.news-grid {
  display: grid;
  gap: 1.75rem;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 140px 1fr;
}

@media (max-width: 640px) {
  .news-card {
    grid-template-columns: 1fr;
  }
}

.news-date {
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-weight: 700;
}

.news-date .day {
  font-size: 1.8rem;
  line-height: 1;
}

.news-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.news-body {
  padding: 1.35rem 1.5rem;
}

.news-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.news-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.news-tag {
  display: inline-block;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Resources list */
.resource-list {
  list-style: none;
}

.resource-item {
  background: white;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.resource-item .badge {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}

.resource-item h4 {
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.resource-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Institution logos area */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.logo-strip .inst-logo {
  background: white;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  min-width: 140px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.88);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }

.highlight-box {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.05), rgba(15, 118, 110, 0.07));
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Page header for inner pages */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 3rem 0 2.5rem;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.92;
  max-width: 600px;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: rgba(255,255,255,0.9);
}
