/**
 * CS Main Menu Styles
 */

/* Sticky Scroll Header Styles */

/* Base sticky header styles */
.cs-sticky-header {
    position: fixed!important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    will-change: transform;
}

/* Hidden state - slide up */
.cs-sticky-header.cs-header-hidden {
    transform: translateY(-100%);
}

/* Section menu positioning */
.cs-section-menu-wrapper.cs-sticky-header {
    z-index: 999; /* Below main menu */
}

.sticky-wrapper-section.cs-sticky-header {
    z-index: 1001; /* Above main menu */
}

/* Adjust positioning when multiple headers are sticky */
.cs-main-menu-container.cs-sticky-header + .sticky-wrapper-section.cs-sticky-header {
    top: 80px; /* Height of main menu */
}

.sticky-wrapper-section.cs-sticky-header + .cs-section-menu-wrapper.cs-sticky-header {
    top: 50px; /* Height of top bar */
}

/* When both main menu and section elements exist */
.cs-main-menu-container.cs-sticky-header ~ .sticky-wrapper-section.cs-sticky-header {
    top: 80px;
}

.cs-main-menu-container.cs-sticky-header ~ .sticky-wrapper-section.cs-sticky-header + .cs-section-menu-wrapper.cs-sticky-header {
    top: 130px; /* Main menu + top bar */
}

/* Ghost elements to prevent page jumping */
.cs-main-menu-ghost,
.cs-section-menu-ghost,
.sticky-wrapper-section-ghost {
    width: 100%;
    display: none; /* Initially hidden, shown when headers become sticky */
    pointer-events: none;
}

