﻿/* ══ RESPONSIVE ══ */
@media(max-width:1024px) {
    .ov-left {
        width: 240px;
    }

    .ov-right {
        padding: 28px 24px 40px;
    }
    
}
/* Responsive Fix */
    @media (max-width: 991px) {
      .custom-img {
        transform: rotate(0);
        margin-bottom: 30px;
      }
      .infra-content {
        padding: 30px;
      }

      .infra-title {
        font-size: 28px;
      }

      .infra-list {
        grid-template-columns: 1fr;
      }

      .infra-image::before {
        display: none;
      }
      .links-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .service-img {
        width: 160px;
        height: 160px;
      }
      .infra-banner {
        padding: 50px 0;
      }

      .banner-content h2 {
        font-size: 30px;
      }
    }
@media(max-width:767px) {
    /* Stack columns, no right panel — accordion only */
    body {
        transition: padding-right 0.3s ease;
        overflow-x: hidden;
    }
    .ov-body {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ov-left {
        width: 100%;
        border-right: none;
        overflow-y: visible;
        padding-bottom: 0;
        flex-shrink: 0;
    }

    .ov-right {
        display: none !important;
    }

    .brand-hi {
        display: none;
    }
    .uni-news-title {
        font-size: 28px;
    }

    .uni-news-img img,
    .uni-news-img.multi-img {
        height: 200px;
    }
    .footer-section {
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        gap: 15px;
    }

    .footer-social {
        margin-top: 10px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .main-menu-two__top-inner {
        display: inline-block;
        padding: 0 25px 0;
    }
    .main-menu-two__contact-list, .main-menu-two__contact-list li {
        display: inline-block;
    }
    .mx-background-top-linear {background:#061c0f!important;}
    .main-menu-two__contact-list li .text p a {color:#fff;}
    .hdr-right .dropdown, .search-box {display:none;}
    .hdr-inner a img {width:100%;}
    .ov-brand img {width:95%;}
    .admission-ribbon {right:0px;}
    .hero {min-height: 60vh;}
    .custom-tabs li.nav-item {width: 100%;}
    .infra-image img {clip-path: none;}
    .profile-info {background: transparent;margin-top: -30%;}
    .service-card {margin-bottom:15px;}
    .link-item:nth-child(4), .link-item:nth-child(8), .link-item:nth-child(12) {
    border-right: 1px solid #ccc;
    }
    .link-item:nth-child(9), .link-item:nth-child(10), .link-item:nth-child(11), .link-item:nth-child(12) {
        border-bottom: 1px solid #ccc;
    }
    .links-grid {
      border-top: 1px solid #ccc;
      border-left: 1px solid #ccc;
    }
}
/* Responsive tweak */
@media (max-width: 576px) {
    .menu-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .menu-icon span {
        width: 18px;
    }
    .admission-ribbon {
        padding: 10px 6px;
        font-size: 12px;
    }
    .links-section {
    padding: 20px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .search-btns {
    padding: 10px;
  }
  .section-title {
    font-size: 24px;
  }
}
@media(max-width:400px) {
    .brand-en {
        font-size: .82rem;
    }

    .crest {
        width: 34px;
        height: 34px;
    }

    .crest-abbr {
        font-size: .74rem;
    }
}

@media(max-width:852px) {
    .main-menu-two__contact-list li + li {
        margin-left: 0;
    }
    .header-top-right {
        margin-top:5px;
    }
    .profile-info h5 { 
        font-size: 15px;
    }
    .profile-info p { 
        font-size: 11px;
    }
    .main-menu-two__contact-list li:before {display:none;}
    .margin-academic-unit {margin-bottom:40px;}
    .section-title {
    font-size: 24px;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
/*----university profile page start----*/
@media (max-width: 852px) and (min-width: 290px) {
    #secondary-banner .inner-content {
        height: 200px;
    }
    #secondary-banner .inner-content h1 {
        font-size: 20px;
    }
    .sidebar {
        margin-bottom: 20px;
      }
     .infra-banner {
        background-position: center;
        text-align: center;
      }

      .checklist li {
        text-align: left;
      }
}