:root {
  --ka-colour-purple: #662483;
  --ka-colour-cyan: #01b9e3;
  --ka-colour-dark-blue: #201e50;
  --ka-colour-green: #05a659;
  --ka-colour-orange: #f8b500;
  --ka-colour-pink: #e61d72;
  
  --ka-media-accent: var(--ka-colour-cyan);
  --ka-music-accent: var(--ka-colour-pink);
  --ka-ministry-accent: var(--ka-colour-purple);
  --ka-mission-accent: var(--ka-colour-green);
  --ka-management-accent: var(--ka-colour-orange);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-size: 22px;
}

/* utility to force container to sit on top of footer */
.page-content-hug-footer {
 margin-bottom: -74px;
}

/* header */
header {
  background-color: var(--ka-colour-dark-blue);
  margin: 0 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}



/* navbar */
nav .menu.menu-knowledge-academy-menu .menu-item {
  padding: 8px 24px;
}

nav .menu.menu-knowledge-academy-menu .menu-item.menu-item--active-trail,
nav .menu.menu-knowledge-academy-menu .menu-item.dropdown .dropdown-menu {
  border-bottom: 0;
  background-color: var(--ka-colour-dark-blue);
  color: #fff;
}

nav .menu.menu-knowledge-academy-menu .menu-item.menu-item--active-trail a {
  color: var(--ka-colour-pink);
}

nav .menu.menu-knowledge-academy-menu .menu-item a:hover {
  color: var(--ka-colour-pink);
  opacity: 0.55;
}

nav .menu.menu-knowledge-academy-menu .menu-item.dropdown .dropdown-menu .menu-item {
  padding: 12px 8px;
}

nav .menu.menu-knowledge-academy-menu .menu-item a {
  font-size: 1.75rem;
  color: #fff;
}

nav .navbar-collapse {
 justify-content: flex-end;
  margin-right: 3rem;
}

main {
  margin-top: -24px;
}

/* FULLSCREEN SLIDE-IN OVERLAY PANEL */
.mobile-navigation {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: var(--ka-colour-dark-blue);

  /* start off-canvas */
  transform: translateX(100%);
  transition: transform 300ms ease;
  will-change: transform;

  /* keep it from affecting layout */
  pointer-events: none;
}

/* when open (set by JS) */
body.mobile-menu-open .mobile-navigation {
  transform: translateX(0);
  pointer-events: auto;
}

/* Make the collapse container fill the screen nicely */
.mobile-navigation .navbar-collapse {
  height: 100vh;
  overflow-y: auto;
  padding: 5rem 2rem 2rem;
}

/* MENU STYLING */
.mobile-navigation ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-navigation ul.menu > li {
  margin: 0 0 1.25rem 0;
}

