/* =========================================================================
   HEADER – huvudmeny, tjänstemeny, mobilmeny och seminarieruta
   ========================================================================= */

/* HEADER */ 
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
	z-index: 1000;
	transition: background-color 0.3s ease-in-out;
}

header.scrolled {
    background-color: var(--rippler-green); /* Scrolled state */
}

header a {
    z-index: 2;
}

header logo {
    padding: 0 0 0 0;
    height: 100%;
    width: auto;
    z-index: 1;
    display: flex;
    align-items: center;
}

.mobile-logo {
    display: none;
}

header .logo-img {
    height: 75px;
    width: auto;
    min-height: 20px;
    max-width: unset;
}

#logo-link {
	position: absolute;
    margin-left: calc(50% - 62.5px);
}

.logo-link-r {
    display: none;
}

header .logo-img-r {
    height: 30px;
    width: auto;
    min-height: 30px;
    max-width: unset;
}

header .menu-trigger-mobile {
	cursor: pointer;
}

header li {
    list-style: none;
    padding: 0;
    margin: 0;
}

header li a{
	padding: 0 10px;
	text-decoration: none !important;
	font-size: 1.2em;
	margin: 0;
	cursor: pointer;
}

.leftmeny-container {
	width: fit-content;
}

header .leftmeny-container #menu-huvudmeny-v1-desktop-left {
	width: fit-content;
	padding: 0px 0px 0px 50px;
	display: flex;
}

.rightmeny-container {
	width: fit-content;
}

header .rightmeny-container #menu-huvudmeny-v1-desktop-right {
	width: fit-content;
	padding: 0px 50px 0px 0px;
	display: flex;
}

/* ========== Tjänstemeny (desktop) ========== */

header #service-container {
	display: none;
	position: absolute;
	top: 70px;
	background-color: var(--e-global-color-secondary);
	width: 100%;
	justify-content: space-between;
	height: calc(100vh - 70px);
	overflow: auto;
}

header #service-container .service-left {
	width: 50%;
	height: fit-content;
	padding: 50px 0 0 50px;
}

header #service-container .service-left h4 {
	font-size: 2.5em;
	font-weight: 600;
	margin: 0;
}

header #service-container .services-container {
	display: block;
	position: relative;
	width: 100%;
	min-height: 470px;
	padding-top: 5%;
}

header #service-container #menu-services-v1-desktop {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	align-items: start;
	gap: 40px;
	width: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
}

/* Huvudrubriker – bara länken direkt under li, inte underlänkarna */
header #service-container .menuItem {
	list-style: none;
}

header #service-container .menuItem > a {
	padding: 0;
	text-decoration: underline !important;
	color: black !important;
	font-weight: 600;
	vertical-align: middle;
}

/* Chevron-knapp */
header #service-container .submenu-toggle {
	background: none;
	border: 0;
	padding: 6px;
	margin-left: 8px;
	cursor: pointer;
	vertical-align: middle;
	line-height: 0;
	color: black;
}

header #service-container .submenu-toggle::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

header #service-container .menuItem.open > .submenu-toggle::before {
	transform: translateY(2px) rotate(-135deg);
}

header #service-container .submenu-toggle:focus-visible {
	outline: 2px solid black;
	outline-offset: 2px;
}

/* Undermeny i tjänstemenyn */
header #service-container .sub-menu {
	list-style: none;
}

header #service-container .menuItem.open > .sub-menu {
	display: block;
	margin-top: 10px;
}

header #service-container .subItem a {
	margin: 0;
	padding: 0;
	font-size: 1em;
	text-decoration: none !important;
	color: black !important;
	font-weight: 300;
}

header #service-container .subItem a:hover {
	text-decoration: underline !important;
}

/* ========== Generellt för header (används även av mobilmenyn) ========== */

header .subItem {
	padding: 5px 0;
}

header .subItem a {
	margin: 0;
	padding: 0;
	font-size: 1em;
	text-decoration: none !important;
	color: black !important;
	font-weight: 300;
}

