

/* Main Header - White Background from Start */
#header {
    background-color: #fff;
    margin: 25px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 999999;
    transition: all 0.3s ease;
    animation-timing-function: cubic-bezier(.4,0,.2,1);
    position: fixed;
    top: 0;
    width: calc(100% - 50px);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1) !important;
}

/* Ensure header stays white on hover */
#header:hover,
.header-hover {
    background-color: #fff !important;
}

#header.scrolled {
    background-color: #fff !important;
    margin: 0;
    width: 100%;
    border-radius: 0;
}

#header.header-hidden {
    transform: translateY(-100%);
}

#header.menu-active{
    border-radius: 15px 15px 0 0;
}

/* Logo Styling */
#header .logo {
    height: 35px;
    margin: 30px 15px;
}

#logo-img {
    transition: all 0.3s ease;
}

#header.scrolled .logo{
    height: 25px;
    margin: 20px 15px;
}

/* Bar (Hamburger/Close Icon) */
#header .bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    font-size: 25px;
    margin: 0px 10px 0px 10px;
}

#header .bar i {
    display: inline-block;
    border-radius: 40px;
    height: 42px;
    width: 42px;
    cursor: pointer;
    color: #000; /* Dark icon */
    transition: all 0.3s ease;
}

#header .bar i:hover {
    background: #e1e1e1;
}

#header .bar_i_active{
    background-color: #000 !important;
    color: #fff !important;
}

#header .bar i::before {
    position: relative;
    top: 6px;
    left: 8px;
}

#header .bar .fi-sr-cross::before {
    top: 2px;
    left: 12px;
    font-size: 18px;
}

/* Header Left: Menu */
.header_left {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.header_left .menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    margin: 0;
    padding-left: 1em;
}

.header_left .menu li a {
    font-family: "Mokoto Regular";
    font-size: 16px;
    color: #000;
    margin-right: 10px;
    padding: 3px 15px 7px 15px;
    border-radius: 50px;
    min-height: 33px;
    display: inline-block;
    transition: all 0.3s ease;
}

.header_left .menu li a img{
    height: 13px;
    position: relative;
    top: -4px;
}

.header_left .menu li a span {
    font-family: "Mokoto Regular";
    font-size: 11px;
    position: relative;
    top: 0px;
}


.header_left .menu li a:hover {
    background: #e1e1e1;
}

/* Header Right: Video Button & Links */
.header_right {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
}

.header_right .menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    margin: 0;
}


.header_right .menu li a {
    color: #000;
    margin-right: 10px;
    padding: 5px 15px 5px 15px;
    border-radius: 50px;
    min-height: 33px;
    display: inline-block;
    transition: all 0.3s ease;
}

.header_right .menu li a:hover {
    background: #e1e1e1;
}

.header_right .video_button {
    border: 1px solid #000;
    border-radius: 50px;
    padding: 7px 50px;
    cursor: pointer;
    background: transparent;
    color: #000; /* Dark text */
    position: relative;
}

.header_right .video_button:hover {
    background: #f5f5f5;
}

.header_right .video_button i {
    position: relative;
    top: 3px;
    color: #000; /* Dark icon */
}

.menu-active{
    box-shadow: none !important;
}

/* Video Modal */
.video_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
}

.video_modal_body {
    width: 100%;
    height: 100%;
    position: relative;
}

.video_modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video_modal_close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background: #000;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 5px 0;
    border-radius: 100px;
}

/* Mega Menu Base */
.megamenu,
.megamenu_for_p1,
.megamenu_for_p2 {
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease;
    animation-timing-function: cubic-bezier(.4,0,.2,1);
    height: 0px;
    background-color: #fff;
    margin: 25px;
    margin-top: -35px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    width: calc(100% - 50px);
    position: fixed;
    top: 145px;
}

.megamenu.active,
.megamenu_for_p1.active,
.megamenu_for_p2.active {
    height: calc(100vh - 128px);
    max-height: 100vh;
    z-index: 999999;
    transition-duration: 0.3s;
    animation-timing-function: cubic-bezier(.4,0,.2,1);
}

