:root {
  --white: #ffffff;
  --gold: #d0a242;
  --green: #00823f;
  --blue: #26286f;
  --dark-gray: #333333;
  --light-gray: #f9f9f9;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; background-color: var(--white); color: #333; }

/* Header and Navigation */
.branding { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
header { background: var(--white); border-bottom: 2px solid var(--blue); }
/* header logo + main site link */
.branding .logo-link { display: inline-flex; align-items: center; }
.branding .logo-link img { height: 50px; }
.branding .main-website-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}
.branding .main-website-link:hover { text-decoration: underline; }
nav { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; position: relative; }
nav img { height: 50px; }
/* full-width colored nav row */
.nav-row { background: var(--blue); }
.nav-row a { color: var(--white); }
.nav-row .menu-toggle { color: var(--white); }
.nav-row a.active { background: rgba(255,255,255,0.15); border-radius: 6px; }
.nav-row li { display: flex; align-items: center; }
.nav-row li a { padding: 6px 8px; display: inline-block; }
nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav li { margin-left: 20px; padding-right: 20px; border-right: 1px solid #ccc; }
nav li:last-child { border-right: none; }
nav a { color: var(--blue); text-decoration: none; font-weight: 500; position: relative; }
nav a::after { content: ""; position: absolute; width: 0; height: 2px; background: var(--gold); left: 0; bottom: -5px; transition: .3s; }
nav a:hover::after { width: 100%; }
nav a.active::after { width: 100%; }

.portal-btn {
  background: var(--gold);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.portal-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.nav-cta {
  border-right: none !important;
  padding-right: 0 !important;
  margin-left: 12px;
}
.nav-cta a::after { display: none; }
.nav-cta .portal-btn { white-space: nowrap; }

.site-title {
  text-align: center;
  padding: 10px;
  font-size: 1.3rem;
  background: var(--blue);
  color: var(--gold);
  font-weight: bold;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
  height: 25vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hero h1 { color: var(--gold); font-size: 2.5rem; margin-bottom: 10px; }
.hero p { max-width: 900px; margin-bottom: 20px; }
.hero-affiliation {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero-affiliation::before,
.hero-affiliation::after {
  content: "";
  display: block;
  width: min(340px, 70vw);
  height: 2px;
  margin: 10px auto;
  background: rgba(208,162,66,0.85);
  border-radius: 999px;
}
.hero-cta { box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
.btn {
  background: var(--gold);
  color: var(--blue);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: .3s;
  display: inline-block;
}
.btn:hover { background: var(--white); }
.btn.btn-small { padding: 8px 14px; border-radius: 8px; }

/* Multi-column grids (generic + Our Commitment) */
.three-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}
.three-columns div {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.three-columns h3 { margin-bottom: 15px; color: var(--blue); }
.three-columns img { max-width: 150px; border-radius: 8px; }
.three-columns p { text-align: left; }
.three-columns div:first-child p { text-align: justify; text-justify: inter-word; }
.three-columns div:first-child img {
  display: block;
  margin: 0 auto 12px;
}

.commitment-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 40px;
  background: var(--white);
}
.commitment-section .section-title {
  margin-bottom: 22px;
}
.commitment-section .three-columns {
  padding: 0;
  max-width: none;
  margin: 0;
}
.commitment-columns {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (min-width: 960px) {
  .commitment-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}
.commitment-col p {
  text-align: justify;
  text-justify: inter-word;
}
.commitment-col p + p {
  margin-top: 14px;
}

/* Content sections */
.content-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  background: var(--white);
}
.section-title {
  color: var(--blue);
  margin-bottom: 18px;
  text-align: center;
}
.content-section p { margin-bottom: 14px; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.content-card {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.content-card h3 { color: var(--blue); margin-bottom: 10px; }
.content-list {
  padding-left: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.content-list li { margin: 10px 0; }
.content-list.roman { list-style-type: lower-roman; }

/* Objectives + guidelines redesign */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.item-card {
  background: var(--light-gray);
  border: 1px solid rgba(38,40,111,0.10);
  border-left: 5px solid var(--gold);
  padding: 18px 18px 16px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.item-card h3 { color: var(--blue); margin-bottom: 8px; font-size: 1.05rem; }
.item-card p { margin: 0; color: #333; }

/* Our Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.team-card {
  background: var(--light-gray);
  border: 1px solid rgba(38,40,111,0.10);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  text-align: center;
}
.team-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid rgba(208,162,66,0.55);
  margin: 0 auto 12px;
  display: block;
}
.team-card h3 {
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.team-role {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 800;
}
.team-profile-btn { margin-top: 14px; width: 100%; box-sizing: border-box; cursor: pointer; }

.hidden { display: none !important; }

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.modal-overlay.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 28, 60, 0.55);
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  max-height: min(85vh, 900px);
  overflow: auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 24px 48px 22px 24px;
  border: 1px solid rgba(38,40,111,0.12);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(38,40,111,0.08);
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover {
  background: rgba(208,162,66,0.35);
}
.modal-profile-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 0 40px 14px 0;
}
.modal-profile-photo {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid rgba(208,162,66,0.55);
  display: block;
  background: rgba(38,40,111,0.06);
}
.modal-profile-heading {
  flex: 1;
  min-width: 0;
}
.modal-dialog h3#modal-profile-title {
  margin: 0 0 8px;
  padding-right: 0;
  color: var(--blue);
  font-size: 1.15rem;
  line-height: 1.35;
}
.modal-profile-role {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
}
.modal-profile-body {
  margin-top: 6px;
  clear: both;
}

@media (max-width: 520px) {
  .modal-profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 38px;
  }
  .modal-profile-heading {
    text-align: center;
  }
  .modal-profile-photo {
    width: 132px;
    height: 132px;
    margin-inline: auto;
  }
}

.modal-profile-body p {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
  color: #333;
  line-height: 1.6;
}
.modal-profile-body p:last-child { margin-bottom: 0; }
.modal-profile-external {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(38,40,111,0.1);
  text-align: center;
}

.accordion-list {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.accordion {
  background: var(--light-gray);
  border: 1px solid rgba(38,40,111,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "+";
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(208,162,66,0.20);
  color: var(--blue);
  font-weight: 900;
}
.accordion[open] summary::before { content: "–"; }
.accordion-body { padding: 0 16px 14px; }
.accordion-body p { margin: 0; }

/* Service Standards */
.services {
  padding: 60px 20px;
  background: #f5f5f5;
  max-width: 1200px;
  margin: auto;
}
.services h2 { text-align: center; margin-bottom: 30px; color: var(--blue); }
/* programs grid */
.programs-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 20px; 
}
.program-card { 
  background: var(--white); 
  border: 1px solid #e5e5e5; 
  border-radius: 10px; 
  padding: 20px; 
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.program-card h3 { color: var(--blue); margin-bottom: 10px; }
.program-card p { margin-bottom: 10px; }
.program-card a { font-weight: 600; color: var(--blue); }
.program-card .icon { 
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 8px;
  vertical-align: -2px;
}
.program-card .icon svg { width: 100%; height: 100%; fill: currentColor; color: var(--gold); }

/* Partners */
.partner-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

/* Adjust list separators and link colors when nav is on dark row */
.nav-row nav li { border-right: 1px solid rgba(255,255,255,0.3); }
.nav-row nav li:last-child { border-right: none; }

footer {
  background: var(--dark-gray);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none;
    background: var(--blue);
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    padding: 10px;
    z-index: 1000;
  }
  nav ul.active { display: flex; }
  nav .menu-toggle { display: block; cursor: pointer; background: transparent; border: 0; font-size: 1.4rem; line-height: 1; padding: 8px 10px; z-index: 1001; }
  nav li { border-right: none; padding: 10px 0; }
  .nav-cta { margin-left: 0; }
  .nav-cta .portal-btn { width: 100%; text-align: center; }
}
@media (min-width: 769px) { nav .menu-toggle { display: none; } }
