/* === RESET & BASE STYLES === */
* {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.container {
    height: 55px;
    background-color: rgb(194, 1, 1);
    color: white;
    display: flex;
    align-items: center;
}

.control button {
    background-color: transparent;
    border: none;
    color: white;
}

.top,
.top1,
.top2,
.top3,
.top4,
.top5,
.top6,
.top7 {
    margin: 8px;
    padding: 1.5px;
}

.top2 {
    margin-right: 680px;
    color: white;
}

a {
    text-decoration: none;
    color: rgb(255, 249, 249);
}

.search {
    margin-left: 10px;
    margin-right: 5px;
}

.button_search {
    height: 45px;
    color: white;
    border: solid;
    border-radius: 20%;
    background-color: white;
}

.container1 {
    display: flex;
    align-items: center;
}

.ymca_logo {
    display: inline-block;
    height: 100px;
    width: 100px;
    margin-left: 20px;
    margin-top: 9px;
    background-size: cover;
    background-image: url(logo.png);
}

.jc {
    color: rgb(183, 0, 0);
    font-size: 21px;
    margin-left: 39px;
    margin-top: 10px;
}

#recognition {
    color: green;
    font-size: 16px;
    margin-top: 9px;
}

#establish {
    color: black;
    font-size: 17px;
    margin-top: 9px;
}

#state {
    color: rgb(0, 133, 186);
    font-size: 16px;
    margin-top: 5px;
}

ul {
    list-style: none;
    background-color: rgb(2, 123, 184);
    display: flex;
    padding: 0;
    margin: 0;
    color: white;
    margin-top: 25px;
}

ul>li {
    position: relative;
    padding: 24px 20px;
}

ul li a {
    display: block;
    color: white;
    text-decoration: none;
}

ul li:hover {
    background-color: #005f93;
    color: black;
}

.menu,
.menu1,
.menu2,
.menu3,
.menu4,
.menu5 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

ul li:hover>.menu,
ul li:hover>.menu1,
ul li:hover>.menu2,
ul li:hover>.menu3,
ul li:hover>.menu4,
ul li:hover>.menu5 {
    display: block;
}

.menu ul,
.menu1 ul,
.menu2 ul,
.menu3 ul,
.menu4 ul,
.menu5 ul {
    padding: 0;
    margin: 0;
}

.menu ul li,
.menu1 ul li,
.menu2 ul li,
.menu3 ul li,
.menu4 ul li,
.menu5 ul li {
    display: block;
}

.menu ul li a,
.menu1 ul li a,
.menu2 ul li a,
.menu3 ul li a,
.menu4 ul li a,
.menu5 ul li a {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.menu ul li a:hover,
.menu1 ul li a:hover,
.menu2 ul li a:hover,
.menu3 ul li a:hover,
.menu4 ul li a:hover,
.menu5 ul li a:hover {
    background-color: #ffffff;
    color: rgb(4, 151, 204);
}

.submenu1,
.submenu2,
.submenu3,
.submenu4,
.submenu5,
.submenu6,
.submenu7,
.submenu8,
.submenu9,
.submenu10,
.submenu11,
.submenu12,
.submenu13,
.submenu14 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 4px;
}

li:hover>.submenu1,
li:hover>.submenu2,
li:hover>.submenu3,
li:hover>.submenu4,
li:hover>.submenu5,
li:hover>.submenu6,
li:hover>.submenu7,
li:hover>.submenu8,
li:hover>.submenu9,
li:hover>.submenu10,
li:hover>.submenu11,
li:hover>.submenu12,
li:hover>.submenu13,
li:hover>.submenu14 {
    display: block;
}

.submenu1 li,
.submenu2 li,
.submenu3 li,
.submenu4 li,
.submenu5 li,
.submenu6 li,
.submenu7 li,
.submenu8 li,
.submenu9 li,
.submenu10 li,
.submenu11 li,
.submenu12 li,
.submenu13 li,
.submenu14 li {
    padding: 10px 15px;
    white-space: nowrap;
}

