/* ---------- Desktop navbar ---------- */
#navbar-services {
  transition: color 0.3s;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  color: black;
  font-size: 17px;
}

#navbar-services:hover {
  color: #0056b3;
}

.navbar {
  background: linear-gradient(to right, #430d7f, #0000ff);
  padding: 20px;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 32px;
  height: 32px;
}

.logo span {
  font-weight: bold;
  color: #092a7e;
  font-size: 15px;
}

.desktop-navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 30px 5vw;
    display: flex;
    align-items: center;
    justify-content: center;

}

.desktop-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 99px;
    width: 100%;
    max-width: 100%;
    padding: 16px 50px 16px 50px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.desktop-navbar .logo {
    width: 240px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-navbar .logo img {
    width: 100%;
    height: auto;
    transition: filter 0.3s;
}

.desktop-navbar .links {
    display: flex
;
    align-items: center;
    gap: 2vw;
}

.desktop-navbar .links a {
    transition: color 0.3s;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    color: black;
    font-size: 17px;
}

.desktop-navbar .links a:hover {
    color:#0056b3;
}

.desktop-navbar .links i {
    font-size: 17px;
}

.desktop-navbar .submenu {
    position: absolute;
    top: 80%;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    transition: top 0.3s, opacity 0.3s;
}

.desktop-navbar .submenu .item {
    padding: 30px;
    width: 100%;
}

.desktop-navbar .submenu .item img {
    height: 35px;
}

.desktop-navbar .submenu h3 {
    font-size: 28px;
    line-height: 38px;
}

@media (max-width: 1079px) {
    .desktop-navbar {
        display: none;
    }
}

/* ---------- Desktop navbar dropdown menu ---------- */
.dropdown { 
  position:relative 
}

.dropdown-btn { 
  background:transparent;
  border:0;
  display:flex;
  align-items:center;
  gap:.35rem;
  font:inherit;
  cursor:pointer;
  padding:.25rem 0 
}

.dropdown-btn i {
  transition:.25s 
}

.dropdown.open .dropdown-btn i {
  transform:rotate(180deg) 
}

.dropdown-menu { 
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  display: none;
  z-index: 1000 
}

.dropdown.open 
.dropdown-menu { 
  display: block;
  color: #0056b3;
}

.dropdown.open p { 
  color: #0056b3;
}

.dropdown-menu li a { 
  display: block;
  padding: .45rem 1rem;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap 
}

.dropdown-menu li a:hover { 
  background: #f4f4f4 
}

.lang-switch .fi { 
  width:20px;
  height:14px 
}

/* ---------- Mobil navbar ---------- */
.mobilmenu {
    height: 75px;
    top: 0;
    position: fixed;
    z-index: 999;
    width: 100vw;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.6s;
    padding: 0 20px;
}

.mobilmenu.active {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.mobilmenu a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.mobilmenu.active a {
    opacity: 1;
}

.mobilmenu a img {
    height: 36px;
    object-fit: contain;
    transition: all 0.5s;
}

.mobilmenu #sidebar-collapse {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    border: none;
    outline: none;
    transition: all 0.5s;
    background-color: transparent;
}

.mobilmenu .hb1 {
    position: absolute;
    top: 10px;
    right: 7px;
    width: 26px;
    border-bottom: 4px solid #ddd;
    border-radius: 99px;
    transition: all 0.5s;
}

.mobilmenu .hb2 {
    position: absolute;
    top: 18px;
    right: 7px;
    width: 26px;
    border-bottom: 4px solid #ddd;
    border-radius: 99px;
    transition: all 0.5s;
}

.mobilmenu .hb3 {
    position: absolute;
    top: 26px;
    right: 7px;
    width: 13px;
    border-bottom: 4px solid #ddd;
    border-radius: 99px;
    transition: all 0.5s;
}

.mobilmenu.active .hb1, 
.mobilmenu.active .hb2,
.mobilmenu.active .hb3 {
    border-bottom: 4px solid #040477;
}

.mobilmenu #sidebar-collapse.closed .hb1 {
    top: 50%;
    right: -5px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobilmenu #sidebar-collapse.closed .hb2 {
    right: -100%;
    opacity: 0;
}

.mobilmenu #sidebar-collapse.closed .hb3 {
    top: 50%;
    right: -5px;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 26px;
}

#sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#sidebar,
#sidebar .submenu {
    width: 100%;
    position: fixed;
    right: -100%;
    top: 75px;
    height: calc(100vh - 75px);
    z-index: 997;
    background: white;
    color: #fff;
    transition: all 0.5s ease;
    overflow-y: scroll;
    padding: 0 20px;
    touch-action: none;
}

#sidebar.active,
#sidebar .submenu.active {
    right: 0;
}

#sidebar .submenu {
    z-index: 998;
}

#sidebar .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-top: -10px;
}

#sidebar .links {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#sidebar .links a {
    width: calc(100vw - 40px);
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #040477;
    text-decoration: none;
}

#sidebar .links a i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    color: black;
    margin-right: 2px;
    font-size: 28px;
    -webkit-text-stroke: 1px;
}

#sidebar .back {
    color: black;
    font-size: 28px;
    margin: 10px -8px 0 auto;
    display: block;
    width: 45px;
    cursor: pointer;
    padding-left: 10px;
}

#sidebar .bottom {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#sidebar .bottom a {
    width: 200px;
    height: 60px;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

#sidebar .bottom a:first-child {
    background: #fff;
    color: var(--primary-red);
    font-size: 16px;
    font-weight: 600;
}

#sidebar .bottom a:last-child {
    background: var(--primary-red);
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
}

@media (min-width: 1079px) {
    #sidebar,
    .overlay.active {
        display: none;
    }

    .mobilmenu {
        display: none;
    }
}

.language {
    margin-left: 10px;
}