/* Homepage final design-QA corrections. Loaded after all earlier homepage layers.
   The Home page is the primary visual reference for the current global propagation pass. Where a
   shared semantic scheme has a compact inner-page default, this file may preserve an intentional
   Home-only variant without changing the shared semantic role. */

/* Shared homepage chapter rhythm. The Explore Ledra -> Prospective Students spacing is the
   reference: use the same dimensional token around equivalent standalone chapters. */
.home-page{
  --home-chapter-gap:clamp(62px,5.4vw,80px);
}

/* Hero slogan: retain the established editorial orange graphic treatment on one keyword. */
.home-page .edu-hero-copy h1 em{
  display:inline!important;
  margin:0!important;
  color:var(--ledra-orange)!important;
  font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  letter-spacing:-.035em!important;
}

/* Home pathway cards are the deliberately larger brand-page variant of the shared Route Card role.
   Preserve the user-approved Home geometry while inner-page Route Cards use the compact scheme. */
.home-page .edu-pathway-grid[data-ledra-scheme="route-cards"]>a{
  min-height:230px!important;
  padding:27px 30px!important;
}
.home-page .edu-pathway-grid[data-ledra-scheme="route-cards"]>a::after{
  top:28px!important;
  right:28px!important;
  font-size:22px!important;
}
.home-page .edu-pathway-grid[data-ledra-scheme="route-cards"]>a>span:first-child{
  font-size:14px!important;
  letter-spacing:.08em!important;
}
.home-page .edu-pathway-grid[data-ledra-scheme="route-cards"] h3{
  max-width:410px!important;
  margin:64px 0 12px!important;
  font-size:42px!important;
  font-weight:600!important;
  line-height:1.02!important;
}
.home-page .edu-pathway-grid[data-ledra-scheme="route-cards"] p{
  max-width:470px!important;
  font-size:17px!important;
  line-height:1.62!important;
}

/* Accreditation follows the prospective-student decision-card grammar.
   The Programme chapter previously contributed its own bottom padding, which stacked with
   Accreditation's top padding and doubled the visible gap. Remove only that preceding bottom
   padding; Accreditation then owns one identical chapter-gap token above and below. */
.home-page .edu-programmes{
  padding-bottom:0!important;
}
.home-page .home-accreditation{
  padding-top:var(--home-chapter-gap)!important;
  padding-bottom:var(--home-chapter-gap)!important;
}
.home-page .home-accreditation-grid{
  grid-template-columns:1fr!important;
}
.home-page .home-accreditation-grid>a{
  min-height:245px!important;
}
.home-page .home-accreditation-grid h3{
  max-width:760px!important;
}
.home-page .home-accreditation-grid p{
  max-width:820px!important;
}
/* Do not add a second bespoke margin after Accreditation; its bottom chapter padding is the gap. */
.home-page .home-accreditation + .edu-route-strip{
  margin-top:0!important;
}

/* Campus overlay is now a useful chapter rather than only a decorative image link. */
.home-page .edu-campus-overlay{
  left:52px!important;
  right:52px!important;
  max-width:none!important;
}
.home-page .edu-campus-overlay h2{
  max-width:620px!important;
}
.home-page .edu-campus-location{
  max-width:520px!important;
  margin:16px 0 0!important;
  color:rgba(255,255,255,.78)!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.home-page .edu-campus-actions{
  display:flex!important;
  gap:10px!important;
  align-items:stretch!important;
  margin-top:22px!important;
}
.home-page .edu-campus-actions a{
  display:inline-flex!important;
  min-height:44px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 16px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1!important;
  text-decoration:none!important;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease!important;
}
.home-page .edu-campus-actions .edu-campus-primary{
  border-color:var(--ledra-orange)!important;
  background:var(--ledra-orange)!important;
}
.home-page .edu-campus-actions .edu-campus-secondary{background:transparent!important}
.home-page .edu-campus-actions a:hover,
.home-page .edu-campus-actions a:focus-visible{
  border-color:#fff!important;
  background:#fff!important;
  color:var(--ledra-blue)!important;
  outline:0!important;
}
.home-page .edu-campus-actions .edu-campus-primary span{margin-left:10px!important}

/* Footer taxonomy headings should be visually consistent. */
.site-footer .footer-grid>div:last-child>h3{
  color:var(--ledra-orange)!important;
}

@media(max-width:900px){
  .home-page .edu-pathway-grid[data-ledra-scheme="route-cards"] h3{font-size:36px!important}
}

@media(max-width:780px){
  .home-page{
    --home-chapter-gap:48px;
  }
  .home-page .edu-campus-overlay{
    left:28px!important;
    right:28px!important;
  }
  .home-page .edu-campus-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:min(100%,390px)!important;
  }
  .home-page .edu-campus-actions a{width:100%!important}
  .home-page .home-accreditation-grid>a{
    min-height:220px!important;
  }
}

