/* ------- Smooth scroll behaviour ------- */
html {
  scroll-behavior: smooth;
}

/* ------- Buttons ------- */
/* Buttons with long arrow */
.button a {
  display: inline-flex;            
  align-items: center;              
  justify-content: space-between;   
  padding: 0 !important;
  background: none !important;      
  color: #000 !important;         
  border: none!important;
  position: relative;               
  text-decoration: underline !important;
  text-decoration-thickness: 0.5px !important;
  transition: color 0.3s ease;      
  font-weight: 100;
}

/* Add arrow on far right */
.button a::after {
  content: "→";                     
  font-size: 2rem;                  
  display: inline-block;
  transition: transform 0.3s ease;  
}

/* Animate arrow on hover */
.button a:hover::after {
  transform: translateX(2rem);    /* arrow moves slightly to the right */
}

/* ------- Latest hydrogen research promo box ------- */
#d\.en\.1056094 .card.copy-image {
  background: #fff;
  border-radius: 0!important;
}


/* Image map smaller width */
@media (min-width: 800px) {
#d\.en\.1054811 .card.image > img {
  width: 70% !important;
  display: block;
  margin: 0 auto;
}
}

/* ------- Promo boxes removing shadow ------- */
.grid-cell .card:not(.no-shadow)
{box-shadow: none;

}


/* ============================== Accordion ================================== */
.grid-cell .copy-accordion .copy {
        max-width: 100%;
 }

.accordion-item-content li,
.accordion-item-content li a {
  color: #fff;
}

.accordion {
  padding: 0!important;
  margin: 0!important;
}

.accordion-item-content li a:hover,
.accordion-item-content li a:focus,
.accordion-item-content li a:visited {
  color: #969595;
}

.card.copy-accordion .padding {
  padding: 0 40px !important;
}

@media (min-width: 600px) {
    .landing .accordion-item-content {
        max-width: 100%;
    }
}


/* ============================== H2 styling ================================== */
.sticky-nav-wrapper h2 {
  color: #fff !important;
  font-size: 2.9rem !important;
  font-weight: 300 !important;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure parent container centres content properly */
.sticky-nav-wrapper .copy.first-heading-h2 {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Remove any inherited left alignment from grid */
.sticky-nav-wrapper .card.copy-only {
  text-align: center;
}

/* ======================= Black background and navigation ========================== */
html, article, .mainContentContainer {
  background-color: #000 !important;
  color: #fff !important; 
}

/* Header background */
.headerContainer,
.headerContent,
.secondMenuBar {
  background-color: #000;
}

/* Faculty title text white */
.home-link {
  color: #fff;
}

/* Primary nav */
/* Hover/focus for mega menu items (exclude home link) */
.menuItem,
.menuItem .megaLink {
  transition: none !important;
}

/* Normal state */
.primaryNav .megaMenu > .menuItem > a:not(.home) {
  color: #fff !important;
  background-color: #000 !important;
}

/* Hover + focus state */
.primaryNav .megaMenu > .menuItem > a:hover:not(.home),
.primaryNav .megaMenu > .menuItem > a:focus:not(.home) {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}

/* Hover/focus for home link */
.primaryNav .home:hover,
.primaryNav .home:focus {
  color: #fff !important;
  background-color: #000 !important;
}

/* Mobile menu / search icons */
.menu-search-icons a,
.menu-search-icons button,
.mobile-menu-icon span {
  color: #fff;
}

/* === Hide breadcrumb nav === */
#breadcrumb-share-container {
  display: none !important;
}

/* ======================= Facilities accordion ========================== */
/* remove default t4 bullet styling */
#facilities-nav ul,
#facilities-nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

#facilities-nav ul li::before {
  content: none !important;
  display: none !important;
}

/* remove purple bullet img*/
.mainContentContainer ul:not(.reset-bullets):not(.jw-reset):not(.gridList):not(.compactList):not(.course-list):not(.courseLinks):not(.pagination):not(.atoz):not(.staffList):not(.socialmedia):not(.countries) li:not(.jw-sharing-inline-icon):not(.jw-featured), .squareBullets li {
  background: none!important;
}

/* =========================
   FACILITY NAVIGATION
========================= */

