/*
Theme Name:     SSEW Theme
Theme URI:      
Description:    Twentytwentyfive child theme.
Author:         RTI International
Author URI:     
Template:       twentytwentyfive
Version:        0.1.0
*/

/* Set css vars */
body {
    --wp--style--root--padding-left: var(--wp--preset--spacing--20);
    --wp--style--root--padding-right: var(--wp--preset--spacing--20);

}

/* End Set css vars */

/* General Styles */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.wp-element-button:hover {
    text-decoration: none;
}

:root h3.wp-block-heading, h3 {
    font-weight: 500;
}

/* Icon Styles */

.fa-external-link:after {
    content: "\f08e";
    font-family: "Font Awesome 7 Solid";
    font-weight: 900;
    padding-left: 4px;
    font-size: 0.8em;
}

.fa-chevron-right:after {
    content: "\f054";
    font-family: "Font Awesome 7 Solid";
    font-weight: 900;
    padding-left: 4px;
    font-size: 0.8em;
}

.excerpt-more-fa-chevron-right .wp-block-post-excerpt__more-link:after {
    content: "\f054";
    font-family: "Font Awesome 7 Solid";
    font-weight: 900;
    padding-left: 4px;
    font-size: 0.8em;
}

/* End Icon Styles */

/* Mobile styles */

@media (max-width: 780px) {

    .mobile-hidden {
        display: none !important;
    }

    .mobile-full-width {
        margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
        margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
        padding-left: var(--wp--style--root--padding-left) !important;
        padding-right: var(--wp--style--root--padding-right) !important;
    }

    .mobile-no-gap {
        gap: 0 !important;
    }

    .mobile-no-padding {
        padding: 0 !important;
    }

    .mobile-no-padding-left {
        padding-left: 0 !important;
    }

    .mobile-padding-left-root {
        padding-left: var(--wp--style--root--padding-left) !important;
    }

    .mobile-padding-left-30 {
        padding-left: var(--wp--preset--spacing--30) !important;
    }

    .mobile-no-padding-right {
        padding-right: 0 !important;
    }

    .mobile-padding-right-30 {
        padding-right: var(--wp--preset--spacing--30) !important;
    }

    .mobile-no-border {
        border: none !important;
    }

    .wp-block-buttons .wp-block-button {
        width: 100%;
    }
    .wp-block-buttons .wp-block-button_link {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .wp-block-telex-mobile-anchor-nav {
        z-index: 99;
    }

}

@media (min-width: 781px) {

    .desktop-hidden {
        display: none !important;
    }

}

/* End Mobile Styles */

/* Custom block styles */


.mobile-anchor-nav-button {
    box-shadow: none;
    border: 1px solid #8B9096;
}

.mobile-anchor-nav-button .mobile-anchor-nav-icon {
    color: transparent;
}

.mobile-anchor-nav-button .mobile-anchor-nav-icon:after {
    color: var(--wp--preset--color--blue);
    content: "\f078";
    font-family: "Font Awesome 7 Solid";
    font-weight: 900;
    padding-left: 4px;
    font-size: 1.2em;
}

.mobile-anchor-nav-dropdown {
    border: 1px solid #8B9096;
}

.mobile-anchor-nav-list a:hover {
    background-color: var(--wp--preset--color--blue-light);
}

.mobile-anchor-nav-button:hover {
    box-shadow: none;
}

.mobile-anchor-nav-list a {
    min-height: auto;
}

/* End Custom block styles */

/* Post Header Styles */

.ssew-post-header .ssew-post-hero-images {
    position: relative;
}

.ssew-post-header .ssew-post-hero-images .ssew-hero-chevron {
    position: absolute;
    z-index: 10;
    height: 100%;
}

.ssew-post-header .ssew-post-hero-images .ssew-hero-chevron img {
    height: 100%;
}

.ssew-post-header .ssew-post-hero-images .ssew-hero-icon {
    position: absolute;
    z-index: 20;
    left: 45%;
    top: 25%;
    width: 100%;
}

.ssew-post-header .ssew-post-hero-images .ssew-hero-icon img {
    width: 23%;
}

/* Hide hero images on smaller screens */
@media (max-width: 900px) {
    .ssew-post-header {
        gap: 0;
    }
    .ssew-post-header > div:first-child {
        order: 2;
    }

    .ssew-post-header .ssew-post-hero-images .ssew-hero-chevron, .ssew-post-header .ssew-post-hero-images .wp-block-post-featured-image {
        display: none;
    }
    .ssew-post-header .ssew-post-hero-images .ssew-hero-icon {
        position: static;
        padding: var(--wp--preset--spacing--30) 0 0 0;

    }
    .ssew-post-header .ssew-post-hero-images .ssew-hero-icon img {
        width: 81px;
        height: 81px;
    }

}

/* End Post Header Styles */

/* Home Hero Header Styles */

@media (min-width: 760px) and (max-width: 1100px) {
    .ssew-homepage-hero .ssew-homepage-hero-image {
        background-position: center center !important;
    }
}
/* End Home Hero Header Styles */

/* Home Slider Styles */

.home-topics-carousel-navigation li.ssew-carousel-nav-active a, .home-topics-carousel-navigation li.ssew-carousel-nav-active span {
    font-weight: 700;
    outline: none;
}

.home-topics-carousel-navigation li.ssew-carousel-nav-active > div > div{
    border-bottom-width: 2px !important;
}

.home-topics-carousel-navigation .carousel-nav-border-wrapper {
    display: inline-flex;
    position: relative;
    padding-bottom: 4px;
}

.home-topics-carousel-navigation .carousel-nav-border-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1em;
    height: 1px;
    background-color: var(--wp--preset--color--base);
    transition: width 0.5s ease;
}

