@media (max-width: 1000px) {
    navbar {
        padding: 0 var(--conPadSmall);
    }
    .bm {
        display: block;
    }
    .l {
        flex-direction: column;
        position: fixed;
        background-color: var(--sec);
        right: 0;
        bottom: 0;
        height: 100%;
        width: 0;
        max-width: 500px;
        justify-content: flex-start;
        overflow-y: auto;
        transition: width 0.2s ease-out;
    }
    .open {
        width: 80vw;
    }
    .group {
        width: 100%;
        border: 1px solid var(--sec-light);
        margin: 0;
        padding: 10px;
        height: max-content;
        justify-content: flex-start;
    }

    .group .flex {
        padding: 10px 0;
    }
    .group .dropdown.drop1 {
        height: 100%;
    }
    .group .dropdown {
        display: block;
        position: initial;
        visibility: visible;
        opacity: 1;
        translate: 0;
        height: 0;
        overflow: hidden;
        border: none;
        transition: height 0.2s ease-in-out;
        width: 100%;
    }

    .option {
        flex-direction: column;
        align-items: flex-start;
        text-wrap: wrap;
        gap: 10px;
        /* overflow: hidden; */
    }

    .option img {
        display: none;
    }
    /* .option:hover:has(.sec-dropdown) {
    height: 100%;
    overflow: auto;
  } */

    .option:has(.drop2) {
        background-color: rgb(242, 242, 242);
    }

    .hidden-on-mobile {
        display: none;
    }

    .option .sec-dropdown {
        position: initial;
        opacity: 1;
        visibility: visible;
        translate: 0;
        max-height: 0;
        border: none;
        width: 100%;
        transition: max-height 0.2s ease-in-out;
        display: none;
    }

    .option:hover .sec-dropdown {
        border-radius: 10px;
    }
    .option .drop2 {
        /* --course-count: 13; */
        border-radius: 10px;
        /* height: calc(50px * var(--course-count)); */
        max-height: 1000px;
    }
    /* .dropdown-hope {
    --course-count: 2;
    height: calc(50px * var(--course-count));
  } */

    .container.pad-top.flex-align-start {
        flex-direction: column;
    }

    .part {
        max-width: 100%;
        margin-top: 30px;
    }
    .part.pad-right {
        padding-right: 0;
        width: 100%;
    }
    .part.pad-right img {
        width: 100%;
        object-fit: contain;
    }

    .group .dropdown .option {
        width: 100%;
    }

    /*.group:hover .nav {
        color: var(--sec);
    }*/

    .nav {
        font-size: 1rem;
        color: white;
    }

    .detailsbox {
        flex-direction: column;
        /* align-items: center; */
    }
    .detailsbox .image img {
        height: 30vh;
    }

    .aboutbox div.image {
        border-radius: unset;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    .aboutbox div.text {
        border-radius: unset;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .flexnum {
        order: -1;
    }
    .container {
        padding: 20px;
        padding-top: 0;
        width: 100%;
    }
    .list1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footcon {
        flex-wrap: wrap;
    }
    .data {
        width: 200px;
    }

    .data iframe {
        width: 100%;
    }

    .grid {
        /* grid-template-columns: repeat(1, 1fr); */
        place-items: center;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        align-items: stretch;
    }
    .act .des {
        opacity: 1;
        position: relative;
        background-color: rgba(255, 255, 255, 0.7);
        text-align: center;
    }
}
@media (max-width: 600px) {
    .grid {
        align-items: stretch;
    }

    .mw.mw {
        min-width: 300px;
    }

    .navcon {
        width: 100%;
    }
    .part a {
        font-size: 0.9rem;
    }

    .ncon {
        flex-direction: column;
    }

    .part {
        max-width: 100%;
        width: 100%;
        /* align-items: center; */
        align-items: flex-start;
    }

    .news-box {
        width: 100%;
    }
    .part .heading {
        font-size: 1.2rem;
        align-self: flex-start;
    }
    .banner .heading {
        font-size: 1.1rem;
    }

    .small-container p {
        font-size: 0.9rem;
    }

    .list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .flex-c {
        flex-direction: column;
        gap: 5px;
    }
    .flex-c .basis {
        justify-content: flex-start;
        padding: 10px;
    }
    .bold-head {
        font-size: 1rem;
    }
    .head,
    .light {
        font-size: 0.8rem;
    }

    .footer {
        padding-left: var(--conPadSmall);
    }

    .footbox {
        width: 100%;
    }

    .act .des {
        opacity: 1;
        position: relative;
        background-color: rgba(255, 255, 255, 0.7);
        text-align: center;
    }

    .imgcon {
        height: 200px;
    }

    .phcon {
        width: 100%;
        justify-content: center;
    }

    .detailsbox .text {
        padding-inline: 20px;
    }
}