/* Show ghost elements when headers are sticky and not hidden */
.cs-sticky-header:not(.cs-header-hidden) + .cs-main-menu-ghost,
.cs-sticky-header:not(.cs-header-hidden) + .cs-section-menu-ghost,
.cs-sticky-header:not(.cs-header-hidden) + .sticky-wrapper-section-ghost {
    display: block;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
.cs-sticky-header {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Mobile adjustments */
@media screen and (max-width: 992px) {
    
    /* Adjust top positioning for mobile */
    .cs-main-menu-container.cs-sticky-header ~ .sticky-wrapper-section.cs-sticky-header {
        top: 70px; /* Smaller main menu height on mobile */
    }
    
    .cs-main-menu-container.cs-sticky-header ~ .sticky-wrapper-section.cs-sticky-header + .cs-section-menu-wrapper.cs-sticky-header {
        top: 120px; /* Adjusted for mobile */
    }
}

/* Enhanced shadow when sticky */
.cs-sticky-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cs-sticky-header.cs-header-hidden {
    box-shadow: none;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1380px; /* Change to your desired width */
}

.cs-mobile-menu-search, .cs-mobile-menu-account {
    display: none;
}

/* Reset and base styles */
.cs-main-menu-container *,
.cs-main-menu-container *::before,
.cs-main-menu-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body scroll lock styles */
body.cs-scroll-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Main menu container */
.cs-main-menu-container {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0px;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; */
}

/* Main menu wrapper - centers content */
.cs-main-menu-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo styles */
.cs-main-menu-logo {
    flex: 0 0 auto;
}

.cs-main-menu-logo img {
    max-height: 60px;
    width: auto;
    vertical-align: middle;
}

/* Main navigation styles */
.cs-main-menu {
    flex: 1 1 auto;
    margin: 0 20px;
}

.cs-main-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    max-width: 750px;
    margin: auto;
}

.cs-main-menu-item {
    margin: 0;
    padding: 0;
    position: relative;
}

.cs-main-menu-item a {
    display: block;
    padding: 30px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-weight: bold;
}

.cs-main-menu-item a:hover {
    color: #e11b22;
}

/* Section-specific styling */
.cs-menu-section-fagforening a:hover,
.cs-menu-section-fagforening.active a {
    color: #e11b22;
}

.cs-menu-section-a-kasse a:hover,
.cs-menu-section-a-kasse.active a {
    color: #e11b22;
}

.cs-menu-section-pensionsfond a:hover,
.cs-menu-section-pensionsfond.active a {
    color: #e11b22;
}

.cs-menu-section-forsikring a:hover,
.cs-menu-section-forsikring.active a {
    color: #e11b22;
}

/* Right menu items */
.cs-main-menu-right {
    display: flex;
    align-items: center;
}

/* Search button */
.cs-main-menu-search button {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-main-menu-search button:hover {
    color: #e11b22;
}

/* Icon styling */
.cs-icon-svg {
    width: 25px;
    height: 25px;
    display: block;
}


.cs-main-menu-search button,
.cs-main-menu-account a {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.cs-main-menu-search button:hover,
.cs-main-menu-account a:hover {
    opacity: 0.7;
}

/* Also update the search form button icon */
.cs-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* User account icon */
.cs-main-menu-account {
    margin-left: 5px;
    margin-right: 15px;
}

.cs-main-menu-account a {
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cs-main-menu-account a:hover {
    color: #e11b22;
}

.cs-main-menu-cta {
    margin-left: 15px;
}

/* CTA button */
.cs-main-menu-cta a {
    display: inline-block;
    background-color: #e11b22;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    line-height: 1.2;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
}

.cs-main-menu-cta a:visited {
    color: white;
}

.cs-main-menu-cta a:hover {
    background-color: #c01018;
    color: white;
}

/* Search form overlay */
.cs-search-form {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 3;
    display: none;
    transition: all 0.3s ease;
    height: 100%;
}

.cs-search-form.active {
    display: flex;
    z-index: 998;
}

.cs-search-form-inner {
    max-width: 1095px;
    margin: 0 auto;
    width: 100%;
    align-content: center;
}

.cs-search-form form {
    display: flex;
    position: relative;
}

.cs-search-form input[type="search"] {
    width: 100%;
    padding: 10px 30px 12px 0px;
    border: 0px;
    border-bottom: 1px solid #000000;
    border-radius: 0;
    font-size: 32px;
    font-weight: bold;
    color: black;
    outline: none;
    transition: border-color 0.2s ease;
}

.cs-search-form input[type="search"]:focus {
    border-color: #e11b22;
}

.cs-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #000000;
    transition: color 0.2s ease;
}

.cs-search-form button:hover {
    color: #e11b22;
}

.cs-search-form button .cs-icon-svg {
    width: 25px;
    height: 25px;
}

/* Mobile menu toggle button */
.cs-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.cs-mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.cs-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cs-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cs-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* SVG Logo styling */
.cs-main-menu-svg-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* CS Search Results Styling */

/* Main container */
.cs-search-results-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cs-search-results-container {
    width: 100%;
}

/* Search header */
.cs-search-header {
    margin-bottom: 30px;
}

.cs-search-title {
    font-size: 18px;
    color: #E4002B;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.cs-search-subtitle {
    font-size: 48px;
    color: #000;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

/* Search form on results page */
.cs-search-form-container {
    margin-bottom: 40px;
}

/* Search results list */
.cs-search-results-list {
    width: 100%;
}

/* Individual result item */
.cs-search-result-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.cs-result-header {
    margin-bottom: 10px;
}

.cs-result-title {
    font-size: 22px;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cs-result-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cs-result-title a:hover {
    color: #b81219;
    text-decoration: underline;
}

.cs-result-content {
    margin-bottom: 10px;
}

.cs-result-content p {
    color: #333;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.cs-result-footer {
    margin-top: 10px;
}

.cs-result-link {
    color: #E4002B;
    font-size: 16px;
    text-decoration: none;
}

.cs-result-separator {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 25px 0;
}

/* No results message */
.cs-no-results {
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 4px;
    text-align: center;
}

.cs-no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

.cs-no-results p {
    color: #666;
}

/* Pagination */
.cs-search-pagination {
    margin-top: 40px;
    text-align: center;
}

.cs-search-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cs-search-pagination .page-numbers.current {
    background-color: #e11b22;
    color: #fff;
    border-color: #e11b22;
}

.cs-search-pagination .page-numbers:hover:not(.current) {
    background-color: #f8f8f8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cs-search-subtitle {
        font-size: 26px;
    }
    
    .cs-result-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cs-search-results-wrapper {
        padding: 20px 15px;
    }
    
    .cs-search-subtitle {
        font-size: 22px;
    }
    
    .cs-result-title {
        font-size: 18px;
    }
}

/* Adjust logo size on smaller screens */
@media screen and (max-width: 992px) {
    .cs-main-menu-svg-logo {
        max-height: 50px;
    }
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .cs-main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .cs-main-menu.active {
        display: block;
    }
    
    .cs-main-menu-items {
        flex-direction: column;
    }
    
    .cs-main-menu-item a {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .cs-mobile-menu-toggle {
        display: block;
        margin-left: 0px;
        background: #E4002B;
        border-radius: 30px;
        height: 44px;
    }

    /* Mobile menu toggle button children spacing */
    .cs-mobile-menu-toggle span:first-child {
        margin-top: 0;
    }

    .cs-mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }
    
    .cs-main-menu-wrapper {
        height: 70px;
    }
    
    .cs-main-menu-logo img {
        max-height: 50px;
    }
}
/**
 * CS Section Menu Styles with Top Bar and Mega Menu
 */
 

/* Top section bar */
.cs-section-top-bar {
    width: 100%;
    background-color: #000000;
    padding: 0;
    font-size: 13px;
    color: white;
    z-index: 4;
    position: relative;
}

.cs-section-top-inner {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-section-breadcrumb {
    font-size: 12px;
}

.cs-section-links {
    display: flex;
    align-items: center;
}

.cs-section-link {
    color: white;
    text-decoration: none!important;
    padding: 15px 30px;
    font-size: 12px;
    font-weight: bold;
}

.cs-section-link.cs-section-link {
    color: white;
}

.cs-section-link.active {
    font-weight: bold;
    background-color: #E4002B;
}

.cs-section-link:hover {
    text-decoration: underline;
}

.cs-section-separator {
    color: white;
    margin: 0 5px;
}

.cs-section-top-right {
    display: flex;
    align-items: center;
}

.cs-section-account, .cs-section-frontpage-btn {
    margin-left: 40px;
}

.cs-section-search {
    margin-left: 0;
}

.cs-section-account a, .cs-section-frontpage-btn a {
    background: none;
    border: none;
    display: flex;
    color: white!important;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: normal;
    text-transform: capitalize;
}

.cs-section-search button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    color: white!important;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: normal;
    text-transform: capitalize;
}

.cs-section-search button:hover,
.cs-section-account a:hover {
    text-decoration: underline;
}

.cs-section-search .cs-icon-svg,
.cs-section-account .cs-icon-svg, .cs-section-frontpage-btn .cs-icon-svg {
    width: 23px;
    height: 24px;
    margin-right: 8px;
}

/* Section menu container */
.cs-section-menu-wrapper {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 999;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Section menu inner - centers content */
.cs-section-menu-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Section logo styles */
.cs-section-logo {
    flex: 0 0 auto;
    margin-right: 0px;
}

.cs-section-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.cs-section-logo a svg {
    overflow: visible;
}

.cs-section-logo-img {
    max-height: 50px;
    width: auto;
}

/* Section navigation styles */
.cs-section-navigation {
    flex: 1 1 auto;
    margin: 0;
}

.cs-section-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    max-width: 820px;
    margin: auto;
}

.cs-section-menu-item {
    margin: 0;
    padding: 0;
    position: relative;
}

.cs-section-menu-item a {
    display: flex;
    align-items: center;
    padding: 28px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

/* .cs-section-menu-item a:hover {
} */

.cs-section-menu-item.active a {
    font-weight: bold;
}

/* .cs-section-menu-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #e11b22;
} */

/* Dropdown indicator */
.cs-dropdown-indicator {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.cs-section-menu-item:hover .cs-dropdown-indicator {
    transform: rotate(180deg);
}

/* Mega menu styles with content-based column widths */
.cs-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #F5F5F5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: -2px;
}

/* Ensure parent containers have proper positioning */
.cs-section-menu-item {
    position: relative;
}

/* The JavaScript will handle making the mega menu full width */
.cs-mega-menu-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 30px 30px 30px 240px;
    width: 100%;
    box-sizing: border-box;
}

/* Container for all columns */
.cs-mega-menu-columns {
    display: flex;
    width: 100%;
    justify-content: flex-start; /* Align columns to the start */
    align-items: flex-start;
}

/* Each column container */
.cs-mega-menu-column {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto; /* Don't grow or shrink, keep natural width */
    margin-right: 60px; /* Space between columns */
    min-width: 150px; /* Minimum width to prevent too narrow columns */
}

/* Last column shouldn't have right margin */
.cs-mega-menu-columns .cs-mega-menu-column:last-child {
    margin-right: 0;
}

/* Each menu item in a column */
.cs-mega-menu-item {
    margin-bottom: 0px; /* Space between items in a column */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Last item in each column shouldn't have bottom margin */
.cs-mega-menu-column .cs-mega-menu-item:last-child {
    margin-bottom: 0;
}

/* Modified hover styles to underline only the text */
/* Updated mega menu link styles with animated underline */
.cs-mega-menu-item a {
    padding: 8px 0;
    font-size: 14px;
    display: inline-block;
    color: #333333;
    position: relative;
    text-decoration: none;
}

/* Create the underline effect with a pseudo-element */
.cs-mega-menu-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 0;
    background-color: #e11b22; /* Default color */
    transition: width 0.3s ease;
}

/* On hover, expand the underline */
.cs-mega-menu-item a:hover::after {
    width: 100%;
}

/* On hover, change text color */
.cs-mega-menu-item a:hover {
    color: #e11b22; /* Default hover color */
}

/* Active state styling */
.cs-mega-menu-item.active a {
    color: #e11b22; /* Default active color */
}

.cs-mega-menu-item.active a::after {
    width: 100%;
    background-color: #e11b22; /* Default active underline color */
}

/* Show mega menu on hover */
.cs-section-menu-item:hover .cs-mega-menu {
    opacity: 1;
    visibility: visible;
}

/* Section CTA button */
.cs-section-cta {
    margin-left: 15px;
}

.cs-section-cta a {
    display: inline-block;
    color: #ffffff;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    line-height: 1.2;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    text-transform: none;
}

.cs-section-cta a:visited {
    color: white;
}

.cs-section-cta a:hover {
    background-color: #c01018;
    color: white;
}

/* Special section-specific styling */
/* .cs-section-fagforening-menu {

} */

/* Top main navigation */
.cs-section-fagforening-menu .cs-section-menu-item a {
    text-transform: none;
    font-weight: normal;
}

#cs-parent-menu-item-27802 {
    color: #333;
}

/* .cs-section-fagforening-menu .cs-section-menu-item.active a,
.cs-section-fagforening-menu .cs-section-menu-item:hover a {
    color: #e11b22;
} */

.cs-mega-menu-item a:hover {
    color: #333;
}

/* Top section navigation */
.cs-top-sections {
    width: 100%;
    background-color: #000;
    padding: 0;
}

.cs-top-sections-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
}

.cs-top-section-item {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: normal;
    position: relative;
}

.cs-top-section-item.active {
    background-color: #e11b22;
    font-weight: bold;
}

.cs-top-section-item:hover {
    background-color: #333;
}

/* Responsive styling */
@media screen and (max-width: 992px) {
    .cs-section-menu-inner {
        height: 60px;
        flex-wrap: wrap;
    }
    
    .cs-section-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 0;
        order: 3;
    }
    
    .cs-section-navigation.active {
        display: block;
    }
    
    .cs-section-menu-items {
        flex-direction: column;
    }
    
    .cs-section-menu-item a {
        padding: 12px 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .cs-mega-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        display: none;
        border-top: none;
        padding-left: 15px;
    }
    
    .cs-section-menu-item.active .cs-mega-menu {
        display: block;
        visibility: visible;
    }
    
    .cs-mega-menu-inner {
        padding: 0;
    }
    
    .cs-mega-menu-item a {
        padding: 10px 20px;
    }
    
    .cs-section-top-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cs-section-top-right {
        margin-top: 5px;
        width: 100%;
        justify-content: space-between;
    }
    
    /* Mobile-specific menu toggle for section menu */
    .cs-section-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }
    
    .cs-section-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #333333;
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    
    .cs-section-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .cs-section-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .cs-section-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .cs-section-cta {
        margin-left: auto;
    }
    
    .cs-dropdown-indicator {
        margin-left: auto;
        padding-right: 10px;
    }
}

