.scholarship-detail-page {
  --briefing-navy: #17365d;
  --briefing-blue: #0088cc;
  --briefing-sky: #eaf7fd;
  --briefing-ink: #24364b;
  --briefing-muted: #637386;
  --briefing-line: #d8e3ec;
  background: #f7f9fb;
  color: var(--briefing-ink);
}

.scholarship-detail-page .page-header {
  margin-bottom: 0;
}

.scholarship-detail-page .breadcrumb > li.fsl-school-siblings::before {
  content: none;
  padding: 0;
}

.scholarship-detail-page .breadcrumb > li.fsl-school-siblings {
  float: right;
}

.scholarship-detail-page .fsl-school-siblings-sep {
  margin: 0 8px;
  color: #adb5bd;
}

.scholarship-hero {
  padding: 24px 0 48px;
  background: #fff;
  border-bottom: 1px solid var(--briefing-line);
}

.scholarship-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--briefing-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.scholarship-hero-summary {
  max-width: 780px;
  margin: 0;
  color: #44576b;
  font-size: 18px;
  line-height: 1.65;
}

.scholarship-briefing {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #cfe1ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 54, 93, .10);
}

.scholarship-briefing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--briefing-navy);
  color: #fff;
}

.scholarship-briefing-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.scholarship-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, .13);
  font-size: 12px;
  font-weight: 700;
}

.scholarship-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8c4cf;
  content: '';
}

.scholarship-status.is-open::before { background: #48d597; }
.scholarship-status.is-upcoming::before { background: #ffd166; }
.scholarship-status.is-closed::before { background: #ff8f8f; }
.scholarship-status.is-varies::before,
.scholarship-status.is-annual::before { background: #7fd9ff; }

.scholarship-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.scholarship-fact {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid var(--briefing-line);
  border-bottom: 1px solid var(--briefing-line);
}

.scholarship-fact:nth-child(4n) { border-right: 0; }
.scholarship-fact:nth-last-child(-n + 4) { border-bottom: 0; }

.scholarship-fact dt {
  margin-bottom: 7px;
  color: var(--briefing-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.scholarship-fact dd {
  margin: 0;
  color: var(--briefing-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.scholarship-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: var(--briefing-sky);
}

.scholarship-action-row p {
  margin: 0;
  color: #3c566a;
  font-size: 13px;
  line-height: 1.5;
}

.scholarship-apply-button {
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 11px 18px;
  font-weight: 800;
}

.scholarship-content {
  padding-top: 44px;
  padding-bottom: 56px;
}

.scholarship-content-card {
  margin-bottom: 24px;
  border: 1px solid var(--briefing-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 54, 93, .05);
}

.scholarship-content-card-inner {
  padding: 26px 28px;
}

.scholarship-content-card h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: var(--briefing-navy);
  font-size: 23px;
  font-weight: 800;
}

.scholarship-content-card h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--briefing-blue);
  content: '';
}

.scholarship-content-card p,
.scholarship-content-card li {
  font-size: 15px;
  line-height: 1.72;
}

.scholarship-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scholarship-checklist li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 28px;
}

.scholarship-checklist li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--briefing-blue);
  content: '\2713';
  font-weight: 800;
}

.scholarship-sidebar-note {
  padding: 20px;
  border-left: 4px solid var(--briefing-blue);
  border-radius: 5px;
  background: #fff;
  color: #4b5e71;
  font-size: 13px;
  line-height: 1.65;
}

.scholarship-sidebar-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--briefing-navy);
}

.related-scholarships {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scholarship-detail-page .scholarships-section-title {
  position: relative;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  color: var(--briefing-navy);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.16;
}

.scholarship-detail-page .scholarships-section-title strong {
  font-weight: 800;
}

.scholarship-detail-page .scholarships-section-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  background: var(--briefing-blue);
  content: "";
}

.related-scholarship {
  display: block;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--briefing-line);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.related-scholarship:hover,
.related-scholarship:focus {
  border-color: #8fc8e7;
  color: inherit;
  box-shadow: 0 10px 24px rgba(23, 54, 93, .10);
  text-decoration: none;
  transform: translateY(-2px);
}

.related-scholarship h3 {
  margin: 8px 0 12px;
  color: var(--briefing-navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.related-scholarship-meta {
  color: var(--briefing-muted);
  font-size: 12px;
  line-height: 1.55;
}

.scholarship-detail-page a:focus,
.scholarship-detail-page button:focus {
  outline: 3px solid rgba(0, 136, 204, .32);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .scholarship-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scholarship-fact:nth-child(4n) { border-right: 1px solid var(--briefing-line); }
  .scholarship-fact:nth-child(2n) { border-right: 0; }
  .scholarship-fact:nth-last-child(-n + 4) { border-bottom: 1px solid var(--briefing-line); }
  .scholarship-fact:nth-last-child(-n + 2) { border-bottom: 0; }
  .related-scholarships { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .scholarship-detail-page .breadcrumb > li.fsl-school-siblings {
    display: block;
    float: none;
    margin-top: 8px;
  }

  .scholarship-hero { padding: 20px 0 34px; }
  .scholarship-hero-summary { font-size: 16px; }
  .scholarship-briefing-head,
  .scholarship-action-row { align-items: flex-start; flex-direction: column; }
  .scholarship-facts { grid-template-columns: 1fr; }
  .scholarship-fact,
  .scholarship-fact:nth-child(2n),
  .scholarship-fact:nth-child(4n) { border-right: 0; border-bottom: 1px solid var(--briefing-line); }
  .scholarship-fact:last-child { border-bottom: 0; }
  .scholarship-apply-button { width: 100%; text-align: center; }
  .scholarship-content { padding-top: 30px; padding-bottom: 40px; }
  .scholarship-content-card-inner { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .related-scholarship { transition: none; }
}
