/* Preserve editor list formatting in published content on every screen size. */
.dynamic-description ol { list-style-type:decimal; }
.dynamic-description ul { list-style-type:disc; }
.dynamic-description ol, .dynamic-description ul {
  list-style-position:outside;
  padding-inline-start:2rem;
  margin-block:0.75rem;
}
.dynamic-description li { display:list-item; }
.dynamic-description ol[type="a"] { list-style-type:lower-alpha; }
.dynamic-description ol[type="A"] { list-style-type:upper-alpha; }
.dynamic-description ol[type="i"] { list-style-type:lower-roman; }
.dynamic-description ol[type="I"] { list-style-type:upper-roman; }

/* Shared mobile layout. Desktop layouts retain their existing styles. */
@media (max-width: 991.98px) {
  body .main-wrapper { min-width:0; width:100%; }
  body .header-topbar > .container { width:100%; max-width:100%; padding:0 12px; }
  body .header-topbar .row.bg-white { display:none; }
  body .quick-menu-bar .container { padding:0 6px; }
  body .quick-menu-bar .d-flex { gap:4px; }
  body .quick-menu-bar a { overflow-wrap:anywhere; }
  body header.header-two { margin-bottom:0 !important; }
  body header .header-nav { min-height:76px; padding:8px 0; }
  body header .navbar-header { display:block; width:100%; }
  body header .mobile-header-inner { width:100%; min-height:60px; gap:12px; }
  body header .mobile-header-inner .menu-logo { display:block; width:280px; min-width:0; max-width:calc(100% - 66px); flex-shrink:1; overflow:hidden; }
  /* The source logo has generous vertical padding; crop that padding in the header. */
  body header .mobile-header-inner .menu-logo img { display:block; width:100% !important; height:72px !important; max-width:100%; max-height:72px; object-fit:cover; object-position:center 46%; }
  body #mobile_btn, body #menu_close { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; flex-shrink:0; }
  body header .header-nav .main-menu-wrapper { transform:translateX(-100%); width:min(340px, 90vw); max-width:90vw; height:100dvh; overflow-y:auto; overscroll-behavior:contain; padding-bottom:env(safe-area-inset-bottom, 12px); }
  body header .main-menu-wrapper .menu-header { position:sticky; top:0; z-index:2; }
  body header .main-menu-wrapper .main-nav { width:100%; margin:0; padding:0; }
  body header .main-menu-wrapper .main-nav a { white-space:normal !important; overflow-wrap:anywhere; min-height:44px; }
  body header .main-menu-wrapper .submenu { max-width:100%; min-width:0; }
  body .sidebar-widget { position:fixed !important; left:auto; right:0; top:50%; transform:translateY(-50%); width:38px !important; margin:0 !important; z-index:1030; box-shadow:2px 2px 8px rgba(0,0,0,.2); }
  body .sidebar-widget ul { display:flex; flex-direction:column; padding:0; margin:0; }
  body .sidebar-widget li { width:38px; height:44px; }
  body .sidebar-widget li a { display:flex; align-items:center; justify-content:center; line-height:44px; }
  body .sidebar-widget li a i { position:static; font-size:17px; }
  body .select2-container, body .select2-container-multi, body .ui-select-container { max-width:100% !important; min-width:0 !important; width:100% !important; }
  body .select2-search-field { max-width:100%; }
  body .select2-search-field .select2-input { width:100% !important; max-width:100% !important; min-width:0 !important; }
  body .select2-choices { display:flex; flex-wrap:wrap; }
  body .select2-drop { max-width:calc(100vw - 24px); }
  body .dynamic-description { overflow-wrap:anywhere; min-width:0; }
  body .dynamic-description img, body .dynamic-description video { max-width:100% !important; height:auto !important; }
  body .dynamic-description iframe, body .pdf-wrapper iframe, body .course-details iframe { max-width:100% !important; width:100% !important; }
  body .dynamic-description iframe, body .pdf-wrapper iframe { height:65vh !important; min-height:300px; }
  body .responsive-table-scroll, body .table-responsive { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  body .responsive-table-scroll table { min-width:560px; }
  body .website-dynamic-tabs .website-tab-nav { gap:6px; padding:12px !important; }
  body .website-dynamic-tabs .website-tab-nav .nav-link { white-space:normal; min-height:44px; font-size:13px !important; }
  body .tab-content, body .tab-pane { min-width:0; max-width:100%; }
  body .modal-dialog { max-width:calc(100% - 24px) !important; margin:12px auto !important; }
  body .modal-content { max-width:100%; }
  body .modal-body { overflow-wrap:anywhere; }
  body #exampleModal .modal-dialog { min-height:0 !important; }
  body #exampleModal .custom-modal { width:100% !important; margin:0; }
  body #exampleModal .modal-body { max-height:calc(100dvh - 100px); overflow-y:auto !important; }
  body .footer-logo img { max-width:100%; height:auto; }
  body .footer { overflow-wrap:anywhere; }
}
@media (max-width: 767.98px) {
  body .container, body .container-fluid { padding-left:16px; padding-right:16px; }
  body .row > * { min-width:0; }
  body .breadcrumb-bar { padding:24px 12px; }
  body .breadcrumb-bar h1, body .breadcrumb-bar h2 { font-size:clamp(24px,6vw,32px); line-height:1.25; overflow-wrap:anywhere; }
  body .section, body .register-sec { padding-top:32px; padding-bottom:32px; }
  body .banner-section-two .slider-container, body .banner-section-two .slide { height:clamp(190px,56vw,300px) !important; }
  body .banner-main-row { height:auto !important; }
  body .banner-main-row > [class*="col-"] { width:100%; flex:0 0 100%; }
  body .banner-sidebar-wrap, body .banner-slider-wrap { max-width:100%; margin-right:0 !important; }
  body .admission-form { padding:20px 16px; }
  body input.form-control, body select.form-control, body select.form-select, body textarea.form-control { font-size:16px; max-width:100%; }
  body .register-section { padding:20px 16px !important; }
  body .register-section h5 { font-size:25px; }
  body .maindivpad { padding:0 !important; }
  body .innerbody { padding:16px !important; }
  body .course-img img { max-width:100%; }
  body .footer-top { padding-top:32px; padding-bottom:24px; }
  body .footer .footer-menu a { display:inline-block; padding-top:6px; padding-bottom:6px; }
}

@media (max-width:991.98px) {
  html.menu-opened body header .header-nav .main-menu-wrapper { transform:translateX(0); }
  body .innerbody iframe { width:100% !important; max-width:100%; height:65vh !important; min-height:300px; }
}