/* Small devices (phones, 0px–480px) */
@media (min-width: 320px) and (max-width: 381px) {
    .navbar-brand img {
        max-width: 215px;
    }
 }

/* Medium devices (portrait tablets, 320px–767px) */
@media (min-width: 320px) and (max-width: 767px) {
    body {
        font-size: 14px;
    }
    h2{
        font-size: 22px;
    }
    .py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    }
    .my-4 {
        margin-top: .5rem !important;
        margin-bottom: .5rem !important;
    }
    .navbar-brand img {
        max-width: 250px;
    }
    .banner {
        background-image: none;
        min-height: auto;
    }
    .banner .form-control,
    .banner .form-submit {
        font-size: 14px;
        line-height: 2;
    }
    p.text-muted {
        margin-bottom: 0;
    }
    main .border {
        border-radius: 15px;
    }
    main .mcontent-right {
        width: 100%;
        margin-top: 25px;
        margin-left: 0;
    }
    .mcontent-left .region-sidebar-first {
        max-height: 300px;
    }
    .content-in-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 0px !important;
        padding: 20px !important;
        z-index: 10001;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        max-width: 600px;
        width: calc(100% - 20px) !important;
        max-height: 75vh;
        overflow-y: auto;
    }
    .mcontent-left .region-sidebar-first::-webkit-scrollbar{
        width: 5px;
    }
    .user-logged-in.path-frontpage .mcontent-right .region-content {
        overflow-y: initial;
    }
    .popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 10000;
    }
    .no-scroll {
        overflow: hidden;
        height: 100vh;
    }
    .popup-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #ccc;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 34px;
        line-height: 20px;
    }
    .view-article-search-page .views-view-responsive-grid--horizontal {
        display: inline-block;
    }
    .view-article-search-page .views-view-responsive-grid__item{
        padding: 15px;
        margin-bottom: 15px;
    }
    footer {
        padding: 0.5rem 0;
    }
    footer .region-footer {
        flex-direction: column;
    }
    .custom-breadcrumb {
        display: none;
    }

 }

/* Large devices (landscape tablets / laptops, 768px–991px) */
@media (min-width: 768px) and (max-width: 1024px) {
    main .border {
        padding: 15px;
        border-radius: 15px;
    }
    .banner {
        min-height: 222px;
    }
    .banner .form--inline .form-item {
        max-width: 350px;
    }
    button {
        font-size: 12px;
    }
    .banner .form-control,
    .banner .form-submit {
        font-size: 15px;
        line-height: 2;
    }

 }

/* Extra large devices (desktops, 1025px+) */
@media (min-width: 1025px) {

 }