/* ============================== HEADER STYLING ============================== */
.site-header {
    width: 100%;
    position: relative;           /* Important for z-index */
    z-index: 1000;
    background-color: transparent;
}
.annoucement a{
  font-family: var(--font-family-secondary);
  transition: all 0.3s ease;
}
.annoucement a:hover{
  color: var(--hover-grey);
}

.sticky-header-wrapper {
    width: 100%;
    z-index: 1001;
}

.sticky-header-wrapper.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--text);
    animation: smoothSlideDown 0.3s ease-out forwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding-bottom: 20px;
}

@keyframes smoothSlideDown {
    0% { top: -250px; }
    100% { top: 0; }
}

.top-bar-sm {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-inline: var(--container-padding);
    padding-block: 20px;
}
.bottom-bar {
    position: relative;
    z-index: 10;
}
.bottom-menu{
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}
.header-menu-btn{
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}
/* .header-button{
  background-color: var(--blue);
} */
.header-button a{
  color: var(--white);
  font-family: var(--font-family-secondary);
}
.header-logo img {
    max-height: 50px;
}
.header-button.wp-element-button{
  color: var(--white);
}
.header-menu {
    flex: 1;
    text-align: center;
}

.header-menu .menu,
.bottom-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-menu .menu li,
.bottom-menu .menu li {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}
.header-menu .menu > li:hover > a,
.bottom-menu .menu > li:hover > a {
  color: var(--hover-grey) !important;
}
.header-menu .sub-menu li a,
.bottom-menu .sub-menu li a {
    border-bottom: 1px solid #e0e0e0 !important; 
    text-align: left;
}

.header-menu .menu li a:last-child,
.bottom-menu .menu li a:last-child {
    border-bottom: none;                                  /* Remove border from last item */
}

/* Top level links */
.header-menu .menu li a,
.bottom-menu .menu li a {
    text-decoration: none;
    color: #fff;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
    line-height: var(--line-height-base);
    display: block;
    font-family: var(--font-family-base);

}


.header-menu .sub-menu,
.bottom-menu .sub-menu,
.header-menu .menu li > ul,
.bottom-menu .menu li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    min-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 9999;                    /* Much higher z-index */
    border-radius: 4px;
    margin-top: 4px;
    margin-left: 0px !important;
}

/* Submenu links */
.header-menu .sub-menu li a,
.bottom-menu .sub-menu li a,
.header-menu .menu li ul li a,
.bottom-menu .menu li ul li a {
    padding: 15px 0px;
    color: #333 !important;
    display: block;
    white-space: wrap;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    max-width: 90%;
    margin: 0 auto;
}

.header-menu .sub-menu li:first-child,
.bottom-menu .sub-menu li:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.header-menu .sub-menu li:last-child,
.bottom-menu .sub-menu li:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.header-menu .sub-menu li:hover,
.bottom-menu .sub-menu li:hover {
    background: var(--grey);
}
.header-menu .sub-menu li.current_page_item,
.bottom-menu .sub-menu li.current_page_item{
    background-color: var(--grey) !important;
}
.header-menu .sub-menu li a[aria-current="page"],
.bottom-menu .sub-menu li a[aria-current="page"]{
  color: var(--blue) !important;
}
.header-menu .menu > li > a[aria-current="page"],
.bottom-menu .menu > li > a[aria-current="page"]{
  color: var(--hover-grey) !important;
}
/* Show submenu on hover */
.header-menu .menu li:hover > .sub-menu,
.bottom-menu .menu li:hover > .sub-menu,
.header-menu .menu li:hover > ul,
.bottom-menu .menu li:hover > ul {
    display: block;
}

/* Invisible bridge to prevent hover loss when moving mouse slowly to submenu */
.header-menu .sub-menu::before,
.bottom-menu .sub-menu::before,
.header-menu .menu li > ul::before,
.bottom-menu .menu li > ul::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: -20px;
    right: -20px;
    z-index: -1;
}

/* Custom Arrow */
.header-menu .menu li.menu-item-has-children > a::after,
.bottom-menu .menu li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('/wp-content/uploads/2026/04/Vector-2026-04-03T154123.359.svg') no-repeat center;
    background-size: contain;
    margin-left: 6px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}


.header-menu .menu li:hover > a::after,
.bottom-menu .menu li:hover > a::after {
    transform: rotate(180deg);
}

/* Submenu Inner Arrow Override */
.header-menu .sub-menu li.menu-item-has-children > a,
.bottom-menu .sub-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 35px;
}

.header-menu .sub-menu li.menu-item-has-children > a::after,
.bottom-menu .sub-menu li.menu-item-has-children > a::after {
    background-image: url('/wp-content/uploads/2026/04/svgviewer-output-20.svg');
    transform: rotate(-90deg);
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -7px;
    margin-left: 0;
}

.header-menu .sub-menu li:hover > a::after,
.bottom-menu .sub-menu li:hover > a::after {
    transform: rotate(-90deg);
}

.header-menu .sub-menu .sub-menu,
.bottom-menu .sub-menu .sub-menu,
.header-menu .menu li ul li > ul,
.bottom-menu .menu li ul li > ul {
    top: 0;
    left: 100%;
    margin-top: 0;                  
    margin-left: 0;                 
    border: none;
    z-index: 10000;                 
}


.header-menu .sub-menu,
.bottom-menu .sub-menu,
.header-menu .sub-menu .sub-menu,
.bottom-menu .sub-menu .sub-menu {
    z-index: 9999;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1381px){
    .header-menu .menu li a, .bottom-menu .menu li a,
    .header-button a{
        font-size: 13px;
    }
    .header-menu .menu li:hover > .sub-menu{
        left: initial;
        right: 0;
    }
}
@media (max-width: 1141px){
    .header-menu .menu li a, .bottom-menu .menu li a,
    .header-button a{
        font-size: 12px;
    }
}
@media (max-width: 1680px){
    .header-menu .sub-menu .sub-menu,
    .bottom-menu .sub-menu .sub-menu,
    .header-menu .menu li ul li > ul,
    .bottom-menu .menu li ul li > ul {
        left: auto;
        right: 100%;                
    }
}
/* ==================== MOBILE MENU CSS ==================== */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1005;
}
.mobile-toggle-btn .bar {
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}
/* Hamburger active transform */
.mobile-toggle-btn.active .bar-1 {
    transform: translateY(9px) rotate(45deg);
}
.mobile-toggle-btn.active .bar-2 {
    opacity: 0;
}
.mobile-toggle-btn.active .bar-3 {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-wrapper {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--blue);
    padding: 0 20px 20px 20px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-list li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-list li:last-child {
    border-bottom: none;
}
.mobile-menu-list li a {
    display: block;
    color: var(--white) !important;
    padding: 15px 0;
    text-decoration: none;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
}
.mobile-menu-list li a:hover {
    color: var(--hover-grey) !important;
}
.mobile-menu-list .sub-menu {
    display: none;
    list-style: none;
    padding-left: 15px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.mobile-menu-list .sub-menu li a {
    font-size: 14.5px;
    padding: 12px 0;
}
.mobile-dropdown-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 54px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-dropdown-toggle::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.mobile-dropdown-toggle.open::after {
    transform: rotate(-135deg);
}

@media (max-width: 1081px) {
    .desktop-menu-nav,
    .bottom-bar {
        display: none !important;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .header-button {
        display: none !important;
    }
    .sticky-header-wrapper.is-fixed{
        padding-bottom: 0px;
    }
}

