/*
Theme Name: AsiaTech Live Academy
Author: AsiaTech.pk
Version: 1.0.10
Description: Full-width academy dashboard theme, integrates AsiaTech Live Academy plugin.
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: asiatech-academy-theme
*/
*{box-sizing:border-box}body{margin:0;background:#f3f5fc;color:#171939;font:15px/1.55 system-ui,sans-serif}a{color:#5140c8;text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.at-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.at-side{background:linear-gradient(160deg,#20213d,#111526);color:white;padding:22px 12px;position:sticky;top:0;height:100vh;overflow:auto}.admin-bar .at-side{top:32px;height:calc(100vh - 32px)}.at-brand{display:block;color:white;font-size:21px;font-weight:800;padding:10px 12px 24px}.at-brand b{display:block;color:#ffad32;font-size:15px}.at-brand img{max-height:65px;width:auto}.at-side nav a{display:flex;align-items:center;gap:12px;color:#f0efff;padding:12px;border-radius:8px;margin:3px 0;font-weight:600}.at-side nav a:hover,.at-side nav a[aria-current=page]{background:#5143e8;text-decoration:none}.at-side .dashicons{font-size:20px}.at-main{min-width:0;padding:18px 22px}.at-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.at-top a{font-weight:700}.at-content{background:white;border-radius:14px;padding:24px;overflow-wrap:anywhere}.at-dashboard .at-content{background:none;padding:0}.at-footer{font-size:12px;color:#62657e;padding:18px 0}.at-notice{background:#fff4dd;border:1px solid #e9bd60;padding:20px;border-radius:12px}.at-shell .alad,.at-shell .alad-front{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}.at-shell .alad-nav{display:none}.at-shell .alad-hero{min-height:145px;gap:20px}.at-shell .alad-settings{margin:14px 0}.at-shell .alad-stat{min-height:115px}.at-shell .alad-stat strong{font-size:26px}.at-shell .alad-stat span{flex-shrink:0}.at-shell .alad-columns{grid-template-columns:1.1fr 1.1fr 1fr}.at-shell .alad-panel{min-width:0}.at-shell .alad-line{flex-wrap:nowrap}.at-shell .alad-line .alad-btn{flex-shrink:0}.at-shell .alad-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.at-menu-toggle{display:none}.at-menu-list{list-style:none;padding:0;margin:0}.at-menu-list li{list-style:none}.at-shell .ala{max-width:none;width:100%}@media(max-width:1350px){.at-shell .alad-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.at-shell .alad-columns{grid-template-columns:1fr 1fr}}@media(max-width:850px){.at-shell{grid-template-columns:1fr}.at-side,.admin-bar .at-side{position:static;height:auto;padding:10px}.at-side nav{display:none}.at-side.open nav{display:block}.at-brand{display:inline-block;padding:8px}.at-menu-toggle{display:inline-block;float:right;padding:10px;background:#5143e8;color:white;border:0;border-radius:7px}.at-main{padding:12px}.at-shell .alad-columns{grid-template-columns:1fr}.at-shell .alad-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.at-shell .alad-hero-art{display:none}} 

.at-brand img{display:block;width:100%;max-height:85px;object-fit:contain;background:white;padding:7px;border-radius:9px}.at-brand{padding:8px 4px 20px}
/* Compact academy shell; only content panes scroll when needed. */
.at-shell{grid-template-columns:210px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}.admin-bar .at-shell{height:calc(100dvh - 32px)}.at-side,.admin-bar .at-side{position:relative;top:0;height:100%;padding:12px 10px;overflow:auto;background:linear-gradient(165deg,#171d42,#101329)}.at-main{height:100%;min-height:0;overflow:auto;padding:12px 18px;display:flex;flex-direction:column}.at-brand{padding:8px 4px 16px}.at-brand img{background:transparent;padding:2px;max-height:90px;width:100%;object-fit:contain}.at-side nav a{padding:8px 10px;gap:10px;font-size:13px;min-height:38px;margin:3px 0;border:1px solid transparent;transition:background .15s}.at-side nav a:hover,.at-side nav a[aria-current=page]{background:linear-gradient(110deg,#4437c9,#6650eb);border-color:#ffffff20;box-shadow:0 3px 10px #0002}.at-side .dashicons{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#ffffff10;color:#ffb84a;font-size:18px;flex-shrink:0}.at-top{margin-bottom:10px;font-size:13px}.at-content{padding:14px;min-width:0}.at-footer{padding:8px 0;margin-top:auto}.at-shell .alad-hero{min-height:100px}.at-shell .alad-stat{min-height:76px}.at-shell .alad-stat strong{font-size:22px}.at-shell .alad-columns{grid-template-columns:1.1fr 1.1fr 1fr}.at-shell .alad-line{flex-wrap:wrap}.at-shell .ala nav{display:none}.at-side a:focus-visible,.at-menu-toggle:focus-visible{outline:2px solid #ffb84a;outline-offset:2px}
@media(max-width:1180px){.at-shell .alad-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.at-shell .alad-columns{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.at-shell,.admin-bar .at-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:100dvh}.admin-bar .at-shell{height:calc(100dvh - 46px)}.at-side,.admin-bar .at-side{height:auto;max-height:48dvh;padding:7px 10px;overflow:auto}.at-brand{padding:0;width:165px}.at-brand img{max-height:54px}.at-menu-toggle{display:flex;align-items:center;gap:6px;margin-top:7px}.at-side nav{padding-top:7px}.at-side.open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.at-menu-list{grid-column:1/-1}.at-main{padding:9px;overflow:auto}.at-shell .alad-columns{grid-template-columns:1fr}.at-shell .alad-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.at-shell .alad-hero{min-height:0}.at-top{margin-bottom:7px}.at-content{padding:9px}}
@media(min-width:851px) and (max-width:782px){.admin-bar .at-shell{height:calc(100dvh - 46px)}}

/* Larger academy application UI */
.at-shell{grid-template-columns:245px minmax(0,1fr)}.at-side nav a{font-size:15px;min-height:47px;padding:9px 12px}.at-side .dashicons{width:34px;height:34px;font-size:20px}.at-main{padding:18px 22px}.at-top{font-size:15px}.at-shell .alad-hero{min-height:144px}.at-shell .alad-hero h1{font-size:clamp(23px,2.5vw,34px)}.at-shell .alad-stat{min-height:105px;padding:15px}.at-shell .alad-stat strong{font-size:30px}.at-shell .alad-stat small{font-size:13px}.at-shell .alad-panel{padding:14px}.at-shell .alad-panel h2{font-size:17px;padding:13px}.at-shell .alad-line{padding:12px 4px;font-size:14px}.at-shell .alad-btn{padding:11px 14px;font-size:14px}.at-shell .ala>header{display:none}.at-shell .ala>footer{display:none}.at-shell .ala main{padding:0}.at-shell .ala{margin:0;border:0;background:none;box-shadow:none}.at-content{min-width:0}.at-shell .alad-panel .alad-line{max-height:none}.at-shell .ala-front-control{font-size:15px}.at-shell .ala-front-control h1{font-size:28px}.at-shell .ala-front-catalog{margin-top:22px}.at-shell .ala-front-catalog .ala{padding:0}.at-shell .at-footer{font-size:12px}
@media(max-width:850px){.at-shell{grid-template-columns:1fr}.at-main{padding:10px}.at-side nav a{font-size:13px;min-height:39px}.at-shell .alad-hero{min-height:100px}.at-shell .alad-stat{min-height:85px;padding:10px}.at-shell .alad-stat strong{font-size:24px}.at-shell .alad-panel{padding:10px}}


/* v1.0.5 public footer + polished shell */
.at-footer-pro{margin-top:18px;padding:0;background:linear-gradient(135deg,#151a43,#211e58 60%,#2d2b71);color:#eef1ff;border-radius:22px;overflow:hidden;box-shadow:0 16px 40px rgba(23,26,67,.12)}
.at-footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:28px;padding:26px 26px 18px}.at-footer-pro h3,.at-footer-pro h4{margin:0 0 12px;color:#fff}.at-footer-pro p{margin:0;color:#d7dbff}.at-footer-logo-wrap{background:#ffffff08;border:1px solid #ffffff14;border-radius:18px;padding:12px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px}.at-footer-logo{max-width:220px;max-height:92px;object-fit:contain}.at-footer-links{list-style:none;padding:0;margin:0;display:grid;gap:10px}.at-footer-links a{color:#e8ebff;text-decoration:none}.at-footer-links a:hover{color:#ffbf5f}.at-socials{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.at-socials a{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(120deg,#4338ca,#ff8c2c);color:#fff;text-decoration:none;box-shadow:0 10px 24px rgba(67,56,202,.22)}.at-socials .dashicons{font-size:19px;width:19px;height:19px}.at-footer-bottom{padding:14px 26px;border-top:1px solid #ffffff12;color:#c8cdf7;font-size:13px;background:#0d1030}
.at-content{box-shadow:0 10px 34px rgba(28,31,86,.05)}
@media(max-width:900px){.at-footer-grid{grid-template-columns:1fr;gap:20px;padding:20px}.at-footer-bottom{padding:12px 20px}}

/* Single scroll owner: fixed application shell, content pane only. */
html:has(body .at-shell),body:has(> .at-shell){height:100%;margin:0;overflow:hidden!important}body:has(> .at-shell){max-height:100dvh}body .at-shell{height:100dvh;max-height:100dvh;min-height:0;overflow:hidden!important}body .at-main{min-height:0;height:auto;max-height:100%;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;scrollbar-gutter:stable}body .at-main .at-content,body .at-main .alad,body .at-main .alad-front,body .at-main .alad-columns>section,body .at-main .alad-panel{max-height:none!important;overflow:visible!important}body .at-main .at-content{flex:0 0 auto}body .at-main .ala-front-control .wrap{overflow-x:auto!important}body .at-main .at-footer{flex:0 0 auto}html:has(body .at-shell){margin-top:0!important}@media(max-width:850px){body .at-shell{grid-template-rows:auto minmax(0,1fr)}body .at-main{height:auto;max-height:100%}}

/* Footer pinned below the single scrollable content pane. */
body .at-shell .at-main{display:flex;flex-direction:column;overflow:hidden!important;min-height:0}body .at-shell .at-main>.at-top{flex:0 0 auto}body .at-shell .at-main>.at-content{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;overscroll-behavior:contain}body .at-shell .at-main>.at-footer{flex:0 0 auto;margin:10px 0 0!important}body .at-shell .at-footer-grid{padding:10px 18px;gap:18px}body .at-shell .at-footer-logo{max-height:50px!important;width:150px!important}body .at-shell .at-footer-logo-wrap{margin-bottom:3px}body .at-shell .at-footer-pro h3,body .at-shell .at-footer-pro h4{font-size:13px;margin:0 0 4px}body .at-shell .at-footer-pro p,body .at-shell .at-footer-links{font-size:12px;gap:3px}body .at-shell .at-footer-bottom{padding:5px 18px;font-size:11px}body .at-shell .at-socials{margin-top:4px}body .at-shell .at-socials a{width:28px;height:28px}.at-cache-button{background:#f4a43b;border:0;border-radius:8px;padding:7px 12px;font-weight:700;color:#171939;cursor:pointer}.at-cache-form{margin:0 0 0 auto}.at-cache-notice{padding:8px;background:#e0f3e6;color:#174b2d;border-radius:8px;margin-bottom:8px}@media(max-width:850px){body .at-shell .at-main{overflow-y:auto!important}body .at-shell .at-main>.at-content{flex:0 0 auto;overflow:visible!important}body .at-shell .at-footer-grid{grid-template-columns:1fr 1fr}body .at-shell .at-footer-brand{grid-column:1/-1}}

.at-sidebar-placement{margin:16px 3px 4px;padding:9px;border-radius:14px;background:#ffffff0b;border:1px solid #ffffff20;text-align:center;color:#fff;position:sticky;bottom:0; background-color:#171b42}.at-sidebar-placement small{font-size:10px;letter-spacing:1px;color:#ffcb7b}.at-sidebar-placement img{display:block;width:100%;aspect-ratio:2/3;object-fit:contain;border-radius:9px}.at-placement-placeholder{aspect-ratio:2/3;display:flex;flex-direction:column;justify-content:center;gap:8px;background:linear-gradient(145deg,#342678,#111939);border-radius:10px;padding:10px;margin:6px 0}.at-placement-placeholder img{aspect-ratio:auto;max-height:65px}.at-placement-placeholder strong{font-size:19px}.at-placement-book{display:block;background:#f8a13a;color:#171939;padding:8px;border-radius:8px;font-weight:700;font-size:12px}.at-side{display:flex;flex-direction:column}.at-sidebar-placement{margin-top:auto;flex-shrink:0}@media(max-width:850px){.at-side{display:block}.at-sidebar-placement{display:none}.at-side.open .at-sidebar-placement{display:block;position:static;max-width:180px;margin:8px auto}}

body .at-shell .at-side{display:flex;flex-direction:column;min-height:0;overflow-y:auto!important}body .at-shell .at-side nav{flex:0 0 auto}body .at-shell .at-side-extras{margin-top:auto;flex:0 0 auto;padding-top:12px}body .at-shell .at-sidebar-placement{display:block!important;position:static;margin:0 2px 8px;padding:7px}body .at-shell .at-sidebar-placement>a>img{width:100%;max-height:clamp(100px,24vh,240px);object-fit:contain}body .at-shell .at-placement-placeholder{aspect-ratio:auto;min-height:100px;max-height:180px;padding:8px}body .at-shell .at-placement-placeholder img{max-height:55px;object-fit:contain}body .at-shell .at-side-extras .ala-version-dates{display:grid;gap:3px;text-align:center;margin:4px 2px;padding:8px 4px;background:#ffffff12;color:#fff;font-size:11px;line-height:1.45}body .at-shell .at-side-extras .ala-version-dates span{display:block}body .at-shell .at-side-extras .ala-version-dates span:first-child{color:#ffbd58} @media(max-width:850px){body .at-shell .at-side{display:block}body .at-shell .at-side-extras{display:none}body .at-shell .at-side.open .at-side-extras{display:block}body .at-shell .at-sidebar-placement{max-width:160px;margin:8px auto}body .at-shell .at-side-extras .ala-version-dates{max-width:280px;margin:auto}}

/* Sidebar placement remains in normal layout, independent of content pane. */
body .at-shell .at-side-extras{display:block!important;flex:0 0 auto;min-width:0;margin-top:auto}body .at-shell .at-sidebar-placement{display:block!important;visibility:visible;opacity:1;position:static;overflow:visible;flex-shrink:0}body .at-shell .at-side{overflow-y:auto!important;overflow-x:hidden}body .at-shell .at-side-extras .ala-version-dates .ala-hijri{font-family:"Noto Naskh Arabic","Traditional Arabic",serif;font-size:19px;line-height:1.45;font-weight:500;color:#fff} @media(max-width:850px){body .at-shell .at-side:not(.open) .at-side-extras{display:none!important}body .at-shell .at-side.open .at-side-extras{display:block!important} }
