@media screen and (max-width: 500px) {
    html,
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }
    .navbar_right {
        display: none;
    }

    .navigationbar {
        display: none;
    }

    .main_bottom_subtitle_contact {
        display: none;
    }

    .hamburger_overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; /* Cover full screen width */
        z-index: 99999;
        background: var(--secondary, #f6f0e2);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        box-sizing: border-box;
    }

    .hamburger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        border: none;
        color: #aa8654;
        padding: 0.5rem 1rem;
    }

    .ohsun_main {
        padding: min(25vw, 10rem) 0px;
    }

    .closebtn {
        position: absolute;
        top: 1vh; /* Add space from the top */
        left: 1rem;
        font-size: 2rem;
        text-decoration: none;
        color: var(--contents-contentPrimary, #5c492d);
        z-index: 1005;
        padding: 0.5rem 1rem;
    }

    .logo {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        height: 40px; /* or however tall you want */
        z-index: 1000;
    }

    .mobile-sidebar {
        height: 100vh;
        width: 0;
        position: fixed;
        z-index: 1002;
        top: 0;
        left: 0;
        background-color: var(--secondary, #f6f0e2);
        overflow-x: hidden;
        transition: 0.3s ease;
        font-family: "Crimson Text", serif;

        /* Center contents vertically & horizontally */
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align links left inside the sidebar */
        justify-content: center; /* Vertical center */
        padding-left: 0rem; /* Space from left edge */
        padding-top: 0; /* No extra top padding */
    }

    .mobile-sidebar a {
        display: block;
        padding: 1rem 2rem;
        text-decoration: none;
        font-size: 1.5rem;
        color: var(--contents-contentPrimary, #5c492d);
        transition: 0.2s;
    }

    .mobile-sidebar a:hover {
        font-weight: bold;
    }

    .ohsun_grid {
        width: 60%;
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto auto auto;
        align-items: start;
        margin: auto;
        text-align: left;
        column-gap: 10%;
        row-gap: 5vw;
        position: relative;
        padding-bottom: 30vh; /* or try 30vh for more space */
    }

    .ohsun_title,
    .ohsun_title_1 {
        text-align: center;
        font-size: clamp(1.5rem, 6vw, 4rem);
        white-space: nowrap;
    }

    .ohsun_content,
    .ohsun_content_1 {
        text-align: left;
        font-size: clamp(1rem, 2vw, 4rem);
        color: var(--contents-contentPrimary, #5c492d);
        width: 90%;
        margin: auto;
    }

    .ohsun_img {
        width: 100%;
        height: auto;
        display: block;
        align-self: end;
        opacity: 0.5; /* More transparent */
    }

    .premium {
        position: absolute;
        top: 13%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80vw;
        text-align: center;
        color: #3d2a12;
        padding: 1rem;
        z-index: 9000;
    }

    .variety_label {
        margin-top: 5vh;
        gap: 6vw;
    }

    .variety {
        position: absolute;
        top: 49%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80vw;
        text-align: center;
        color: #3d2a12;
        padding: 1rem;
        z-index: 9000;
    }

    .elegance {
        position: absolute;
        top: 82%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80vw;
        text-align: center;
        color: #3d2a12;
        padding: 1rem;
        z-index: 9000;
        margin-bottom: 5%;
    }

    .overlay_text_main {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .overlay_text {
        position: absolute;
        top: -30%;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
    }

    .compare_flavour_title {
        font-size: clamp(3.5rem, 5vw, 5rem);
    }

    .compare_abv {
        font-size: clamp(1.2rem, 2vw, 2rem);
    }

    .main_title {
        font-size: clamp(1.5rem, 4vw, 5rem);
    }

    .main_logo {
        width: 90%;
        height: auto;
        align-items: center;
    }

    .main_button {
        width: 70%;
        height: max-content;
        flex-shrink: 0;
        border-radius: 100px;
        background: var(--secondary, #f6f0e2);
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
        padding: 1% 0%;
        margin: 5% 0 0;
        display: flex; /* Use flexbox to center */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
    }

    .main_button a {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }

    .logo {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        height: 40px; /* or however tall you want */
        z-index: 1000;
    }

    .main {
        margin: 0;
        padding: 0;
        position: relative !important;
        top: 0;
    }

    .compare_flavour {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    .main_compare_grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1;
        position: relative;
        height: 100vh; /* ensure it takes full screen */
        overflow: hidden;
    }

    .swiper-wrapper {
        display: flex;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        height: auto;
    }

    .contact {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: var(--primary, #aa8654);
        top: 0%;
        margin: auto;
        padding: none;
    }

    .compare1 {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    @media screen and (max-width: 500px) {
        :root {
            --mobile-header-h: 10%;
        } /* adjust if your header is taller */

        .hamburger_overlay {
            height: var(--mobile-header-h);
        }

        html,
        body {
            padding-top: var(--mobile-header-h); /* push content below the fixed bar */
        }
    }

    @media screen and (max-width: 500px) {
        .compare1:first-of-type {
            position: relative;
            z-index: 10;
            margin-top: 0.5rem; /* tiny breathing room */
        }
    }

    .contactus_content {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        margin: 0 auto;
        align-items: center;
        row-gap: 5vh;
        width: 80%;
    }

    .form_title {
        font-size: clamp(1.4rem, 2vw, 2rem);
        text-align: center;
        vertical-align: middle;
        color: #5c492d;
    }

    .form_type {
        font-size: clamp(0.9rem, 1.5vw, 1.5rem);
        line-height: 150%;
        letter-spacing: 0%;
        text-align: left;
        vertical-align: middle;
        color: var(--contents-contentPrimary, #5c492d);
        margin-top: 5%;
    }

    .contact_button {
        border-radius: 30px;
        padding: 0.5vw 5vw;

        font-size: clamp(0.8rem, 1.5vw, 1.5rem);
        line-height: 150%;
        letter-spacing: 0%;
        text-align: center;
        vertical-align: middle;
        color: #fffaef;
        width: max-content;
        height: max-content;
        border: none;
        margin-top: 5%;
    }

    .footer {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto; /* Balanced layout */
        align-items: self-start;
        width: 100%;
        margin: 0 auto;
        padding: 5%;
        /* column-gap: 2%; */
        color: #6e6045;
        font-weight: 100;
        font-style: normal;
        border-top: 1px solid #c6c0b3;
        box-sizing: border-box;
        height: max-content;
    }

    .footer_img {
        width: 13%;
        height: auto;
        justify-self: end; /* Aligns it to the right within the grid cell */
    }

    .compare {
        position: absolute;
        top: 80%;
        width: 100%;
        padding: 20px;
        background: transparent;
        z-index: 20;
    }

    .compare2 {
        position: absolute;
        top: 65%;
        width: 100%;
        background: transparent;
        z-index: 20;
        margin: auto;
    }

    .compare_section {
        position: relative;
        height: auto;
    }

    .compare_tastingnote {
        display: none;
    }

    .compare_tastingnote_grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .overlay_circle-container {
        position: absolute;
        top: 170%;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .compare_tastingnote_grid_content1,
    .compare_tastingnote_grid_content2,
    .compare_tastingnote_grid_content3 {
        color: #fffaef;
        text-align: center;
        width: 85%;
        font-family: "Crimson Text", serif;
        font-size: clamp(1.2rem, 2vw, 2rem);
        font-style: normal;
        font-weight: 400;
        line-height: 160%; /* 34.125px */
        align-items: center;
        margin: auto;
    }

    .circle {
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: #f8f7f2; /* light / off-white */
        transition: background-color 0.3s;
    }

    .circle.active {
        background-color: #a47d4d; /* brown when active */
    }

    .compare_label {
        display: none !important;
    }

    .bottle_img,
    .compare_label {
        width: 100vw;
        height: auto;
        display: block;
        object-fit: contain;
        padding: 0;
        margin: 0;
    }

    .compare_tastingnote_grid_content {
        position: absolute;
        z-index: 10;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        text-align: center;
    }

    .compare_tastingnote_grid_content {
        top: 60%;
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .compare_tastingnote_flavor_grid1,
    .compare_tastingnote_flavor_grid2,
    .compare_tastingnote_flavor_grid3 {
        position: absolute;
        z-index: 10;
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        text-align: center;
        top: 105%;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0rem;
        font-weight: bold;
    }

    .compare_tastingnote_flavour_taste {
        color: var(--contents-contentPrimary, #5c492d);
        text-align: center;
        font-family: "Crimson Text", serif;
        font-size: clamp(1.4rem, 3vw, 2rem);
        font-style: normal;
        font-weight: 500;
        line-height: 10%; /* 24px */
        display: flex;
        margin: 0%;
        color: white;
    }

    .compare_tastingnote_flavour_yellow_circle,
    .compare_tastingnote_flavour_green_circle,
    .compare_tastingnote_flavour_red_circle,
    .compare_tastingnote_flavour_grey_circle {
        width: clamp(1.5rem, 3vw, 2rem);
        height: clamp(1.5rem, 3vw, 2rem);
        border-radius: 50%;
        margin: 20% 10%;
    }

    .compare_tastingnote_grid_content2,
    .compare_tastingnote_grid_content3,
    .compare_tastingnote_flavor_grid2,
    .compare_tastingnote_flavor_grid3 {
        display: none;
    }
}

@media screen and (min-width: 501px) {
    .hamburger {
        display: none;
    }

    .hamburger_overlay {
        display: none;
    }

    .mobile-sidebar {
        display: none;
        width: 0;
    }

    .navbar_right {
        display: flex;
    }

    .swiper-wrapper {
        display: contents; /* disable Swiper layout visually */
    }

    .swiper-slide {
        display: block;
    }

    .main_compare_grid {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        width: 100%;
    }

    .compare_flavour {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
    }
}
