/* Nigeria 2027 programme: coordinated homepage and programmes-page editorial cards.
   Loaded last so the existing Ghana and Quorum designs remain intact. */

/* Home: an alternating photo-led feature beneath Ghana */
body.home-page #expeditions .home-programme-grid{
  grid-template-columns:minmax(0,1fr);
  gap:25px;
}
body.home-page #expeditions .country-featured-nigeria{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,53%) minmax(0,47%);
  background:#e1eee8;
  min-height:465px;
  border:0;
  overflow:hidden;
  box-shadow:none;
  transform:none;
}
body.home-page #expeditions .country-featured-nigeria .country-photo{
  grid-column:2;
  grid-row:1;
  position:relative;
  width:100%;
  height:100%;
  min-height:465px;
  aspect-ratio:auto;
  background:#dce8e2;
  overflow:hidden;
}
body.home-page #expeditions .country-featured-nigeria .country-photo img{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 46%;
  transition:transform .45s ease;
}
body.home-page #expeditions .country-featured-nigeria:hover .country-photo img{transform:scale(1.025)}
body.home-page #expeditions .country-featured-nigeria .country-info{
  grid-column:1;
  grid-row:1;
  align-items:flex-start;
  justify-content:center;
  padding:45px clamp(28px,5vw,75px);
  background:#e1eee8;
  min-width:0;
}
body.home-page #expeditions .country-featured-nigeria .country-meta{
  padding:0 0 16px;
  margin:0 0 19px;
  border-bottom:1px solid #accabd;
  color:#18645b;
}
body.home-page #expeditions .country-featured-nigeria .country-meta span{font-weight:700}
body.home-page #expeditions .country-featured-nigeria .programme-type{
  font:700 10px/1.5 'DM Sans',sans-serif!important;
  letter-spacing:.11em;
  color:#18665b!important;
  margin:0 0 13px!important;
}
body.home-page #expeditions .country-featured-nigeria h3{
  font:700 clamp(34px,3.5vw,57px)/1.06 'Manrope',sans-serif;
  letter-spacing:-.055em;
  margin:0 0 14px;
  color:#073f3b;
  max-width:600px;
}
body.home-page #expeditions .country-featured-nigeria .programme-topic{
  font:600 clamp(17px,1.65vw,23px)/1.36 'Manrope',sans-serif!important;
  color:#16564e!important;
  max-width:550px;
  margin:0 0 12px!important;
}
body.home-page #expeditions .country-featured-nigeria .programme-location{
  font:600 12px/1.6 'DM Sans',sans-serif!important;
  color:#50776d!important;
  margin:0 0 7px!important;
}
body.home-page #expeditions .country-featured-nigeria .country-question{
  font:400 13px/1.7 'DM Sans',sans-serif!important;
  color:#355f53!important;
  max-width:560px;
  margin:9px 0 12px!important;
}
body.home-page #expeditions .country-featured-nigeria .programme-academic{
  font:400 12px/1.6 'DM Sans',sans-serif!important;
  color:#46675d!important;
  max-width:540px;
  margin:0 0 23px!important;
}
body.home-page #expeditions .country-featured-nigeria .text-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:flex-start!important;
  width:auto!important;
  min-height:48px;
  max-width:100%;
  padding:13px 19px!important;
  margin:0!important;
  border:1px solid #0b7a78!important;
  background:#0b7a78!important;
  color:white!important;
  text-decoration:none;
  font:700 12px/1.4 'DM Sans',sans-serif;
}
body.home-page #expeditions .country-featured-nigeria .text-link:hover{background:#075c59!important}
body.home-page #expeditions .home-next-locations{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Programmes: Ghana and Nigeria are peer cards; future destinations run below both. */
body.programmes-page .pr-destinations .pr-confirmed-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}
body.programmes-page .pr-confirmed-grid .destination-nigeria{min-width:0;background:#e1eee8}
body.programmes-page .pr-confirmed-grid .destination-nigeria .dest-nigeria-local{
  background:url('/images/lagos-civic-centre-towers-v422.webp') center 43%/cover no-repeat;
}
body.programmes-page .pr-confirmed-grid .destination-nigeria h3{
  font-size:clamp(27px,3vw,37px);
  line-height:1.15;
  overflow-wrap:normal;
}
body.programmes-page .pr-confirmed-grid .destination-nigeria .destination-card-body{
  padding:27px 26px 29px;
}
body.programmes-page .pr-destinations .pr-next-strip{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  align-items:start;
  column-gap:35px;
  min-height:0;
  padding:30px 36px;
}
body.programmes-page .pr-next-strip .exp-section-label,
body.programmes-page .pr-next-strip h3,
body.programmes-page .pr-next-strip>p:not(.exp-section-label){grid-column:1}
body.programmes-page .pr-next-strip .pr-next-cities{grid-column:2;grid-row:1/4;margin:5px 0 0}
body.programmes-page .pr-next-strip>a{grid-column:1;margin-top:12px;justify-self:start}

/* Tablet: keep the Nigeria feature readable without compressing the copy. */
@media(max-width:1050px){
  body.home-page #expeditions .country-featured-nigeria{
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  body.home-page #expeditions .country-featured-nigeria .country-photo{
    order:0;
    width:100%;
    min-height:0;
    height:auto;
    aspect-ratio:16/9;
  }
  body.home-page #expeditions .country-featured-nigeria .country-info{
    order:1;
    padding:32px 7% 40px;
  }
  body.programmes-page .pr-destinations .pr-confirmed-grid{grid-template-columns:1fr}
  body.programmes-page .pr-next-strip{grid-column:1}
}