.home-topics-carousel-navigation .ssew-carousel-nav-active .carousel-nav-border-wrapper::after {
    width: 100%;
    height: 2px;
}

.home-topics-carousel-window {
    overflow: hidden;
    position: relative;
    max-height: 524px;
}

.home-topics-carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    /* animate slide movement */
    transition: transform 0.5s ease;
}

.home-topics-carousel-slides li {
    height: 100%;
    margin-block-start: 0;
}

.home-topics-carousel-slides li > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.home-topics-carousel-slides li > div .wp-block-post-excerpt {
    flex-grow: 0;
}

.home-topics-carousel-slides li > div .wp-block-post-excerpt__more-text {
    margin-top: var(--wp--preset--spacing--20);
}

svg#home-slider-chevron-svg path {
    transition: fill 0.5s ease;
}

.home-topics-carousel-main-content {
    background-image: url('/wp-content/themes/ssew/assets/images/home-slider-arrow-reverse.svg');
    background-repeat: no-repeat;
    background-position: right center;
    transition: background-color 0.5s ease;
}

@media (max-width: 780px) {
    div.home-topics-carousel-navigation-container, svg#home-slider-chevron-svg {
        display: none;
    }
    div.home-topics-carousel div.home-topics-carousel-main-content {
        background-image: none;
        padding-right: 0 !important;
        flex-basis: 100%;
    }
    .home-topics-carousel div.has-blue-background-color {
        background-color: transparent !important;
        padding-left: 0 !important;
        /* padding-left: var(--wp--preset--spacing--50); */
    }

    div.home-topics-carousel div.home-topics-carousel-window {
        max-height: none;
        overflow: visible;
        flex-basis: 100%;
    }
    .home-topics-carousel-slides {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .home-topics-carousel-slides li {
        padding: var(--wp--preset--spacing--50);
        border-left: 3px solid var(--wp--preset--color--green);
        margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
        margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
    }
    .home-topics-carousel-slides li:nth-child(2) {
        border-left-color: var(--wp--preset--color--blue);
        background-color: var(--wp--preset--color--blue-light);
    }
    .home-topics-carousel-slides li:nth-child(3) {
        border-left-color: var(--wp--preset--color--red);
        background-color: var(--wp--preset--color--red-light);
    }
    .home-topics-carousel-slides li:nth-child(4) {
        border-left-color: var(--wp--preset--color--teal);
        background-color: var(--wp--preset--color--teal-light);
    }
    .home-topics-carousel-slides li:nth-child(5) {
        border-left-color: var(--wp--preset--color--yellow);
        background-color: var(--wp--preset--color--yellow-light);
    }
    .home-topics-carousel-slides li:nth-child(6) {
        border-left-color: var(--wp--preset--color--magenta);
        background-color: var(--wp--preset--color--magenta-light);
    }
    .home-topics-carousel-slides li:nth-child(7) {
        border-left-color: var(--wp--preset--color--blue-dark);
        background-color: var(--wp--preset--color--blue-light-2);
    }
    
    
}

/* End Home Slider Styles */

/* WP Forms Custom Styles */

div.wpforms-container-full .wpforms-confirmation-container-full, div[submit-success]>.wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
    background: var(--wp--preset--color--green-light) !important;
    border: none !important;
}

/* End WP Forms Custom Styles */

/* Popup Maker Custom Styles */

div.pum div.pum-container {
    padding: var(--wp--preset--spacing--50);
    max-width: 728px !important;
}

div.pum-container div.pum-content {
    margin: auto;
    max-width: 550px;
}

div.pum-theme-lightbox .pum-content + .pum-close {
  color: var(--wp--preset--color--blue);
    font-size: 2em;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    box-shadow: none;
}

/* End Popup Maker Custom Styles */

.grecaptcha-badge {
    visibility: hidden;
}

/* Navigation styles */

header nav.wp-block-navigation li > a {
    padding-bottom: 11px;
    border-bottom: 4px solid transparent;
}

header nav.wp-block-navigation li.current-menu-item > a {
    border-bottom-color: var(--wp--preset--color--green); 
}

/* Mega Menu styles */
header .gw-mm-item__link a {
    font-family: var(--wp--preset--font-family--secondary);
    text-transform: uppercase;
    font-weight: 500;
    padding: 30px 25px;
    outline: none;
}

header .gw-mm-item__dropdown {
   box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.11); 
}

