:root {
    --rm_header_size: 150px;
    --rm_primary_header_size: 110px;
    --rm_secondary_header_size: 40px;
    --rm_header_fontsize: 19px;
    --rm_secondary_fontsize: 14px;
    --rm_body_width: 80%;
    --rm_max_body_width: 1200px;
    --rm_primary_color: var(--gcid-primary-color);
    --rm_secondary_color: var(--gcid-secondary-color);
    --rm_dark_color: var(--gcid-primary-color);
    --rm_light_color: #ffffff;
    --rm_white: #ffffff;
    --btn-border-radius: 6px;
}
body{
    width: 100%;
    overflow-x: hidden;
}
/* Import Animate.css for animations */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

* {
    scroll-margin-top: var(--rm_header_size);
}

/* Reset and base styles for header */
.rm_header_wrapper * {
    box-sizing: border-box;
}

/* Header spacer to prevent content jumping */
.rm_header_spacer {
    width: 100%;
    height: var(--rm_header_size);
}

/* Main header wrapper */
.rm_header_wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999999999999999999999999999999999999999999999999999999999;
    /* background-color: var(--rm_white); */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: var(--rm_header_size);
    transition: all 0.3s ease;
}

/* Header menu container */
.rm_header_menu {
    display: flex;
    flex-direction: column;
    width: var(--rm_body_width);
    max-width: var(--rm_max_body_width);
    flex-wrap: nowrap;
    align-content: center;
    align-items: stretch;
    justify-content: space-between;
    position:relative;
    z-index: 999;
}
.rm_header_wrapper::before,
.rm_header_wrapper::after{
    content: "";
    position:absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: var(--rm_secondary_header_size);
    background-color: var(--gcid-primary-color);
    z-index: 0;
}
.rm_header_wrapper::before{
    top: 0px;
    bottom: unset;
    height: calc(100% - var(--rm_secondary_header_size));
    background-color: white;
}
/* Secondary header row (on top, small) */
.rm_header_secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: var(--rm_secondary_header_size);
    padding: 0;
    /* border-bottom: 1px solid #eee; */
    font-size: var(--rm_secondary_fontsize);
}

.rm_header_secondary_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    align-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.rm_header_secondary_inner > div{
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Secondary menu */
.rm_secondary_menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rm_secondary_menu > ul,
.rm_secondary_menu_list {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0px!important;
    margin: 0;
    list-style: none;
    justify-content: flex-start;
}

.rm_secondary_menu > ul li,
.rm_secondary_menu_list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rm_contactinfo > span,
.rm_secondary_menu > ul li a,
.rm_secondary_menu_list a {
    text-decoration: none;
    color: var(--rm_light_color);
    font-size: var(--rm_secondary_fontsize);
    transition: color 0.3s ease;
    letter-spacing: -.3px;
    font-weight: 800;
}


/* Language flags */
.rm_language_flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rm_flag {
    display: block;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.rm_flag:hover {
    transform: scale(1.1);
}

.rm_flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Primary header row (below, larger) */
.rm_header_primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    align-content: center;
    height: var(--rm_primary_header_size);
    gap: 20px;
    padding: 0px;
}

/* Logo styling */
.rm_logo {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rm_logo img {
    height: 65px;
    width: auto;
}

/* Primary menu */
.rm_primary_menu {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.rm_primary_menu > ul,
.rm_primary_menu_list {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 28px;
    width: 100%;
    padding: 0px!important;
    margin: 0;
    list-style: none;
    justify-content: flex-end;
}

.rm_primary_menu > ul li,
.rm_primary_menu_list li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rm_primary_menu > ul li a,
.rm_primary_menu_list a {
    font-size: var(--rm_header_fontsize);
    font-weight: 500;
    text-decoration: none;
    color: var(--rm_secondary_color);
    padding: 0;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 800;
    letter-spacing: -.5px;
}

.rm_primary_menu > ul li a:hover,
.rm_primary_menu_list a:hover {
    color: var(--rm_secondary_color);
}


.rm_primary_menu > ul li a:hover::after,
.rm_primary_menu_list a:hover::after,
.rm_primary_menu > ul .current-menu-item a::after,
.rm_primary_menu_list .current-menu-item a::after {
    width: 100%;
}

.current-menu-item > a {
    color: var(--gcid-secondary-color) !important;
    font-weight: 600;
}

/* Mobile menu button */
.rm_mobile_menu_btn {
    display: none;
    width: 50px;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.rm_toggle_menu {
    width: 100%;
    height: 100%;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create hamburger lines with pseudo elements and a span */
.rm_toggle_menu::before,
.rm_toggle_menu::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--rm_dark_color);
    transition: all 0.3s ease;
    left: 50%;
    transform: translateX(-50%) translateY(-1px);
}

.rm_toggle_menu::before {
    top: calc(50% - 6px);
}

.rm_toggle_menu::after {
    top: calc(50% + 6px);
}

/* Middle line using background */
.rm_toggle_menu:not(.active) {
    background: linear-gradient(to right, var(--rm_dark_color) 0%, var(--rm_dark_color) 100%);
    background-size: 22px 2px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

/* Active state (X) */
.rm_toggle_menu.active {
    background: none;
}

.rm_toggle_menu.active::before {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.rm_toggle_menu.active::after {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu wrapper */
.rm_mobile_menu_wrapper {
    position: fixed;
    top: var(--rm_header_size);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--rm_header_size));
    background-color: var(--rm_white);
    z-index: 999999;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    visibility: hidden;
}

.rm_mobile_menu_wrapper.active {
    transform: translateX(0);
    visibility: visible;
}

/* Mobile menu close button - Hidden since we use the hamburger */
.rm_mobile_menu_close_btn {
    display: none;
}

/* Mobile menu */
.rm_mobile_menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 20px 0;
}

.rm_mobile_menu_list {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
}

.rm_mobile_menu_list li {
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #eee;
}

.rm_mobile_menu_list li:last-child {
    border-bottom: none;
}

.rm_mobile_menu_list a {
    color: var(--rm_dark_color);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 18px 25px;
    display: block;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.rm_mobile_menu_list a:hover {
    background-color: #f8f9fa;
    padding-left: 35px;
}

.rm_mobile_menu_list .current_page_item:not(.rm_primary_menuitem) a,
.rm_mobile_menu_list .current-menu-item:not(.rm_primary_menuitem) a {
    color: var(--gcid-secondary-color);
    font-weight: 600;
    background-color: #f8f9fa;
}

ul > li.current_page_item.rm_primary_menuitem > a {
    background-color: var(--gcid-primary-color)!important;
    color: white!important;
}

.rm_mobile_menu_list .current_page_item a::before,
.rm_mobile_menu_list .current-menu-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--gcid-secondary-color);
}

/* Button styles */
.rm_btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--btn-border-radius);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 20px 25px;
    cursor: pointer;
    font-size: 16px;
}