#facilities-nav {
  background: #000;
}

.facilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facility-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.facility-tab:hover {
  background: rgba(255,255,255,0.2)!important; /* white transparent background hover */
}

.facility-tab.active {
  background: rgba(255,255,255,0.2)!important;
}

.facility-tab .number {
  margin-right: 0.5rem;
}

/* =========================
   PLUS ICON
========================= */

.facility-tab .icon {
  font-size: 3rem;
  font-weight: 100;
  transition: transform 0.3s ease;
}

/* rotate on hover */
.facility-tab:hover .icon {
  transform: rotate(45deg);
}

/* rotate when active */
.facility-tab.active .icon {
  transform: rotate(45deg);
}


/* =========================
   CONTENT PANELS
========================= */

#facilities-content {
  background: #fff;
  padding: 3rem 1.5rem;
}

.facility-panel {
  display: none;
}

.facility-panel.active {
  display: block;
}

.facility-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.facility-image {
  flex: 1;
}

.facility-image img {
  width: 100%;
  height: auto;
  display: block;
}

.facility-text {
  flex: 1;
}

.facility-text h3 {
  margin-top: 0;
  color: #000;
}

.facility-text p {
  color: #000;
  margin-bottom: 1.5rem;
}

/* =========================
   FACILITIES SECTION
========================= */
.tag-uni {
display: inline-block;
  padding: 0.5rem 1rem;
  border-left: solid 5px #660099;
  color: #660099;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4rem;
}

#facilities-nav {
  background: #000;
}

/* Remove default list styling */
.facilities-list,
.facilities-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facilities-list li::marker {
  display: none;
}

.facilities-list li::before {
  display: none !important;
  content: none !important;
}

/* =========================
   ACCORDION ROW
========================= */

.facility-item {
  border-bottom: 1px solid #fff;
}

/* clickable row */
.facility-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.facility-tab span {
  padding: 0 2rem;
}

.facility-tab:hover {
  background: rgba(255,255,255,0.18);
}

.facility-item.active .facility-tab {
  background: rgba(255,255,255,0.18);
}

/* =========================
   PLUS ICON
========================= */

.facility-icon {
  font-size: 4rem;
  font-weight: 100;
  transition: transform 0.35s ease;
}

/* rotate when hover or open */
.facility-tab:hover .facility-icon,
.facility-item.active .facility-icon {
  transform: rotate(45deg);
}

/* =========================
   ACCORDION PANEL
========================= */

.facility-panel {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  background: #fff;
}

/* open state */
.facility-item.active .facility-panel {
  max-height: 800px;
}

/* =========================
   PANEL LAYOUT
========================= */

.facility-inner {

  display: flex;
  align-items: stretch;
  background: #000;
  gap: 3rem;
  padding: 3rem 2rem;

}

/* left image */

.facility-image {
  flex: 1;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* right content box */

.facility-text {
  flex: 1;
  background: #fff;
  padding: 4rem;
  position: relative;

}

/* text */
.facility-text h3 {
  margin-top: 0;
  color: #000;
  font-size: 2.5rem;
  font-weight: 600;
  padding: 0 !important;

}

.facility-text p {
  color: #000;
  margin-bottom: 3rem;
    font-size: 1.5rem;
}

/* =========================
   ARROW CTA
========================= */

.facility-cta {

  position: absolute;

  right: 2.5rem;
  bottom: 2.5rem;

  display: inline-flex;
  align-items: center;

  text-decoration: none;

}

/* arrow line */

.facility-cta::before {

  content: "";

  width: 60px;
  height: 2px;

  background: #000;

  transition: all 0.3s ease;

}

/* arrow head */

.facility-cta::after {

  content: "";

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;

  border-left: 10px solid #000;

  margin-left: -1px;

  transition: transform 0.3s ease;

}

/* hover animation */

.facility-cta:hover::before {
  width: 80px;
}

.facility-cta:hover::after {
  transform: translateX(6px);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .facility-inner {
    flex-direction: column;
  }

  .facility-text {
    padding: 4rem;
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .facility-inner {
    flex-direction: column;
  }

}


/* ======================= Hero banner ========================== */
/* Banner container */
#banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

/* Banner image */
#banner img {
  width: 100%;
  height: 720px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 11%;
  padding-right: 11%;
  padding-top: clamp(4rem, 8vw, 8rem);   /* desktop top spacing */
  padding-bottom: 4rem;                  /* bottom spacing */
  box-sizing: border-box;
}

/* Left text */
.banner-left {
  max-width: 40%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.banner-left h1 {
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #000;
}

.banner-left p {
  font-size: 1.6rem;
  max-width: 100%;
  color: #000;
  margin-bottom: 2rem;
  font-weight: 100;
}

/* Stats box */
.banner-stats {
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2.5rem;   /* breathing room below stats box */
  background: rgba(0,0,0,0.8);
  padding: 3rem 10%;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Stats layout */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3% 0;
}

.stat {
  flex: 0 0 auto;
}

.number {
  font-size: 4rem;
  font-weight: 700;
}

.label {
  font-size: 1.6rem;
}

/* CTA */
.banner-cta {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid #fff;
  border-radius: 25px;
  text-decoration: none !important;
  color: #fff !important;
  background: transparent;
  font-weight: 600;
}

.cta-button:hover {
  background: rgba(255,255,255,0.2);
}

/* =========================
   PROMO BANNER (ON HYDROGEN)
========================= */
#d\.en\.1055404 {
  margin: 0px auto 0;
}

#promo {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0px auto 6% auto;
}

