/* ==========================================================
   Graduate degrees and programs — VCU College of Engineering
   All colors live here. Swap values, nothing else changes.
   ========================================================== */
:root {
  /* VCU brand palette */
  --vcu-gold: #ffb300;
  --vcu-black: #000000;
  --vcu-white: #ffffff;
  --vcu-gray: #dedede;
  --vcu-gold-tint: #ffe199;
  --vcu-dark-gray: #63656a;
  --vcu-light-gray: #ececec;

  /* VCU brand typography */
  --font-display: "Merriweather", serif;
  --font-body: "Roboto", sans-serif;
}

/* ---------- Base ---------- */
/* No page wrapper needed: base styles apply inside each top-level gd- block */
.gd-hero,
.gd-jump,
.gd-section,
.gd-cta,
.gd-updated {
  color: var(--vcu-black);
  font-family: var(--font-body);
  line-height: 1.55;
}
:is(.gd-hero, .gd-jump, .gd-section, .gd-cta, .gd-updated) :is(h1, h2, h3) {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
.gd-faq__item h3,
.gd-callout h3 {
  font-family: var(--font-body);
}
:is(.gd-hero, .gd-jump, .gd-section, .gd-cta, .gd-updated) p {
  margin: 0 0 1em;
}
:is(.gd-hero, .gd-jump, .gd-section, .gd-cta, .gd-updated) a {
  color: inherit;
}
:is(.gd-hero, .gd-jump, .gd-section, .gd-cta, .gd-updated) img {
  max-width: 100%;
  height: auto;
  display: block;
}
:is(.gd-hero, .gd-jump, .gd-section, .gd-cta, .gd-updated) ul {
  list-style: none;
  margin: 0;
  padding: 0;
} 

.gd-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.gd-section {
  padding: 56px 0;
}
.gd-section--gray {
  background: var(--vcu-light-gray);
}
.gd-section--black {
  background: var(--vcu-black);
  color: var(--vcu-white);
}
.gd-section--gold {
  background: var(--vcu-gold);
}

.gd-black-bg {
  background: var(--vcu-black) !important;
  color: var(--vcu-white);
}

/* Small all-caps label (degree type, eyebrows) */
.gd-label,
.gd-eyebrow {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.gd-label {
  color: var(--vcu-dark-gray);
}
.gd-eyebrow {
  color: var(--vcu-gold);
}

/* Section heading with short gold bar above */
.gd-heading {
  font-size: 2rem;
}
.gd-heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--vcu-gold);
  margin-bottom: 16px;
}

/* Gold-underlined text link */
.gd-link,
p.gd-link a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--vcu-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.gd-link:hover,
p.gd-link a:hover,
.gd-link:focus,
p.gd-link a:focus {
  background: var(--vcu-gold);
  color: var(--vcu-black) !important;
}

/* ---------- Page Layout Overrides ----------*/

.cwf-grid--page-layout {
  max-width: 100%;
  margin: 1em auto 0;
  padding: 0.5rem 0 0;
}

@media (min-width: 1400px) {
  .cwf-grid--page-layout {
    --cwf-grid--grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "main main";
  }
}

.cwf-grid--page-layout main {
  padding: 0;
}

.cwf-grid--page-layout main .cwf-breadcrumb {
  padding: 0 2em;
  margin: 0 auto;
  max-width: 1500px;
}

/* ---------- Buttons ---------- */
.gd-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gd-btn {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  background: var(--vcu-gold);
  color: var(--vcu-black) !important;
  border: 2px solid var(--vcu-gold);
}
.gd-btn:hover,
.gd-btn:focus {
  background: var(--vcu-gold-tint);
  border-color: var(--vcu-gold-tint);
}
.gd-btn--outline {
  background: transparent;
  color: var(--vcu-white) !important;
  border-color: var(--vcu-white);
}
.gd-btn--outline:hover,
.gd-btn--outline:focus {
  background: var(--vcu-white);
  color: var(--vcu-black) !important;
  border-color: var(--vcu-white);
}
.gd-btn--dark {
  background: var(--vcu-black);
  color: var(--vcu-white) !important;
  border-color: var(--vcu-black);
}
.gd-btn--dark:hover,
.gd-btn--dark:focus {
  background: var(--vcu-white);
  color: var(--vcu-black) !important;
  border-color: var(--vcu-black);
}
.gd-btn--line {
  background: transparent;
  border-color: var(--vcu-black);
}
.gd-btn--line:hover,
.gd-btn--line:focus {
  background: var(--vcu-black);
  color: var(--vcu-white) !important;
  border-color: var(--vcu-black);
}
/* ---------- Hero ---------- */
.gd-hero {
  background-image: url('/media/engineering/images/egr/ERBfront.jpg');
  background-size: cover;
  background-position: center;
  border: 0;
}
.gd-hero .plugin-card__container {
  background-color: rgba(0, 0, 0, 0.75);
  width: 100%;
}
.gd-hero .plugin-card__body {
  color: var(--vcu-white) !important;
  padding: 4em 2em;
  max-width: 1500px;
  margin: 0 auto;
}
.gd-hero .gd-eyebrow {
  color: var(--vcu-gold);
}
.gd-hero h1 {
  font-size: 2.75rem;
}
.gd-hero__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}
.gd-hero a {
  color: var(--vcu-white);
}
.gd-stats {
  border-left: 4px solid var(--vcu-gold);
  padding-left: 20px !important;
}
.gd-stats li {
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.gd-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

/* ---------- Jump links ---------- */
.gd-jump {
  padding: 2em 0 1em;
}
.gd-jump .gd-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.gd-jump__label {
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 !important;
}
.gd-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gd-pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--vcu-black);
  border-radius: 999px;
}
.gd-pill:hover,
.gd-pill:focus {
  background: var(--vcu-gold-tint);
  border: 2px solid var(--vcu-black);
  color: var(--vcu-black) !important;
}
.gd-pill.gd-is-active {
  background: var(--vcu-black);
  color: var(--vcu-white) !important;
}