.megamenu:not(.active),
.megamenu_for_p1:not(.active),
.megamenu_for_p2:not(.active) {
    transition-duration: 0.3s;  /* close faster */
    animation-timing-function: cubic-bezier(.4,0,.2,1);
}

.megamenu_for_p1.active, .megamenu_for_p2.active{
    height: 45vh;
}

.megamenu.scrolled, .megamenu_for_p1.scrolled, .megamenu_for_p2.scrolled {
    height: calc(100vh - 65px);
    margin: 0;
    width: 100%;
    top: 65px;
}

.megamenu_for_p1.scrolled, .megamenu_for_p2.scrolled {
    height: calc(45vh - 65px);
    margin: 0;
    width: 100%;
    top: 65px;
}

.megamenu_for_p1,
.megamenu_for_p2 {
    height: 45vh;
    border-radius: 0 0 15px 15px;
    /* position: relative; */
}

.megamenu_left_ul {
    list-style: none;
    margin: 20px 0;
    padding: 0 4px 0 15px;
}

.megamenu_left_ul li label {
    font-family: 'Mokoto Regular';
    margin: 7px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px 14px 20px;
    border-radius: 50px;
    width: 100%;
    display: block;
    letter-spacing: -3px;
    transition: background-color 0.3s ease;
}

.megamenu_left_ul li label img {
    position: relative;
    top: -4px;
    height: 13px;
}

.megamenu_left_ul li label span{
    font-family: 'Mokoto Regular';
    font-size: 11px;
    letter-spacing: 0px;
    margin-left: 0px;
    position: relative;
    top: 1px;
}

.megamenu_left_ul li label:hover {
    background-color: #f2f2f2;
}

.megamenu_left_ul li label:has(input:checked) {
    background-image: linear-gradient(90deg,
        hsl(204deg 58% 20%) 0%,
        hsl(202deg 91% 27%) 20%,
        hsl(203deg 100% 36%) 40%,
        hsl(213deg 62% 60%) 60%,
        hsl(218deg 50% 78%) 80%,
        hsl(0deg 0% 92%) 100%);
    color: #fff;
}

.megamenu_for_p1 .megamenu_left_ul li label,
.megamenu_for_p2 .megamenu_left_ul li label {
    color: #000;
    background: transparent;
    font-family: 'Helvetica Neue';
    font-size: 17px;
    font-weight: 500;
    cursor: unset;
    border-radius: 0;
    /* clip-path: polygon(6% 0, 100% 0%, 100% 100%, 0% 100%); */
    width: 100%;
    border-radius: 50px;
    padding: 10px 20px 10px 20px;
    letter-spacing: 0;
}

.megamenu_for_p1 .megamenu_left_ul li label:hover, .megamenu_for_p2 .megamenu_left_ul li label:hover {
    background: #f1f1f1;
}

.header_menu_link{
    display: none;
}

.megamenu .header_menu_content {
    /* display: flex;
    flex-direction: row;
    align-items: center; */
}

/* Mega Menu Content Items */
.megamenu_for_p1 .header_menu_content,
.megamenu_for_p2 .header_menu_content {
    background-color: #f1f1f1;
    clip-path: polygon(6% 0, 100% 0%, 100% 100%, 0% 100%);
    height: 100%;
}


.megamenu a.active label, .megamenu_for_p1 a.active label, .megamenu_for_p2 a.active label {
    background: #f1f1f1;
}

.header_left .menu li a.active{
    background: #f1f1f1;
}

.header_right .menu li a.active{
    background: #f1f1f1;
}