#promo img {
  width: 100%;
  height: auto;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

#promo .promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
  z-index: 2;
}

#promo .banner-cta {
  margin-top: 1.5rem;
}

/* =========================
   GET IN TOUCH BANNER
========================= */

.banner-get-in-touch {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-get-in-touch img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* dark overlay */

.banner-get-in-touch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(0,0,0,1) 0%,      
      rgba(0,0,0,0.7) 40%,   
      rgba(0,0,0,0.3) 60%,    
      rgba(0,0,0,0) 70%      
  );
  z-index: 1;
}

/* overlay positioning */

.banner-get-in-touch-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-top: 8%;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 3rem;
}

/* remove hero width constraint */

.banner-get-in-touch .banner-left {
  max-width: none;
}

/* text colour */

.banner-get-in-touch h3 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 768px) {

  #banner img {
    height: 750px;
    object-position: 1% center;
  }

 .banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 13%;
  padding-right: 13%;
  padding-top: clamp(4rem, 8vw, 8rem);
  box-sizing: border-box;
}

  .banner-left {
    max-width: 100%;
  }

  .banner-left h1 {
    font-size: 2.8rem;
  }

  .banner-left p {
    font-size: 1.4rem;
  }

  .banner-stats {
    padding: 2.5rem 1.5rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 2rem;
  }

  .number {
    font-size: 2.4rem;
  }

  /* PROMO mobile fix */

  #promo img {
    min-height: 460px;
  }

  #promo .promo-overlay {
    padding: 1.5rem;
  }

  /* =========================
     GET IN TOUCH BANNER (mobile)
  ========================= */

  .banner-get-in-touch img {
    min-height: 260px;
  }

  .banner-get-in-touch-overlay {
    padding-left: 3rem;
    padding-right: 2rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

}


/* ======================= Supply chain expanding cards ========================== */
/* =========================
   EXPANDING CARDS PADDING
========================= */

@media (min-width: 1000px) {
.grid-expanding-cards .card-expander-content.reverse-row .copy {
  padding: 8rem;
}
}

/* =========================
   FULL WIDTH OVERRIDE
========================= */
/*
#d\.en\.1055110 {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
  padding: 2rem 0!important;
}

#d\.en\.1055110 .container,
#d\.en\.1055110 .row {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
*/
/* =========================
   SECTION BACKGROUND
========================= */

#d\.en\.1055110 {
  position: relative;
  /* background-image: url("https://webassets.manchester.ac.uk/faculty/fse/bespoke-shared-templates/fse-faculty/research/hydrogen/images/Expanding_cards_banner_1190x550.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
  padding: 6rem 0;
}


/* =========================
   MAKE COMPONENT TRANSPARENT
========================= */

#d\.en\.1055110 .grid-expanding-cards,
#d\.en\.1055110 .cards {
  background: transparent !important;
}

