@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flyup {
    0% {
      bottom: 0px;
    }
    100% {
      bottom: 40px;
    }
  }

.navbar-new {
    font-family: var(--global-primary-font-family), sans-serif;
    overflow: hidden;
    padding: 24px 48px;
    z-index: 20;
}

.navbar-top {
    font-size: 12px;
    margin-bottom: 16px;
}

.navbar-top .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.navbar-top-left {
    display: inline-block;
    width: 50%;
}

.navbar-top-left a {
    color: #000;
    margin-left: 8px;
    text-decoration: none;
}

.navbar-top-right {
    text-align: right;
    display: inline-block;
    width: 49%;
}

.navbar-main {
  position: relative;
  transition: transform 0.3s ease;
  background-color: #fff;
  border-radius: 16px;;
}

.navbar-main.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  left: 0;
  border-radius: 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    position: relative;
}

.arrow-rotate {
    rotate: 320deg;
    margin-left: 5px;
    transform-origin: bottom;
}

.logo {
    display: flex;
    align-items: center;
    width: 180px;
    flex-shrink: 0;
}

.logo a {
    width: 100%;
}

.logo-img {
    z-index: 21;
    pointer-events: none;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0s;
    align-self: center;
    position: relative;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
    color: #000;
}

.language-display {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 0;
    user-select: none;
}

.language-display:hover {
    opacity: 0.7;
}

.current-language {
    font-family: inherit;
    font-size: 12px;
    color: #000;
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    min-width: 120px;
    z-index: 1000;
    margin-top: 4px;
}

.language-dropdown-menu.show {
    display: block;
}

.language-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #000;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option:first-child {
    border-radius: 4px 4px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 4px 4px;
}

.search-globe {
    font-size: 12px;
    margin-left: 6px;
    margin-right: 3px;
}

.search-arrow-down {
    font-size: 10px;
    margin-left: 6px;
}

/* Main Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    font-weight: 300;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666;
}

.nav-link i {
    font-size: 10px;
}

.nav-search {
    margin-left: 20px;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    transition: color 0.3s ease;
    margin-right: 10px;
}

.nav-search i {
    font-size: 12px;
}

.nav-search:hover {
    color: #666;
}

@media (max-width: 1024px) {
    .main-navigation {
        margin: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 1279px) {
    .logo {
        width: 120px;
    }

    .navbar-new {
        padding-left: 24px;
        padding-right: 24px
    }

    .language-selector {
        font-size: 10px;
    }
    
    .language-dropdown {
        font-size: 10px;
    }

    .main-navigation, .nav-search, .header-cta {
        display: none !important;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-cta {
        width: -webkit-fill-available;
    }

    .mobile-header-cta {
        height: 50px !important;
    }
    
    .mobile-header-cta a {
        font-size: 19px !important;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    color: var(--global-colour-green);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 80%;
    max-height: 80vh;
    width: 400px;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-logo img {
    height: 30px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f5f5f5;
    color: var(--global-colour-green);
}

.mobile-navigation {
    margin-bottom: 30px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.mobile-nav-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.mobile-nav-link:hover i {
    transform: rotate(180deg);
}

.mobile-cta {
    text-align: center;
    margin-top: 20px;
    width: fit-content;
    justify-self: center;
}

/* HubSpot Popup Styles */
.hubspot-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hubspot-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hubspot-popup-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hubspot-popup-overlay.active .hubspot-popup-content {
    transform: scale(1);
}

.hubspot-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.hubspot-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.hubspot-popup-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hubspot-popup-close:hover {
    background-color: #f7f7f7;
    color: #333;
}

.hubspot-popup-body {
    padding: 30px;
}

/* Hide desktop popup on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline-block;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: inline-block;
    }
}

/* HubSpot form styling */
.hubspot-popup-body .hs-form {
    max-width: 100%;
}

.hubspot-popup-body .hs-form .field {
    margin-bottom: 20px;
}

.hubspot-popup-body .hs-form .hs-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.hubspot-popup-body .hs-form .hs-button {
    background-color: #8BC34A;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hubspot-popup-body .hs-form .hs-button:hover {
    background-color: #7CB342;
    transform: translateY(-2px);
}


