/*
* ----------[NOTIFICATION BAR]--------*
*/
#polybar {
    width: 100%;
    background: var(--yellow);
    color: var(--white);
    font-size: var(--copyFontSmall);
    text-align: center;
    z-index: 99999;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--museo);
}
#polybar .message-text {
    flex: 1 1 auto;
    font-size: var(--copyFontSmall);
    padding: 0 10px 0 50px;
}
#polybar .message-text a {
    color: var(--white);
    font-weight: 700;
}
#polybar .close-btn {
    margin-right: 20px;
    margin-left: 20px;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
#polybar .close-btn:before {
    content: '';
    position: absolute;
    background-color: var(--white);
    height: 2px;
    top: 50%;
    left: 50%;
    width: 14px;
    transform: translate(-50%,-50%) rotate(45deg);
    transition: all .3s ease-in-out;
}
#polybar .close-btn:after {
    content: '';
    position: absolute;
    background-color: var(--white);
    width: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
    height: 14px;
    transition: all .3s ease-in-out;
}
/*
* ----------[SOCIAL NETWORKS]--------*
*/
.social-networks-shortcode ul {
    list-style: none;
    padding: 0;
    display: flex;
}
.social-networks-shortcode ul li:not(:last-child) {
    margin-right: 35px;
}
.et-social-icon.fa-icon a.icon:before {
    content: '';
}
.social-networks-shortcode ul li a.icon i,
.social-networks-shortcode ul li a.icon svg {
    font-size: 16px;
    color: var(--default-color); /* Default color */
    fill: var(--default-color); /* Default color for SVG */
    transition: color .4s ease, fill .4s ease;
}
.social-networks-shortcode ul li a.icon:hover i,
.social-networks-shortcode ul li a.icon:hover svg {
    color: var(--primary-color); /* Hover color */
    fill: var(--primary-color); /* Hover color for SVG */
}

/* HEADER STYLES */

#header-section {
    width: 100%;
    max-width: 100%;
}

header {
    z-index: 2;
}

header, #header-row {
    position: fixed;
}

#header-row {
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
}

#header-row .col-3 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

header.shrink #header-row .main-menu-module {
    margin: 0 auto;
    flex: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#menu-main-menu {
    gap: 32px;
}

#header-menu {
    margin-right: auto;
}

/* Style the main menu links */
ul#menu-main-menu > li > a {
    color: var(--white);
}

ul#menu-main-menu > li.submenu-expanded > a {
    color: var(--yellow);
}

/* Default down arrow for all items with submenus */
ul#menu-main-menu .menu-item-has-children > a:first-child:after {
    font-family: ETmodules;
    content: "3"; /* Down arrow */
    font-size: 26px;
    position: absolute;
    right: -8px;
    top: -4px;
    font-weight: 400;
    transition: transform 0.2s ease; /* Smooth rotation transition */
    transform: rotate(0deg); /* Default down arrow */
}

/* Rotate the arrow up when the submenu is expanded */
ul#menu-main-menu .menu-item-has-children.submenu-expanded > a:first-child:after {
    transform: rotate(180deg); /* Rotates to an up arrow */
}


/* Style the submenu links */
ul.sub-menu {
    width: 320px;
}

ul.sub-menu li a {
    color: var(--yellow);
    width: 100%;
    padding: 6px 11px;
    display: block;
}

header.expanded ul li a,
header.expanded ul.sub-menu li a {
    color: var(--white) !important;
}

/* Change color on hover only for main menu links */
ul#menu-main-menu > li > a:hover {
    color: var(--yellow);
    opacity: 1;
}

#header-menu .nav li ul {
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    padding: 0px;
}

#header-menu .nav li li {
    padding: 0;
}

#header-login {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: flex-end;
    color: var(--white);
}

header.expanded #header-login,
header.expanded #header-login a,
header.expanded #header-login svg path {
    fill: var(--white) !important;
    color: var(--white) !important;
}

#header-login, #Icon-Menu {
    height: 40px;
    gap: 15px;
}

.hamburger-module {
    cursor: pointer;
}

#Icon-Menu line {
    stroke: var(--white);
}

/* Hover Styles */
.login-button.hovering .login-text {
    color: var(--yellow);
    transition: color .2s ease;
}

.login-button.hovering svg.login-icon path {
    fill: var(--yellow)!important;
    transition: fill .2s ease;
}

#custom-logo-svg.hovering path {
    fill: var(--yellow)!important;
    transition: fill .2s ease;
}

header.expanded #custom-logo-svg path {
    fill: var(--white)!important;
}

#Icon-Menu.hovering line {
    stroke: var(--yellow)!important;
    transition: stroke .2s ease;
}

/*
 * ---------[MEGA MENU]-------*
*/
body.open-menu header {
    z-index: 3;
}
#mega-menu-section {
    height: 100vh;
    position: fixed;
    display: flex;
    top: 0;
    width: 100vw;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease-in-out;
    background-color: var(--charcoal);
}
#mega-menu-row {
    width: 100%;
    max-width: 100%;
    padding: 10vw;
}
/* #mega-menu-row .et_pb_menu__wrap {
    background-color: var(--charcoal);
}
#mega-menu-row .menu-item-has-children>a:first-child {
    padding-right: 64px;
}
#mega-menu-row .et-menu .menu-item-has-children>a:first-child:after {
    content: "5";
    font-size: 68px;
} */