/* Remove default light theme grey */
#d\.en\.1055110 .variant-light .card .card-inner {
  background: transparent !important;
}


/* =========================
   COLLAPSED CARDS (DEFAULT)
========================= */

/* Titles white */
#d\.en\.1055110 .card .title {
  color: #fff !important;
}

/* Icons stay white */
#d\.en\.1055110 .card .icon,
#d\.en\.1055110 .card svg {
  color: #fff !important;
  fill: #fff !important;
}


/* =========================
   PURPLE HOVER + ACTIVE
========================= */

#d\.en\.1055110 .card:hover .card-inner,
#d\.en\.1055110 .card.is-expanded .card-inner {
  background-color: rgba(102, 0, 153, 0.6) !important;
  transition: background-color 0.3s ease;
}


/* =========================
   EXPANDED PANEL
========================= */

/* White expanded area */
#d\.en\.1055110 .card.is-expanded .card-expander {
  background: #fff !important;
}

/* Expanded text black */
#d\.en\.1055110 .card-expander .copy,
#d\.en\.1055110 .card-expander .copy p,
#d\.en\.1055110 .card-expander .copy h3 {
  color: #000 !important;
}


/* =========================
   ARROW BEHAVIOUR
========================= */

/* Hide arrow by default */
#d\.en\.1055110 .expand {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show arrow on hover or expanded */
#d\.en\.1055110 .card:hover .expand,
#d\.en\.1055110 .card.is-expanded .expand {
  opacity: 1;
}

/* Keep arrow white */
#d\.en\.1055110 .expand svg {
  fill: #fff !important;
}


/* =========================
   MOBILE 
========================= */

@media (max-width: 768px) {

  #d\.en\.1055110 {
    padding: 4rem 0;
  }

  #d\.en\.1055110 .card.is-expanded .card-inner {
    background-color: rgba(102, 0, 153, 0.7) !important;
  }

}



/* ======================= On Hydrogen promo box ========================== */
#promo {
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Image full width */
#promo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Black transparent overlay */
#promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

/* Container for text + button */
#promo .promo-overlay,
#promo .banner-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

/* Vertically centre text block */
#promo .promo-overlay {
  top: 40%;
  transform: translate(-50%, -50%);
  color: #fff;
}

/* Place button slightly below text */
#promo .banner-cta {
  top: 65%;
  transform: translate(-50%, -50%);
}

/* White heading + paragraph */
#promo h3,
#promo p {
  color: #fff;
}

/* Optional: spacing */
#promo h3 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
}

#promo p {
  margin-bottom: 1.5rem;
}

/* =============================
   SECTION HEADER CSS HACK 
============================= */

#d\.en\.1054957 > h2:nth-child(1),
#d\.en\.1055110 > h2:nth-child(1),
#d\.en\.1055404 > h2:nth-child(1),
#d\.en\.1058748 > h2:nth-child(1) {
	display:none;
}

/* ==============================================
    CSS ACCESSIBILITY CONTRAST HACK 
============================================== */

#d\.en\.1055117 h2, .grid-expanding-cards > div.cards > div.card > button.card-inner > div.copy > p {
	text-shadow: -1px 0 2px #2f3437, 0 1px 2px #2f3437, 1px 0 2px #2f3437, 0 -1px 2px #2f3437;
}

/* ===================================================
   FACILITY CTA MINIMUM TARGET AREA ACCESSIBILITY HACK 
=================================================== */

.facility-cta {
    padding: 30px 0px 0px 20px;
}

/* ===========================================
   FACILITY LINK ARROW SIZE ACCESSIBILITY HACK 
=========================================== */

.facility-cta::before {
    height: 20px;
}

.facility-cta::after {
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
	border-left: 20px solid #000;
}

/* =========================================
   STICKY NAV COLOUR OVERRIDE 
========================================= */

#content > div > div.sticky-nav.wide > nav > ul > li > a {
	color: #000;
}

/* =========================================
      EXPANDING CARDS BACKGROUND IMAGE
========================================= */
#hydro-bg-image {
	background-image: url(https://webassets.manchester.ac.uk/faculty/fse/bespoke-shared-templates/fse-faculty/research/hydrogen/images/Expanding_cards_banner_1190x550.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}