/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@layer heroSlider;

:root {
    --edo_yellow:    #E7A614;
    --edo_yellow_transparent:    #E7A61440;
    --edo_green:     #008A5F;
    --edo_blue:      #035AA6;
    --edo_grey:      #53565A;
    --edo_grey_transparent:      #53565A40;
    --edo_red:       #B5121B;
    --edo_ochre:     #D57117;
    --edo_ochre_transparent:     #D5711740;
    --body_font:     #404040;
  }

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 800;
    src: url("./fonts/HelveticaNeueMedium.otf") format("opentype");
}

html {
  scroll-behavior: smooth;
}

/* General default settings for elements */
p a {
  transition-duration: 0.4s;
}

p:is(:last-child),
ul:is(:last-child) {
  margin-bottom: 0;
}

summary {
  color: var(--edo_ochre);
  transition-duration: 0.5s;
}

summary:hover,
summary:focus-visible {
  color: var(--body_font)
}

summary + * {
  margin-top: 8px;
}

.default-button {
	color: white !important;
}

h1, h2, h3, h4, h5 {
  text-wrap: balance;
}

/* Set accessible keyboard focus outline colours */
/* *:focus-visible {
  outline: 2px solid var(--edo_ochre);
  border-radius: 5px;
} */

/* Remove floats from images at small screen sizes */
@media (max-width: 475px) {
  img {
    float: none !important;
  }
}

/* Social Icon Styling */

.header-social-icon svg {
  transition-duration: 0.4s;
}

.header-social-icon svg:hover,
.header-social-icon svg:focus-visible {
  color: black;
}

/* Menu Styling */

@media (max-width: 1180px) {
  header .mega-menu-link {
    text-align: center !important;
  }
}

/* Google Programmable Search Styling */

#___gcse_0 {
  flex-grow: 1;
}

.gsc-control-cse {
  padding: 0px !important;
  margin-bottom: -4px !important;
  border: none !important;
}
  
.gsc-search-box {
  height: 100% !important;
  max-width: 100% !important;
  border: none !important;
  box-shadow: none !important;

  & > * {
    border: none !important;
  }
}

.gsc-search-box tbody {
  border: none !important;

  & tr td {
    border: none !important;
  }
}
  
.gsc-input-box {
  height: 100% !important;
  border-color: var(--edo_ochre) !important;
  border-radius: 30px !important;

  & table {
    margin: 0;
  }
}
  
.gsc-input {
  height: 100% !important;
  padding: 0 !important;
  border: none;
}

.gsc-search-button {
  padding: 0;
}
  
.gsc-search-button-v2 {
  background-color: var(--edo_ochre) !important;
  height: 100% !important;
  border: none !important;
  border-radius: 30px !important;
  margin-left: 20px !important;
  transition-duration: 0.4s;
}
  
.gsc-search-button-v2:hover {
  background-color: black !important;
}
  
@media (max-width: 400px) {
  .gsc-control-cse {
    /* width: 175px !important; */
  }
}

/* Form Buttons */
  
#gform_submit_button_1, #gform_submit_button_3 {
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: var(--edo_ochre);
  border: none;
  border-radius: 90px !important;
    -moz-border-radius: 90px;
    -webkit-border-radius: 90px;
  transition-duration: 0.4s;
}
  
#gform_submit_button_1:hover, #gform_submit_button_3:hover {
  background-color: black;
}

@layer heroSlider {
  /* Background Image Carousel */
  .hero-slider {
    width: 100vw;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: -1;
  }

  .slides {
    display: flex;
    width: calc(100vw * var(--slide-count, 3)); /* Adjust based on number of slides */
    height: 100%;
    overflow: hidden;
    scroll-snap-type: none;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: transform 0.8s ease-in-out;
  }

  .slides::-webkit-scrollbar {
    display: none;
  }

  .slide {
    scroll-snap-align: none;
    flex-shrink: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Styling for Constant Contact inline newsletter signup form */
.ctct-form-header {
	line-height: 1.2 !important;
}

/* Styling fix for resource listing headings on the Resources page */
.resource-listing-heading {
	color: var(--edo-ochre) !important;
	transition: all 0.5s ease 0s;
}

.resource-listing-heading:hover,
.resource-listing-heading:focus-visible {
  color: var(--body_font) !important;
}