/*!
Theme Name: SDBX Studio
Theme URI: http://underscores.me/
Author: Craig Tran
Author URI: https://www.sdbxstudio.com
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sdbx-wp-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

SDBX Studio is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

body {
    font-family: 'avenir-next-lt-pro', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'avenir-next-lt-pro', sans-serif;
}
article.post ul {
    list-style: disc !important;
}
article.post ol {
    list-style: number !important;
}
article.post h2 {
}
button {
    font-family: 'avenir-next-lt-pro', sans-serif;
    letter-spacing: 0.1rem;
    font-size: 1rem;
}
#glt-translate-trigger {
    background: #b57916 !important;
    font-family: 'avenir-next-lt-pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 1rem;
}
p {
    margin-bottom: 1rem;
}
abbr:where([title]) {
    text-decoration: none;
}

#menu-main li:nth-last-child(-n + 3) {
    background-color: #27aabc;
    color: #fff;
}
#menu-main li:nth-last-child(-n + 3):hover {
    background-color: #004e6f;
}
#menu-main li:nth-last-child(-n + 3) a {
    text-transform: capitalize;
    color: #fff;
}
#menu-main li:last-child {
    border-bottom-right-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}
#menu-main .submenu li:last-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
#menu-main .submenu li:nth-last-child(-n + 3) {
    background-color: #fff;
}
#menu-main .submenu li div {
    min-height: 0;
}
#menu-main .submenu li a {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
}
#menu-main .submenu li a,
#menu-main .submenu li:nth-last-child(-n + 3) a {
    text-transform: capitalize;
    color: #004e6f;
}
li.group:hover .submenu li,
#menu-main li.group:hover .submenu li:nth-last-child(-n + 3) {
    background-color: #004e6f;
    padding-right: 2rem;
    padding-left: 2rem;
}
#menu-main li.group:hover .submenu li a,
#menu-main li.group:hover .submenu li:nth-last-child(-n + 3) a {
    color: #fff;
}
#menu-main li.current-menu-item {
    background-color: #004e6f;
}
#menu-main li.current-menu-item a {
    color: #fff;
}
#menu-main li.group ul.submenu li.current-menu-item,
#menu-main li.group ul.submenu li:nth-last-child(-n + 3).current-menu-item,
li.group:hover .submenu li:hover,
#menu-main li.group:hover .submenu li:nth-last-child(-n + 3):hover {
    background-color: #27aabc;
}
.menu-link[data-has-children] {
    cursor: text;
}
#menu-footer-1 li a:hover {
    text-decoration: underline;
}
#menu-footer-3 li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#menu-footer-3 li a::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid #27aabc;
    border-bottom: 2px solid #27aabc;
    transform: rotate(-45deg);
    display: inline-block;
    position: relative;
    left: 0;
    transition-property: all;
    transition-duration: 0.3s;
}
#menu-footer-3 li:hover a::after {
    left: 0.5rem;
}
.event-content a {
    color: #0071a5;
    text-decoration: underline;
}

.entry-content .blue-button a,
.entry-content .orange-button a,
.dark-blue-button a {
    background-color: #f58420;
    padding: 1rem 3rem 1rem 1.5rem; /* extra right space for arrow */
    display: inline-block;
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    position: relative;
    transition-duration: 0.3s;
    text-decoration: none;
}
.entry-content .blue-button a {
    background-color: #27aabc;
}
.dark-blue-button a {
    background-color: #004e6f;
}

/* Chevron arrow */
.entry-content .blue-button a::after,
.entry-content .orange-button a::after,
.dark-blue-button a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(-45deg);
}
.entry-content .blue-button a:hover,
.entry-content .orange-button a:hover {
    padding-right: 4rem;
}
.dark-blue-button a:hover {
    background-color: #f58420;
}

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides li {
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100%;
    left: 0;
    top: 0;
}

.rslides li:first-child {
    position: relative;
    display: block;
    float: left;
}

.rslides img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    border: 0;
}
.rslides_tabs {
    z-index: 10;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    width: auto;
    text-align: center;
}
.rslides_tabs li {
    width: auto;
    display: inline-block;
    margin: 0 5px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    color: transparent;
}
.rslides_tabs li.rslides_here {
    background: #fff;
}

/* Page Slideshow */
.page-slideshow {
    position: relative;
}
.rslides_nav {
    position: absolute;
    top: 40%;
    z-index: 9;
}
.rslides_nav img {
    width: 16px;
}
.rslides_nav.prev {
    left: -40px;
}
.rslides_nav.next {
    right: -40px;
}

/* Close Button */
.close-icon {
    margin: auto;
    text-align: center;
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    position: relative;
    cursor: pointer;
}
.close-icon::before,
.close-icon::after {
    content: '';
    background: #000;
    position: absolute;
    height: 100%;
    width: 1px;
}
.close-icon.close-white::before,
.close-icon.close-white::after {
    background: #fff;
}
.close-icon::before {
    transform: rotate(45deg);
}
.close-icon::after {
    transform: rotate(-45deg);
}

/* Header Nav */
header ul#menu-main {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    padding-right: 3rem;
}

header .sub-menu ul.menu li.menu-item a,
footer .menu li a {
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    line-height: 1.2;
}
header .sub-menu ul.menu li.menu-item a {
    display: inline-block;
    margin-top: 0.5rem;
}
header .sub-menu ul.menu li.menu-item:hover a,
header .sub-menu ul.menu li.current-menu-item a,
footer .menu li:hover a {
    display: inline-block;
    border-bottom: 2px solid #b57916;
}

/* Hamburger Icon */
#hamburger-1.is-active .line:nth-child(2) {
    opacity: 0;
}

#hamburger-1.is-active .line:nth-child(1) {
    -webkit-transform: translateY(0.75rem) rotate(45deg);
    -ms-transform: translateY(0.75rem) rotate(45deg);
    -o-transform: translateY(0.75rem) rotate(45deg);
    transform: translateY(0.75rem) rotate(45deg);
}

#hamburger-1.is-active .line:nth-child(3) {
    -webkit-transform: translateY(-1rem) rotate(-45deg);
    -ms-transform: translateY(-1rem) rotate(-45deg);
    -o-transform: translateY(-1rem) rotate(-45deg);
    transform: translateY(-1rem) rotate(-45deg);
}

/* Blog */

@media only screen and (max-width: 767px) {
    header ul#menu-main li a {
        border-bottom: 1px solid #b57916;
        padding: 25px 15px;
        background: url('./images/caret-right.png') no-repeat center right;
    }

    .sub-nav-header {
        background: url('./images/caret-left.png') no-repeat center left;
        padding-left: 30px;
    }

    #site-sub-navigation .menu {
        margin-left: 30px;
    }
    header .search-icon img {
        width: 2.25rem;
    }
    header .search-icon,
    header .search-icon:hover {
        border-bottom: 0;
        padding: 0 0 0 2rem;
    }
    .rslides_tabs {
        z-index: 10;
        position: absolute;
        bottom: 30px;
        left: 0;
        right: 0;
        width: auto;
        text-align: center;
    }
}
