/* === Header === */

.site-header {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0;
    z-index: 1000;
    height: 100px;
    background: #ffffff;
    box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.25);
}

body.logged-in .site-header {
  top: 32px;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 0 auto;
  padding: 12px 80px;
  width: 100%;
  gap: 16px;
}

.header-logo img, .header-logo svg {
    display: block;
    height: 72px;
}

/* Menu */

.header-menu ul,
.header-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-menu .nav-item > a.nav-button {
    position: relative;
    display: flex;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    color: #3f4247;
    font-weight: 400;
    border-radius: 40px;
    transition: all 0.2s ease-in-out;
    align-items: center;
}

.header-menu .nav-item > a.nav-button:hover {
    color: #ffffff;
    background: #253b66;
    box-shadow: 0px 0px 20px 4px #3B82F680;
}

.header-menu .nav-item.dropdown {
  position: relative;
}

.header-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    z-index: 10;
}

.header-menu .nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.header-menu .nav-subitem a.nav-subbutton {
  display: block;
  text-decoration: none;
  color: #1d1d1d;
  padding: 12px 14px;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.nav-subitem a.nav-subbutton:hover {
  background: rgba(0,0,0,0.05);
  color: var(--color-accent);
}

.header-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    justify-content: end;
}

.header-cta .btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0px 0px 20px 0px #3B82F699;
    transition: all 0.25s ease-in-out;
}

.header-cta .btn-apply .btn-text,
.header-cta .btn-apply .btn-icon {
  display: flex;
  align-items: center;
}

.header-cta .btn-apply:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

/* === Mobile === */

@media only screen and (max-width: 767px) {

	.header-menu {
	  display: none;
	}

	.site-header {
	  max-width: 100% !important;
	}

	body.logged-in .site-header {
	  top: 0;
	}

	.header-grid {
	  width: 100%;
	  grid-template-columns: 48px auto 1fr;
	  margin: 0 auto;
	  padding: 0 20px 0 12px;
	}

	.menu {
		background-color: transparent;
		border: none;
		cursor: pointer;
		display: flex;
		padding: 0;
		align-items: center;
		justify-content: center;
		outline: none !important;
		-webkit-tap-highlight-color: transparent;
	}

	.line {
	  fill: none;
	  stroke: #465267;
	  stroke-width: 6;
	  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
		stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
	}

	.line1 {
	  stroke-dasharray: 60 207;
	  stroke-width: 6;
	}

	.line2 {
	  stroke-dasharray: 60 60;
	  stroke-width: 6;
	}

	.line3 {
	  stroke-dasharray: 60 207;
	  stroke-width: 6;
	}

	.opened .line {
	  stroke: var(--color-accent) !important;
	}

	.opened .line1 {
	  stroke-dasharray: 90 207;
	  stroke-dashoffset: -134;
	  stroke-width: 6;
	}

	.opened .line2 {
	  stroke-dasharray: 1 60;
	  stroke-dashoffset: -30;
	  stroke-width: 6;
	}

	.opened .line3 {
	  stroke-dasharray: 90 207;
	  stroke-dashoffset: -134;
	  stroke-width: 6;
	}

	.header-logo img, .header-logo svg {
		display: block;
		height: 60px;
	}

	.header-cta .btn-apply {
		min-height: 48px;
		padding: 8px 18px;
		max-width: fit-content;
		margin: 0 0 0 auto;
	}

	.trp-language-item {
		padding: 7px 8px !important;
	}

	span.trp-language-item-name {

	}

	a.nav-button,
	a.nav-subbutton {
		text-align: left;
	}

	/* Mobile menu */

	.mobile-menu {
		position: fixed;
		display: block;
		width: 100%;
		height: 100vh;
		z-index: 888;
		background: var(--color-bg);
		margin-top: 85px;
		border-top: 1px solid #4d515e;
		top: 0;
		padding: 30px 20px;
		transform: translateX(-100vw);
		transition: all 0.35s ease-in-out;
	}

	.mobile-menu.active {
	  transform: translateX(0);
	  pointer-events: all;
	}

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

	.mobile-menu .nav-menu, .mobile-menu .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
        max-height: calc(100vh - 130px);
        overflow: auto;
    }

	.mobile-menu .nav-item.dropdown > .nav-button {
	  display: none;
	}

	body.logged-in .mobile-menu {
	  margin-top: 132px;
	}

	.mobile-menu ul.nav-menu {
		padding: 0;
		margin: 0;
		padding-bottom: 40px !important;
	}

	.mobile-menu a.nav-button, .mobile-menu a.nav-subbutton {
		display: flex;
		padding: 12px 8px;
		align-items: center;
		justify-content: flex-start;
		border-radius: 6px;
		text-decoration: none;
		color: #fff;
		transition: all 0.25s ease-in-out;
		font-size: 18px;
		font-weight: 300;
	}

	.header-cta {
	  gap: 6px;
	}

}