header .sub-menu {
	padding: 0;
	margin: 0;
	display: none;
}

header li a:hover {
	text-decoration: underline !important;
}

header #service-container .life-container {
	width: 500px;
    min-height: 672px;
    height: 100%;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    background-color: var(--rippler-green);
    gap: 60px;
    justify-content: center;
}

header #service-container  .life-container h2 {
	text-decoration: none !important;
	color: white !important;
}

header #service-container  .life-container a {
	color: white !important;
}

header #service-container  .life-container .text-container span{
	color: white !important;
}

header #service-container  .life-container .text-container a:hover {
	text-decoration: underline;
}

header .fa-arrow-left {
	margin-left:4px;
}

@media (max-width: 1135px) {
    header #service-container2 {
        display: none;
    }
}
@media (min-width: 1135px) {
    header #service-container2 {
        display: block;
        position: absolute;
        right: 0;
        top: 70px;
        background: white;
        width: 380px;
        height: 100vh;
        padding: 10px 0 0 20px;
    }
    
    header #service-container2 .sub-menu {
        display: none;
    }
    
    header #service-container2 .menu {
        padding: 0;
    }
    
    header #service-container2 .menuItem a{
    	padding: 0;
    	color: black !important;
    	font-weight: 600;
    }
    
    #service-container2 .life-container {
        margin-top: 90px;
    }
    
    #service-container2 .life-container h2 {
        font-size: 22px;
        font-weight: 700;
        font-style: normal;
        line-height: 1.1em;
        margin-bottom: 5px;
    }
    
    #service-container2 .life-container a {
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        font-style: normal;
        line-height: 1.1em;
        margin-bottom: 5px;
    }
    
}

#service-container-mobile {
	display: none;
    position: absolute;
    top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--e-global-color-secondary);
    padding: 30px 30px;
}

.menu-trigger-mobile {
	display: none;
	width: 40px;
    height: 40px;
	margin: 0 30px 0 0;
}

.services-container-mobile .sub-menu {
	display:none;
	padding: 10px 0px 0px 0px;
}

.services-container-mobile .active .sub-menu {
	display: block;
}

#menu-huvudmeny-v1-mobile {
	padding: 0;
}

.services-container-mobile li {
	padding: 10px 0px;
}

.services-container-mobile a {
	color: black !important;
	padding: 0;
}

.services-container-mobile .sub-menu a{
	padding: 0 5px;
}

.mobileTrigger:before {
    position: absolute;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
    display: inline-block;
    left: 110px;
    top: 42px;
	cursor: pointer;
}


.mobileTrigger.active:before {
    content: "\f077"; /* Chevron Up */
}

.seminarie-container .latest-invite {
	border-radius: 10px;
	display: flex;
    flex-direction: column;
}

.seminarie-container .inviteText {
	padding: 8px 16px;
	background: white;
	border-radius: 10px 10px 0 0;
}

.seminarie-container .latest-invite h3{
	margin-bottom: 4px;
	color: black;
}

.seminarie-container .latest-invite h4{
	margin: 0;
    color: black;
    font-size: 16px;
    margin-bottom: 8px;
}

.seminarie-container .latest-invite div {
	width: fit-content;
    height: fit-content;
}

.seminarie-container img {
	border-radius:0 0 10px 10px;	
	max-height: 150px;
	object-fit: cover;
}

.seminariePush a{
	font-weight: 600;
}

@media (max-width: 1135px) {
	
    .logo-link {
        display: none;
    }
    
    .logo-link-r {
		display: flex;
        align-items: center;
        height: 100%;
		padding: 0 0 0 30px;
    }
	
	.leftmeny-container {
		display:none;
	}
	
	.rightmeny-container {
		display:none;
	}
	
	.menu-trigger-mobile {
		display: block;
	}
}

@media (max-width: 830px) {
	
	header .logo-img-r {
		height: 20px;
		width: auto;
		min-height: 20px;
		max-width: unset;
	}
	
    .nav-link {
        display: none !important;
    }
	
	.nav-button { 
	display: none;
	}
}
