:root {
  --blue-950:#032b59;--blue-900:#06447f;--blue-800:#075ca8;--blue-700:#0a72cb;--blue-500:#38a8f3;--blue-100:#e9f6ff;
  --ink:#123556;--muted:#677d92;--line:rgba(124,168,204,.34);--white:#fff;--green:#2ecb5a;--red:#c62828;
  --radius-sm:12px;--radius-md:20px;--radius-lg:28px;
  --shadow-sm:0 8px 24px rgba(4,51,94,.10);--shadow-md:0 18px 45px rgba(4,48,91,.18),0 2px 7px rgba(5,73,132,.08);--shadow-lg:0 28px 70px rgba(2,38,80,.28),inset 0 1px rgba(255,255,255,.45);
  --glass:rgba(255,255,255,.89);--ease:cubic-bezier(.2,.8,.2,1)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Chulabhorn Likit Text",Tahoma,sans-serif;color:var(--ink);background:#eaf3fb;line-height:1.45}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{color:inherit}

.site-header{height:72px;padding:0 clamp(18px,3vw,50px);display:flex;align-items:center;background:linear-gradient(105deg,#043b76 0%,#075da8 54%,#0875c5 100%);color:#fff;position:relative;z-index:30;box-shadow:0 8px 28px rgba(1,34,72,.27)}
.site-header:after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent)}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}.brand-school-logo{display:block;width:54px;height:54px;object-fit:contain;border-radius:13px;background:#fff;padding:2px;box-shadow:0 5px 16px rgba(0,20,46,.28)}.brand-name{display:block;line-height:1.12}.brand-name b{display:block;font-size:18px;white-space:nowrap}.brand-name small{display:block;margin-top:5px;font-size:9px;letter-spacing:1.15px;opacity:.84;white-space:nowrap}
.main-nav{margin-left:auto;height:100%;display:flex;align-items:stretch;gap:1px}.main-nav a{position:relative;display:flex;align-items:center;gap:7px;padding:0 clamp(7px,1vw,14px);white-space:nowrap;font-size:13px;font-weight:600;opacity:.9;transition:background .25s var(--ease),opacity .25s var(--ease),transform .25s var(--ease)}.main-nav a span{font-size:18px;transition:transform .25s var(--ease)}.main-nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#fff;box-shadow:0 0 13px rgba(255,255,255,.8);transition:left .25s var(--ease),right .25s var(--ease)}.main-nav a:hover,.main-nav a.active{background:rgba(255,255,255,.08);opacity:1}.main-nav a:hover:after,.main-nav a.active:after{left:16%;right:16%}.main-nav a:hover span{transform:translateY(-2px)}.nav-toggle{display:none;margin-left:auto;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}

body.portal-home{overflow:hidden}.portal-shell{height:calc(100dvh - 120px);min-height:0;padding:clamp(14px,2.4vh,27px) clamp(20px,3.2vw,54px) clamp(12px,1.8vh,20px);display:grid;grid-template-rows:minmax(118px,.42fr) minmax(0,1.35fr);gap:clamp(11px,1.7vh,19px);overflow:hidden;position:relative;background:linear-gradient(110deg,rgba(247,252,255,.93) 0%,rgba(229,243,255,.76) 52%,rgba(4,61,118,.36) 100%),url('../img/hero-bg.jpg') center/cover fixed}
.portal-shell:before,.portal-shell:after{content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.portal-shell:before{width:38vw;height:38vw;right:-14vw;top:-20vw;background:radial-gradient(circle,rgba(66,180,255,.32),transparent 68%);animation:ambientFloat 10s ease-in-out infinite alternate}.portal-shell:after{width:30vw;height:30vw;left:-16vw;bottom:-18vw;background:radial-gradient(circle,rgba(255,255,255,.8),transparent 70%)}
.hero-copy{min-height:0;display:flex;align-items:center;gap:clamp(18px,2vw,28px);max-width:1050px;position:relative;z-index:1;text-shadow:0 2px 14px rgba(255,255,255,.95)}.hero-ict-logo{width:clamp(110px,9.2vw,154px);height:clamp(110px,9.2vw,154px);object-fit:cover;border:5px solid rgba(255,255,255,.92);border-radius:31px;background:#fff;box-shadow:0 18px 36px rgba(0,49,98,.25),0 0 0 1px rgba(13,112,190,.12);flex:0 0 auto;animation:logoFloat 4.8s ease-in-out infinite}.eyebrow{letter-spacing:clamp(5px,.58vw,9px);color:#075ca7;font-weight:700;margin:0 0 4px;font-size:clamp(11px,.9vw,15px)}.hero-copy h1{font-size:clamp(29px,3vw,50px);line-height:1.08;margin:0;color:#063e78;letter-spacing:-1px;text-shadow:0 3px 16px rgba(255,255,255,.95),0 1px 0 #fff}.hero-slogan{font-size:clamp(15px,1.35vw,22px);margin:7px 0 0;color:#195f98}
.portal-grid{min-height:0;display:grid;grid-template-columns:minmax(0,1.72fr) minmax(340px,.9fr);gap:clamp(16px,1.8vw,26px);align-items:stretch;position:relative;z-index:2}.information-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,250,255,.86));border:1px solid rgba(255,255,255,.86);border-radius:var(--radius-lg);padding:clamp(14px,1.45vw,22px);box-shadow:var(--shadow-lg);backdrop-filter:blur(17px);overflow:hidden}.info-columns{min-height:0;flex:1;display:grid;grid-template-columns:minmax(260px,.74fr) minmax(360px,1.26fr);gap:clamp(14px,1.5vw,24px);padding-bottom:clamp(10px,1.3vh,15px)}
.news-section{min-width:0;min-height:0;display:flex;flex-direction:column}.section-heading{display:flex;align-items:center;gap:9px;margin-bottom:6px;min-height:35px}.section-heading h2{font-size:clamp(15px,1.15vw,19px);margin:0;color:#073f79}.section-heading a{margin-left:auto;color:#397bb2;font-size:12px;font-weight:600;transition:color .2s,transform .2s}.section-heading a:hover{color:#075ca8;transform:translateX(2px)}.heading-icon{font-size:22px;filter:drop-shadow(0 4px 6px rgba(0,79,145,.18))}.news-list{min-height:0;display:flex;flex-direction:column}.news-item{min-width:0;display:grid;grid-template-columns:61px minmax(0,1fr) 25px;gap:11px;align-items:center;padding:clamp(9px,1.35vh,15px) 0;border-bottom:1px solid rgba(123,164,198,.25);transition:transform .22s var(--ease),background .22s var(--ease)}.news-item:hover{transform:translateX(4px)}.news-item time{height:58px;border-radius:12px;background:linear-gradient(145deg,#eef8ff,#d9efff);border:1px solid rgba(116,183,232,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;color:#0a4f8b;box-shadow:inset 0 1px #fff,0 5px 13px rgba(26,111,174,.09)}.news-item time b{font-size:19px}.news-item time span{font-size:10px;margin-top:5px;font-weight:600}.news-item h3{font-size:clamp(12px,.92vw,15px);line-height:1.35;margin:0;color:#173e62;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-item p{font-size:10px;margin:3px 0 0;color:#718397;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.news-arrow{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:linear-gradient(145deg,#75c5f4,#3096dc);color:#fff;font-size:22px;box-shadow:0 5px 12px rgba(26,126,194,.22)}.empty-news{color:var(--muted);margin:auto}
.activity-slider{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:18px;background:#0b4b80;box-shadow:0 12px 30px rgba(3,48,90,.24);isolation:isolate}.slides,.slide{position:absolute;inset:0}.slide{margin:0;opacity:0;visibility:hidden;transform:scale(1.025);transition:opacity .7s var(--ease),transform 1.2s var(--ease),visibility .7s;overflow:hidden}.slide.is-active{opacity:1;visibility:visible;transform:scale(1);z-index:1}.slide img{width:100%;height:100%;object-fit:cover;object-position:center 45%;display:block;transition:transform 6s ease}.slide.is-active img{transform:scale(1.045)}.slide-focus-left img{object-position:25% 50%}.slide-focus-right img{object-position:78% 48%}.slide:after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(transparent,rgba(1,24,49,.88))}.slide>div{position:absolute;z-index:2;left:18px;right:18px;bottom:15px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.55)}.slide b,.slide span{display:block}.slide b{font-size:clamp(13px,1vw,17px)}.slide span{font-size:10px;margin-top:2px;opacity:.9}.slider-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.85);background:rgba(3,43,82,.37);color:#fff;font-size:30px;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(5px);opacity:.82;transition:background .2s,transform .2s,opacity .2s}.slider-arrow:hover{background:rgba(4,88,158,.78);transform:translateY(-50%) scale(1.06);opacity:1}.slider-arrow.prev{left:12px}.slider-arrow.next{right:12px}.slider-dots{position:absolute;z-index:5;right:15px;bottom:14px;display:flex;gap:6px}.slider-dots button{width:9px;height:9px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:width .25s var(--ease),background .25s}.slider-dots button.is-active{width:24px;border-radius:9px;background:#fff}
.quick-links{flex:0 0 clamp(91px,12.5vh,118px);display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid rgba(111,167,211,.28);border-radius:15px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px #fff;overflow:hidden}.quick-links>a{min-width:0;position:relative;display:grid;grid-template-rows:auto 1fr auto;place-items:center;text-align:center;padding:9px 5px 7px;border-right:1px solid rgba(111,167,211,.25);background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(246,251,255,.5));transition:transform .25s var(--ease),background .25s,box-shadow .25s;z-index:1}.quick-links>a:last-child{border-right:0}.quick-links>a:hover{z-index:2;transform:translateY(-5px);background:#fff;box-shadow:0 13px 26px rgba(4,61,109,.16)}.quick-icon{display:grid;place-items:center;width:42px;height:38px;border-radius:11px;font-size:24px;line-height:1;background:linear-gradient(145deg,#edf8ff,#dceeff);filter:drop-shadow(0 5px 7px rgba(0,74,132,.12));transition:transform .28s var(--ease)}.quick-links>a:hover .quick-icon{animation:iconBounce .55s var(--ease)}.quick-icon.cert{background:linear-gradient(145deg,#fff4db,#ffe5b0)}.quick-icon.search{font-size:34px;color:#0761aa}.quick-icon.library{font-size:31px;color:#168c68;background:linear-gradient(145deg,#ebfff8,#d7f8ec)}.quick-links b{align-self:center;font-size:clamp(9px,.75vw,12px);line-height:1.3;color:#104879}.quick-links i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:linear-gradient(145deg,#79caf7,#2c98de);color:#fff;font-style:normal;font-size:18px;box-shadow:0 4px 9px rgba(10,114,185,.2)}
.login-card{min-height:0;display:flex;flex-direction:column;background:linear-gradient(155deg,rgba(9,105,190,.97),rgba(1,57,114,.98));border:1px solid rgba(255,255,255,.7);border-radius:25px;padding:clamp(14px,1.25vw,20px);color:#fff;box-shadow:var(--shadow-lg),inset 0 1px rgba(255,255,255,.34);overflow:hidden;position:relative}.login-card:before{content:"";position:absolute;width:220px;height:220px;right:-100px;top:-120px;border-radius:50%;background:radial-gradient(circle,rgba(76,190,255,.52),transparent 68%);pointer-events:none}.login-title{display:flex;align-items:center;justify-content:center;gap:14px;padding:0 4px clamp(9px,1.2vh,14px);position:relative}.monitor-icon{font-size:46px;line-height:1;filter:drop-shadow(0 6px 10px rgba(0,28,61,.3))}.login-title h2{font-size:clamp(18px,1.35vw,23px);margin:0}.login-title p{font-size:10px;margin:2px 0;opacity:.85}.login-inner{min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(243,250,255,.94));border:1px solid rgba(255,255,255,.94);border-radius:18px;padding:clamp(13px,1.25vw,19px);color:var(--ink);box-shadow:inset 0 1px #fff,0 12px 30px rgba(0,35,73,.22);backdrop-filter:blur(10px)}.input-wrap{height:clamp(48px,6vh,56px);border:1px solid #c8d7e5;border-radius:11px;display:flex;align-items:center;padding:0 13px;margin-bottom:11px;background:rgba(255,255,255,.88);box-shadow:inset 0 1px 3px rgba(0,0,0,.03);transition:border-color .2s,box-shadow .2s,transform .2s}.input-wrap:focus-within{border-color:#3b9ee3;box-shadow:0 0 0 4px rgba(53,158,230,.12);transform:translateY(-1px)}.input-wrap>span{font-size:18px;filter:grayscale(1);opacity:.68}.input-wrap input{border:0;outline:0;flex:1;min-width:0;padding:0 10px;font-size:14px;color:#24364c;background:transparent}.password-toggle{border:0;background:transparent;color:#77879a;cursor:pointer}
.primary-login{position:relative;overflow:hidden;width:100%;height:clamp(49px,6.2vh,57px);border:0;border-radius:29px;background:linear-gradient(90deg,#044a8d,#0b75cb,#4db2ee);background-size:180% 100%;color:#fff;font-weight:800;font-size:18px;cursor:pointer;box-shadow:0 9px 20px rgba(1,70,135,.26);transition:transform .2s var(--ease),box-shadow .2s}.primary-login:before{content:"";position:absolute;inset:0 auto 0 -45%;width:34%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.48),transparent);animation:buttonShimmer 3.7s ease-in-out infinite}.primary-login:hover{transform:translateY(-2px);box-shadow:0 13px 26px rgba(1,70,135,.34)}.primary-login:disabled{opacity:.57;cursor:not-allowed;box-shadow:none}.primary-login:disabled:before{display:none}.machine-status{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;border-radius:11px;background:linear-gradient(145deg,#eef9ff,#dff2fe);padding:11px}.machine-status>div{min-width:0;display:grid;grid-template-columns:43px 1fr;grid-template-rows:18px 25px;align-items:center;padding:0 7px}.machine-status>div+div{border-left:1px solid #8ba5be}.status-icon,.wifi-icon{grid-row:1/3;font-size:31px}.machine-status small{font-size:10px}.machine-status b{font-size:16px;white-space:nowrap}.machine-status b.online{font-size:12px;color:#258c3f}.machine-status b.online i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--green);margin-right:6px;box-shadow:0 0 0 rgba(46,203,90,.5);animation:statusPulse 1.8s infinite}.admin-login-link{display:block;text-align:center;background:linear-gradient(145deg,#f0f8fe,#e3f2fd);margin-top:11px;border-radius:9px;padding:clamp(10px,1.4vh,14px);font-weight:700;color:#174c7e;transition:background .2s,transform .2s}.admin-login-link:hover{background:#fff;transform:translateY(-1px)}.alert{padding:9px 12px;border-radius:9px;margin-bottom:10px;font-size:11px}.alert.error{background:#ffeded;color:#a32222;border:1px solid #ffc8c8}.alert.success{background:#e8f9ed;color:#167034;border:1px solid #bee9ca}.alert.info{background:#eaf5ff;color:#155482;border:1px solid #c7e3f7}
.site-footer{height:48px;padding:8px clamp(20px,3.5vw,56px);display:flex;align-items:center;gap:32px;background:linear-gradient(100deg,#064888,#0876c6);color:#fff;font-size:11px;box-shadow:0 -5px 18px rgba(0,47,91,.12);position:relative;z-index:20}

.page-shell{min-height:calc(100vh - 120px);padding:38px max(24px,7vw);background:linear-gradient(rgba(235,245,253,.93),rgba(235,245,253,.93)),url('../img/hero-bg.jpg') center/cover fixed}.page-hero p{margin:0;color:#2670ae;font-weight:700}.page-hero h1{font-size:36px;margin:3px 0 22px;color:#073f79}.page-card{background:#fff;border:1px solid rgba(255,255,255,.8);border-radius:22px;padding:28px;box-shadow:var(--shadow-md);max-width:1100px}.article-list article,.manual-list article{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.article-list time{flex:0 0 105px;color:#3e719f}.article-list h2,.manual-list h2{font-size:19px;margin:0 0 4px}.article-list p,.manual-list p{margin:0;color:var(--muted)}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.service-grid article{border:1px solid var(--line);border-radius:14px;padding:22px;background:#fff;box-shadow:var(--shadow-sm)}.service-grid span{font-size:38px}.service-grid h2{font-size:18px}.service-grid p{color:var(--muted)}.manual-list article>b{display:grid;place-items:center;min-width:54px;height:54px;background:#e6f2fd;color:#0861ac;border-radius:50%;font-size:18px}.contact-card{display:flex;gap:24px;align-items:center}.contact-card>span{font-size:64px}.repair-form label{display:block;font-weight:600;margin-bottom:14px}.repair-form input,.repair-form textarea{display:block;width:100%;border:1px solid #cbd8e5;border-radius:9px;padding:11px;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.primary-button{display:inline-block;border:0;border-radius:9px;background:#075da7;color:#fff;padding:11px 20px;font-weight:700;cursor:pointer}.error-page{text-align:center;margin:auto}.error-page>b{font-size:80px;color:#0a5ca3}

@keyframes logoFloat{0%,100%{transform:translateY(0);filter:drop-shadow(0 0 0 rgba(57,176,247,0))}50%{transform:translateY(-6px);filter:drop-shadow(0 12px 16px rgba(57,176,247,.2))}}@keyframes ambientFloat{from{transform:translate3d(0,0,0)}to{transform:translate3d(-3vw,4vh,0)}}@keyframes iconBounce{0%,100%{transform:translateY(0)}45%{transform:translateY(-7px) rotate(-2deg)}70%{transform:translateY(-2px) rotate(1deg)}}@keyframes buttonShimmer{0%,55%{left:-45%}78%,100%{left:125%}}@keyframes statusPulse{0%{box-shadow:0 0 0 0 rgba(46,203,90,.52)}70%{box-shadow:0 0 0 7px rgba(46,203,90,0)}100%{box-shadow:0 0 0 0 rgba(46,203,90,0)}}
@media(max-width:1280px){.main-nav a{font-size:11px;padding:0 7px}.brand-name b{font-size:16px}.brand-name small{font-size:8px}.portal-grid{grid-template-columns:minmax(0,1.55fr) minmax(330px,.78fr)}.info-columns{grid-template-columns:minmax(240px,.72fr) minmax(320px,1.28fr)}.quick-links b{font-size:9px}.login-title h2{font-size:18px}}
@media(max-width:1120px){.site-header{height:auto;min-height:68px;flex-wrap:wrap}.nav-toggle{display:block}.main-nav{display:none;flex:0 0 100%;height:auto;flex-direction:column;padding:9px 0}.main-nav.open{display:flex}.main-nav a{padding:10px 4px;font-size:12px}.main-nav a:after{left:0;right:auto;top:18%;bottom:18%;width:3px;height:auto}.main-nav a:hover:after,.main-nav a.active:after{left:0;right:auto}.portal-shell{height:calc(100dvh - 116px)}.site-footer{height:48px}}
@media(max-width:920px){body.portal-home{overflow:auto}.portal-shell{height:auto;min-height:calc(100vh - 116px);display:block;overflow:visible;padding:22px 18px}.hero-copy{min-height:155px;margin-bottom:16px}.portal-grid{grid-template-columns:1fr}.login-card{grid-row:1;min-height:440px}.information-panel{grid-row:2;min-height:560px}.quick-links{flex-basis:112px}.site-footer{height:auto;min-height:48px;flex-wrap:wrap;gap:8px 22px}}
@media(max-width:680px){.brand-school-logo{width:46px;height:46px}.brand-name b{font-size:15px}.brand-name small{font-size:7px;letter-spacing:.7px}.hero-copy{align-items:flex-start;min-height:125px}.hero-ict-logo{display:none}.eyebrow{font-size:10px;letter-spacing:4px}.hero-copy h1{font-size:27px}.hero-slogan{font-size:14px}.information-panel{padding:14px;min-height:800px}.info-columns{grid-template-columns:1fr;grid-template-rows:230px 300px}.quick-links{margin-top:4px;flex-basis:auto;grid-template-columns:repeat(2,1fr);overflow:visible;border:0;gap:8px;background:transparent}.quick-links>a{min-height:108px;border:1px solid var(--line)!important;border-radius:13px}.quick-links>a:last-child{grid-column:1/-1}.login-card{padding:13px;border-radius:20px}.login-title{justify-content:flex-start}.login-title h2{font-size:17px}.monitor-icon{font-size:38px}.machine-status{grid-template-columns:1fr}.machine-status>div+div{border-left:0;border-top:1px solid #8ba5be;margin-top:8px;padding-top:8px}.page-shell{padding:24px 14px}.page-card{padding:18px}.page-hero h1{font-size:28px}.service-grid,.form-grid{grid-template-columns:1fr}.article-list article{flex-direction:column;gap:5px}}
.article-list .article-image{width:150px;height:100px;object-fit:cover;border-radius:12px;box-shadow:var(--shadow-sm);flex:0 0 auto}.editable-page-content{display:grid;grid-template-columns:minmax(260px,40%) minmax(0,1fr);gap:28px;align-items:start;font-size:16px;line-height:1.9;color:#425e76}.editable-page-content>img{width:100%;max-height:440px;object-fit:cover;border-radius:17px;box-shadow:var(--shadow-md)}.editable-page-content>div{white-space:normal;overflow-wrap:anywhere}@media(max-width:680px){.article-list .article-image{width:100%;height:190px}.editable-page-content{grid-template-columns:1fr;gap:18px}}
.staff-directory{display:grid;gap:30px}.staff-group-heading{display:flex;align-items:center;gap:11px;margin-bottom:14px}.staff-group-heading>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#e0f1ff,#f5faff);box-shadow:var(--shadow-sm)}.staff-group-heading h2{margin:0;color:#084c89;font-size:22px}.staff-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.staff-card{text-align:center;border:1px solid rgba(171,201,226,.75);border-radius:18px;padding:13px 13px 17px;background:linear-gradient(180deg,#fff,#f5faff);box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease}.staff-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}.staff-photo{aspect-ratio:4/5;border-radius:13px;overflow:hidden;background:linear-gradient(145deg,#dbeefa,#eef7fd);display:grid;place-items:center;font-size:58px;margin-bottom:13px}.staff-photo img{width:100%;height:100%;object-fit:cover}.staff-card h3{font-size:17px;color:#073f79;margin:0 0 4px}.staff-card p{margin:0;color:#5e7488}.empty-content{text-align:center;color:var(--muted);padding:35px}@media(max-width:900px){.staff-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:680px){.staff-grid{grid-template-columns:repeat(2,1fr);gap:10px}.staff-card{padding:9px 9px 14px}.staff-card h3{font-size:14px}.staff-card p{font-size:12px}.staff-group-heading h2{font-size:19px}}
@media(max-height:760px) and (min-width:921px){.portal-shell{padding-top:10px;padding-bottom:9px;gap:9px;grid-template-rows:minmax(98px,.34fr) minmax(0,1.45fr)}.hero-ict-logo{width:100px;height:100px;border-radius:23px}.hero-copy h1{font-size:31px}.hero-slogan{font-size:14px}.information-panel,.login-card{padding:12px}.quick-links{flex-basis:88px}.quick-icon{width:35px;height:30px;font-size:19px}.quick-links i{display:none}.news-item{padding:7px 0}.news-item time{height:48px}.login-title{padding-bottom:6px}.login-inner{padding:11px}.input-wrap{height:45px;margin-bottom:8px}.primary-login{height:46px}.machine-status{margin-top:8px;padding:7px}.admin-login-link{margin-top:8px;padding:9px}.alert{padding:7px 9px;margin-bottom:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.student-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.student-actions form{margin:0}.student-actions .btn{white-space:nowrap}.btn.danger{color:#a32234;border-color:#f1bbc4;background:#fff5f6}.btn.danger:hover{background:#ffe5e9}.student-check{display:flex!important;align-items:center;gap:10px}.student-check input{width:auto!important;margin:0}

/* ICT STAFF DIRECTORY REDESIGN — scoped to /services */
/* ICT staff directory — isolated to /services. Existing header/nav/footer are untouched. */
.ict-staff-page { --ict-navy:#063266; --ict-blue:#0b579a; --ict-gold:#d6a537; --ict-ink:#102d53; --ict-soft:#eaf4ff; }
.ict-staff-page .page-shell { width:min(1280px, calc(100% - 40px)); max-width:1280px; margin:0 auto; padding:24px 0 32px; }
.ict-staff-page .page-hero { margin-bottom:18px; }
.ict-staff-page .page-hero h1 { color:var(--ict-navy); }
.ict-staff-page .page-card { padding:0; border:0; background:transparent; box-shadow:none; overflow:visible; }
.ict-staff-page .ict-directory { display:grid; gap:16px; }
.ict-staff-page .ict-staff-section { overflow:hidden; border:1px solid rgba(35,107,177,.14); border-radius:18px; background:linear-gradient(120deg,rgba(255,255,255,.98),rgba(239,247,255,.94)); box-shadow:0 10px 28px rgba(3,44,90,.09); }
.ict-staff-page .ict-section-heading { min-height:56px; padding:10px 22px; display:flex; align-items:center; justify-content:space-between; gap:14px; color:white; background:linear-gradient(110deg,#062b5a 0%,#095ca0 54%,#062e60 100%); border-bottom:2px solid var(--ict-gold); }
.ict-staff-page .ict-section-title { display:flex; align-items:center; gap:13px; min-width:0; }
.ict-staff-page .ict-section-icon { display:grid; place-items:center; flex:none; color:#f6c85e; }
.ict-staff-page .ict-section-heading h2 { color:#fff; font-size:clamp(1.02rem,1.45vw,1.25rem); font-weight:800; margin:0; line-height:1.5; }
.ict-staff-page .ict-section-count { white-space:nowrap; padding:4px 12px; border:1px solid rgba(255,215,130,.4); border-radius:999px; background:rgba(255,255,255,.1); color:#fff0c1; font-size:.82rem; font-weight:700; }
.ict-staff-page .ict-staff-list { display:flex; flex-wrap:wrap; align-items:stretch; gap:16px; padding:16px 20px 18px; }
.ict-staff-page .ict-person-card { position:relative; isolation:isolate; display:flex; align-items:center; gap:15px; flex:0 1 365px; min-width:0; min-height:148px; padding:10px; border:1px solid rgba(40,106,174,.15); border-radius:15px; background:linear-gradient(135deg,#fff 0%,#fff 57%,#eef6ff 100%); box-shadow:0 4px 15px rgba(20,62,114,.08); transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease; }
.ict-staff-page .ict-person-card::before { content:""; position:absolute; inset:0 auto auto 0; width:43px; height:3px; border-radius:15px 0 10px 0; background:linear-gradient(90deg,#ba8221,#ffe19a); }
.ict-staff-page .ict-person-card:hover { transform:translateY(-4px); box-shadow:0 15px 28px rgba(5,53,108,.17); border-color:rgba(202,155,53,.5); }
.ict-staff-page .ict-person-photo { flex:0 0 102px; width:102px; height:124px; overflow:hidden; border-radius:11px; background:linear-gradient(140deg,#dceafa,#f9fbff); border:2px solid #fff; outline:1px solid rgba(204,160,58,.55); box-shadow:0 3px 10px rgba(7,51,97,.13); }
.ict-staff-page .ict-person-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 22%; transition:transform .32s ease; }
.ict-staff-page .ict-person-card:hover .ict-person-photo img { transform:scale(1.035); }
.ict-staff-page .ict-no-photo { display:grid; place-items:center; width:100%; height:100%; color:#7a9ab8; }
.ict-staff-page .ict-person-content { flex:1; min-width:0; }
.ict-staff-page .ict-person-label { display:block; margin-bottom:6px; color:#53799f; font-size:.73rem; letter-spacing:.025em; font-weight:600; }
.ict-staff-page .ict-person-content h3 { margin:0; color:var(--ict-ink); font-size:clamp(.95rem,1.15vw,1.08rem); line-height:1.5; font-weight:800; overflow-wrap:anywhere; }
.ict-staff-page .ict-person-divider { display:block; width:36px; height:2px; margin:9px 0; border-radius:2px; background:linear-gradient(90deg,#c18b25,#ffdf85); }
.ict-staff-page .ict-person-position { display:inline-flex; align-items:center; max-width:100%; margin:0; padding:5px 10px; border:1px solid rgba(23,90,161,.07); border-radius:9px; background:#e9f2fc; color:#164b7c; font-size:.8rem; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
@media (min-width:1450px) { .ict-staff-page .page-shell { width:min(1320px,calc(100% - 64px)); max-width:1320px; } .ict-staff-page .ict-person-card { flex-basis:385px; } }
@media (max-width:800px) { .ict-staff-page .page-shell { width:calc(100% - 28px); padding:20px 0 26px; } .ict-staff-page .ict-section-heading { padding:10px 16px; } .ict-staff-page .ict-staff-list { padding:13px; gap:12px; } .ict-staff-page .ict-person-card { flex:1 1 285px; } }
@media (max-width:480px) { .ict-staff-page .page-shell { width:calc(100% - 20px); } .ict-staff-page .ict-directory { gap:12px; } .ict-staff-page .ict-staff-section { border-radius:14px; } .ict-staff-page .ict-section-heading { min-height:52px; padding:10px 13px; } .ict-staff-page .ict-section-title { gap:9px; } .ict-staff-page .ict-staff-list { padding:10px; } .ict-staff-page .ict-person-card { flex-basis:100%; min-height:132px; padding:9px; gap:11px; } .ict-staff-page .ict-person-photo { flex-basis:91px; width:91px; height:112px; } .ict-staff-page .ict-person-content h3 { font-size:1rem; } }
@media (prefers-reduced-motion:reduce) { .ict-staff-page .ict-person-card,.ict-staff-page .ict-person-photo img { transition:none; } .ict-staff-page .ict-person-card:hover { transform:none; } }

/* Homepage: display up to four ICT announcements across full news panel height. */
.portal-home .news-list{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:stretch}
.portal-home .news-item{flex:1 1 0;min-height:0;margin:0;padding:clamp(5px,.85vh,12px) 0;align-content:center}
.portal-home .news-item:last-child{border-bottom:0}
@media(max-width:920px){
  .portal-home .news-item{flex:1 0 auto;min-height:57px}
}
@media(max-width:680px){
  .portal-home .info-columns{grid-template-rows:minmax(290px,auto) 300px}
  .portal-home .news-item{min-height:61px;padding:6px 0}
}


/* ICT manuals and contact: full source-image ratio, reading layout and image lightbox */
.ict-content-page .page-card{max-width:1280px;width:100%;margin-inline:auto}
.ict-content-page .editable-page-content.ict-readable-content{display:flex;flex-direction:column;gap:22px;align-items:stretch}
.ict-content-page .ict-image-open{position:relative;display:block;width:min(100%,1040px);max-width:100%;margin-inline:auto;padding:9px;border:1px solid rgba(210,168,65,.55);border-radius:18px;background:#fff;cursor:zoom-in;box-shadow:0 12px 34px rgba(5,47,88,.16);overflow:hidden;transition:box-shadow .2s,transform .2s}
.ict-content-page .ict-image-open:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(5,47,88,.25)}
.ict-content-page .ict-image-open img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:11px;box-shadow:none}
.ict-content-page .ict-image-open span{position:absolute;right:20px;bottom:20px;color:white;background:rgba(3,39,80,.82);border:1px solid rgba(255,255,255,.5);padding:6px 13px;border-radius:20px;font-size:12px}
.ict-content-page .ict-rich-text{width:100%;min-width:0;line-height:1.85;color:#254666;overflow-wrap:anywhere;font-size:16px}
.ict-rich-text p{margin:0 0 7px}.ict-rich-text h2,.ict-rich-text h3,.ict-rich-text h4{color:#064a83;line-height:1.4;margin:19px 0 9px;font-weight:800}
.ict-rich-text h2{font-size:26px}.ict-rich-text h3{font-size:22px}.ict-rich-text h4{font-size:19px}
.ict-rich-text ul{padding-left:0;padding-inline-start:26px;margin:5px 0 14px}.ict-rich-text li{padding-inline-start:3px;margin-bottom:5px}.ict-rich-text li::marker{color:#c19836}
.ict-rich-text strong{font-weight:800;color:#073c70}.ict-paragraph-gap{height:9px}
.ict-font-size-14{font-size:14px}.ict-font-size-16{font-size:16px}.ict-font-size-18{font-size:18px}.ict-font-size-20{font-size:20px}.ict-font-size-24{font-size:24px}.ict-font-size-28{font-size:28px}.ict-font-size-32{font-size:32px}
.ict-image-dialog{padding:50px 18px 18px;border:1px solid rgba(215,180,94,.6);border-radius:18px;background:#061c36;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-shadow:0 30px 100px rgba(0,0,0,.55);overflow:auto}
.ict-image-dialog::backdrop{background:rgba(1,13,30,.88);backdrop-filter:blur(9px)}.ict-image-dialog img{display:block;width:auto;height:auto;max-width:calc(100vw - 72px);max-height:calc(100dvh - 108px);object-fit:contain;margin:auto}
.ict-image-close{position:absolute;right:12px;top:9px;background:#fff;color:#063b73;font-size:25px;font-weight:700;border:0;border-radius:9px;width:35px;height:35px;cursor:pointer}
@media(max-width:680px){.ict-content-page .ict-image-open{padding:5px;border-radius:12px}.ict-content-page .ict-rich-text{font-size:15px}.ict-rich-text h2{font-size:22px}.ict-rich-text h3{font-size:19px}}

/* Show complete announcement text while using the available news panel height. */
.portal-home .news-list{overflow-y:auto;scrollbar-width:thin}
.portal-home .news-item{flex:1 0 auto}
.portal-home .news-item h3{display:block;overflow:visible;-webkit-line-clamp:unset}
.portal-home .news-item p{font-size:12px;line-height:1.45;white-space:normal;overflow:visible;text-overflow:clip}

/* Display uploaded A4 pages at full aspect ratio in the image viewer. */
.ict-image-dialog{width:min(226mm,calc(100vw - 24px))}
.ict-image-dialog img{width:100%;max-width:210mm;height:auto;max-height:calc(100dvh - 108px);object-fit:contain;background:#fff}

/* HKW ICT 2026 CRITICAL HOMEPAGE LAYOUT — bundled in app.css to avoid a missing secondary stylesheet */
/* ICT portal homepage 2026 — scoped visual layer. All form and navigation behavior stays in the PHP views. */
.portal-home{
  --hkw-navy:#053c83;--hkw-mid:#075eac;--hkw-gold:#ffce57;
  --hkw-glass:rgba(245,250,255,.87);--hkw-line:rgba(255,255,255,.86);
  color:#113f6e;
}
.portal-home .site-header{
  height:64px;min-height:64px;padding-inline:clamp(18px,3.7vw,62px);
  background:linear-gradient(110deg,#063c7e 0%,#0753a0 50%,#1177c2 100%);
  border-bottom:1px solid rgba(118,220,255,.65);
  box-shadow:0 8px 22px rgba(4,52,111,.21),inset 0 -2px rgba(16,205,255,.08)
}
.portal-home .site-header:before{content:"";position:absolute;inset:auto 0 0;height:3px;pointer-events:none;background:linear-gradient(90deg,transparent 20%,rgba(103,226,255,.8) 45%,rgba(255,211,93,.8) 63%,transparent 83%);opacity:.7}
.portal-home .brand{gap:12px}
.portal-home .brand-school-logo{width:49px;height:49px;background:#fff;border-radius:12px;padding:3px;box-shadow:0 2px 12px rgba(1,39,76,.19)}
.portal-home .brand-name b{font-size:clamp(16px,1.33vw,21px);font-weight:700}
.portal-home .brand-name small{font-size:9px;letter-spacing:1.28px}
.portal-home .main-nav{gap:5px;margin-left:auto}
.portal-home .main-nav a{font-size:clamp(11px,.87vw,14px);gap:6px;padding-inline:clamp(8px,1.05vw,15px);font-weight:700;border-radius:16px 16px 0 0;opacity:1}
.portal-home .main-nav a span{font-size:19px;color:#e7f6ff}
.portal-home .main-nav a.active{color:#ffe381;background:linear-gradient(180deg,rgba(39,178,253,.29),rgba(255,255,255,.07));text-shadow:0 0 10px rgba(255,217,107,.35)}
.portal-home .main-nav a.active span{color:#ffde75}
.portal-home .main-nav a.active:after{bottom:7px;left:16%;right:16%;height:2px;background:#f9d566;box-shadow:0 0 15px #ffe279}
.portal-home .main-nav a:hover{background:rgba(255,255,255,.11)}
.portal-home .portal-shell{
  height:calc(100dvh - 118px);min-height:0;max-width:none;
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-rows:clamp(156px,20.5vh,195px) minmax(0,1fr) clamp(115px,15vh,143px);
  gap:clamp(11px,1.5vh,17px);
  padding:clamp(12px,1.7vh,19px) clamp(19px,2.6vw,45px) clamp(14px,1.7vh,19px);
  overflow:hidden;isolation:isolate;
  background:
    radial-gradient(ellipse at 92% 24%,rgba(78,186,255,.51) 0%,transparent 40%),
    radial-gradient(ellipse at 5% 93%,rgba(137,207,255,.42) 0%,transparent 47%),
    linear-gradient(115deg,#a9d3fd 0%,#e9f5ff 23%,#b9ddff 52%,#8dc9f6 100%);
}
.portal-home .portal-shell:before{z-index:-1;inset:0;width:auto;height:auto;border-radius:0;background:
  radial-gradient(ellipse 68% 25% at 65% 0%,rgba(255,255,255,.8),transparent 80%),
  repeating-linear-gradient(125deg,transparent 0 94px,rgba(255,255,255,.035) 95px 96px);
  filter:none;animation:none;pointer-events:none}
.portal-home .portal-shell:after{z-index:1;left:-6%;right:-6%;top:auto;bottom:-17%;height:34%;width:auto;border-radius:50%;filter:blur(2px);background:radial-gradient(ellipse at center,transparent 42%,rgba(255,255,255,.75) 52%,rgba(55,187,255,.4) 57%,transparent 69%);pointer-events:none}
.portal-home .hero-copy{max-width:none;min-height:0;overflow:visible;display:flex;align-items:center;gap:clamp(16px,2vw,31px);z-index:2;isolation:isolate;padding-left:clamp(5px,.9vw,15px)}
.portal-home .hero-copy>div:not(.hero-school-art){z-index:2;min-width:0}
.portal-home .hero-ict-logo{z-index:2;width:clamp(122px,14vw,217px);height:clamp(122px,14vw,217px);flex:none;object-fit:contain;background:transparent;border:0;border-radius:0;mix-blend-mode:multiply;box-shadow:none;filter:drop-shadow(0 11px 14px rgba(3,79,161,.18));animation:heroIconFloat 6s ease-in-out infinite}
.portal-home .eyebrow{letter-spacing:clamp(3px,.42vw,7px);color:#064d9b;font-size:clamp(12px,.95vw,16px);line-height:1.1;margin:0 0 8px;font-weight:800}
.portal-home .hero-copy h1{margin:0;font-size:clamp(25px,2.66vw,45px);font-weight:800;line-height:1.16;letter-spacing:-.04em;color:#063e81;text-shadow:0 2px 0 rgba(255,255,255,.85),0 4px 14px rgba(255,255,255,.76)}
.portal-home .hero-title-main{display:block;white-space:nowrap}
.portal-home .hero-school-line{position:relative;display:table;max-width:100%;margin:4px 0 0;padding:2px 35px 5px 19px;transform:skew(-11deg);transform-origin:left center;border-radius:8px 2px 2px 6px;background:linear-gradient(105deg,#052b62,#064b94 60%,#193a6f 78%,#bd8236);box-shadow:0 6px 12px rgba(5,58,115,.14);font-size:.87em;line-height:1.08;color:#ffe18a;-webkit-text-stroke:.2px #f7d679;text-shadow:0 1px 2px rgba(2,26,65,.8)}
.portal-home .hero-school-line:after{content:"";position:absolute;left:calc(100% + 9px);top:0;width:35px;height:100%;transform:skew(-12deg);background:linear-gradient(90deg,#ffd672 0 40%,transparent 41% 60%,#f1b848 61% 100%);opacity:.92}
.portal-home .hero-slogan{margin:9px 0 0;color:#064a91;font-size:clamp(15px,1.25vw,21px);font-weight:700;text-shadow:0 1px 6px rgba(255,255,255,.9)}
.portal-home .hero-school-art{position:absolute;inset:0 0 -8px auto;width:min(51%,800px);height:100%;z-index:0;pointer-events:none;background:url('../img/ict-hero-school.png') center right/contain no-repeat;filter:drop-shadow(0 11px 18px rgba(20,97,166,.08))}
.portal-home .hero-copy:after{content:"";position:absolute;z-index:1;right:0;bottom:-3px;width:55%;height:45px;border-radius:100%;transform:rotate(-2deg);background:linear-gradient(180deg,transparent,rgba(153,202,255,.7) 48%,rgba(255,255,255,.86) 51%,rgba(74,206,252,.4) 54%,transparent 64%);filter:blur(1px);pointer-events:none}
.portal-home .portal-grid{display:grid;min-height:0;grid-template-columns:minmax(0,.88fr) minmax(0,1.28fr) minmax(0,1.03fr);gap:clamp(10px,1.1vw,19px);position:relative;z-index:3;align-items:stretch}
.portal-home .hkw-glass-panel{border:1px solid rgba(255,255,255,.95);border-radius:clamp(20px,1.8vw,29px);background:linear-gradient(148deg,rgba(255,255,255,.95),rgba(238,249,255,.9));box-shadow:0 15px 28px rgba(4,74,142,.16),inset 0 1px rgba(255,255,255,1),0 0 18px rgba(135,222,255,.25);backdrop-filter:blur(12px)}
.portal-home .news-section{min-height:0;min-width:0;display:flex;flex-direction:column;padding:clamp(16px,1.4vw,25px)}
.portal-home .section-heading{gap:7px;min-height:40px;margin:0 0 10px}
.portal-home .section-heading h2{color:#073e7f;font-size:clamp(16px,1.22vw,21px);font-weight:800;white-space:nowrap}
.portal-home .section-heading .heading-icon{font-size:26px}
.portal-home .section-heading a{font-size:clamp(10px,.77vw,12px);font-weight:700;color:#105a9e;white-space:nowrap}
.portal-home .news-list{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a4c7e5 transparent}
.portal-home .news-item{grid-template-columns:clamp(49px,3.5vw,60px) minmax(0,1fr) 23px;gap:clamp(7px,.65vw,11px);min-height:89px;padding:clamp(8px,1.1vh,14px) 0;margin:0;border-color:rgba(128,183,225,.28);align-items:center}
.portal-home .news-item:last-child{border:0}
.portal-home .news-item time{width:100%;height:clamp(48px,3.8vw,59px);background:linear-gradient(145deg,#f8faff,#d0eaff);border:1px solid #b6d9fb;border-radius:13px;box-shadow:0 4px 13px rgba(37,114,184,.12)}
.portal-home .news-item time b{font-size:clamp(18px,1.25vw,22px)}
.portal-home .news-item time span{font-size:11px;font-weight:700}
.portal-home .news-item h3{font-size:clamp(12px,.88vw,15px);font-weight:700;line-height:1.23;color:#123963;display:block;overflow:visible}
.portal-home .news-item p{font-size:clamp(10px,.7vw,12px);color:#6884a0;line-height:1.3;margin:4px 0 0;white-space:normal;overflow:visible;text-overflow:clip}
.portal-home .news-arrow{width:25px;height:25px;border-radius:50%;background:linear-gradient(145deg,#58c8ff,#0074d2);font-size:24px;box-shadow:0 5px 11px rgba(13,126,214,.22)}
.portal-home .activity-slider{min-height:0;border:10px solid rgba(245,251,255,.92);border-radius:28px;box-shadow:0 13px 29px rgba(0,70,131,.2),0 0 0 1px rgba(86,200,255,.55),0 0 18px rgba(73,208,255,.38);background:#0c467c}
.portal-home .activity-slider:after{content:"";position:absolute;inset:0;border:1px solid rgba(116,239,255,.9);border-radius:16px;z-index:6;pointer-events:none;box-shadow:inset 0 0 11px rgba(49,208,255,.42)}
.portal-home .slide:after{inset:45% 0 0;background:linear-gradient(transparent,rgba(2,22,48,.96))}
.portal-home .slide>div{left:22px;right:22px;bottom:22px}
.portal-home .slide-category{display:inline-flex;align-items:center;min-height:24px;margin:0 0 7px;padding:2px 14px;border-radius:9px;background:linear-gradient(110deg,#ffe88a,#f4b942);color:#063e7b;font-size:12px;font-weight:800;text-shadow:none;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.portal-home .slide b{font-size:clamp(16px,1.38vw,24px);font-weight:800;line-height:1.13;max-width:90%}
.portal-home .slide span{font-size:clamp(10px,.83vw,13px);margin-top:5px;line-height:1.3}
.portal-home .slider-dots{bottom:18px;right:17px}
.portal-home .slider-dots button{width:10px;height:10px;background:#d0e6f8}
.portal-home .slider-dots button.is-active{background:#ffc85a;border-color:#fff;width:10px}
.portal-home .slider-arrow{height:40px;width:40px;background:rgba(9,66,118,.45);opacity:1}
.portal-home .login-card{min-height:0;min-width:0;position:relative;border:1px solid rgba(170,242,255,.98);border-radius:25px;padding:14px;box-shadow:0 14px 32px rgba(2,59,123,.25),inset 0 1px rgba(255,255,255,.72),0 0 15px rgba(104,226,255,.7);background:linear-gradient(150deg,#107dc7,#0863b2 52%,#074589);color:#fff}
.portal-home .login-card:after{content:"";position:absolute;bottom:0;left:15%;right:15%;height:3px;filter:blur(5px);box-shadow:0 0 16px 6px rgba(248,154,255,.65);pointer-events:none}
.portal-home .login-title{justify-content:center;gap:11px;min-height:56px;padding:0 5px 11px}
.portal-home .monitor-icon{width:56px;height:48px;display:grid;place-items:center;color:#e8faff;border-radius:50%;background:radial-gradient(circle,rgba(122,231,255,.37),rgba(5,66,133,.25));filter:drop-shadow(0 4px 8px rgba(2,35,84,.2))}
.portal-home .login-title h2{font-size:clamp(17px,1.35vw,23px);font-weight:800;line-height:1.2;white-space:nowrap}
.portal-home .login-title p{font-size:clamp(9px,.67vw,11px);margin:3px 0;opacity:.9;white-space:nowrap}
.portal-home .login-inner{min-height:0;flex:1;justify-content:space-between;padding:clamp(13px,1.08vw,19px);border-radius:20px;background:linear-gradient(145deg,#f7fbff,#ddebff);box-shadow:0 12px 28px rgba(0,40,96,.22),inset 0 1px #fff}
.portal-home .login-inner form{margin:0;min-height:0}
.portal-home .alert.info{border:1px solid #c7e5ff;border-radius:11px;background:linear-gradient(110deg,#e8f6ff,#d7eafc);color:#0960b4;padding:8px 12px;font-size:clamp(10px,.79vw,12px);font-weight:700;margin-bottom:9px}
.portal-home .input-wrap{height:clamp(42px,5vh,51px);border-radius:14px;border:1px solid #b9d2ea;margin-bottom:9px;background:linear-gradient(90deg,rgba(255,255,255,.76),#edf5ff);box-shadow:inset 0 1px 3px rgba(4,74,133,.02)}
.portal-home .input-wrap input{font-size:clamp(12px,.91vw,15px);font-weight:600}
.portal-home .primary-login{height:clamp(46px,5.5vh,57px);border:1px solid #ffefa9;border-radius:30px;color:#073c7c;font-size:clamp(18px,1.23vw,22px);background:linear-gradient(180deg,#ffe895 0%,#f8c755 56%,#e49c29 100%);box-shadow:0 4px 0 rgba(255,255,255,.88),0 8px 17px rgba(143,78,15,.23);text-shadow:0 1px rgba(255,255,255,.5)}
.portal-home .primary-login:hover:not(:disabled){box-shadow:0 5px 0 #fff,0 12px 24px rgba(143,78,15,.25);filter:brightness(1.06)}
.portal-home .primary-login:disabled{opacity:.79;cursor:not-allowed;box-shadow:0 4px 0 rgba(255,255,255,.88),0 8px 17px rgba(143,78,15,.14)}
.portal-home .machine-status{margin-top:9px;padding:clamp(7px,.65vw,11px);background:linear-gradient(120deg,#e8f5ff,#dbefff);border:0;border-radius:13px}
.portal-home .machine-status>div{grid-template-columns:35px minmax(0,1fr);grid-template-rows:19px 21px;padding:0 5px}
.portal-home .machine-status small{font-size:10px;color:#42688d}
.portal-home .machine-status b{font-size:clamp(12px,.91vw,15px);line-height:1.1;overflow-wrap:anywhere;white-space:normal}
.portal-home .machine-status b.online{font-size:clamp(10px,.79vw,13px)}
.portal-home .status-icon,.portal-home .wifi-icon{color:#075ba3;font-size:27px}
.portal-home .admin-login-link{margin-top:8px;padding:clamp(8px,.82vh,12px);font-size:clamp(12px,.92vw,15px);font-weight:700;border-top:1px solid rgba(63,116,161,.19);background:transparent;color:#115a9b;border-radius:0}
.portal-home .quick-services-surface{position:relative;z-index:3;min-width:0;width:min(95%,1500px);margin:0 auto;padding:clamp(10px,1vw,17px) clamp(12px,1.4vw,22px);display:flex;align-items:stretch;border:1px solid rgba(255,255,255,.93);border-radius:29px;background:linear-gradient(155deg,rgba(255,255,255,.86),rgba(225,243,255,.75));box-shadow:0 14px 29px rgba(4,77,142,.16),inset 0 1px #fff;backdrop-filter:blur(14px)}
.portal-home .quick-links{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(8px,.88vw,15px);border:0;border-radius:0;background:none;overflow:visible;box-shadow:none}
.portal-home .quick-links>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,.7vh,11px);min-height:0;padding:clamp(8px,1.1vh,15px) 6px;border:1px solid rgba(115,205,255,.5);border-radius:23px;background:linear-gradient(148deg,#f5fcff,#cfecff);box-shadow:0 6px 12px rgba(16,109,171,.11),inset 0 1px rgba(255,255,255,.98);transition:transform .24s,box-shadow .24s,filter .24s}
.portal-home .quick-links>a:nth-child(2){background:linear-gradient(145deg,#fff,#eee0ff);border-color:#e0caff}
.portal-home .quick-links>a:nth-child(3){background:linear-gradient(145deg,#f5ffff,#c9f4fb);border-color:#b9e5f2}
.portal-home .quick-links>a:nth-child(4){background:linear-gradient(145deg,#fffdf3,#ffe8dc);border-color:#ffe3c0}
.portal-home .quick-links>a:nth-child(5){background:linear-gradient(145deg,#faffff,#d3f5ff);border-color:#b1e7fb}
.portal-home .quick-links>a:nth-child(6){background:linear-gradient(145deg,#fafffc,#d0ffe7);border-color:#b9eacb}
.portal-home .quick-links>a:nth-child(7){background:linear-gradient(145deg,#fff,#f0dfff);border-color:#e4c4f8}
.portal-home .quick-links>a:hover,.portal-home .quick-links>a:focus-visible{transform:translateY(-5px);box-shadow:0 13px 20px rgba(13,92,163,.2),0 0 12px rgba(89,226,255,.5);filter:saturate(1.15)}
.portal-home .quick-icon{height:clamp(34px,4.7vh,48px);width:clamp(34px,4.7vh,48px);display:grid;place-items:center;font-size:clamp(25px,2.3vw,37px);line-height:1;background:transparent;box-shadow:none;filter:drop-shadow(0 5px 5px rgba(12,104,169,.16))}
.portal-home .quick-icon.search,.portal-home .quick-icon.library{font-size:clamp(30px,2.4vw,39px);background:none}
.portal-home .quick-links>a b{font-size:clamp(11px,1.03vw,17px);line-height:1.24;color:#073c7b;font-weight:800;align-self:center}
.portal-home .quick-links>a i{display:none}
.portal-home .site-footer{height:54px;display:flex;align-items:center;gap:clamp(15px,2vw,34px);padding-inline:clamp(20px,3.5vw,65px);font-size:clamp(10px,.85vw,14px);font-weight:600;background:linear-gradient(100deg,#033d80,#0962af 54%,#063e7a);box-shadow:0 -2px 11px rgba(0,90,160,.19);border-top:2px solid rgba(170,241,255,.58)}
.portal-home .site-footer:after{content:"© Huaikrot Wittaya School  |  ICT Services Portal";margin-left:auto;white-space:nowrap;font-size:clamp(10px,.73vw,12px);color:#d7ecff}
@keyframes heroIconFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
/* Smaller laptops: allow vertical scrolling rather than compress the login or truncate announcements. */
@media (max-width:1380px){
 .portal-home .hero-copy h1{font-size:clamp(25px,2.5vw,36px)}
 .portal-home .hero-ict-logo{width:clamp(116px,12vw,176px);height:clamp(116px,12vw,176px)}
 .portal-home .site-footer:after{display:none}
 .portal-home .login-title h2{white-space:normal}
 .portal-home .login-title p{white-space:normal}
 .portal-home .portal-shell{grid-template-rows:clamp(151px,20vh,188px) minmax(0,1fr) clamp(110px,14.5vh,136px)}
 .portal-home .login-inner{padding:13px}
}
@media (max-width:1120px){
 .portal-home .site-header{height:auto;min-height:64px;flex-wrap:wrap}
 .portal-home .nav-toggle{display:block}
 .portal-home .main-nav{flex-basis:100%;height:auto;display:none;padding:8px 0 12px;gap:3px;flex-direction:column}
 .portal-home .main-nav.open{display:flex}
 .portal-home .main-nav a{font-size:15px;min-height:40px;border-radius:11px;padding:8px 12px}
 .portal-home .main-nav a.active:after{left:0;right:auto;bottom:9px;top:9px;width:3px;height:auto}
 .portal-home .portal-shell{height:auto;min-height:calc(100dvh - 118px);display:flex;flex-direction:column;overflow:visible;padding:20px;gap:17px}
 .portal-home{overflow-x:hidden;overflow-y:auto}
 .portal-home .hero-copy{flex:0 0 auto;min-height:190px}
 .portal-home .hero-school-art{width:47%}
 .portal-home .portal-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);grid-template-rows:auto auto;gap:15px}
 .portal-home .news-section{grid-column:1;grid-row:1;min-height:390px}
 .portal-home .activity-slider{grid-column:2;grid-row:1;min-height:390px}
 .portal-home .login-card{grid-column:1/-1;grid-row:2;min-height:365px}
 .portal-home .login-inner{justify-content:flex-start}
 .portal-home .quick-services-surface{width:100%;min-height:145px}
 .portal-home .quick-links>a b{font-size:12px}
 .portal-home .site-footer{min-height:54px;height:auto;flex-wrap:wrap}
}
@media (max-width:700px){
 .portal-home .site-header{padding-inline:15px}
 .portal-home .brand-name b{font-size:16px}
 .portal-home .portal-shell{padding:14px 12px;gap:13px}
 .portal-home .hero-copy{min-height:165px;gap:10px;padding:10px 0;align-items:center}
 .portal-home .hero-ict-logo{width:84px;height:84px;display:block}
 .portal-home .hero-copy h1{font-size:clamp(19px,4.5vw,28px);letter-spacing:-.035em}
 .portal-home .hero-title-main{white-space:normal}
 .portal-home .hero-school-line{font-size:.9em;padding:4px 12px;margin:7px 0 0}
 .portal-home .hero-school-line:after{display:none}
 .portal-home .hero-slogan{font-size:clamp(12px,2.8vw,15px)}
 .portal-home .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:5px}
 .portal-home .hero-school-art{opacity:.2;width:60%;right:0}
 .portal-home .portal-grid{display:flex;flex-direction:column;gap:13px}
 .portal-home .login-card{order:1;min-height:0}
 .portal-home .news-section{order:2;min-height:300px;padding:16px}
 .portal-home .activity-slider{order:3;min-height:280px}
 .portal-home .news-list{max-height:470px}
 .portal-home .login-card{padding:12px}
 .portal-home .login-title h2{font-size:19px}
 .portal-home .login-title p{font-size:11px}
 .portal-home .login-inner{padding:15px}
 .portal-home .input-wrap{height:49px}
 .portal-home .quick-services-surface{min-height:0;width:100%;padding:11px;border-radius:22px}
 .portal-home .quick-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .portal-home .quick-links>a{min-height:111px;border-radius:17px;padding:10px 5px;gap:5px}
 .portal-home .quick-links>a:last-child{grid-column:1/-1}
 .portal-home .quick-links>a b{font-size:14px}
 .portal-home .quick-icon{height:39px;width:39px;font-size:28px}
 .portal-home .slide b{font-size:17px}
 .portal-home .site-footer{justify-content:center;gap:7px 17px;padding:13px;font-size:11px}
}
@media (max-width:385px){
 .portal-home .brand-name b{font-size:14px}
 .portal-home .brand-school-logo{width:42px;height:42px}
 .portal-home .hero-ict-logo{width:65px;height:65px}
 .portal-home .hero-copy h1{font-size:19px}
 .portal-home .hero-slogan{font-size:12px}
 .portal-home .section-heading h2{font-size:15px}
 .portal-home .section-heading a{font-size:11px}
 .portal-home .machine-status{padding:6px 2px}
 .portal-home .machine-status>div{grid-template-columns:25px minmax(0,1fr)}
 .portal-home .status-icon,.portal-home .wifi-icon{font-size:20px}
}
@media (max-height:760px) and (min-width:1121px){
 .portal-home{overflow-y:auto}
 .portal-home .portal-shell{height:auto;min-height:calc(100dvh - 118px);grid-template-rows:160px minmax(405px,auto) 145px;overflow:visible}
 .portal-home .quick-services-surface{min-height:145px}
}
@media (prefers-reduced-motion:reduce){.portal-home .hero-ict-logo{animation:none}.portal-home .quick-links>a{transition:none}}

