/* ==========================================================================
   Center of Excellence — Page Styles
   Font: Plus Jakarta Sans (loaded via Google Fonts in functions.php)
   Colors: approved palette from Figma
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
.coe-page {
  --coe-primary-blue: #2B7ACC;
  --coe-light-blue: #4A9FE5;
  --coe-pale-blue: #E8F1FA;
  --coe-dark: #111111;
  --coe-body: #3F4153;
  --coe-muted: #8B8C8D;
  --coe-white: #FFFFFF;
  --coe-off-white: #F9F9F9;
  --coe-border-light: #EBEBEB;
  --coe-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --coe-container: 1170px;
}

/* ---------- Reset page-builder spacing ---------- */
.coe-page #content.site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ---------- Hero ---------- */
.coe-hero {
  background: url('/wp-content/uploads/2024/10/pattern.jpg') center/cover no-repeat;
  padding: 48px 20px;
  font-family: var(--coe-font);
  text-align: center;
}

.coe-hero__inner {
  max-width: var(--coe-container);
  margin: 0 auto;
  padding: 0 15px;
}

.coe-hero__overline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--coe-font);
}

.coe-hero__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 38px;
  color: var(--coe-white) !important;
  margin: 0 0 12px;
  font-family: var(--coe-font);
}

.coe-hero__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-family: var(--coe-font);
}

/* ---------- Table of Contents (mobile only) ---------- */
.coe-toc {
  background: var(--coe-white);
  padding: 16px 20px;
  font-family: var(--coe-font);
}

.coe-toc__inner {
  max-width: var(--coe-container);
  margin: 0 auto;
  padding: 0 15px;
}

.coe-toc__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--coe-dark);
  margin: 0 0 10px;
}

.coe-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coe-toc__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--coe-border-light);
  text-decoration: none;
  color: inherit;
}

.coe-toc__item:last-child {
  border-bottom: none;
}

.coe-toc__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coe-primary-blue);
  flex-shrink: 0;
}

.coe-toc__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--coe-muted);
  min-width: 18px;
}

.coe-toc__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--coe-dark);
}

a.coe-toc__item:hover .coe-toc__name {
  color: var(--coe-primary-blue);
}

/* ---------- Centers Section ---------- */
.coe-centers {
  font-family: var(--coe-font);
  background: var(--coe-off-white);
  padding: 8px 0 32px;
}

/* Mobile: stacked cards */
.coe-center {
  background: var(--coe-white);
  border-radius: 10px;
  padding: 16px;
  margin: 0 16px 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.coe-center__inner {
  /* mobile: no special treatment */
}

.coe-center__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.coe-center__monogram {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--coe-pale-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coe-primary-blue);
  flex-shrink: 0;
}

.coe-center__monogram svg {
  width: 22px;
  height: 22px;
}

.coe-center__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--coe-dark);
  margin: 0;
  font-family: var(--coe-font);
}

.coe-center__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--coe-body);
  margin: 0 0 10px;
  font-family: var(--coe-font);
}

.coe-center__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.coe-center__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coe-center__loc {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--coe-body);
  color: var(--coe-white);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--coe-font);
}

.coe-center__sep {
  display: none;
}

.coe-center__cta {
  display: none;
}

.coe-center__content {
  /* no special styling on mobile */
}

/* ---------- Desktop (768px+) ---------- */
@media (min-width: 768px) {
  /* Hero — full-width textured bg, centered content */
  .coe-hero {
    padding: 64px 30px;
  }

  .coe-hero__overline {
    font-size: 14px;
    letter-spacing: 5px;
    margin-bottom: 16px;
  }

  .coe-hero__title {
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 16px;
  }

  .coe-hero__subtitle {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
  }

  /* TOC: hidden on desktop */
  .coe-toc {
    display: none;
  }

  /* Centers: constrained vertical blocks */
  .coe-centers {
    background: none;
    padding: 0;
  }

  .coe-center {
    border-radius: 0;
    margin: 0;
    padding: 56px 30px;
    box-shadow: none;
  }

  .coe-center:nth-child(odd) {
    background: var(--coe-white);
  }

  .coe-center:nth-child(even) {
    background: var(--coe-off-white);
    border-top: 1px solid var(--coe-border-light);
    border-bottom: 1px solid var(--coe-border-light);
  }

  .coe-center__inner {
    max-width: var(--coe-container);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }

  .coe-center__monogram {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .coe-center__monogram svg {
    width: 32px;
    height: 32px;
  }

  .coe-center__content {
    flex: 1;
    min-width: 0;
  }

  .coe-center__header {
    margin-bottom: 0;
  }

  .coe-center__title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .coe-center__desc {
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 16px;
  }

  .coe-center__footer {
    justify-content: flex-start;
    gap: 10px;
  }

  .coe-center__locations {
    gap: 10px;
  }

  .coe-center__loc {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
  }

  .coe-center__sep {
    display: none;
  }

  .coe-center__cta {
    display: none;
  }
}
