.mobile_logo{
    width: 100px;
}
.mobile_title{
    font-size: 24px;
    font-weight: 700;
    color: #272F68;
    margin-top: 20px;
}
/* Enable overlay on mobile devices */
@media (max-width: 767px) {

    /* Disable scrolling */
    body {
        overflow: hidden;
        height: 100%;
        touch-action: none; /* Disable touch interactions */
    }
}


@media screen and (max-width: 768px) {

    .tabcontent {
        padding: 0;
        overflow-y: auto;
    }

    .card_right {
        width: 100%;
        /* padding: 20px; */
        box-sizing: border-box;
        height: 100%;
        padding-bottom: 0;
        position: absolute;
        z-index: -1;
        top: 0;
    }
    .card_left {
        max-width: 500px;
        width: 100%;
        padding: 30px;
        box-sizing: border-box;
        background-color: white;
        border-radius: 24px;
        box-shadow: 0px 0px 20px rgb(0, 0, 0);
    }

    .card_main {
        width: 100%;
        box-sizing: border-box;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        border: 0;
        box-shadow: none;
        padding: 0;
        height: fit-content;
        border-radius: 0;
        overflow-y: auto;
        padding: 25px;
    }

    .title_img {
        width: 100%;
        object-fit: cover;
        height: 100%;
        border-radius: 0;
    }

    .tabcontent {
        overflow-y: auto;
        height: 100%;
    }
  }

@media screen and (max-width: 480px) {

    .card_main {
        width: 100%;
        box-shadow: none;
        height: 100%;
        overflow: hidden;
        padding: 0;
    }

    .card_container {
        width: 100%;
        height: calc(100svh - 80px);
        box-sizing: border-box;
        margin-bottom: 20px;
        overflow-y: auto;
        /* OLD CODE */
        /* width: 100%;
        height: calc(100vh - 80px);
        box-sizing: border-box;
        margin-bottom: 20px; */
    }

    .card_left {
        overflow-y: hidden;
        border-radius: 0;
        height: unset;
        /* OLD CODE */
        /* overflow-y: auto;
        border-radius: 0;
        height: 100vh; */
    }
  }

/* ─── Befayr pages — tablet ─── */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .befayr_container {
        height: auto;
        min-height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .befayr_container main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 25px;
        box-sizing: border-box;
    }

    .befayr_container .tabcontent {
        padding: 0;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .befayr_container .card_right {
        width: 100%;
        box-sizing: border-box;
        height: 100%;
        padding-bottom: 0;
        position: fixed;
        z-index: -1;
        top: 0;
        left: 0;
    }

    .befayr_container .card_left {
        max-width: 500px;
        width: 100%;
        padding: 30px;
        box-sizing: border-box;
        background-color: white;
        border-radius: 24px;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    }

    .befayr_container .card_main {
        width: 100%;
        max-width: 500px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        border: 0;
        box-shadow: none;
        padding: 0;
        height: auto;
        border-radius: 0;
        overflow-y: visible;
    }

    .befayr_container .title_img {
        width: 100%;
        object-fit: cover;
        height: 100%;
        border-radius: 0;
    }
}

/* ─── Befayr pages — mobile ─── */
@media screen and (max-width: 480px) {
    body:has(.befayr_container) {
        background-color: #272F68;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body:has(.befayr_container)::-webkit-scrollbar {
        display: none;
    }

    .befayr_container {
        height: auto;
        min-height: 100dvh;
        overflow-y: visible;
        align-items: stretch;
        flex-direction: column;
    }

    .befayr_container .befayr_header {
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
    }

    .befayr_container .card_right {
        display: none;
    }

    .befayr_container .card_main {
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        height: auto;
        overflow: visible;
        padding: 0;
        box-sizing: border-box;
    }

    .befayr_container .card_container {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        padding-bottom: max(env(safe-area-inset-bottom), 20px);
    }

    .befayr_container .card_left {
        width: 100%;
        box-sizing: border-box;
        background-color: white;
        border-radius: 0;
        padding: 24px;
        overflow-y: visible;
        height: auto;
    }
}