.rm_btn_primary {
    background-color: var(--gcid-primary-color);
    color: var(--rm_white);
    border-color: var(--gcid-primary-color);
}

.rm_btn_primary:hover {
    background-color: var(--gcid-secondary-color);
    border-color: var(--gcid-secondary-color);
    transform: translateY(-2px);
}

/* Responsive styles */
@media only screen and (max-width: 1400px) {
    .rm_header_menu {
        width: 100%;
        padding: 0px 20px;
    }

    .rm_header_secondary_inner {
        width: 100%;
        padding: 0px!important;
    }
}

@media only screen and (max-width: 980px) {
    .rm_logo img {
        height: 40px;
    }

    :root {
        --rm_header_fontsize: 14px;
        --rm_header_size: 90px;
        --rm_primary_header_size: 60px;
        --rm_secondary_header_size: 30px;
    }

    .rm_primary_menu > ul,
    .rm_primary_menu_list {
        gap: 30px;
    }
}

@media only screen and (max-width: 768px) {
    :root {
        --rm_header_fontsize: 14px;
        --rm_header_size: 95px;
        --rm_primary_header_size: 60px;
        --rm_secondary_header_size: 35px;
    }

    /* Hide email on mobile, keep phone and flags */
    .rm_header_secondary .rm_contactinfo + .rm_contactinfo {
        display: none;
    }

    .rm_logo {
        margin-top: 5px;
    }

    .rm_secondary_menu_list,
    .rm_secondary_menu,
    .rm_primary_menu {
        display: none;
    }

    .rm_logo img {
        height: 35px;
    }

    .rm_mobile_menu_btn {
        display: flex;
    }
}

@media only screen and (max-width: 480px) {
    .rm_header_menu {
        padding: 0 15px;
    }

    .rm_mobile_menu_close_btn {
        top: 20px;
        right: 20px;
    }

    .rm_logo img {
        height: 30px;
    }
}

/* ===================================================
   Sub-menu - Primary menu (desktop, hover)
   =================================================== */

.rm_primary_menu > ul li ul,
.rm_primary_menu_list li ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--rm_white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--gcid-primary-color);
    min-width: 210px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    border-radius: 0 0 6px 6px;
}

.rm_primary_menu > ul li:hover > ul,
.rm_primary_menu_list li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rm_primary_menu > ul li ul li,
.rm_primary_menu_list li ul li {
    position: static;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rm_primary_menu > ul li ul li:last-child,
.rm_primary_menu_list li ul li:last-child {
    border-bottom: none;
}

.rm_primary_menu > ul li ul li a,
.rm_primary_menu_list li ul li a {
    font-size: calc(var(--rm_header_fontsize) * 0.82);
    font-weight: 400;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: var(--rm_dark_color);
    transition: background-color 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
}

.rm_primary_menu > ul li ul li a:hover,
.rm_primary_menu_list li ul li a:hover {
    background-color: #f8f9fa;
    color: var(--gcid-primary-color);
    padding-left: 26px;
}

/* Chevron arrow injected via JS as .rm_menu_arrow */
.rm_menu_arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}