/* Hidden by the interest filter */
.gd-is-hidden {
  display: none !important;
}

/* ---------- Program cards ---------- */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* If a CMS plugin wraps each card in its own div, keep cards equal height */
.gd-grid > :not(.gd-card) {
  display: flex;
  flex-direction: column;
}
.gd-grid > :not(.gd-card) > .gd-card {
  flex: 1;
}
.gd-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vcu-gray);
  background: var(--vcu-white);
}
.gd-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gd-card__body,
.gd-card .plugin-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  font-size: 0.95rem;
}
.gd-card__title {
  font-size: 1.35rem !important;
  padding: 5px 0;
}
.gd-card__title a {
  text-decoration: none !important;
  font-weight: 600 !important;
}
.gd-card__title a:hover,
.gd-card__title a:focus {
  color: var(--vcu-dark-gray);
}
.gd-card__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--vcu-dark-gray);
  padding: 0;
}

.gd-card p a {
  text-decoration-color: var(--vcu-gold) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.gd-card p a:hover,
.gd-card p a:focus {
  background: var(--vcu-gold);
  color: var(--vcu-black) !important;
}

/* Category tag at the bottom of each card */
.gd-tag {
  align-self: flex-start;
  margin: 8px 0 0 !important;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--vcu-light-gray);
  border-left: 3px solid var(--vcu-gold);
}

/* ---------- Ph.D. ---------- */
#phd-programs .gd-split {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 40px;
}
.gd-callout {
  background: var(--vcu-black);
  color: var(--vcu-white);
  padding: 24px;
  border-top: 4px solid var(--vcu-gold);
}
.gd-callout h3 {
  font-size: 1.1rem;
}
.gd-callout a:hover {
  color: var(--vcu-white) !important;
}
.gd-phd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
.gd-phd__item {
  padding: 1em;
  border: 1px solid var(--vcu-gray);
  background: var(--vcu-white);
  font-size: 0.95rem;
}
.gd-phd__item h3 {
  font-size: 1.25rem;
}

/* ---------- FAQ ---------- */
.gd-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.gd-faq__item {
  border-bottom: 1px solid var(--vcu-dark-gray);
}
.gd-faq__item:first-child {
  border-top: 1px solid var(--vcu-dark-gray);
}
/* The script adds a <button> inside each question and the .gd-faq--js class.
   Without the script, every answer simply stays open. */
.gd-faq__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gd-faq__btn::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.gd-faq__btn[aria-expanded="true"]::after {
  content: "\2212";
}
.gd-faq__btn:focus-visible {
  outline: 3px solid var(--vcu-gold);
  outline-offset: 2px;
}
.gd-faq--js .gd-faq__a {
  display: none;
}
.gd-faq--js .gd-faq__a.gd-is-open {
  display: block;
}
.gd-faq__item h3 {
  font-size: 1.05rem;
  margin: 0 !important;
  padding: 0.5em 0;
}
.gd-faq:not(.gd-faq--js) .gd-faq__q {
  padding-top: 18px;
}
.gd-faq__item p {
  padding-bottom: 8px;
}

/* ---------- Closing CTA ---------- */
.gd-cta {
  background: var(--vcu-gold);
  padding: 40px 0;
}
.gd-cta__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.gd-cta h2 {
  font-size: 1.75rem;
}
.gd-cta p {
  margin-bottom: 0;
}
.gd-updated {
  font-size: 0.8rem;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.gd-cta .gd-btn--line,
.gd-cta .gd-btn--dark {
  border-bottom: 2px solid var(--vcu-black) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .gd-grid,
  .gd-phd {
    grid-template-columns: repeat(2, 1fr);
  }
  .gd-hero__inner,
  .gd-split,
  #phd-programs .gd-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .gd-grid,
  .gd-phd {
    grid-template-columns: 1fr;
  }
  .gd-hero h1 {
    font-size: 2.1rem;
  }
  .gd-heading {
    font-size: 1.6rem;
  }
}