/* Mobile Menu Overlay */
.cs-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cs-mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 40px;
}

.header_mobile_menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid white;
    padding-bottom: 20px;
    padding-top: 15px;
}

.cs-main-menu-svg-logo-mobile {
    padding-left: 15px;
    width: 55px;
}

.cs-main-menu-svg-close {
    padding-right: 15px;
    width: 33px;
    height: 20px;
}

/* Close button */
.cs-mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0px;
    line-height: 1;
}

/* Mobile menu items */
.cs-mobile-menu-items {
    list-style: none;
    margin: 0;
    padding: 0px 50px;
    width: 100%;
}

.cs-mobile-menu-item {
    margin-bottom: 60px;
}

.cs-mobile-menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0px;
}

.cs-mobile-menu-item a {
    color: white!important;
    text-decoration: none;
    font-size: 23px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.cs-mobile-menu-item a:hover {
    color: #e11b22;
}

.cs-mobile-menu-item.active a {
    color: #e11b22;
}

.cs-mobile-menu-arrow {
    width: 35px;
    height: 35px;
    stroke: currentColor;
    stroke-width: 1px;
    fill: none;
}

/* Mobile menu buttons */
.cs-mobile-menu-buttons {
    width: 100%;
    padding: 0px 50px;
}

.cs-mobile-menu-button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cs-main-menu-svg-mobile-user-icon {
    width: 20px;
    position: relative;
    top: 3px;
    right: 5px;
}

.cs-mobile-menu-button.primary {
    background-color: #e11b22;
    color: white;
    border-color: #e11b22;
}

.cs-mobile-menu-button.primary:hover {
    background-color: #c01018;
    border-color: #c01018;
}

.cs-mobile-menu-button.secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cs-mobile-menu-button.secondary:hover {
    background-color: #5b5555;
}

/* Update mobile toggle button styles */
.cs-mobile-menu-toggle.active span {
    background-color: white;
}

/* Hide desktop menu on mobile */
@media screen and (max-width: 992px) {
    .cs-main-menu {
        display: none !important;
    }

    .cs-main-menu-cta {
        display: none !important;
    }

    .cs-main-menu-container {
        padding: 0;
    }

    /* #wpadminbar {
        display: none!important;
    } */

    .cs-mobile-menu-search, .cs-mobile-menu-account {
        display: block;
    }

    .cs-mobile-menu-search button {
        background: none;
        position: relative;
        top: 3px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {

    .cs-search-form input[type="search"] {
        font-size: 21px;
        background: none;
    }

    .cs-mobile-menu-item {
        margin-bottom: 30px;
    }
    
    .cs-mobile-menu-item a {
        font-size: 20px;
    }

    .cs-section-logo {
        overflow: hidden;
        width: 50px;
        position: relative;
        height: 55px;
    }

    .cs-section-logo a {
        position: absolute;
        top: 0px;
    }

    .cs-section-logo svg {
        width: 130px;
    }

    .cs-section-fagforening .cs-section-logo svg {
        width: 160px;
    }

    .cs-main-menu-logo {
        overflow: hidden;
        width: 50px;
        position: relative;
        height: 55px;
    }

    .cs-main-menu-logo a {
        position: absolute;
        top: 4px;
        width: 157px;
    }

    .cs-main-menu-logo a img {
        max-height: 70px;
    }
}

/* Mobile Section Menu Overlay */

.cs-mobile-section-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* White background for section menu */
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Container for sliding panels */
.cs-mobile-section-menu-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Individual menu panels */
.cs-mobile-section-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F4F4F4;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
    justify-content: space-between;
}



/* Smooth transitions for content opacity */
.cs-mobile-section-menu-content,
.cs-mobile-section-menu-buttons, 
.cs-mobile-section-menu-header {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.cs-mobile-submenu {
    background-color: white!important;
    justify-content: flex-start;
}

.cs-mobile-submenu .cs-mobile-section-menu-content  {
    padding-top: 70px;
}

.cs-mobile-submenu .cs-mobile-section-menu-close-back {
    position: relative;
    bottom: 3px;
    right: 45px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0px;
    line-height: 1;
    padding-right: 15px;
}

.cs-mobile-submenu .cs-mobile-section-menu-close-back img {
    width: 30px;
    height: 18px;
}

.cs-mobile-section-menu-panel.slide-left {
    transform: translateX(-100%);
}

.cs-mobile-section-menu-panel.slide-right {
    transform: translateX(100%);
}

.cs-mobile-section-menu-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 40px;
    overflow-y: auto;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 70px;
}

/* Header with logo and close/back button - Based on main menu header */
.cs-mobile-section-menu-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 20px;
    padding-top: 15px;
    background-color: #4a90b8; /* Default color, will be overridden by inline styles */
    min-height: 67px;
}

.cs-mobile-section-menu-header.has-back {
    width: 100%;
    justify-content: space-between;
}

.cs-mobile-section-menu-back {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    margin-left: 15px;
    margin-right: 0px;
}

.cs-mobile-section-menu-back img {
    width: 12px;
}

.cs-mobile-section-menu-title {
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: left;
    padding-left: 20px;
    text-decoration: none;
    max-width: 255px;
}

.cs-mobile-submenu .cs-mobile-section-menu-title {
    color: #000 !important;
}

.cs-mobile-section-menu-title img {
    margin-right: 8px;
    position: relative;
    top: 5px;
    width: 13px;
}

.cs-mobile-section-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0px;
    line-height: 1;
    padding-right: 15px;
}

