/* ================================================== */
/* RESPONSIVE FIXES — Loads LAST to override all CSS  */
/* ================================================== */

/* Global */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img {
  max-width: 100% !important;
  height: auto;
}

/* Proposal badge */
.badge-proposal {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Table scroll wrapper */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =============================================
   PURE CSS MOBILE NAV — checkbox toggle
   ============================================= */

/* Hide checkboxes always */
.mobile-nav-checkbox,
.mobile-dd-checkbox {
  display: none !important;
  position: absolute !important;
  opacity: 0 !important;
}

/* Mobile contact strip — hidden by default */
.mobile-contact-strip {
  text-align: center;
  padding: 8px 0;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
}
.mobile-contact-strip a {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-contact-strip a i {
  margin-right: 3px;
  color: #e63946;
}
.mobile-contact-sep {
  margin: 0 10px;
  color: #ccc;
}

/* Desktop: show full nav, hide hamburger, hide mobile dropdowns */
@media (min-width: 768px) {
  .navbar-toggle {
    display: none !important;
  }
  .mobile-nav-menu {
    display: block !important;
  }

  /* Desktop dropdowns use hover */
  .mobile-dd-label {
    display: none !important;
  }
  .mobile-dropdown {
    position: relative;
  }
  .mobile-dropdown > .mobile-dd-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 8px 0;
    list-style: none;
  }
  .mobile-dropdown:hover > .mobile-dd-menu {
    display: block;
  }
  .mobile-dropdown > .mobile-dd-menu li a {
    display: block;
    padding: 6px 18px;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
  }
  .mobile-dropdown > .mobile-dd-menu li a:hover {
    background: #f5f5f5;
  }

  /* Nav link styling for desktop */
  .mobile-nav-menu .nav > li > a,
  .mobile-nav-menu .nav > .mobile-dropdown > .mobile-dd-label {
    display: none;
  }
  .mobile-nav-menu .nav > li > a {
    display: block;
  }

  /* Make dropdown label look like a nav link on desktop — actually hide it */
  .mobile-dropdown .mobile-dd-label {
    display: none !important;
  }

  /* Show a regular <a> tag for desktop dropdown trigger */
  .mobile-dropdown::before {
    content: none;
  }
}

/* ============================================= */
/* TABLET — max-width: 991px                     */
/* ============================================= */
@media (max-width: 991px) {
  .mybanner-outer .col-md-9,
  .mybanner-outer .col-md-3 {
    width: 100% !important;
    float: none !important;
  }
  .mybanner-outer marquee {
    height: 120px !important;
  }
  .header-middle .contact ul li {
    font-size: 12px !important;
    padding: 0 6px !important;
  }
}

/* ============================================= */
/* MOBILE — max-width: 767px                     */
/* ============================================= */
@media (max-width: 767px) {

  /* --- CONTAINER --- */
  .container {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
  .row > [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* --- HEADER LOGO (centered, full width) --- */
  .mobile-logo-wrap {
    text-align: center !important;
    padding: 8px 0 !important;
  }
  .mobile-logo-wrap img {
    max-width: 200px !important;
    margin: 0 auto !important;
    display: inline-block !important;
  }
  .header-middle {
    padding: 5px 0 0 !important;
  }

  /* --- HAMBURGER BUTTON (visible on mobile) --- */
  .navbar-toggle {
    display: block !important;
    float: right !important;
    margin: 8px 10px !important;
    padding: 9px 10px !important;
    background: transparent !important;
    border: 1px solid #999 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
  }
  .navbar-toggle .icon-bar {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #fff !important;
    margin: 4px 0 !important;
    border-radius: 1px !important;
  }

  /* --- MOBILE NAV MENU (hidden by default, shown on checkbox check) --- */
  .mobile-nav-menu {
    display: none !important;
    width: 100% !important;
    background: #222 !important;
    padding: 0 !important;
    border-top: 1px solid #444 !important;
  }

  /* Show menu when checkbox is checked */
  .mobile-nav-checkbox:checked ~ .mobile-nav-menu {
    display: block !important;
  }

  /* Nav links */
  .mobile-nav-menu .nav {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .mobile-nav-menu .nav > li {
    display: block !important;
    float: none !important;
    border-bottom: 1px solid #333 !important;
  }
  .mobile-nav-menu .nav > li > a {
    display: block !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    text-decoration: none !important;
  }
  .mobile-nav-menu .nav > li > a:hover {
    background: #333 !important;
  }

  /* --- MOBILE DROPDOWNS (CSS checkbox toggle) --- */
  .mobile-dd-label {
    display: block !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-weight: normal !important;
  }
  .mobile-dd-label i {
    float: right;
    margin-top: 3px;
    transition: transform 0.2s;
  }
  .mobile-dd-checkbox:checked + .mobile-dd-label i {
    transform: rotate(180deg);
  }

  .mobile-dd-menu {
    display: none !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    background: #1a1a1a !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .mobile-dd-checkbox:checked ~ .mobile-dd-menu {
    display: block !important;
  }
  .mobile-dd-menu li a {
    display: block !important;
    padding: 10px 30px !important;
    color: #ccc !important;
    font-size: 13px !important;
    border-bottom: 1px solid #2a2a2a !important;
  }
  .mobile-dd-menu li a:hover {
    color: #fff !important;
    background: #2a2a2a !important;
  }

  /* --- NAVBAR STYLING --- */
  .navbar-inverse {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    min-height: 40px !important;
  }

  /* --- BANNER --- */
  .mybanner-outer {
    overflow: hidden !important;
  }
  .mybanner-outer .row {
    margin: 0 !important;
  }
  .mybanner-outer .col-md-9,
  .mybanner-outer .col-md-3 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
  }
  .mybanner-outer .carousel-inner .item img {
    width: 100% !important;
    height: auto !important;
  }
  .mybanner-outer marquee {
    height: 80px !important;
  }
  .mybanner-outer .title-default-center {
    font-size: 16px !important;
    padding: 6px 0 !important;
  }
  .mybanner-outer .col-md-3 .carousel-inner .item img {
    width: 50% !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* --- ABOUT SECTION (3 feature boxes) --- */
  .about {
    padding: 15px 0 20px !important;
  }
  .about ul.our-links {
    margin: 0 !important;
  }
  .about ul.our-links li {
    width: 100% !important;
    float: none !important;
    padding: 12px 15px !important;
    margin-bottom: 0 !important;
  }
  .about ul.our-links li .icon {
    width: 15% !important;
  }
  .about ul.our-links li .detail {
    width: 85% !important;
  }
  .about ul.our-links li .detail h3 {
    font-size: 15px !important;
  }
  .about ul.our-links li .detail p {
    font-size: 12px !important;
    line-height: 18px !important;
  }

  /* --- WELCOME + PRINCIPAL (push/pull columns) --- */
  .col-sm-5.col-sm-pull-7,
  .col-sm-7.col-sm-push-5 {
    width: 100% !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
  }
  .col-sm-5.col-sm-pull-7 {
    margin-bottom: 15px !important;
  }
  .left-block {
    padding-bottom: 15px !important;
  }
  .left-block p,
  .about p {
    font-size: 13px !important;
    line-height: 22px !important;
  }
  .video-block img {
    width: 100% !important;
  }

  /* --- COURSES GRID ON HOMEPAGE --- */
  .how-study {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
  }
  .how-study h2 {
    font-size: 22px !important;
    padding-bottom: 15px !important;
  }
  .how-study ul li {
    width: 100% !important;
    float: none !important;
    margin-bottom: 12px !important;
    position: relative !important;
  }
  .how-study ul li figure {
    position: relative !important;
    overflow: hidden !important;
  }
  .how-study ul li figure img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }
  .how-study ul li .overly {
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
  }
  .how-study ul li .cnt-block {
    max-width: 100% !important;
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
  }
  .how-study ul li .cnt-block h3 {
    font-size: 15px !important;
    line-height: 18px !important;
  }
  .how-study ul li .cnt-block p {
    font-size: 11px !important;
  }

  /* --- WHY CHOOSE US GRID --- */
  .our-impotance ul li {
    width: 50% !important;
    margin-bottom: 10px !important;
    border-right: none !important;
  }
  .our-impotance ul li:after {
    display: none !important;
  }
  .our-impotance ul li .inner {
    padding: 8px !important;
  }
  .our-impotance ul li .inner img {
    max-width: 45px !important;
    max-height: 45px !important;
  }
  .our-impotance ul li h3 {
    font-size: 11px !important;
    line-height: 15px !important;
    padding: 6px 0 2px !important;
  }
  .our-impotance ul li h3 span {
    display: inline !important;
  }
  .our-impotance h2 {
    font-size: 22px !important;
  }

  /* --- STUDENTS MARQUEE --- */
  .why-choose marquee img {
    width: 65px !important;
    height: 55px !important;
  }
  .why-choose h2 {
    font-size: 22px !important;
  }

  /* --- COURSES PAGE --- */
  .about-page2-area {
    padding: 0 5px !important;
  }
  .about-page2-area h2 {
    font-size: 18px !important;
  }
  table.table {
    font-size: 11px !important;
    min-width: 500px !important;
  }
  table.table th,
  table.table td {
    padding: 5px 6px !important;
    white-space: nowrap !important;
  }
  .research-details-inner h2 {
    font-size: 16px !important;
  }
  .research-details-inner h4 {
    font-size: 14px !important;
  }
  .research-details-inner p,
  .research-details-inner ol li {
    font-size: 13px !important;
    line-height: 20px !important;
  }

  /* --- CONTACT PAGE --- */
  .google-map iframe {
    height: 250px !important;
  }
  .contact-detail {
    padding: 10px !important;
  }
  .contact-detail .address .inner h3 {
    font-size: 15px !important;
  }
  .col-sm-8.col-sm-offset-2 {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .col-sm-8.col-sm-offset-2 > div {
    padding: 18px !important;
  }

  /* --- FACULTY TABLES --- */
  .table-striped,
  .table-bordered {
    font-size: 11px !important;
  }

  /* --- GALLERY --- */
  .campus-tour ul.gallery li {
    width: 50% !important;
  }

  /* --- FOOTER --- */
  .footer {
    text-align: center !important;
    padding: 15px 0 !important;
  }
  .footer .col-sm-6,
  .footer .col-xs-12 {
    width: 100% !important;
    float: none !important;
  }
  .footer p {
    font-size: 12px !important;
    line-height: 18px !important;
  }

  /* --- TYPOGRAPHY --- */
  h1 { font-size: 22px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 16px !important; }
  h4 { font-size: 14px !important; }

  /* --- SPACING --- */
  .padding-lg {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
  }
  section {
    overflow: hidden !important;
  }

  /* --- SCROLL TO TOP --- */
  .scroll-top {
    right: 10px !important;
    bottom: 10px !important;
    width: 34px !important;
    height: 34px !important;
  }

  /* --- FACILITIES PAGE --- */
  .col-md-4 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 15px !important;
  }
}

/* ============================================= */
/* SMALL PHONES — max-width: 480px               */
/* ============================================= */
@media (max-width: 480px) {
  .mobile-logo-wrap img {
    max-width: 160px !important;
  }
  .how-study ul li figure img {
    height: 150px !important;
  }
  h1 { font-size: 20px !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 14px !important; }
  .mobile-contact-strip a {
    font-size: 11px !important;
  }
}

/* ============================================= */
/* VERY SMALL — max-width: 360px                 */
/* ============================================= */
@media (max-width: 360px) {
  .our-impotance ul li {
    width: 100% !important;
  }
  .mobile-logo-wrap img {
    max-width: 140px !important;
  }
}