@media(max-width:650px){
  .home-page .edu-pathway-grid[data-ledra-scheme="route-cards"]>a{
    min-height:0!important;
    padding:26px!important;
  }
  .home-page .edu-pathway-grid[data-ledra-scheme="route-cards"] h3{
    margin:58px 0 10px!important;
    font-size:33px!important;
  }
  .home-page .edu-pathway-grid[data-ledra-scheme="route-cards"] p{font-size:16px!important}
}

@media(max-width:560px){
  .home-page{
    --home-chapter-gap:58px;
  }
}

@media(max-width:520px){
  .home-page .edu-campus-actions{grid-template-columns:1fr!important;width:100%!important}
}


/* Sunderland partnership — Home editorial ratio, restrained native portrait and spaced CTAs. */
.home-page .home-sunderland-partnership{
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr)!important;
  column-gap:clamp(48px,6vw,88px)!important;
  align-items:center!important;
  padding-top:58px!important;
  padding-bottom:58px!important;
  border-top:1px solid var(--ledra-scheme-line,#D7DCE5)!important;
  border-bottom:1px solid var(--ledra-scheme-line,#D7DCE5)!important;
}
/* Match the approved Home display hierarchy: this isolated heading was inheriting
   the legacy 400-weight base H2 instead of the 600-weight Inter Tight used by
   Home's other editorial section headlines. Preserve geometry and colours. */
.home-page .home-sunderland-partnership h2{
  font-family:var(--ledra-display)!important;
  font-weight:600!important;
}
.home-page .home-sunderland-partnership>div:first-child{align-self:center!important}
.home-page .home-sunderland-partnership .content-image{
  justify-self:center!important;
  align-self:center!important;
  width:min(100%,300px)!important;
  height:400px!important;
  max-height:400px!important;
  min-height:0!important;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.home-page .home-sunderland-partnership .content-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:400px!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
.home-page .home-sunderland-partnership .home-derived-actions{
  display:flex!important;
  gap:18px 24px!important;
  margin-top:28px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}
.home-page .home-sunderland-partnership .home-derived-actions .edu-solid-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  min-height:48px!important;
  padding:0 20px!important;
  background:var(--ledra-blue,#14184F)!important;
  border:1px solid var(--ledra-blue,#14184F)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:750!important;
  text-decoration:none!important;
  transition:background-color .2s ease,border-color .2s ease!important;
}
.home-page .home-sunderland-partnership .home-derived-actions .edu-solid-link:hover,
.home-page .home-sunderland-partnership .home-derived-actions .edu-solid-link:focus-visible{
  background:var(--ledra-orange,#E67E22)!important;
  border-color:var(--ledra-orange,#E67E22)!important;
  color:#fff!important;
}
.home-page .home-sunderland-partnership .home-derived-actions .edu-text-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:12px!important;
  margin:0!important;
  padding-bottom:4px!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.4!important;
  text-decoration:none!important;
  color:var(--ledra-blue,#14184F)!important;
}
.home-page .home-sunderland-partnership .home-derived-actions .edu-text-link:hover,
.home-page .home-sunderland-partnership .home-derived-actions .edu-text-link:focus-visible{color:var(--ledra-orange,#E67E22)!important}
@media(max-width:900px){
  .home-page .home-sunderland-partnership{grid-template-columns:1fr!important;gap:30px!important;padding-block:54px!important}
  .home-page .home-sunderland-partnership .content-image{justify-self:start!important}
}
@media(max-width:600px){
  .home-page .home-sunderland-partnership .home-derived-actions{align-items:flex-start!important;flex-direction:column!important}
  .home-page .home-sunderland-partnership .content-image{height:360px!important;max-height:360px!important;width:270px!important}
}