/* Make mega menu full width */
header div.gw-mm {
    position: static;
}

header div.gw-mm .gw-mm-item__dropdown-wrapper, header div.gw-mm.is-mobile.is-opened .gw-mm__content-wrapper {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
}

div.gw-mm.is-mobile ul.gw-mm__content {
    max-width: none;
}

/* disable hover dropdown on desktop */
div.gw-mm:not(.is-mobile) li.gw-mm-item:hover .gw-mm-item__dropdown-wrapper:not(.is-opened) {
    height: 0 !important;
    overflow: hidden !important;
}

div.gw-mm .gw-mm-item__link a strong {
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}

div.gw-mm .gw-mm-item__link:hover a strong, div.gw-mm .gw-mm-item__link a:focus strong {
    border-bottom-color: #32861277;
}

div.gw-mm .gw-mm-item__link:hover a, div.gw-mm .gw-mm-item__link a:hover {
    text-decoration: none;
}

div.gw-mm .gw-mm-item__link a.current-page strong {
    border-bottom-color: var(--wp--preset--color--green)
}

div.gw-mm .ssew-nav-mega-dropdown > .gw-mm-item__link button {
    padding-right: 25px;
}

.ssew-nav-mega-dropdown.target-is-opened {
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.11); 
    color: var(--wp--preset--color--green)
}

.ssew-nav-mega-dropdown.target-is-opened > .gw-mm-item__link a, .ssew-nav-mega-dropdown.target-is-opened > .gw-mm-item__link button {
    color: var(--wp--preset--color--green);
}

div.gw-mm div.gw-mm-item__dropdown-wrapper.is-opened {
    height: auto;
    overflow: visible;
}

/* replace button arrow with chevron */
header .ssew-nav-mega-dropdown .gw-mm-item__link button span.dashicons {
    font-size: inherit;
    width: auto;
    height: auto;
}
header .ssew-nav-mega-dropdown .gw-mm-item__link button span.dashicons-arrow-down:before {
    content: "\f078";
    font-family: "Font Awesome 7 Solid";
    font-weight: 900;
    padding-left: 4px;
    font-size: 0.9em;
}
header .ssew-nav-mega-dropdown.target-is-opened > .gw-mm-item__link button span.dashicons-arrow-down:before {
    content: "\f077";
}

/* Mega Nav Mobile styles */
header .gw-mm.is-mobile .ssew-nav-mega-dropdown.target-is-opened {
    box-shadow: none;
}

header .gw-mm.is-mobile .gw-mm__toggle {
    border: none;
    background: none;
    color: var(--wp--preset--color--blue);
}
header .gw-mm.is-mobile .gw-mm-item__link {
    border-left: 5px solid transparent;
    margin-left: 11px;
}

header div.gw-mm.is-mobile .gw-mm-item__link a strong {
    border-bottom: none;
    padding-bottom: none;
}

header div.gw-mm.is-mobile li.gw-mm-item {
    border-left: 5px solid transparent;
}

header div.gw-mm.is-mobile li.gw-mm-item.current-page {
    border-left-color: var(--wp--preset--color--green)
}

header .gw-mm.is-mobile .gw-mm-item__link a {
    font-size: 18px;
    padding: 20px 0px;
    border-bottom: 1px solid #C4D3E3;
}

header .gw-mm.is-mobile .gw-mm-item__link button {
    border-bottom: 1px solid #C4D3E3;
}

header .gw-mm.is-mobile .gw-mm-item__dropdown {
    box-shadow: none;
    border-top: 1px solid #C4D3E3;
}

header .gw-mm.is-mobile .ssew-nav-mega-dropdown.target-is-opened .gw-mm-item__link a, header .gw-mm.is-mobile .ssew-nav-mega-dropdown.target-is-opened .gw-mm-item__link button{
    border-bottom: 0;
    color: var(--wp--preset--color--blue)
}

header .gw-mm.is-mobile .gw-mm-item__dropdown-wrapper.is-opened .gw-mm-item__dropdown {
    border-top: none;
    padding: 0 0 0 15px;
}

header .gw-mm.is-mobile .gw-mm-item__dropdown-wrapper.is-opened .gw-mm-item__dropdown .wp-block-columns {
    gap: 0;
}

header .gw-mm.is-mobile .gw-mm-item__dropdown-wrapper.is-opened .gw-mm-item__dropdown .wp-block-columns:last-child .wp-block-column:last-child .wp-block-group:last-child {
    margin-bottom: 0 !important;
}

header .gw-mm.is-mobile .gw-mm-item__dropdown-wrapper.is-opened .gw-mm-item__dropdown p > a {
    font-size: 16px;
}

header .gw-mm.is-mobile .gw-mm-item__dropdown-content > div.wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

header .gw-mm.is-mobile .gw-mm__toggle .gw-mm__toggle-text {
    /* hide "Menu" text - only show for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

header .gw-mm.is-mobile .gw-mm__toggle .dashicons {
    font-size: 2.5em;
    height: auto;
    width: auto;
}


/* End Navigation styles */