.menu_content_item {
    height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.megamenu_for_p1 .menu_content_item,
.megamenu_for_p2 .menu_content_item {
    border-radius: 0px;
    margin-top: 0px;
    height: 45vh;
}

.menu_content_item:nth-child(2),
.menu_content_item:nth-child(3) {
    /* display: inline-flex;
    justify-content: flex-start;
    width: 49.2%;
    height: 30vh;
    float: left; */
    margin-left: 2%;
}

.menu_content_item:nth-child(2) {
    float: left;
}

.menu_content_item:nth-child(3) {
    float: right;
}

.menu_content_item:nth-child(2) h3,
.menu_content_item:nth-child(3) h3 {
    font-size: 22px;
}

.menu_content_item.mission{
    height: 40vh !important;
    margin-bottom: 0px;
    font-weight: 600 !important;
}

.menu_content_item.mission h3{
    height: 40vh !important;
    margin-bottom: 0px;
    font-size: 45px;
}

.menu_content_item.press, 
.menu_content_item.story {
    height: 39vh !important;
    margin-bottom: 0px;
    margin-top: 10px;
    position: relative; /* Required for the overlay */
    overflow: hidden; /* Keeps the gradient contained */
}

/* Gradient overlay */
.menu_content_item.press::after,
.menu_content_item.story::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, #00000073, rgba(255, 255, 255, 0));
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 1;
}

.menu_content_item.press h3, .menu_content_item.story h3{
    height: 40vh !important;
    margin-bottom: 0px;
    font-size: 30px;
    align-items: flex-start !important;
    margin-top: 4rem;
    z-index: 3;
}

.menu_content_item[href="/aquastroke"] h3, .menu_content_item[href="/a35"] h3, .menu_content_item[href="/av2"] h3 {
    font-family: 'Mokoto Regular';
    font-size: 46px;
}

.menu_content_item:hover img {
    transform: scale(1.01);
}

.megamenu .menu_content_item h3 {
    font-weight: 500;
    color: #fff;
    position: absolute;
    margin-bottom: 0;
    /* text-shadow: 0px 0px 26px #000; */
    
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #0000006b; */
    transition: all 0.3s ease;
}

.megamenu .menu_content_item h3:hover {
    background: transparent;
}
.megamenu_for_p1 .menu_content_item h3, .megamenu_for_p2 .menu_content_item h3{
    font-weight: 500;
    color: #000000;
    position: absolute;
    top: 30px;
    left: 8%;
    margin-bottom: 0;
    font-family: 'Mokoto Regular';
    font-size: 40px;
    text-shadow: none;
}

.megamenu_for_p1 .menu_content_item h3 span, .megamenu_for_p2 .menu_content_item h3 span{
    font-family: 'Mokoto Regular';
    font-size: 30px;
}

.megamenu_for_p1 .menu_content_item img, .megamenu_for_p2 .menu_content_item img {
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.megamenu_for_p1 .menu_content_item:hover img, .megamenu_for_p2 .menu_content_item:hover img {
    transform: scale(1);
}


.menu_content_item img {
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
    object-fit: cover;
}

/* Second-level menu */
.megamenu_left_second_ul {
    list-style: none;
}

.megamenu_left_second_ul li a {
    font-size: 16px;
    font-weight: 400;
    padding: 5px 0;
    display: inline-block;
    color: #333;
    transition: color 0.3s ease;
}

.megamenu_left_second_ul li a:hover{
    color: #9f9f9f;
}

.megamenu_left_second_ul li a.active {
    color: #9f9f9f;
}

.megamenu_left hr {
    margin: 15px 15px 35px 30px;
    border-color: #9b9b9b;
}

/* Middle Section */
.megamenu_middle {
    padding: 0;
    margin: 0;
    margin-top: 0px;
}

/* Right Section */
.megamenu_right_ul {
    list-style: none;
    margin: 10px 0;
    padding: 0 10px 0 5px;
}

.megamenu_right span {
    padding: 0 10px 0 5px;
    margin-top: 20px;
    display: inline-block;
    color: #9f9f9f;
    font-size: 13px;
}

.megamenu .megamenu_right_ul li a {
    font-size: 16px;
    font-weight: 400;
    padding: 5px 0;
    display: inline-block;
    color: #333;
    transition: color 0.3s ease;
}

.megamenu .megamenu_right_ul li a.active {
    background: #9f9f9f;
}

.megamenu_right_ul li a:hover{
    color: #9f9f9f;
}




/* Hide mobile header */
#header_mobile {
    display: none;
}

.megamenu_mobile{
    height: 0;
    overflow: hidden;
}

/* Responsive: Hide desktop header on small screens */
@media (max-width: 767px) {
    #header {
        display: none;
    }
}