/* ASF device-adaptive layout (site): loaded after base styles; print unaffected. */
@media screen {
html{min-width:0;max-width:100%;scroll-padding-top:72px}body{min-width:0;overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
img,video,svg,iframe{max-width:100%}img,video{height:auto}
.container,.container-fluid,.row,main,section,article{min-width:0}
input,textarea,select,button{font:inherit;max-width:100%}textarea{resize:vertical}
:is(.content,.page-content,.section-content,.card,.panel,.form-group,.form-row){min-width:0}
:is(.table-responsive,.dataTables_wrapper,.asf-table-scroll){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
:where(table){border-collapse:collapse} :where(table) td,:where(table) th{overflow-wrap:anywhere}
:where(.hero-slide,.hero-slider,.banner,.slider) img{max-width:100%;object-fit:cover}
}
@media screen and (max-width:1024px){
.brandbar-row{min-width:0;gap:8px}.brand-v4,.brand{min-width:0!important;flex-shrink:1}.brandbar-actions{gap:6px}
.header-quick{padding:6px}.menurow-inner{min-width:0}.menurow .nav{z-index:205}
:where(.course-detail-layout,.about-premium){grid-template-columns:minmax(0,1fr)!important}
}
@media screen and (max-width:767.98px){
html{-webkit-text-size-adjust:100%}body{width:100%;margin:0;overscroll-behavior-y:contain}
.container{width:calc(100% - 28px)!important;max-width:100%!important;margin-inline:auto!important}
:where(.section,.section-pad,.section-padding){padding-top:30px;padding-bottom:30px}
.topline{min-height:0}.top-contact{overflow-wrap:anywhere}
.brandbar-row,.header-row{height:auto!important;min-height:68px;padding-block:8px}
.brand-v4 .brand-logo{width:54px;height:54px;flex-basis:54px}.brand-v4 .brand-text strong{font-size:clamp(12px,3.65vw,17px);line-height:1.2}
.brand-v4 .brand-text small{font-size:9px}.brandbar-actions .header-quick{display:none}
.brandbar-actions .asf-install-header{display:inline-flex;min-height:38px;padding:5px 8px;font-size:11px}
.brandbar-actions .asf-install-header small{display:none}
.menurow{height:0!important;min-height:0!important}.menurow-inner{height:0!important}
.menurow .nav.open,.nav.open{height:100dvh!important;max-height:100dvh;overscroll-behavior:contain;padding-bottom:calc(35px + env(safe-area-inset-bottom));background:#fff;color:#123}
.menurow .nav.open .nav-link,.nav.open .nav-link{color:#123!important;min-height:44px;height:auto}
.menurow-tools{display:none!important}
.hero-slider{min-height:0!important}.hero-slide{min-height:340px!important}
.hero-content{padding:40px 0 64px!important}.hero-content h1{font-size:clamp(25px,8vw,36px)!important;line-height:1.14!important}
.hero-content p{font-size:14px!important}
:is(.hero-actions,.btn-row,.action-buttons){display:flex;flex-wrap:wrap;gap:10px}
:is(.hero-actions,.btn-row,.action-buttons) > *{max-width:100%}
:is(.courses-grid,.category-grid,.offer-grid,.digital-grid,.footer-grid){gap:12px}
:is(.course-detail-layout,.about-premium,.course-filter-bar){grid-template-columns:minmax(0,1fr)!important}
:is(.footer-grid){grid-template-columns:minmax(0,1fr)!important}
:where(.course-detail-card,.course-summary,.director-card){padding:16px}
:is(.contact-form,.admission-form,.form-grid,.form-row){min-width:0}
:is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:40px}
:is(.modal,.modal-dialog){max-width:100vw} .modal-dialog{width:calc(100vw - 24px)!important;margin:12px auto!important}
:where(.pwa-install){bottom:calc(16px + env(safe-area-inset-bottom))}
}
@media screen and (max-width:420px){
:is(.courses-grid,.offer-grid){grid-template-columns:minmax(0,1fr)!important}
.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.brand-v4 .brand-text small{display:none!important}
}
@media print{.pwa-install,.pwa-hint,.asf-install-header,.asf-install-nav,.asf-install-cta{display:none!important}}

/* ASF home app view fixes — public site only */
@media screen and (max-width:767.98px){
  body.site-theme-blue-orange {padding-bottom:calc(68px + env(safe-area-inset-bottom))!important}
  #asfFullHero {left:auto!important;width:100%!important;max-width:100%!important;margin-left:0!important;overflow:hidden!important}
  #asfFullHero .asf-full-track {width:100%!important}
  #asfFullHero .asf-full-slide {min-width:100%!important;flex:0 0 100%!important;height:clamp(180px,51vw,330px)!important}
  #asfFullHero .asf-full-slide img {width:100%!important;height:100%!important;object-fit:contain!important;background:#071e40}
  .asf-posters {max-width:100%!important;overflow:hidden!important;padding:24px 0 36px!important}
  .asf-posters-viewport {width:100%!important;max-width:100vw!important;overflow:hidden!important}
  .asf-posters-header {padding-inline:14px!important}
  .asf-posters-header h2 {font-size:clamp(24px,7vw,30px)!important}
  .asf-poster-card {flex:0 0 clamp(140px,44vw,188px)!important;width:clamp(140px,44vw,188px)!important}
  .asf-poster-img {height:clamp(175px,57vw,230px)!important}
  .asf-posters-track {max-width:none!important}
  .asf-mobile-bottom {display:flex!important}
}
@media screen and (min-width:768px){.asf-mobile-bottom{display:none!important}}
.asf-mobile-bottom{position:fixed;z-index:2050;bottom:0;left:0;right:0;min-height:calc(60px + env(safe-area-inset-bottom));padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:#071e3b;border-top:2px solid #f9b512;box-shadow:0 -5px 25px rgba(0,0,0,.16);align-items:center;justify-content:space-around;gap:2px}
.asf-mobile-bottom a,.asf-mobile-bottom button {min-width:0;flex:1;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;text-decoration:none;color:#fff;background:none;border:0;font-size:10px;font-weight:700;line-height:1.2;cursor:pointer}
.asf-mobile-bottom i {font-size:19px;color:#ffc636}
@media print {.asf-mobile-bottom{display:none!important}}