/* Section title - Based on main menu styling */
.cs-mobile-section-title {
    padding: 30px 45px 30px;
    font-size: 18px;
    font-weight: normal;
    color: #000;
    margin: 0;
}

/* Menu items - Based on main menu items */
.cs-mobile-section-menu-items {
    list-style: none;
    margin: 0;
    padding: 0px 45px;
    padding-top: 0px;
    width: 100%;
    flex: 1;
}

.cs-mobile-section-menu-item {
    margin-bottom: 30px;
}

.cs-mobile-section-menu-item:last-child {
    margin-bottom: 0px;
}

.cs-mobile-section-menu-item a {
    color: #000!important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.cs-mobile-section-menu-item a:hover {
    color: var(--cs-section-color, #4a90b8)!important;
}

.cs-mobile-section-menu-item.active a::after {
    color: var(--cs-section-color, #4a90b8)!important;
}

.cs-mobile-section-menu-arrow {
    width: 35px;
    height: 35px;
    stroke: currentColor;
    stroke-width: 1px;
    fill: none;
}

/* Mobile menu buttons  */
.cs-mobile-section-menu-buttons {
    width: 100%;
    padding: 0px 50px;
    padding-bottom: 40px;
    padding-top: 50px;
}

.cs-mobile-section-menu-button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cs-mobile-section-menu-button:last-child {
    margin-bottom: 0;
}

.cs-main-menu-svg-mobile-user-icon {
    width: 20px;
    position: relative;
    top: 3px;
    right: 5px;
}

.cs-mobile-section-menu-button.primary {
    background-color: #e11b22;
    color: white;
    border-color: #e11b22;
}

.cs-mobile-section-menu-button.primary:hover {
    background-color: #c01018;
    border-color: #c01018;
}

.cs-mobile-section-menu-button.secondary {
    background-color: transparent;
    color: #333333;
    border-color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-mobile-section-menu-button.secondary:hover {
    background-color: #5b5555;
    color: white;
}

.cs-mobile-section-menu-button.secondary svg {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

/* Mobile Section Menu Toggle Button */
.cs-mobile-section-menu-toggle {
    display: none!important;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    display: block;
    margin-left: 0px;
    background: #E4002B;
    border-radius: 30px;
    height: 46px;
    padding: 10px 11px;
}

.cs-mobile-section-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.cs-mobile-section-menu-toggle span:first-child {
    margin-top: 0;
}

.cs-mobile-section-menu-toggle span:last-child {
    margin-bottom: 0;
}

.cs-mobile-section-menu-toggle.active span {
    background-color: #333333;
}

.cs-mobile-section-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cs-mobile-section-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cs-mobile-section-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* Submenu specific styling */
.cs-mobile-submenu .cs-mobile-section-menu-item {
    margin-bottom: 10px;
}

.cs-mobile-submenu .cs-mobile-section-menu-item a {
    font-size: 20px;
    padding: 15px 0;
}

/* .cs-mobile-submenu .cs-mobile-section-title {
    font-size: 22px;
    padding: 25px 50px 15px;
} */

/* Hide desktop section menu on mobile */
@media screen and (max-width: 992px) {
    .cs-section-navigation {
        display: none !important;
    }

    .cs-section-cta {
        display: none !important;
    }

    .cs-mobile-section-menu-toggle {
        display: block!important;
    }

    .cs-section-menu-wrapper {
        padding: 8px 0px;
    }

    /* #wpadminbar {
        display: none!important;
    } */

    .cs-section-top-inner {
        display: none;
    }

    .mobile-wrapper-section {
        display: flex;
        justify-content: space-between;
        min-width: 145px;
        align-items: center;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .cs-mobile-section-title {
        padding: 25px 30px 30px;
        font-size: 22px;
    }
    
    .cs-mobile-section-menu-items {
        padding: 0px 30px;
    }
    
    .cs-mobile-section-menu-buttons {
        padding: 0px 40px;
        padding-bottom: 40px;
    }
    
    .cs-mobile-section-menu-item {
        margin-bottom: 5px;
    }
    
    .cs-mobile-section-menu-item a {
        font-size: 18px;
    }

    .cs-mobile-submenu .cs-mobile-section-menu-item a {
        font-size: 18px;
    }
    .cs-mobile-section-menu-content {
        padding-top: 30px;
    }
}