.submenu1 li:hover,
.submenu2 li:hover,
.submenu3 li:hover,
.submenu4 li:hover,
.submenu5 li:hover,
.submenu6 li:hover,
.submenu7 li:hover,
.submenu8 li:hover,
.submenu9 li:hover,
.submenu10 li:hover,
.submenu11 li:hover,
.submenu12 li:hover,
.submenu13 li:hover,
.submenu14 li:hover {
    background-color: #ffffff;
    color: rgb(0, 119, 255);
    cursor: pointer;
}

.menu::-webkit-scrollbar,
.menu1::-webkit-scrollbar,
.menu2::-webkit-scrollbar,
.menu3::-webkit-scrollbar,
.menu4::-webkit-scrollbar,
.menu5::-webkit-scrollbar,
.submenu1::-webkit-scrollbar,
.submenu2::-webkit-scrollbar,
.submenu3::-webkit-scrollbar,
.submenu4::-webkit-scrollbar,
.submenu5::-webkit-scrollbar,
.submenu6::-webkit-scrollbar,
.submenu7::-webkit-scrollbar,
.submenu8::-webkit-scrollbar,
.submenu9::-webkit-scrollbar,
.submenu10::-webkit-scrollbar,
.submenu11::-webkit-scrollbar,
.submenu12::-webkit-scrollbar,
.submenu13::-webkit-scrollbar,
.submenu14::-webkit-scrollbar {
    width: 6px;
}

.menu::-webkit-scrollbar-thumb,
.menu1::-webkit-scrollbar-thumb,
.menu2::-webkit-scrollbar-thumb,
.menu3::-webkit-scrollbar-thumb,
.menu4::-webkit-scrollbar-thumb,
.menu5::-webkit-scrollbar-thumb,
.submenu1::-webkit-scrollbar-thumb,
.submenu2::-webkit-scrollbar-thumb,
.submenu3::-webkit-scrollbar-thumb,
.submenu4::-webkit-scrollbar-thumb,
.submenu5::-webkit-scrollbar-thumb,
.submenu6::-webkit-scrollbar-thumb,
.submenu7::-webkit-scrollbar-thumb,
.submenu8::-webkit-scrollbar-thumb,
.submenu9::-webkit-scrollbar-thumb,
.submenu10::-webkit-scrollbar-thumb,
.submenu11::-webkit-scrollbar-thumb,
.submenu12::-webkit-scrollbar-thumb,
.submenu13::-webkit-scrollbar-thumb,
.submenu14::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 3px;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    background-color: #f8f8f8;
}