.mobile-navigation ul.menu a {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

/* Dropdowns inside the fullscreen panel */
.mobile-navigation .dropdown-menu {
  position: static;
  float: none;
  box-shadow: none;
  border: 0;
  padding-left: 1rem;
  margin-top: .75rem;
}

.mobile-navigation .menu .menu-item.dropdown,
.mobile-navigation .menu .menu-item.dropdown .dropdown-menu {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.mobile-navigation .menu .menu-item.dropdown .dropdown-menu .menu-item {
  text-align: center;
}

.mobile-navigation .menu .menu-item.dropdown::after {
  border: 0;
}

.navbar-toggler-icon {
  color: #fff;
}

/* LOCK BACKGROUND SCROLL WHEN OPEN */
body.mobile-menu-open {
  overflow: hidden;
}

/* TURN THE EXISTING HAMBURGER INTO A CLOSE BUTTON WHEN OPEN */
body.mobile-menu-open .navbar-toggler {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: transparent;
}

/* Hide whatever icon you currently have */
body.mobile-menu-open .navbar-toggler .navbar-toggler-icon,
body.mobile-menu-open .navbar-toggler .fa-bars {
  display: none !important;
}

/* Draw an X without adding markup */
body.mobile-menu-open .navbar-toggler::before,
body.mobile-menu-open .navbar-toggler::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.75rem;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

body.mobile-menu-open .navbar-toggler::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.mobile-menu-open .navbar-toggler::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
  

/* Cookie Declaration table header styles */
.paragraph--type--adaptive-basic-text .feature_text_area_body .CookieDeclarationType table thead tr th {
  	background-color: var(--bs-aw-yellow);
    border-bottom-width: var(--bs-border-width);
}

/* Style for the newsletter c2a box */
.sign-up-block .h1 {
  font-size: 4em;
  line-height: 1em;
  font-weight: 800;
  text-transform: uppercase;
}

/* Utility to set equal height columns */
.eq-h-cols .paragraph_adaptive_wrapper .layout,
.eq-h-cols .ap_column_wrapper {
  align-items: stretch;
}
.eq-h-cols .paragraph_adaptive_wrapper .layout .layout__region .paragraph,
.eq-h-cols .paragraph_adaptive_wrapper .layout .layout__region .paragraph .adaptive_paragraph_fluid,
.eq-h-cols .ap_column_wrapper .paragraph,
.eq-h-cols .ap_column_wrapper .paragraph .adaptive_paragraph_container,
.eq-h-cols .ap_column_wrapper .paragraph .adaptive_paragraph_container .adaptiveparagraph  {
  height: 100%;
}

/* Utility to size html svg icons */
.icon-lg {
  display: inline-block;
  height: auto;
  width: 40px;
}

.full img {
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}


.full-rounded img {
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border-radius: var(--bs-border-radius-xl) !important;
}

/* utility to make children of container into rows instead of columns */
.flx-row  .layout .layout__region {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 4;
}

/* KA Home */
.home-hero .layout {
  position: relative;
  align-items: stretch;
}

.home-hero .layout .layout__region {
  position: relative;
}

.home-hero .home-stream-media-hero,
.home-hero .home-stream-music-hero,
.home-hero .home-stream-ministry-hero,
.home-hero .home-stream-mission-hero,
.home-hero .home-stream-management-hero {
  height: 190px;
  overflow:hidden;
}

.home-hero .home-stream-media-title,
.home-hero .home-stream-music-title,
.home-hero .home-stream-ministry-title,
.home-hero .home-stream-mission-title,
.home-hero .home-stream-management-title {
 position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 5;
}

.home-hero .home-stream-media-title .title,
.home-hero .home-stream-music-title .title,
.home-hero .home-stream-ministry-title .title,
.home-hero .home-stream-mission-title .title,
.home-hero .home-stream-management-title .title {
  font-size: clamp(2.25rem, 5cqi, 3rem);
  text-transform: uppercase;
}


.home-hero .home-stream-media-hero::before,
.home-hero .home-stream-music-hero::before,
.home-hero .home-stream-ministry-hero::before,
.home-hero .home-stream-mission-hero::before,
.home-hero .home-stream-management-hero::before {
  pointer-events: none;
  content: "";
  display: block;
  position: absolute;
  opacity: 0.7;
  inset: 0;
  z-index: 1;
}

.home-hero .home-stream-media-hero:hover::before,
.home-hero .home-stream-music-hero:hover::before,
.home-hero .home-stream-ministry-hero:hover::before,
.home-hero .home-stream-mission-hero:hover::before,
.home-hero .home-stream-management-hero:hover::before {
  opacity: 0.5;
}

.home-hero .home-stream-media-hero::before {
  background-color: var(--ka-media-accent);
}

.home-hero .home-stream-music-hero::before {
  background-color: var(--ka-music-accent);
}

.home-hero .home-stream-ministry-hero::before {
  background-color: var(--ka-ministry-accent);
}

.home-hero .home-stream-mission-hero::before {
  background-color: var(--ka-mission-accent);
}

.home-hero .home-stream-management-hero::before {
  background-color: var(--ka-management-accent);
}

.paragraph--type--adaptive-image .awp_img_center {
	display: block;
}

.home-hero .home-stream-media-hero img,
.home-hero .home-stream-music-hero img,
.home-hero .home-stream-ministry-hero img,
.home-hero .home-stream-mission-hero img,
.home-hero .home-stream-management-hero img {
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  transition: all ease 0.5s;
}

/* Explore Button */
.explore-options-wrapper a[href*='explore'] {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  border: 0;
}
.explore-options-wrapper a[href*='explore']:hover {
 background-color: transparent;
}

/* Page header title */
.page-header .layout.layout--onecol {
  position: relative;
}
.page-header div[data-type="adaptive_title"],
.page-header .page-title {
 	position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.page-header .page-title .title {
  font-size: clamp(2.5rem, 5cqi, 3rem);
}

/* Webform fixes */
.webform-multiple-add {
  display: none;
}

#edit-application-video-fset .description {
  font-size: 1em !important;
}

.webform-multiple-table table tr:nth-child(odd) {
    background: #f4f4f4;
}

.webform-multiple-table table tr:nth-child(even) {
    background: #fff;
}

.webform-multiple-table table fieldset {
  margin-bottom: 0 !important;
}

.webform-multiple-table table fieldset .fieldset-wrapper > div {
  display: flex;
  gap:4px;
}

.webform-multiple-table table tr td {
  padding: 24px;
}

.webform-multiple-table table .webform-multiple-table--handle {
  display: none;
}

.webform-multiple-table--operations {
  width: auto !important;
}

.webform-multiple-table--operations > input {
  width: auto !important;
  padding: 0;
}

.testimonials .flexslider {
 background-color:  var(--bs-aw-navy);
  border: 0;
}


.testimonials .flexslider .flex-control-paging a {
  color: rgba(255,255,255,0.75);
}

.testimonials .flexslider .flex-control-paging a.flex-active {
  background: rgba(255,255,255,1);
}

.testimonials .flexslider .flex-direction-nav li a {
  display: flex;
  align-items:center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: transparent;
  font-size: 0;
}

.testimonials .flexslider .flex-direction-nav li a:before {
  color: rgba(255,255,255,0.8);
}

.testimonials  .paragraph--type--adaptive-banner .adaptivebannerparagraph div.image_background {
    height: 375px;
    border-radius: 6%;
  }

.ka-image-carousel img {
  max-height: 300px !important;
    height: 300px !important;
    object-fit: cover;
}

.ka-image-carousel .flexslidercarousel {
  margin: 0 !important;
}


@media screen and (max-width: 764px) {
  header .nav-flex {
    padding: 0;
  }
  
  header #block-ucb-academy-branding {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  
  
  .paragraph-id--2505 .py-5,
  .paragraph-id--2506 .py-5 {
    padding: 0 !important; 
  }
  
  .layout.layout--twocol-section .layout__region.layout__region--first {
    order: 5;
  }
  .layout.layout--twocol-section .layout__region.layout__region--second {
    order: 10;
  }
  .layout.layout--twocol-section .layout__region.layout__region--second:has(> .paragraph--type--adaptive-image) {
    order: 1;
  }
}

@media screen and (min-width: 764px) {
  
  .home-hero .home-stream-media-hero,
  .home-hero .home-stream-music-hero,
  .home-hero .home-stream-ministry-hero,
  .home-hero .home-stream-mission-hero,
  .home-hero .home-stream-management-hero {
    height: auto;
  }
  
  .home-hero .home-stream-media-hero img,
  .home-hero .home-stream-music-hero img,
  .home-hero .home-stream-ministry-hero img,
  .home-hero .home-stream-mission-hero img,
  .home-hero .home-stream-management-hero img {
    filter: blur(1px);
    transition: all ease 0.5s;
  }

  .home-hero .home-stream-media-hero:hover img,
  .home-hero .home-stream-music-hero:hover img,
  .home-hero .home-stream-ministry-hero:hover img,
  .home-hero .home-stream-mission-hero:hover img,
  .home-hero .home-stream-management-hero:hover img {
    filter: blur(0px);
  }
  
  .home-hero .layout--threecol-section--33-34-33 > .layout__region {
   flex-basis: 33.332% !important; 
  }
  
  .testimonials  .paragraph--type--adaptive-banner .adaptivebannerparagraph .banner_position {
    display: flex;
  }
  
  .testimonials  .paragraph--type--adaptive-banner .adaptivebannerparagraph div.image_background {
    min-width: 375px;
    height: auto;
    width: 375px;
    border-radius: 6%;
  }
  
  .testimonials  .paragraph--type--adaptive-banner .adaptivebannerparagraph .banner_text_area .banner_text_area_inner {
    left: 400px;
    top: 0;
    min-width: 70%;
    width: 70%;
    border-radius: 6%;
  }
}