/*
 Theme Name:   ntcg
 Template:     Divi
 Description:  Default Theme for New Testament Church of God
 Author:       adxvz
 Version:      2.0
*/

/************************
** General Settings    **
*************************/

/* Set default font */
selector {
    font-family: "Figtree", sans-serif;
}

html {
    font-size: 16px;
}

/* Remove DIVI header */

#main-header {
    display: none;
}

#main-footer {
    display: none;
}

#top-header {
    display: none;
}

#page-container {
    padding-top: 0px !important;
    margin-top: -1px !important;
}

/******************************
** Top (Fixed) Global Menu   **
*******************************/

/* make the width of menu containers 100% wide */

.menu-split .et_pb_menu__menu,
.menu-split .et_pb_menu__menu > nav,
.menu-split .et_pb_menu__menu > nav > ul {
    width: 100%;
}

/* push the nth menu item and any other items to the right of it to the right */

.menu-split .et_pb_menu__menu > nav > ul li:nth-child(10) {
    margin-left: auto;
}

/*set the background color of the fixed header when scrolling*/
.fixed-topbar {
    background-color: #30373b !important;
    -webkit-transition: background-color 1s ease-out;
    -moz-transition: background-color 1s ease-out;
    -o-transition: background-color 1s ease-out;
    transition: background-color 1s ease-out;
}

.fixed-topbar .et_pb_menu__menu > nav > ul > li > a {
    color: #f7f7f7 !important;
}

.fixed-topbar .et_pb_menu__menu > nav > ul > li.current-menu-item > a,
.fixed-topbar .et_pb_menu__menu > nav > ul > li.current_page_item > a {
    color: #f7c70c !important; /* active link color for fixed-topbar */
    font-weight: bold !important;
}

/*set the background color of the fixed header when scrolling*/
.pa-fixed-topbar {
    background-color: #f7f7f7 !important;
    -webkit-transition: background-color 1s ease-out;
    -moz-transition: background-color 1s ease-out;
    -o-transition: background-color 1s ease-out;
    transition: background-color 1s ease-out;
    box-shadow: 0px 5px 13px -6px rgba(0, 0, 0, 0.2);
}

.pa-fixed-topbar .et_pb_menu__menu > nav > ul > li > a {
    color: #30373b !important;
}

.pa-fixed-topbar .et_pb_menu__menu > nav > ul > li.current-menu-item > a,
.pa-fixed-topbar .et_pb_menu__menu > nav > ul > li.current_page_item > a {
    color: #0facb2 !important; /* active link color for pa-fixed-topbar */
    font-weight: bold !important;
}

.always-active > a {
    color: #0facb2 !important; /* highlight colour */
    font-weight: 700;
}

/* Fixed Image size for topbar logo */
.no-resize-img img {
    margin-left: 10px !important;
    width: 100px !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

#slide-in-open {
    cursor: pointer;
}

/* Burger Bars */

.line {
    display: block;
    position: absolute;
    top: 14px;
    right: 10px;
    height: 2px;
    width: 20px;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    -webkit-transition: 0.1s ease-in-out;
    -moz-transition: 0.1s ease-in-out;
    -o-transition: 0.1s ease-in-out;
    transition: 0.1s ease-in-out;
}

.line-2 {
    top: 20px;
}

.line-3 {
    top: 26px;
}

/* Menu Slide In */

#slide-in-open.open .line-1 {
    top: 20px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

#slide-in-open.open .line-2 {
    display: none;
}

#slide-in-open.open .line-3 {
    top: 20px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.slide-in-menu {
    right: 0 !important;
    opacity: 1 !important;
}

.slide-in-menu-container {
    position: fixed; /* pin to viewport */
    z-index: 9;
    top: 0;
    right: 0; /* anchor to right */
    height: 100vh; /* full height */
    width: 100%; /* or any width you want */
    transform: translateX(100%);
    opacity: 0;
    background: #30373b;
    -webkit-transition:
        transform 0.5s ease,
        opacity 0.5s ease !important;
    -moz-transition:
        transform 0.5s ease,
        opacity 0.5s ease !important;
    -o-transition:
        transform 0.5s ease,
        opacity 0.5s ease !important;
    -ms-transition:
        transform 0.5s ease,
        opacity 0.5s ease !important;
    transition:
        transform 0.5s ease,
        opacity 0.5s ease !important;
    overflow-x: hidden;
    overflow-y: auto;
    will-change: transform;
}

/*place button modules next to each other in the same column*/
.pa-inline-buttons .et_pb_button_module_wrapper {
    display: inline-block;
}