.scroll-media {
    display: flex;
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.scroll-media img,
.scroll-media video {
    height: 100vh;
    /* full height of screen */
    width: 100vw;
    /* each item takes full screen width */
    object-fit: cover;
    flex-shrink: 0;
}

/* Animation */
/* @keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
} */
/* Media slider styles */
.media-slider {
    position: relative;
    width: 100vw;
    height: 60vh;
    overflow: hidden;
    background: #000;
    margin-top: 30px;
}

.media-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-slide.active {
    opacity: 1;
    z-index: 1;
}

.media-slide img,
.media-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

.media-slide img,
.media-slide video {
    width: 109%;
    height: 100%;
    object-fit: fill;
    background: #000;
}

.media-slider {
    position: relative;
    width: 100vw;
    height: 600px;
    /* full screen height */
    overflow: hidden;
    background: #ffffff;
    margin-top: 0;
    /* or adjust if needed */
}

.scroll-wrapper1 {
    width: 100%;
    overflow: hidden;
    height: 50px;
    background-color: rgb(0, 108, 175);
    white-space: nowrap;
    padding: 10px 0;
    align-items: center;
}

.container2 {
    display: inline-flex;
    animation: scrollText 20s linear infinite;
}

.container2 p {
    flex: 0 0 auto;
    padding: 0 50px;
    font-size: 18px;
    color: rgb(255, 255, 255);
    /* Text color on blue */
}

/* Scrolling animation */
@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.container3 {
    display: flex;
    padding: 20px;
    background-color: #f9f9f9;
    gap: 15px;
}

.sc1,
.sc2,
.sc3 {
    height: 360px;
    width: 1000px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 1px rgb(211, 210, 209);
    padding: 10px;
    box-sizing: border-box;
}

.sc4 {
    height: 360px;
    flex-grow: 1;
    background-color: white;
    border: solid 1px rgb(211, 210, 209);
    box-sizing: border-box;
}

/* Images: 100% width and 80% height of container */
.container3 img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.container3 p {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    text-align: center;
}

.sc4 {
    height: 360px;
    flex-grow: 1;
    background-color: white;
    border: solid 1px rgb(211, 210, 209);
    box-sizing: border-box;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.sc4 h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}

.sc4 p {
    font-size: 14px;
    color: #444;
    line-height: 1.9;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 15px;
}

.sc4 button {
    align-self: center;
    background-color: rgb(161, 0, 0);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.notice-board {
    width: 100%;
    height: 500px;
    background-color: #fff;
    border: 2px solid #2b2b2a;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header */
.notice-board h2 {
    background-color: #005d9b;
    color: white;
    margin: 0;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    width: 100%;
}

/* Scrolling wrapper in the middle */
.scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 5px 0;
    background-color: rgb(255, 255, 255);
}

/* Scrolling content */
.notice-list {
    display: flex;
    flex-direction: column;
    animation: scroll-up 20s linear infinite;
}

.notice-list a {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: #222;
    background-color: white;
    border-bottom: 1px solid #ccc;
}

.notice-list a:hover {
    background-color: #f5f5f5;
}

/* Vertical scroll animation */
@keyframes scroll-up {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Bottom button area */
.btn-wrapper {
    padding: 10px 0;
    background-color: #fff;
    text-align: center;
    border-top: 1px solid #ddd;
}

.info-categories {
    display: flex;
    justify-content: space-around;
    background-color: transparent;
    color: #005d9b;
    padding: 10px 0;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.info-categories div {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 8px 0;
    transition: background 0.3s ease;
}

.info-categories div:hover {
    background-color: #f0f0f0;
}

.notice-button {
    padding: 10px 20px;
    background-color: rgb(161, 0, 0);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.notice-button:hover {
    background-color: #003f6d;
}

/* .container2 {
    display: flex;
    width: 100%;
} */

/* .box { 
    flex: 1; 
    height: 400px;
    border: 1px solid #333;
    background-color: #e0e0e0; 
    text-align: center;
    line-height: 400px; 
    font-weight: bold;
}  */
.four-box-section {
    display: flex;
    width: 100%;
    height: 500px;
}

.four-box-section .box {
    flex: 1;
    height: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Optional: different colors for each box */
.four-box-section .box:nth-child(1) {
    background-color: transparent;
}

.four-box-section .box:nth-child(2) {
    background-color: transparent;
    margin-left: 26px;
}

.four-box-section .box:nth-child(3) {
    background-color: transparent;
    margin-left: 26px;
}

.four-box-section .box:nth-child(4) {
    background-color: transparent;
    margin-left: 26px;
}

.four-box-section {
    display: flex;
    width: 100%;
    height: 500px;
}

.four-box-section .box {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f5f5f5;
    padding: 10px;
    box-sizing: border-box;
}

.four-box-section .box img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-radius: 8px;
}

/* Placeholder for future text */
.four-box-section .box-text {
    height: 0%;
    width: 100%;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    font-size: 18px;
    color: #333;
}

.box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    /* Smooth effect */
    transform-origin: center;
    /* Zoom & tilt from center */
}

.box:hover img {
    transform: scale(1.05) rotate(1deg);
    /* Slight zoom & tilt */
}

.research-spotlight {
    display: flex;
    justify-content: space-between;
    padding: 60px 80px;
    background-color: #cbe3f1;
    /* Light blue background */
    flex-wrap: wrap;
}

.left {
    flex: 1 1 40%;
    padding-right: 40px;
}

.left h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
}

.left p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.view-more-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background-color: crimson;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.view-more-btn:hover {
    background-color: darkred;
}

.right {
    flex: 1 1 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #111;
}

.card p {
    font-size: 14px;
    color: #444;
}

.six-part-container {
    width: 100%;
    height: 300px;
    display: flex;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-top: 20px;
}

.part {
    flex: 1;
    /* divides into 6 equal parts */
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.part img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.part p {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.six-part-container {
    width: 100%;
    height: 300px;
    display: flex;
    overflow: hidden;
    background-color: #f0f0f0;
}

.part {
    flex: 1;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    border-color: rgb(0, 0, 0);
}

.part img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
    /* Smooth zoom */
}

.part img:hover {
    transform: scale(1.05);
    /* Slight zoom-in */
}

.part p {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.last {
    background-color: rgb(40, 40, 40);
    padding: 30px 0;
}

.ls1 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: rgb(155, 153, 153);
    padding: 0 40px;
}

.ss1,
.ss2,
.ss3 {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ss4 {
    flex: 1 1 250px;
    text-align: center;
    color: white;
}

.img {
    height: 80px;
    width: 80px;
    margin: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding-bottom: 10px;
}

.ss4 img {
    width: 24px;
    margin: 8px;
}

li {
    list-style-type: none;
    padding: 6px 0;
    font-size: medium;
}

.cr {
    text-align: center;
    background-color: rgba(66, 66, 66, 0);
    color: rgb(172, 172, 172);
    padding: 15px;
    font-size: small;
}

.rclass {
    height: 200px;
    background-color: #f5f5f5;
    overflow: hidden;
    padding: 0px 0px;
    box-sizing: border-box;
}

.rheading {
    height: 44.8px;
    line-height: 44.8px;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.slider {
    height: calc(100%-44.8px);
    overflow: hidden;
    position: relative;
}

.slidert {
    display: flex;
    animation: scroll 20s linear infinite;
    width: fit-content;
}

.slidert img {
    height: 80px;
    width: 80px;
    margin-right: 100px;
    object-fit: contain;
    border-style: solid pink;
    margin-right: 200px;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* .fix {
    padding: 20px;
    border: 1px solid #ccc;
    width: 300px;
    height: 128px;
    background-color: pink;
    position: relative;
} */
.fix {
    position: fixed;
    top: 60px;
    right: 6px;
    /*generally used for footers*/
    width: 206px;
    height: 128px;
    background-color: pink;
}

.square {
    padding: 10px;
    background-color: #fff3f3;
    border: 1px solid rgb(189, 0, 0);
    margin-top: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    color: rgb(189, 0, 0);
}

@media only screen and (max-width: 600px) {
    .head_img {
        display: none;
        justify-content: center;

    }
}

@media only screen and (min-width:610px) {
    .head_img_2 {
        display: none;
        justify-content: center;
    }
}

.bottom-right-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    /* Ensure it appears above other content */
}

.img-same-size {
    height: 200px;
    /* Fixed height for uniform display */
    width: 100%;
    /* Ensures responsiveness and full-width coverage */
    object-fit: cover;
    /* Prevents distortion, crops to fit the container */
    display: block;
    /* Ensures proper block-level alignment */
    border-radius: 8px;
    /* Optional: Rounded corners for visual appeal */
}

.media-slider {
    position: relative;
    /* necessary for positioning overlay */
}

/* Ranking box overlay */
.ranking-box {
    position: absolute;
    top: 20px;
    left: 15px;
    width: 250px;
    height: 561px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    z-index: 10;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Logo images inside the box */
.ranking-logo {
    margin-top: 80px;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 767px) {

    /* General layout fixes */
    .container1,
    .container3,
    .four-box-section,
    .research-spotlight,
    .notice-board,
    .last,
    .six-part-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
    }

    /* Top banner text/logo */
    .ymca_logo {
        height: 60px;
        width: 60px;
        margin: 5px auto;
    }

    .jc {
        font-size: 16px;
        margin: 0 auto;
        text-align: center;
    }

    /* Menu stack vertically */
    ul {
        flex-direction: column;
        align-items: flex-start;
    }

    ul>li {
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
        border-bottom: 1px solid #ccc;
    }

    /* Scroll text smaller */
    .container2 p {
        font-size: 14px;
        padding: 0 20px;
    }

    /* Media slider responsiveness */
    .media-slider {
        height: 250px;
    }

    .media-slide img,
    .media-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Ranking overlay box on mobile – move it below */
    .ranking-box {
        position: static;
        width: 90%;
        margin: 10px auto;
        height: auto;
    }

    /* 4-box or card sections */
    .sc1,
    .sc2,
    .sc3,
    .sc4,
    .four-box-section .box,
    .card,
    .part {
        width: 90%;
        margin: 10px 0;
    }

    .right {
        grid-template-columns: 1fr;
    }

    /* Notice board height fit */
    .notice-board {
        height: auto;
    }

    .scroll-wrapper {
        height: 250px;
    }

    .notice-list a {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Footer */
    .ls1 {
        flex-direction: column;
        align-items: center;
    }

    .ss1,
    .ss2,
    .ss3,
    .ss4 {
        width: 90%;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Logo area */
    .head_img,
    .head_img_2 {
        display: none;
    }

    .media-slider {
        position: relative;
        width: 100vw;
        height: 1000vh;
        overflow: hidden;
        background: #000;
        margin-top: 30px;
    }

    .media-slide {
        position: absolute;
        width: 100%;
        height: 24.5%;
        opacity: 0;
        transition: opacity 1s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .media-slide.active {
        opacity: 1;
        z-index: 1;
    }

    .media-slide img,
    .media-slide video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        background: #000;
    }

    .media-slide img,
    .media-slide video {
        width: 109%;
        height: 100%;
        object-fit: fill;
        background: #000;
    }

    .media-slider {
        position: relative;
        width: 100vw;
        height: 600px;
        /* full screen height */
        overflow: hidden;
        background: #ffffff;
        margin-top: 0;
        /* or adjust if needed */
    }

}

/* Add at the end of your style.css */

/* Hide .container content except menu icon on mobile */
@media only screen and (max-width: 767px) {
    .container {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        overflow: hidden;
        position: relative;
        background-color: rgb(194, 1, 1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }

    .menu-toggle {
        display: block;
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        color: white;
        font-size: 32px;
        cursor: pointer;
        z-index: 2001;
    }

    .container .menu-content {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100vw;
        background: rgb(194, 1, 1);
        z-index: 2000;
        flex-direction: column;
        padding: 10px 0;
    }

    .container.menu-open .menu-content {
        display: flex;
    }
}

@media only screen and (max-width: 767px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    body.menu-open .main-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 16px;
        z-index: 1100;
        background: none;
        border: none;
        font-size: 2rem;
        color: #ffffff;
        cursor: pointer;
    }
}

/* On desktop, always show menu and hide menu-toggle */
@media only screen and (min-width: 768px) {
    .main-menu {
        display: block !important;
        position: static;
        background: none;
        box-shadow: none;
    }

    .menu-toggle {
        display: none !important;
    }
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

.map-container {
    padding: 20px;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
}

#popup-disclaimer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f44336;
    /* Red background */
    color: white;
    font-size: 16px;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: none;
    text-align: center;
    max-width: 90%;
    width: auto;
    animation: fadeInScale 0.4s ease-in-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 600px) {
    #popup-disclaimer {
        font-size: 14px;
        padding: 16px 20px;
    }
}