.rm_primary_menu > ul li.menu-item-has-children > a,
.rm_primary_menu_list li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
}

.rm_primary_menu > ul li.menu-item-has-children:hover > a .rm_menu_arrow,
.rm_primary_menu_list li.menu-item-has-children:hover > a .rm_menu_arrow {
    transform: rotate(-135deg) translateY(2px);
}

/* ===================================================
   Sub-menu - Mobile menu (click to expand)
   =================================================== */

.rm_mobile_menu_list li.menu-item-has-children {
    position: relative;
}

.rm_mobile_submenu_toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 58px;
    height: 57px;
    background: none;
    border: none;
    border-left: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rm_dark_color);
    transition: background-color 0.2s ease;
    padding: 0;
}

.rm_mobile_submenu_toggle:hover {
    background-color: #f0f1f2;
}

.rm_mobile_submenu_toggle::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

.rm_mobile_menu_list li.menu-item-has-children.open > .rm_mobile_submenu_toggle::after {
    transform: rotate(-135deg) translateY(2px);
}

.rm_mobile_menu_list li ul,
.rm_mobile_menu_list li ul.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rm_mobile_menu_list li.menu-item-has-children.open > ul,
.rm_mobile_menu_list li.menu-item-has-children.open > ul.sub-menu {
    max-height: 600px;
}

.rm_mobile_menu_list li ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rm_mobile_menu_list li ul li:last-child {
    border-bottom: none;
}

.rm_mobile_menu_list li ul li a {
    padding: 14px 25px 14px 40px;
    font-size: 16px;
    font-weight: 400;
    color: var(--rm_dark_color);
    border-left: 3px solid var(--gcid-primary-color);
    background-color: #f8f9fa;
    display: block;
}

.rm_mobile_menu_list li ul li a:hover {
    padding-left: 50px;
    background-color: #eff0f1;
}

.rm_mobile_menu_list li.menu-item-has-children.open > a {
    color: var(--gcid-primary-color);
    background-color: #f8f9fa;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Utility classes */
.rm_txt_primary {
    color: var(--rm_primary_color);
}

.rm_primary_menu > ul > li.current-menu-item:not(.rm_primary_menuitem) a{
    color: var(--gcid-primary-color) !important;
}

/* Focus states for accessibility */
.rm_primary_menu > ul li a:focus,
.rm_primary_menu_list a:focus,
.rm_secondary_menu > ul li a:focus,
.rm_secondary_menu_list a:focus,
.rm_mobile_menu_list a:focus,
.rm_btn:focus,
.rm_toggle_menu:focus,
.rm_flag:focus {
    /* outline: 2px solid var(--rm_primary_color); */
    /* outline-offset: 2px; */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rm_header_wrapper {
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .rm_primary_menu > ul li a,
    .rm_primary_menu_list a,
    .rm_secondary_menu > ul li a,
    .rm_secondary_menu_list a {
        color: black;
    }

    .rm_primary_menu > ul li a:hover,
    .rm_primary_menu_list a:hover,
    .rm_secondary_menu > ul li a:hover,
    .rm_secondary_menu_list a:hover {
        color: #0066cc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .rm_header_wrapper,
    .rm_logo,
    .rm_primary_menu > ul li a,
    .rm_primary_menu_list a,
    .rm_secondary_menu > ul li a,
    .rm_secondary_menu_list a,
    .rm_toggle_menu,
    .rm_toggle_menu::before,
    .rm_toggle_menu::after,
    .rm_btn,
    .rm_flag {
        transition: none;
    }

    .animate__animated {
        animation: none !important;
    }
}

/* Animation improvements */
.rm_mobile_menu_wrapper,
.animate__animated {
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    animation-duration: 0.4s !important;
}


.rm_contactinfo{
    display: flex;
    align-items: center;
    gap: 10px;
}
.rm_contactinfo > img{
    width: 20px;
    height: 20px;
    margin-right: -5px;
}
a.rm_contactinfo{
    color: white;
    text-decoration: none;
    font-size: var(--rm_secondary_fontsize);
    transition: color 0.3s ease;
}

a {}

li.rm_primary_menuitem > a {
    background-color: #074629;
    color: white!important;
    padding: 8px 16px!important;
    border-radius: 60px!important;
}


.rm_header_wrapper.rm_header_transparent{
    box-shadow: none;
}
.rm_header_wrapper.rm_header_transparent::after {
    background-color: var(--gcid-primary-color);
    opacity: var(--rm_header_after_opacity, 0);
}
.rm_header_spacer.rm_transparent_transparent{
    height: calc(var(--rm_header_size) - var(--rm_secondary_header_size));
}


div.et_pb_text_inner > h1,
div.et_pb_text_inner > h2,
div.et_pb_text_inner > h3,
div.et_pb_text_inner > h4,
div.et_pb_text_inner > h5,
div.et_pb_text_inner > h6{
    padding: 0px!important;
}