.pa-inline-buttons {
    text-align: center !important;
}

/* When active, slide into view and show */
.slide-in-menu-container.slide-in-menu {
    transform: translateX(0);
    opacity: 1 !important;
}

/* Menu Links */

.menu-link {
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
}

.mobile-menu-button {
    color: #000 !important;
    text-align: left;
}

/* Sticky Navbar */
/*set the default background color of the header section*/
.pa-header {
    background: transparent;
}

.pa-header .menu-item-has-children .sub-menu {
    pointer-events: none;
    opacity: 0; /* hides submenu */
}

.pa-fixed-header .menu-item-has-children .sub-menu {
    pointer-events: auto;
    opacity: 1;
}

.pa-header .et_pb_menu__menu > nav > ul > li > a {
    color: #f7f7f7 !important;
}

/*set the background color of the fixed header when scrolling*/
.pa-fixed-header {
    background-color: #30373b !important;
    height: 88px !important;

    box-shadow: 0px 5px 13px -6px rgba(0, 0, 0, 1);
    margin-top: 10px;
}

/* Sticky Menu Logo */
/* set the default background color of the header section */
.menu-logo {
    opacity: 0;
    -webkit-transition: opacity 1s ease-out;
    -moz-transition: opacity 1s ease-out;
    -o-transition: opacity 1s ease-out;
    transition: opacity 1s ease-out;
}

/*set the background color of the fixed header when scrolling*/
.menu-logo-fixed {
    opacity: 1;
    -webkit-transition: opacity 1s ease-out;
    -moz-transition: opacity 1s ease-out;
    -o-transition: opacity 1s ease-out;
    transition: opacity 1s ease-out;
}

.pa-fixed-header .et_pb_menu__menu > nav > ul > li > a {
    color: #f7f7f7 !important;
}

/*==== Underline Color Swipe - Menu ====*/

.pa-underline-color-swipe nav ul li a::before {
    position: absolute;
    bottom: 0;
    display: block;
    height: 2px;
    width: 0%;
    content: "";
    background-color: #f7c70c;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

.pa-underline-color-swipe nav ul li a:hover::before {
    opacity: 1;
    width: 100%;
}

.pa-underline-color-swipe nav ul li a:hover {
    transition: all 0.3s cubic-bezier(0, 0, 0.23, 1);
    background-position: 0%;
}

/*==== Sub Menu Styling ====
/* Hidden by default off-screen */
body:not(.et-fb-root-ancestor) [class*="et-lb-content"],
.et-lb-wrapper {
    position: fixed !important;
    top: -100vh; /* hidden above viewport */
    left: 0;
    width: 100%;
    margin: 20px 0 !important;
    padding-bottom: 10vh !important;
    height: auto;
    z-index: 99;
    background: #424e54;
    overflow: auto !important;
    transition: top 0.4s ease-in-out;
}

/* Slide down into view */
.et-lb-open {
    top: 0 !important;
}

/* Inner row offset */
body:not(.et-fb-root-ancestor) [class*="et-lb-content"] .et_pb_row {
    position: relative;
    top: 70px;
}

.submenu-list {
    width: 30px;
    top: 55px;
    color: #fff;
}

/* Homepage menu bar colour change*/

.pa-menu-color nav {
    position: sticky;
    background-color: #f7c70c;
}

/************* MEDIA QUERIES **********/

@media (min-width: 981px) {
    /* Anything up to px will be affected by this */
    .topbar-mobile {
        display: none !important;
    }
    .slide-in-menu-container {
        display: none !important;
    }
}

.hide-toggle-icon .et_pb_toggle_title:before {
    display: none !important;
}

.hide-toggle-icon .et_pb_toggle_title .et_pb_toggle_title_icon {
    display: none !important;
}

@media (max-width: 980px) {
    /* Anything from px and lower will be affected by this */
    .pa-fixed-header {
        display: none !important;
    }
    .pa-header {
        display: none !important;
    }
    .locations-map {
        top: 25px;
    }
}

/* hover/reveal section on homepage */

/* hide all reveal panels by default */

.rv_item {
    margin-bottom: 50px;
}

.rv_reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.35s ease,
        opacity 0.35s ease;
}

/* only reveal the rv_reveal that is inside the hovered rv_item */
.rv_item:hover .rv_reveal {
    max-height: 800px; /* adjust as needed */
    opacity: 1;
    text-align: center;
}

/* button icons - closed state */
.rv_button::after {
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.25s ease;
}

/* button icons - opened state for the item being hovered */
.rv_item:hover .rv_button::after {
    transform: rotate(180deg); /* optional */
}
