/* Container and Header Layout */
.site,
.wp-site-blocks {
  overflow: visible !important;
    min-height: auto !important;
}

/* Overlay background */
.homepage-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup box */
.homepage-popup-box {
    position: relative;
    background: #fff;
    /* padding: 20px; */
    max-width: 90%;
    width: 800px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    text-align: center;
}

/* Image styling */
.homepage-popup-box img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: transparent;
    border: none;
}


.custom-header {
    background: #203E56;
    color: white;
    padding: 20px 20px;
    font-family: sans-serif;
    position: relative;
    z-index: 1000;
}
.custom-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo img {
    height: 60px;
    width: 70px;
}

/* Hamburger Menu (JavaScript-controlled toggle) */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 101;
    background: transparent;
    border: none;
    padding: 0;
    justify-content: center;
    align-items: center;
}

/* Style for the hamburger lines */
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    position: relative;
}
.hamburger.is-open span {
    background-color: transparent;
}
.hamburger span::before,
.hamburger span::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
}
.hamburger span::before {
    transform: translateY(-8px);
}
.hamburger span::after {
    transform: translateY(8px);
}
.hamburger.is-open span::before {
    transform: rotate(45deg);
}
.hamburger.is-open span::after {
    transform: rotate(-45deg);
}


/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-menu a,
.dropbtn {
    color: white;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
}
.nav-menu a:hover,
.dropbtn:hover {
    color: #5BBCC6;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropbtn-wrapper {
  position: relative;
}

.dropbtn-wrapper:hover .dropdown-content {
  display: flex;
}

/* Initially hide dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #203E56;
    color: white;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-direction: row;
    padding: 15px;
}
/* Show on hover for desktop */
.dropdown:hover .dropdown-content {
    display: flex;
}

.two-column {
    display: flex;
    flex-direction: row;
}
.column {
    padding: 15px;
    min-width: 200px;
}
.column h4 {
    color: white;
    font-size: small;
}
.column a {
    color: white;
    display: block;
    margin: 5px 0;
}

.viewall {
  color: #D78955 !important;
  /* font-weight: 600 !important; */
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

/* Buttons */
.track-btn {
    padding: 6px 12px;
    background: #D78955;
    color: white;
    border-radius: 4px;
}
.track-btn {
    /* background: white; */
    color: white;
    border: 1px solid #D78955;
}
.track-btn:hover {
    background: #D78955;
}

/* Responsive */
@media (max-width: 992px) {
    /* Hide the main menu by default on mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #203E56;
        padding: 10px 0;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        right: 0;
    }
    /* Show the menu when the hamburger button has the 'is-open' class */
    .nav-menu.is-open-mobile {
        display: flex;
    }

    /* Show the hamburger icon on mobile */
    .hamburger {
        display: flex;
    }

    @media (max-width: 992px) {
    /* Hide dropdown menus on mobile completely */
    .dropdown-content {
        display: none !important;
    }

    /* Ensure the dropbtn links look consistent with others */
    .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 20px;
        color: white;
        text-decoration: none;
    }

    /* Optional: if needed to override button styles */
    .dropbtn:active,
    .dropbtn:focus,
    .dropbtn:hover {
        color: #5BBCC6;
    }
}
}
@media (min-width: 993px) {
    /* Desktop styles: Ensure nav-menu is always visible */
    .nav-menu {
        display: flex;
    }

    /* Hide hamburger on desktop */
    .hamburger {
        display: none;
    }
    
    /* Ensure dropdown content is hidden by default and only shows on hover */
    .dropdown-content {
      display: none;
    }
    .dropdown:hover .dropdown-content {
      display: flex;
    }
}