body.open-menu #mega-menu-section {
    opacity: 1;
    visibility: visible;
    z-index: 999;
}

#close-icon-row {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    line-height: 0;
    cursor: pointer;
}

svg#Icon-Menu-Close path {
    fill: var(--yellow);
}

#Icon-Menu-Close line {
    stroke: var(--charcoal);
}

.mobile-menu-close-module {
    display: none;
}

/* Container for the entire menu */
#mega-menu-main-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    list-style: none;
}

/* Main menu items styling */
#mega-menu-main-menu ul li {
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.2;
    position: relative; /* Allows submenu to open below without absolute positioning */
}

/* Main menu link styling */
#mega-menu-main-menu ul li a {
    color: var(--yellow);
    transition: color 0.3s ease, transform 0.6s ease;
}

/* Hover effect for main menu links */
#mega-menu-main-menu ul li a:hover {
    font-weight: 600;
}

/* Submenu styling */
#mega-menu-main-menu ul.sub-menu {
    position: relative;
    top: 0;
    display: none; /* Hide submenu by default */
    flex-direction: column;
    padding: 0;
    list-style: none;
    margin-top: 10px;
    border: none;
}

#mega-menu-main-menu ul.sub-menu li {
    font-size: var(--smallFontMax);
    padding: 8px;
    line-height: 1;
    letter-spacing: 0.15px;
    width: 100%;
}

/* Display the submenu when hovering over the parent li */
#mega-menu-main-menu ul li:hover > ul {
    display: block;
}

/* Add any additional styles for ::before if needed */
/* #mega-menu-main-menu ul li a::before {
    content: '';
} */
/* #mega-menu-main-menu ul li a::after {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    right: -42px;
    transform: translateY(-50%);
    width: 35px; 
    height: 35px; 
    background-image: url('https://avad3.wpengine.com/wp-content/themes/divi-child/img/icon-arrow-right.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mega-menu-main-menu ul li a.hovering::after {
    opacity: 1; 
    transform: translateY(-50%) translateX(5px); 
} */

/*
 * ---------[SCROLL INDICATOR]-------*
 */
.scroll-indicator-row {
    bottom: 0;
    position: fixed;
}
.scroll-indicator-module .et_pb_code_inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.scroll-indicator .border-grey {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 100;
    width: 1px;
    height: 100%;
    background: var(--yellow);
}
.scroll-indicator .border {
    position: absolute;
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
    z-index: 200;
    width: 3px;
    height: 50px;
    background: var(--yellow);
}
.scroll-indicator {
    position: relative;
    width: 6px;
    height: 80px;
    overflow: hidden;
    margin-right: 120px;
}
#homepage-hero-section:hover .scroll-indicator .border {
    animation-name: scroll;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
}
@keyframes scroll {
    0% {
        top: -50px;
    }
    100% {
        top: 81px;
    }
}

@media only screen and (min-width: 981px) {
    #header-row {
        padding: 26px;
        transition: padding 0.2s ease; /* Added 's' to specify seconds */
    }
    
    header.expanded #header-row {
        background: var(--charcoal);
        padding-bottom: 160px;
        transition: padding 0.2s ease, background-color 0.2s ease; /* Ensure both padding and background transition */
    }    

    #header-row #header-menu {
        transform: translateY(0px);
        transition: transform 0.3s ease-in-out;
    }

    header.shrink #header-row #header-menu {
        transform: translateY(-100px);
    }

    header.shrink #logo-text {
        transform: translateY(-100px);
    }

    #logomark {
        scale: 1;
        transition: scale 0.5s ease-in-out;
    }

    header.shrink #logomark {
        scale: 0.8;
    }

    li.login-mobile {
        display: none!important;
    }

    #Icon-Menu {
        transform: translateY(-100px);
        transition: transform 0.3s ease-in-out;
    }

    header.shrink #Icon-Menu {
        transform: translateY(2px);
    }

    #mega-menu-main-menu ul li {
        font-size: var(--biggestFontMax);
    }
}

@media only screen and (max-width: 980px) {
    #header-row {
        background: #022027d6;
        backdrop-filter: blur(2px);
        padding: 15px;
        border-bottom: 1px solid #ffffff33;
    }
    
    #header-row #header-menu,
    header.shrink #header-row #header-menu {
        display: none;
    }

    body.open-menu #mega-menu-section {
        z-index: 1;
    }

    #close-icon-row {
        display: none;
    }

    body.open-menu .mobile-menu-close-module {
        display: block;
    }

    body.open-menu .hamburger-module {
        display: none!important;
    }

    .mobile-menu-close-module svg path {
        fill: var(--yellow);
    }

    .mobile-menu-close-module svg line {
        stroke: var(--charcoal);
    }

    .login-link {
        display: none;
    }

    #Icon-Menu {
        display: block;
    }

    #header-row .et_pb_column {
        margin-bottom: 0;
    }

    .scroll-indicator {
        display: none;
    }

    #mega-menu-main-menu ul li {
        font-size: var(--bigFontMin);
    }
}