/* Phone: honour the 6% section gutters introduced in v319. */
@media(max-width:700px){
  body.home-page #expeditions .home-programme-grid{
    display:flex!important;
    flex-direction:column!important;
    gap:20px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.home-page #expeditions .country-featured-nigeria{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    min-height:0!important;
    border:0!important;
    background:transparent!important;
    overflow:hidden!important;
    box-shadow:none!important;
  }
  body.home-page #expeditions .country-featured-nigeria .country-photo{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    width:100%!important;
    aspect-ratio:16/10!important;
    margin:0!important;
  }
  body.home-page #expeditions .country-featured-nigeria .country-info{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    padding:28px 22px 32px!important;
    background:#e1eee8!important;
  }
  body.home-page #expeditions .country-featured-nigeria .country-meta{
    margin-bottom:17px!important;
    padding-bottom:14px!important;
  }
  body.home-page #expeditions .country-featured-nigeria .country-meta span{font-size:9px!important}
  body.home-page #expeditions .country-featured-nigeria h3{
    font-size:clamp(30px,8vw,40px)!important;
    line-height:1.11!important;
    margin-bottom:13px!important;
    letter-spacing:-.05em!important;
  }
  body.home-page #expeditions .country-featured-nigeria .programme-topic{
    font-size:16px!important;
    line-height:1.38!important;
  }
  body.home-page #expeditions .country-featured-nigeria .country-question,
  body.home-page #expeditions .country-featured-nigeria .programme-academic{
    font-size:12px!important;
    line-height:1.65!important;
  }
  body.home-page #expeditions .country-featured-nigeria .text-link{
    width:100%!important;
    align-self:stretch!important;
    min-height:50px!important;
  }
  body.home-page #expeditions .home-next-locations{grid-template-columns:1fr!important}
  body.programmes-page .pr-destinations .pr-confirmed-grid{grid-template-columns:1fr!important;gap:18px!important}
  body.programmes-page .pr-confirmed-grid .destination-nigeria .destination-card-body{padding:23px 20px 27px!important}
  body.programmes-page .pr-confirmed-grid .destination-nigeria h3{font-size:30px!important}
  body.programmes-page .pr-destinations .pr-next-strip{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    padding:25px 22px!important;
  }
  body.programmes-page .pr-next-strip .pr-next-cities{margin:12px 0 18px}
}
@media(min-width:701px) and (max-width:1050px){
  body.programmes-page .pr-destinations .pr-next-strip{display:flex;flex-direction:column;gap:0}
  body.home-page #expeditions .home-next-locations{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  body.home-page #expeditions .country-featured-nigeria .country-photo img{transition:none!important}
}