/* HUSO ICT — Minimal responsive presentation layer. Keeps existing application logic. */
:root{--navy:#153b67;--navy2:#103253;--blue:#245b9a;--cyan:#93bedf;--yellow:#e4c777;--bg:#f8fbff;--text:#24364b;--sub:#61758b;--border:#dfeaf5;--card:#fff;--soft:#f5f8fc;--shadow:0 2px 12px rgba(28,49,76,.045);--shadow-hover:0 7px 20px rgba(28,49,76,.075)}
html{scroll-padding-top:90px} body{background:var(--bg);color:var(--text);font-size:15px;line-height:1.65;overflow-x:hidden}body,button,input,select,textarea{font-family:'Sarabun',sans-serif}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8aaecf;outline-offset:2px}
header{background:#fff!important;border-bottom:1px solid var(--border);box-shadow:none!important;padding:12px max(18px,calc((100vw - 1220px)/2))!important;gap:20px;flex-wrap:wrap}header .logo,.logo{color:#29486b!important;font-size:20px!important;font-weight:700!important;white-space:normal}header .logo small,.logo small{color:#728197!important;font-size:12px!important;opacity:1}header nav,nav{display:flex!important;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}header nav a,nav a{color:#4c6078!important;font-size:13px!important;font-weight:600!important;margin:0!important;padding:7px 10px;border-radius:9px;opacity:1!important}header nav a:hover,nav a:hover{background:#f0f5fa;color:#26486b!important}
main>section:not(.hero),main .page{scroll-margin-top:90px}main>section:not(.hero){padding:30px max(18px,calc((100vw - 1220px)/2))!important}.hero{background:#f0f5fa!important;color:var(--text)!important;padding:36px max(18px,calc((100vw - 1220px)/2))!important;gap:24px;box-shadow:none!important}.hero::before,.hero::after{display:none!important}.hero h1{font-size:clamp(25px,3vw,35px)!important;line-height:1.25!important;font-weight:700!important;color:#29486b!important;letter-spacing:0}.hero p{font-size:15px!important;color:#586e85!important;line-height:1.7!important}.hero .badge,.badge{font-size:12px!important;font-weight:600!important;letter-spacing:0}.hero .badge{background:#e3edf7!important;color:#426181!important;border:1px solid #d6e3ef!important;padding:5px 10px!important}.hero-card,.notice-box,.contact-box,.faq-tools,.faq-item,.ai-note,.checklist{background:#fff!important;border:1px solid var(--border)!important;border-radius:16px!important;box-shadow:var(--shadow)!important}.hero-card,.notice-box,.contact-box{padding:22px!important}.hero-card h2,.notice-box h2{font-size:21px!important;font-weight:700!important;color:#29486b!important}.hero-card li,.notice-box p,.contact-box p{font-size:15px!important}.visitor-count{font-size:12px!important;font-weight:600!important;background:#e4edf5!important;color:#526880!important;box-shadow:none!important}
.section-title{font-size:clamp(21px,2vw,25px)!important;font-weight:700!important;color:#29486b!important;margin-bottom:4px!important}.section-sub{font-size:14px!important;color:#637588!important;margin-bottom:18px!important;line-height:1.6}.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))!important;gap:14px!important}.card{min-width:0;min-height:165px!important;background:#fff!important;padding:19px!important;border:1px solid var(--border)!important;border-radius:15px!important;box-shadow:var(--shadow)!important;transition:box-shadow .18s,border-color .18s,transform .18s}.card::before,.card::after{display:none!important}.card:hover{transform:translateY(-2px)!important;box-shadow:var(--shadow-hover)!important;border-color:#ccdae8!important}.card .icon,.icon{width:43px!important;height:43px!important;font-size:23px!important;border-radius:12px!important;margin-bottom:9px!important;background:#f1f6fb!important;box-shadow:none!important}.card h3{font-size:17px!important;font-weight:700!important;color:#29486b!important;line-height:1.4}.card p{font-size:14px!important;line-height:1.65!important;color:#637588!important}.btn,.tool-guide,.news-button{font-size:14px!important;font-weight:600!important;box-shadow:none!important;border-radius:10px!important;padding:9px 14px!important}.btn.primary{background:#345b85!important;color:#fff!important}.btn.secondary{background:#fff!important;color:#345b85!important;border:1px solid #d7e2ed!important}.ai-note{border-left:3px solid #9cb6ce!important;padding:15px 17px!important;font-size:14px!important;color:#607286!important}.ai-note strong{font-size:15px!important;font-weight:700!important;color:#29486b!important}.freshman,.graduate{background:transparent!important}.checklist{padding:16px!important}.checklist p{font-size:14px!important}.app-note{background:#f5f8fb!important;color:#5d7086!important;border:1px solid var(--border);font-size:13px!important}.news-card-box{background:#edf3f9!important;color:#29486b!important;box-shadow:none!important;border:1px solid var(--border);border-radius:12px!important}.news-badge{background:#dce9f6!important;color:#47647e!important}.news-title{font-size:15px!important;font-weight:700!important}.news-button{background:#fff!important;color:#345b85!important}.faq-home-title{font-size:17px!important;font-weight:700!important}.faq-item{border-left:3px solid #d8e2ed!important}.faq-item summary{font-size:15px!important;font-weight:600!important;padding:14px 16px!important}.faq-item p{font-size:14px!important;padding:0 16px 15px!important}.faq-success,.faq-warning,.faq-danger{background:#fff!important}.faq-success summary,.faq-warning summary,.faq-danger summary{color:#334b65!important}.faq-success{border-left-color:#9fc8b3!important}.faq-warning{border-left-color:#dfc68d!important}.faq-danger{border-left-color:#dda5a5!important}footer{background:#ecf2f8!important;color:#607286!important;font-size:13px!important;padding:22px 16px!important}
/* HUSO AI Catalog */
body.catalog-page .page{width:min(100% - 36px,1220px)!important;max-width:1220px!important;padding:22px 0 36px!important;margin-inline:auto!important}body.catalog-page .hero{border:1px solid var(--border)!important;background:#fff!important;padding:24px!important;border-radius:16px!important;margin-bottom:16px!important}body.catalog-page .hero::before,body.catalog-page .hero::after{display:none!important}body.catalog-page .hero h1{font-size:27px!important}body.catalog-page .hero p{max-width:850px;font-size:14px!important;font-weight:400!important}body.catalog-page .hero .tag{background:#f1f6fa!important;border-color:var(--border)!important;font-size:12px!important;font-weight:600!important}body.catalog-page .quick-prompts,body.catalog-page .toolbar,body.catalog-page .summary-card,body.catalog-page .note{box-shadow:none!important;border:1px solid var(--border)!important;border-radius:14px!important}body.catalog-page .quick-title{font-size:16px!important;font-weight:700!important}body.catalog-page .quick-desc{font-size:13px!important}body.catalog-page .quick-chip{background:#f4f7fb!important;color:#435f7b!important;border-color:var(--border)!important;font-size:13px!important;font-weight:600!important;padding:6px 11px!important}body.catalog-page .toolbar{grid-template-columns:1.5fr repeat(3,minmax(0,1fr))!important;gap:9px!important}body.catalog-page .toolbar input,body.catalog-page .toolbar select{min-width:0;font-size:14px!important;border-radius:10px!important}body.catalog-page .summary-card{font-size:13px!important}body.catalog-page .summary-card strong{font-size:17px!important}body.catalog-page .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;gap:14px!important}body.catalog-page .card{min-height:0!important;padding:17px!important}body.catalog-page .card h2{font-size:18px!important;font-weight:700!important;color:#29486b!important}body.catalog-page .dept,body.catalog-page .tools{font-size:13px!important;font-weight:600!important}body.catalog-page .sub-unit,body.catalog-page .work-type{font-size:12px!important;font-weight:600!important;background:#f4f7fb!important;border:1px solid var(--border)!important;color:#55708b!important}body.catalog-page .block{background:#f9fbfd!important;border-color:#edf1f6!important;font-size:13px!important;line-height:1.6!important}body.catalog-page .block strong{font-weight:700!important}body.catalog-page .btn{font-size:13px!important;font-weight:600!important}body.catalog-page .modal{width:min(100%,760px)!important;padding:20px!important;border-radius:16px!important}body.catalog-page .modal h2{font-size:21px!important;font-weight:700!important}body.catalog-page .prompt-box{font-size:14px!important;overflow-wrap:anywhere}body.catalog-page .back-link{box-shadow:none!important;font-size:13px!important;font-weight:600!important}
/* FAQ listing */
body.faq-page .faq-tools{padding:16px!important}body.faq-page .filter-btn{font-size:13px!important;font-weight:600!important;border-radius:10px!important;color:#516982!important}body.faq-page .filter-btn.active{background:#345b85!important;color:#fff!important;border-color:#345b85!important}body.faq-page .faq-group-title{font-size:18px!important}body.faq-page .faq-search input{border-radius:10px!important;font-size:14px!important}body.faq-page .faq-item{border-left-width:3px!important}body.faq-page .faq-item summary{font-size:15px!important}body.faq-page .faq-item p{color:#607286!important}
/* Analytics report */
body.report-page .page{width:min(100% - 36px,1220px)!important;max-width:1220px!important;padding:22px 0 36px!important;margin:auto!important}body.report-page .hero{background:#fff!important;border:1px solid var(--border)!important;padding:24px!important;border-radius:16px!important;margin:0 0 16px!important}body.report-page .hero::before,body.report-page .hero::after{display:none!important}body.report-page .hero h1{font-size:25px!important;font-weight:700!important}body.report-page .hero p{font-size:14px!important}body.report-page .summary-card,body.report-page .panel,body.report-page .footer-note{background:#fff!important;border:1px solid var(--border)!important;border-radius:14px!important;box-shadow:var(--shadow)!important}body.report-page .summary-card::after{display:none!important}body.report-page .summary-card .num{font-size:25px!important;font-weight:700!important}body.report-page .panel h2{font-size:17px!important;font-weight:700!important}body.report-page .tabs a{font-size:13px!important;font-weight:600!important;border-radius:10px!important;box-shadow:none!important}body.report-page .tabs a.active{background:#345b85!important;border-color:#345b85!important}body.report-page th,body.report-page td{font-size:13px!important;overflow-wrap:anywhere}
@media(max-width:950px){header{align-items:flex-start!important;flex-direction:column!important;gap:6px!important}header nav{justify-content:flex-start!important}.hero{grid-template-columns:1fr!important}.notice-box{grid-template-columns:1fr!important}body.catalog-page .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){header{padding:11px 14px!important;gap:6px!important}header nav{width:100%;flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;scrollbar-width:thin;padding-bottom:4px}header nav a{flex:0 0 auto!important;padding:7px 9px!important;font-size:12px!important}main>section:not(.hero){padding:22px 14px!important}.hero{padding:25px 14px!important}.hero h1{font-size:27px!important}.hero p{font-size:14px!important}.hero-card{padding:17px!important}.grid{grid-template-columns:1fr!important;gap:10px!important}.card{min-height:0!important;padding:15px!important}.card h3{font-size:16px!important}.card p{font-size:13.5px!important}.notice-box{padding:16px!important;gap:14px!important}.btn{max-width:100%}.faq-item summary{padding:12px 14px!important}body.catalog-page .page,body.report-page .page{width:calc(100% - 24px)!important;padding:12px 0 26px!important}body.catalog-page .hero,body.report-page .hero{padding:18px!important}body.catalog-page .toolbar{grid-template-columns:1fr!important}body.catalog-page .grid{grid-template-columns:1fr!important}body.catalog-page .summary{gap:7px}body.catalog-page .summary-card{padding:7px 10px!important}body.catalog-page .modal{padding:16px!important;max-height:calc(100dvh - 28px)!important}body.report-page .report-grid{grid-template-columns:1fr!important}body.report-page .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* White / Navy edition: brighter surfaces, measured blue accents */
body{background:#f8fbff!important;color:#24364b!important}
header{background:#fff!important;border-bottom:1px solid #dbe8f4!important}
header .logo,.logo{color:#173e6d!important}
header nav a,nav a{color:#365475!important}
header nav a:hover,nav a:hover{background:#eaf3fc!important;color:#164a85!important}
.hero{background:linear-gradient(110deg,#fff 0%,#f0f7ff 100%)!important;border-bottom:1px solid #e2edf7!important}
.hero h1{color:#173e6d!important}
.hero p{color:#58708a!important}
.hero .badge{background:#eaf3fc!important;border-color:#d6e7f6!important;color:#315f8a!important}
.hero-card,.notice-box,.contact-box,.faq-tools,.faq-item,.ai-note,.checklist{background:#fff!important;border-color:#dfeaf5!important}
.hero-card h2,.notice-box h2,.section-title{color:#174778!important}
.card{background:#fff!important;border:1px solid #dfeaf5!important;box-shadow:0 3px 14px rgba(21,59,103,.045)!important}
.card:hover{border-color:#aacbe8!important;box-shadow:0 8px 24px rgba(21,59,103,.09)!important}
.card .icon,.icon{background:#eaf3fc!important;color:#245b9a!important}
.card h3{color:#174778!important}
.card p{color:#62768a!important}
.btn.primary,.cta-btn{background:#245b9a!important;color:#fff!important;border:1px solid #245b9a!important}
.btn.primary:hover,.cta-btn:hover{background:#174778!important}
.btn.secondary,.tool-guide{background:#fff!important;color:#245b9a!important;border-color:#cddfed!important}
.ai-note{background:#f4f9fe!important;border-left-color:#9dc0dd!important}
.news-card-box{background:#f1f7fd!important;color:#174778!important}
.visitor-count{background:#eaf3fc!important;color:#396286!important}
.faq-item{background:#fff!important}
footer{background:#eaf2fa!important;color:#58738b!important;border-top:1px solid #dce9f5!important}
body.catalog-page .hero,body.report-page .hero{background:linear-gradient(110deg,#fff,#f4f9ff)!important}
body.catalog-page .quick-chip{background:#eff6fd!important;color:#265b91!important}
body.catalog-page .block{background:#f8fbff!important}
body.catalog-page .btn-primary,body.faq-page .filter-btn.active,body.report-page .tabs a.active{background:#245b9a!important;border-color:#245b9a!important;color:#fff!important}
body.catalog-page .summary-card,body.report-page .summary-card{background:#fff!important}
/* Improved small-screen fit without sideways page scrolling */
*,*::before,*::after{box-sizing:border-box}
img,video,iframe{max-width:100%}
.card,.panel,.notice-box,.hero-card{min-width:0}
@media(max-width:620px){.hero{padding:24px 14px!important}.hero h1{font-size:clamp(23px,7vw,28px)!important}header .logo{font-size:18px!important}.card{padding:16px!important}body.report-page .panel{min-width:0}}

/* HUSO ICT | Cyber Navy header — quiet tech aesthetic */
header{
  position:sticky;
  background:linear-gradient(112deg,#081B39 0%,#0D315E 45%,#155B9D 100%)!important;
  border-bottom:1px solid rgba(73,180,255,.30)!important;
  box-shadow:0 3px 14px rgba(7,32,67,.15)!important;
  isolation:isolate;
}
header::after{
  content:"";
  position:absolute;
  pointer-events:none;
  inset:auto 0 0;
  height:2px;
  background:linear-gradient(90deg,transparent 5%,rgba(71,203,255,.72) 48%,transparent 95%);
  z-index:-1;
}
header .logo,header .logo:visited,header .logo small,
header nav a,header nav a:visited{color:#F3F9FF!important}
header .logo small{color:#B7D2EC!important;opacity:1!important}
header nav a:hover,header nav a:focus-visible{
  color:#D1F4FF!important;background:rgba(86,177,240,.18)!important;
}
header nav a:focus-visible{outline-color:#6AD5FF!important}
@media(max-width:620px){
  header{background:linear-gradient(110deg,#081B39,#124F88)!important}
  header nav{scrollbar-color:#58A7D4 transparent}
}

/* Extended HUSO ICT unit identity in Cyber Navy header */
header .logo{display:block;max-width:min(100%,540px);font-size:20px!important;line-height:1.28!important;flex:0 1 auto}
header .logo small{display:block;margin-top:2px;max-width:100%;font-size:12px!important;line-height:1.45!important;font-weight:400!important;overflow-wrap:break-word}
@media(max-width:950px){header .logo{max-width:100%}}
@media(max-width:620px){header .logo{font-size:18px!important}header .logo small{font-size:11px!important;line-height:1.5!important}}

/* Final brand lockup: Cyber Navy, Thai department and English faculty name */
header .logo{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:0;line-height:1.2!important;color:#fff!important}
header .logo small{margin:0!important;color:#eef6ff!important;font-size:12px!important;font-weight:500!important;line-height:1.45!important}
header .logo .logo-en{display:block;color:#b8dbf9;font-size:11.5px;font-weight:400;line-height:1.45;letter-spacing:.01em;white-space:normal}
@media(max-width:620px){header .logo small{font-size:11px!important}header .logo .logo-en{font-size:10.5px}}
