: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); }
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: 700px; margin-bottom: 20px; }
.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; }

/* Four columns */
.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; }

/* 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; }

.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; } }
