:root{--home-blue:#e87519;--home-deep:#9a430d;--home-sky:#fff7f0;--home-line:#f0dfd2;--home-teal:#c96520;--home-gold:#f4a340;--home-text:#263445}
.home-hero{position:relative;min-height:380px;overflow:hidden;background:linear-gradient(120deg,#e8f6ff 0%,#fff 56%,#e8f8f5 100%)}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease}.hero-slide.is-active{position:relative;opacity:1;visibility:visible}.hero-bg,.hero-shade{position:absolute;inset:0}.hero-bg{background-size:contain;background-position:center;
    background-repeat:no-repeat;}.hero-shade{display:none;}
.hero-inner{position:relative;z-index:2;min-height:520px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);align-items:center;gap:45px}.hero-copy{padding:50px 0;max-width:650px}.hero-kicker,.mini-kicker{display:block;color:var(--home-teal);font-size:12px;font-weight:800;letter-spacing:1.7px}.hero-copy h1{font-family:Kanit,sans-serif;font-size:clamp(38px,4.5vw,64px);line-height:1.08;color:var(--home-deep);margin:12px 0 18px;white-space:pre-line}.hero-copy p{font-size:19px;color:#4e6e85;margin:0 0 26px}.home-btn{display:inline-flex;align-items:center;gap:12px;padding:12px 21px;border-radius:999px;font-weight:700;transition:transform .2s ease,box-shadow .2s ease}.home-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(8,91,145,.18)}.home-btn.primary{background:#0873b6;color:#fff}.hero-building{justify-self:end;width:min(430px,100%);min-height:300px;border:1px solid #c5dfef;border-radius:28px;background:rgba(235,247,255,.8);box-shadow:0 24px 55px rgba(18,76,110,.11);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;backdrop-filter:blur(3px)}.building-mark{font-size:95px;line-height:1;color:var(--home-gold);margin-bottom:12px}.hero-building strong{font-family:Kanit;font-size:22px;color:#0a4775}.hero-building small{margin-top:8px;color:#5d7588}.hero-dots{position:absolute;z-index:5;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:8px}.hero-dot{width:9px;height:9px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #80aec9;cursor:pointer;transition:.25s}.hero-dot.active{width:30px;border-radius:10px;background:#0873b6}.hero-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid #c9deeb;border-radius:50%;background:rgba(255,255,255,.92);color:#0a5f96;font-size:29px;line-height:1;cursor:pointer;box-shadow:0 6px 20px rgba(8,65,100,.08)}.hero-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.05)}.hero-arrow.prev{left:20px}.hero-arrow.next{right:20px}
.quick-wrap{position:relative;z-index:6;margin-top:-35px}.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border:1px solid #e0ebf2;border-radius:19px;box-shadow:0 18px 45px rgba(17,73,110,.11);overflow:hidden}.quick-item{min-height:128px;padding:18px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-right:1px solid #e1ebf2;color:#0b436e;position:relative;transition:background .2s ease,transform .2s ease}.quick-item:last-child{border-right:0}.quick-item:hover{background:#f2faff;transform:translateY(-2px)}.quick-icon{font-size:31px;line-height:1;margin-bottom:9px}.quick-title{font-family:Kanit;font-size:15px;font-weight:600}.quick-item small{color:#6b8397;margin-top:2px}.quick-arrow{position:absolute;right:12px;bottom:8px;color:#0b72ae;font-size:14px;opacity:0;transform:translateX(-3px);transition:.2s}.quick-item:hover .quick-arrow{opacity:1;transform:none}
.home-main{padding-top:34px;padding-bottom:65px}.home-news-grid{display:grid;grid-template-columns:1.18fr .88fr .62fr;gap:17px}.home-panel,.leader-card,.feature-card,.stats-strip{background:#fff;border:1px solid var(--home-line);border-radius:18px;box-shadow:0 9px 30px rgba(16,67,100,.045)}.home-panel{padding:21px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}.section-head h2{font-family:Kanit;font-size:24px;color:#073f6c;margin:3px 0 0;line-height:1.15}.section-head a{font-size:13px;color:#0873b6;white-space:nowrap}.section-head a span{font-size:17px}.news-row{display:grid;grid-template-columns:90px 1fr;gap:13px;padding:11px 0;border-bottom:1px solid #e8eef3;color:var(--home-text);transition:transform .18s ease}.news-row:last-child{border-bottom:0}.news-row:hover{transform:translateX(3px)}.news-thumb{width:90px;height:70px;border-radius:11px;overflow:hidden;background:#eaf5fc;display:grid;place-items:center;color:#7b91a3;font-size:26px}.news-thumb img{width:100%;height:100%;object-fit:cover}.news-row b,.announce-list b,.simple-list b{display:block;font-size:14px;line-height:1.35}.news-row small,.announce-list small,.simple-list small{display:block;color:#7890a5;font-size:11px;margin-top:4px}.news-row p{margin:5px 0 0;color:#60798c;font-size:11px;line-height:1.5}.announce-list>a,.simple-list>a{display:flex;gap:11px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #e8eef3;color:var(--home-text);transition:transform .18s ease}.announce-list>a:last-child,.simple-list>a:last-child{border-bottom:0}.announce-list>a:hover,.simple-list>a:hover{transform:translateX(3px)}.doc-icon,.list-icon{width:40px;height:40px;border-radius:10px;background:#eaf5fc;display:grid;place-items:center;color:#0873b6;flex:0 0 auto}.list-icon{background:#f0f7fb;font-size:19px}.empty-home{padding:25px 5px;text-align:center;color:#8aa0b1;font-size:13px}
.leader-card{overflow:hidden;background:linear-gradient(180deg,#e1f3ff 0%,#fff 74%);display:flex;flex-direction:column}.leader-photo{height:250px;display:grid;place-items:end center;overflow:hidden;background:linear-gradient(180deg,#d5ecfb,#edf8ff)}.leader-photo img{width:100%;height:100%;object-fit:cover;object-position:top center}.leader-photo span{font-size:80px;margin:auto}.leader-info{text-align:center;padding:16px 13px 19px}.leader-kicker{display:block;color:var(--home-teal);font-size:11px;font-weight:700;letter-spacing:.8px}.leader-info b{display:block;color:#073f6c;font-size:18px;margin-top:4px}.leader-info small{display:block;color:#647d90;margin:4px 0 13px;font-size:12px}.leader-info a{display:inline-flex;align-items:center;gap:8px;background:#075f99;color:#fff;border-radius:999px;padding:8px 14px;font-size:12px}.leader-info a span{font-size:16px}
.feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:21px 0}.feature-card{min-height:105px;padding:17px 16px;display:flex;align-items:center;gap:12px;color:#0b426d;transition:transform .2s ease,box-shadow .2s ease}.feature-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(10,72,110,.1)}.feature-card strong{font-size:27px;min-width:42px;text-align:center}.feature-card span{font-family:Kanit;font-weight:600;line-height:1.25;flex:1}.feature-card small{display:block;font-family:Sarabun;font-weight:400;color:#668096;margin-top:4px;font-size:11px;line-height:1.35}.feature-card i{font-style:normal;color:#0873b6;font-size:21px}.feature-card.ita{background:linear-gradient(135deg,#e7fbf8,#f3fbff)}.feature-card.procurement{background:linear-gradient(135deg,#fffaf0,#fff)}.feature-card.downloads{background:linear-gradient(135deg,#eef8ff,#fff)}.feature-card.organization{background:linear-gradient(135deg,#edf5ff,#fff)}
.latest-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:21px 0}.simple-list>a>span{font-size:20px}.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);padding:19px 8px;margin-top:21px}.stats-strip>div{min-height:86px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-content:center;padding:0 24px;border-right:1px solid #e1eaf0}.stats-strip>div:last-child{border-right:0}.stat-icon{grid-row:1/3;font-size:32px;align-self:center}.stats-strip b{font-family:Kanit;font-size:26px;color:#073f6c;line-height:1.1}.stats-strip small{color:#617c91;font-size:12px}.motto-stat b{font-size:17px}.bottom-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:17px;margin-top:21px}.home-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.gallery-item{height:145px;border-radius:12px;overflow:hidden;position:relative;background:#e8f4fb}.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.gallery-item:hover img{transform:scale(1.06)}.gallery-item span{position:absolute;left:0;right:0;bottom:0;padding:20px 9px 8px;background:linear-gradient(transparent,rgba(3,39,65,.78));color:#fff;font-size:11px}.gallery-placeholder{grid-column:1/-1;min-height:145px;border-radius:12px;background:linear-gradient(135deg,#e7f4fb,#eff9f5);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#5e788d}.gallery-placeholder span{font-size:32px}.gallery-placeholder b{margin-top:6px;color:#0b4b73}.gallery-placeholder small{margin-top:2px}.video-frame{aspect-ratio:16/9;border-radius:13px;overflow:hidden;background:#073a5c}.video-frame iframe{width:100%;height:100%;border:0}.welcome-panel{display:flex;flex-direction:column;justify-content:center;min-height:230px;background:linear-gradient(135deg,#edf8ff,#fff)}.welcome-panel h2{font-family:Kanit;color:#073f6c;font-size:27px;line-height:1.2;margin:7px 0 10px}.welcome-panel p{color:#667f92;font-size:14px;line-height:1.7;margin:0 0 18px;max-width:430px}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}.reveal.visible{opacity:1;transform:none}
@media(max-width:1100px){.hero-inner{grid-template-columns:1fr .8fr}.home-news-grid{grid-template-columns:1fr 1fr}.leader-card{grid-column:1/-1;display:grid;grid-template-columns:210px 1fr}.leader-photo{height:210px}.feature-strip{grid-template-columns:1fr 1fr}.quick-grid{grid-template-columns:repeat(3,1fr)}.quick-item:nth-child(3n){border-right:0}.quick-item{border-bottom:1px solid #e1ebf2}.bottom-grid{grid-template-columns:1fr}}
@media(max-width:760px){.home-hero,.hero-inner{min-height:470px}.hero-inner{display:block}.hero-copy{padding:75px 18px 30px}.hero-copy h1{font-size:38px}.hero-copy p{font-size:16px}.hero-building{display:none}.hero-shade{display:none;}.quick-wrap{margin-top:-20px}.quick-grid{grid-template-columns:repeat(2,1fr)}.quick-item:nth-child(3n){border-right:1px solid #e1ebf2}.quick-item:nth-child(2n){border-right:0}.home-main{padding-top:25px}.home-news-grid,.latest-grid,.feature-strip,.bottom-grid{grid-template-columns:1fr}.leader-card{display:block}.leader-photo{height:270px}.stats-strip{grid-template-columns:1fr 1fr}.stats-strip>div{border-right:0;border-bottom:1px solid #e1eaf0;padding:16px}.stats-strip>div:nth-last-child(-n+2){border-bottom:0}.home-gallery{grid-template-columns:1fr 1fr}.gallery-item{height:135px}.section-head h2{font-size:22px}}
@media(max-width:480px){.hero-copy{padding-top:62px}.hero-copy h1{font-size:34px}.quick-title{font-size:14px}.quick-item{min-height:100px}.news-row{grid-template-columns:72px 1fr}.news-thumb{width:72px;height:58px}.stats-strip{grid-template-columns:1fr}.stats-strip>div{border-bottom:1px solid #e1eaf0!important}.stats-strip>div:last-child{border-bottom:0!important}.home-gallery{grid-template-columns:1fr}.gallery-item{height:180px}}
.home-map {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #d7e6f2;
  box-shadow: 0 12px 30px rgba(20, 72, 110, .08);
}

.home-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Special Announcement Popup ===== */
html.popup-open{overflow:hidden}.site-popup{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;animation:popupFade .22s ease}.site-popup.is-closing{animation:popupFadeOut .22s ease forwards}.site-popup-backdrop{position:absolute;inset:0;background:rgba(5,27,43,.68);backdrop-filter:blur(3px)}.site-popup-card{position:relative;z-index:2;width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.25);border:1px solid #dce8f1}.site-popup-image{width:100%;max-height:360px;background:#eef5f9;overflow:hidden}.site-popup-image img{width:100%;height:100%;max-height:360px;display:block;object-fit:contain}.site-popup-body{padding:28px 30px 30px}.site-popup-kicker{display:block;color:#a16c00;font-size:12px;font-weight:800;letter-spacing:1.2px}.site-popup-urgent .site-popup-kicker{color:#b32635}.site-popup-memorial .site-popup-kicker{color:#555}.site-popup-body h2{font:600 30px/1.25 Kanit;color:#123f68;margin:7px 0 10px}.site-popup-body p{white-space:pre-line;color:#5e7487;font-size:16px;line-height:1.8;margin:0}.site-popup-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.site-popup-close{position:absolute;right:12px;top:12px;z-index:3;width:38px;height:38px;border:1px solid #d5e1e9;border-radius:50%;background:rgba(255,255,255,.94);color:#38566d;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.08)}.site-popup-close:hover{background:#fff;transform:scale(1.04)}.popup-close-btn{border:1px solid #c7d8e4;background:#fff;color:#31536e;cursor:pointer;font:700 14px Sarabun}.site-popup-urgent{border-top:5px solid #b32635}.site-popup-memorial{border-top:5px solid #555;filter:grayscale(.9)}
@keyframes popupFade{from{opacity:0}to{opacity:1}}@keyframes popupFadeOut{to{opacity:0;transform:scale(.98)}}
@media(max-width:600px){.site-popup{padding:12px}.site-popup-card{border-radius:18px;max-height:92vh}.site-popup-image,.site-popup-image img{max-height:230px}.site-popup-body{padding:22px 18px 20px}.site-popup-body h2{font-size:24px}.site-popup-body p{font-size:14px}.site-popup-actions{flex-direction:column}.site-popup-actions>*{width:100%;justify-content:center}}

/* ===== Image-only Special Announcement Popup ===== */
.site-popup-card.site-popup-card-image-only{padding:0}
.site-popup-image-only{display:block;width:auto;height:auto;max-width:min(92vw,1100px);max-height:88vh;object-fit:contain;border-radius:24px}
.site-popup-card{width:auto;max-width:92vw;background:transparent;border:0;box-shadow:0 28px 80px rgba(0,0,0,.35);overflow:visible}
.site-popup-card .site-popup-close{right:-14px;top:-14px}
@media(max-width:600px){.site-popup-image-only{max-width:94vw;max-height:88vh;border-radius:18px}.site-popup-card .site-popup-close{right:-6px;top:-10px}}

/* ===== Homepage Mobile QA Patch ===== */
@media(max-width:600px){
  .home-hero{min-height:430px}
  .hero-inner{min-height:430px}
  .hero-copy{padding:52px 0 28px}
  .hero-copy h1{font-size:34px;line-height:1.12;margin-bottom:14px}
  .hero-copy p{font-size:15px;line-height:1.65;margin-bottom:20px}
  .home-btn{padding:10px 17px;font-size:14px}
  .hero-dots{bottom:15px}
  .quick-wrap{margin-top:-14px}
  .quick-grid{border-radius:15px}
  .quick-item{min-height:94px;padding:13px 7px}
  .quick-icon{font-size:25px;margin-bottom:6px}
  .quick-title{font-size:13px;line-height:1.35}
  .quick-item small{font-size:11px;line-height:1.3}
  .home-main{padding-top:22px;padding-bottom:40px}
  .home-panel{padding:15px;border-radius:14px}
  .home-news-grid{gap:13px}
  .news-row{grid-template-columns:72px 1fr;gap:10px;padding:10px 0}
  .news-thumb{width:72px;height:58px;border-radius:9px}
  .news-row b,.announce-list b,.simple-list b{font-size:13px;line-height:1.4}
  .news-row p{font-size:10px;line-height:1.45}
  .announce-list>a,.simple-list>a{gap:9px;padding:11px 0}
  .doc-icon,.list-icon{width:36px;height:36px;border-radius:9px}
  .leader-photo{height:245px}
  .leader-info{padding:14px 10px 16px}
  .leader-info b{font-size:17px}
  .feature-strip{gap:10px;margin:16px 0}
  .feature-card{min-height:90px;padding:13px 12px;gap:8px}
  .feature-card strong{font-size:23px;min-width:34px}
  .feature-card span{font-size:14px}
  .feature-card small{font-size:10px}
  .latest-grid{gap:13px;margin:16px 0}
  .stats-strip{margin-top:16px;border-radius:14px;padding:8px}
  .stats-strip>div{min-height:70px;padding:13px 10px}
  .stats-strip b{font-size:22px}
  .stats-strip small{font-size:11px}
  .bottom-grid{gap:13px;margin-top:16px}
  .home-gallery{gap:8px}
  .gallery-item{height:150px;border-radius:10px}
  .video-frame{border-radius:11px}
  .welcome-panel{min-height:200px}
  .welcome-panel h2{font-size:23px}
}
@media(max-width:380px){
  .home-hero,.hero-inner{min-height:405px}
  .hero-copy{padding-top:46px}
  .hero-copy h1{font-size:31px}
  .quick-item{min-height:88px}
  .quick-title{font-size:12px}
  .quick-item small{font-size:10px}
  .gallery-item{height:135px}
}

/* Popup image-only hardening: keep the uploaded image visible above the backdrop. */
.site-popup-card-image-only{position:relative!important;z-index:100001!important;width:auto!important;max-width:92vw!important;max-height:88vh!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:0 28px 80px rgba(0,0,0,.35)!important;overflow:visible!important}
.site-popup-card-image-only .site-popup-image-only{display:block!important;visibility:visible!important;opacity:1!important;width:auto!important;height:auto!important;max-width:92vw!important;max-height:88vh!important;object-fit:contain!important;border-radius:24px}
@media(max-width:600px){.site-popup-card-image-only .site-popup-image-only{max-width:94vw!important;max-height:88vh!important;border-radius:18px}}
/* ===== Phase 3.1.2 — Homepage Mobile Audit ===== */
@media(max-width:760px){
  .home-main.container{width:min(100% - 28px,1180px)}
  .hero-copy{max-width:100%}
  .hero-actions{flex-wrap:wrap}
  .hero-actions .btn,.home-btn{min-height:42px}
  .quick-grid{overflow:hidden}
  .home-panel{min-width:0}
  .news-row,.announce-list>a,.simple-list>a{min-width:0}
  .news-row>div:last-child,.announce-list>a>div,.simple-list>a>div{min-width:0}
  .news-row b,.announce-list b,.simple-list b{display:block;overflow-wrap:anywhere}
  .feature-card{min-width:0}
  .feature-card span{min-width:0}
  .feature-card small{display:block;overflow-wrap:anywhere}
  .stats-strip{overflow:hidden}
  .gallery-item span{overflow-wrap:anywhere}
}

@media(max-width:480px){
  .home-main.container{width:calc(100% - 24px)}
  .hero-copy h1{max-width:100%;font-size:32px}
  .hero-copy p{max-width:100%}
  .hero-actions{gap:8px}
  .home-btn{padding:9px 14px}
  .quick-grid{grid-template-columns:1fr 1fr}
  .feature-card{padding:12px 10px}
  .feature-card strong{font-size:21px;min-width:30px}
  .feature-card span{font-size:13px}
  .feature-card small{font-size:10px}
  .news-row{grid-template-columns:68px minmax(0,1fr)}
  .news-thumb{width:68px;height:56px}
  .section-head{gap:8px}
  .section-head>a{flex:none}
}


/* ===== Phase 3.1.3 — Homepage Visual Hierarchy ===== */
/* Keep the existing content/order; strengthen only spacing, grouping and visual priority. */
.home-main{padding-top:38px}
.home-news-grid{grid-template-columns:minmax(0,1.22fr) minmax(0,.88fr) minmax(250px,.64fr);gap:18px}
.home-news-grid .news-panel{border-top:3px solid #0873b6}
.home-news-grid .announce-panel{border-top:3px solid #0b8d89}
.home-news-grid .section-head{margin-bottom:15px}
.home-news-grid .section-head h2{font-size:25px}
.feature-strip{gap:12px;margin:24px 0}
.feature-card{min-height:112px;border-radius:17px}
.feature-card.ita{border-color:#cfe9e4}
.feature-card.procurement{border-color:#f0dfbd}
.feature-card.downloads{border-color:#d4e6f3}
.feature-card.organization{border-color:#d7e1ef}
.latest-grid{gap:18px;margin:24px 0}
.latest-grid .home-panel{border-top:2px solid #d7e7f2}
.stats-strip{margin-top:24px}
.bottom-grid{gap:18px;margin-top:24px}

@media(max-width:1100px){
  .home-news-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .leader-card{grid-column:1/-1}
}

@media(max-width:760px){
  .home-main{padding-top:24px}
  .home-news-grid{gap:14px}
  .home-news-grid .news-panel,.home-news-grid .announce-panel{border-top-width:2px}
  .home-news-grid .section-head h2{font-size:22px}
  .feature-strip{gap:10px;margin:17px 0}
  .feature-card{min-height:92px}
  .latest-grid{gap:14px;margin:17px 0}
  .stats-strip{margin-top:17px}
  .bottom-grid{gap:14px;margin-top:17px}
}

/* ===== Phase 3.1.4 — Homepage Typography ===== */
.hero-kicker,.mini-kicker{line-height:1.4}
.hero-copy h1{font-weight:600;letter-spacing:-.35px;line-height:1.1;text-wrap:balance}
.hero-copy p{line-height:1.75}
.home-btn{font-family:Kanit,sans-serif;font-weight:500;line-height:1.35}
.hero-building strong{font-weight:500;line-height:1.4}
.quick-title{font-weight:500;line-height:1.4}
.quick-item small{font-family:Sarabun,sans-serif;line-height:1.45}
.section-head h2{font-weight:500;letter-spacing:-.1px}
.section-head a{font-family:Kanit,sans-serif;font-weight:500}
.news-row b,.announce-list b,.simple-list b{font-family:Kanit,sans-serif;font-weight:500;line-height:1.45}
.news-row small,.announce-list small,.simple-list small{font-family:Sarabun,sans-serif;line-height:1.4}
.news-row p{line-height:1.55}
.feature-card span{font-weight:500;line-height:1.4}
.feature-card small{line-height:1.45}
.stats-strip b{font-weight:600;line-height:1.15}
.stats-strip small{line-height:1.45}
.welcome-panel h2{font-weight:500;line-height:1.25;letter-spacing:-.15px}
.welcome-panel p{line-height:1.78}
.gallery-item span{line-height:1.45}
@media(max-width:760px){
  .hero-copy h1{letter-spacing:-.15px}
  .hero-copy p{font-size:17px;line-height:1.72}
  .section-head h2{line-height:1.3}
}

/* ===== Phase 3.1.5 — Consistent UI Icons ===== */
.quick-icon{display:grid;place-items:center}
.feature-card strong{font-size:0;min-width:42px;height:42px;display:grid;place-items:center}
.feature-card strong::before{content:"";display:block;width:30px;height:30px;background:center/contain no-repeat}
.feature-card.procurement strong::before{background-image:url('/icons/cart.svg')}
.feature-card.downloads strong::before{background-image:url('/icons/folder.svg')}
.feature-card.organization strong::before{background-image:url('/icons/building.svg')}

.latest-grid .home-panel:first-child .list-icon,
.latest-grid .home-panel:nth-child(2) .list-icon,
.doc-icon{font-size:0}
.latest-grid .home-panel:first-child .list-icon::before,
.latest-grid .home-panel:nth-child(2) .list-icon::before,
.doc-icon::before{content:"";display:block;width:21px;height:21px;background:center/contain no-repeat}
.latest-grid .home-panel:first-child .list-icon::before{background-image:url('/icons/cart.svg')}
.latest-grid .home-panel:nth-child(2) .list-icon::before,
.doc-icon::before{background-image:url('/icons/file.svg')}

.stats-strip .stat-icon{font-size:0;width:36px;height:36px;display:grid;place-items:center}
.stats-strip .stat-icon::before{content:"";display:block;width:31px;height:31px;background:center/contain no-repeat}
.stats-strip>div:nth-child(1) .stat-icon::before{background-image:url('/icons/users.svg')}
.stats-strip>div:nth-child(2) .stat-icon::before{background-image:url('/icons/home.svg')}
.stats-strip>div:nth-child(3) .stat-icon::before{background-image:url('/icons/building.svg')}
.stats-strip>div:nth-child(4) .stat-icon::before{background-image:url('/icons/chart.svg')}

a.gallery-placeholder span{font-size:0;width:38px;height:38px;display:grid;place-items:center}
.gallery-placeholder span::before{content:"";display:block;width:34px;height:34px;background:url('/icons/camera.svg') center/contain no-repeat}

@media(max-width:600px){
  .feature-card strong{min-width:34px;width:34px;height:34px}
  .feature-card strong::before{width:25px;height:25px}
  .stats-strip .stat-icon{width:32px;height:32px}
  .stats-strip .stat-icon::before{width:28px;height:28px}
}

/* ===== Phase 3.2 — Design System / Homepage ===== */
.home-panel,.quick-wrap,.feature-card,.stats-strip,.welcome-panel{
  border-color:var(--ds-line,#dce8f1);
  box-shadow:var(--ds-shadow-sm,0 4px 14px rgba(23,77,115,.05));
}
.home-panel,.feature-card,.welcome-panel{border-radius:var(--ds-radius-lg,18px)}
.quick-wrap{border-radius:var(--ds-radius-lg,18px)}
.quick-item:hover,.feature-card:hover,.gallery-item:hover{transform:translateY(-3px);box-shadow:var(--ds-shadow-md,0 10px 28px rgba(23,77,115,.08))}
.quick-title,.feature-card span,.welcome-panel h2{color:var(--ds-text,#16365f)}
.news-row,.announce-list>a,.simple-list>a{border-color:var(--ds-line-soft,#e8eef3)}
.stats-strip{border-radius:var(--ds-radius-lg,18px)}
.home-panel .section-head a{color:var(--ds-primary,#1263a0)}

/* ===== Phase 3.3 — Homepage Visual Polish ===== */
.home-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 78% 18%,rgba(255,255,255,.82),transparent 28%),radial-gradient(circle at 12% 82%,rgba(11,141,137,.10),transparent 30%);z-index:1}
.hero-slide{isolation:isolate}
.hero-copy{position:relative;z-index:3}
.hero-copy h1{max-width:760px;text-shadow:0 2px 18px rgba(255,255,255,.35)}
.hero-copy p{max-width:610px}
.hero-building{position:relative;overflow:hidden}
.hero-building::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.55);top:-90px;right:-65px;pointer-events:none}
.hero-building::after{content:"";position:absolute;left:24px;right:24px;bottom:16px;height:4px;border-radius:99px;background:linear-gradient(90deg,transparent,#e59a34,transparent);opacity:.65}
.hero-building>*{position:relative;z-index:1}
.quick-grid{backdrop-filter:blur(8px)}
.quick-item{transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
.quick-icon{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#eef8ff,#f4fbfa);border:1px solid #dcebf2;box-shadow:0 5px 14px rgba(18,76,110,.06);font-size:28px}
.quick-item:hover .quick-icon{border-color:#bcdcea;box-shadow:0 8px 18px rgba(18,76,110,.09)}
.home-news-grid .home-panel{overflow:hidden}
.home-news-grid .home-panel .section-head{position:relative;padding-bottom:10px}
.home-news-grid .home-panel .section-head::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:3px;border-radius:99px;background:var(--home-gold,#e59a34)}
.home-news-grid .announce-panel .section-head::after{background:var(--home-teal,#0b8d89)}
.news-row,.announce-list>a,.simple-list>a{transition:background .18s ease,transform .18s ease,padding-left .18s ease}
.news-row:hover,.announce-list>a:hover,.simple-list>a:hover{background:#f8fbfd;padding-left:5px}
.news-thumb{box-shadow:inset 0 0 0 1px rgba(18,76,110,.05)}
.feature-card{position:relative;overflow:hidden}
.feature-card::before{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-42px;top:-42px;background:rgba(255,255,255,.52);pointer-events:none}
.feature-card>*{position:relative;z-index:1}
.feature-card.ita{border-color:#ccebe5}
.feature-card.procurement{border-color:#f0dfbd}
.feature-card.downloads{border-color:#d3e6f3}
.feature-card.organization{border-color:#d6e1f0}
.latest-grid .home-panel{overflow:hidden}
.latest-grid .home-panel .section-head,.bottom-grid .home-panel .section-head{position:relative;padding-bottom:9px}
.latest-grid .home-panel .section-head::after,.bottom-grid .home-panel .section-head::after{content:"";position:absolute;left:0;bottom:0;width:42px;height:2px;border-radius:99px;background:#cbdfea}
.stats-strip{overflow:hidden;background:linear-gradient(110deg,#084b76,#0a648f 58%,#0b7e7a);border-color:rgba(255,255,255,.12);box-shadow:0 14px 34px rgba(8,67,103,.16)}
.stats-strip>div{border-color:rgba(255,255,255,.18)}
.stats-strip b{color:#fff}
.stats-strip small{color:rgba(255,255,255,.82)}
.stats-strip .stat-icon{filter:drop-shadow(0 4px 8px rgba(0,0,0,.12))}
.stats-strip .stat-icon::before{filter:brightness(0) saturate(100%) invert(79%) sepia(31%) saturate(1054%) hue-rotate(164deg) brightness(103%) contrast(101%)}
.motto-stat b{color:#fff}
.gallery-item{box-shadow:inset 0 0 0 1px rgba(18,76,110,.05)}
.gallery-placeholder{border:1px dashed #c8dce7}
.welcome-panel{border-left:4px solid var(--home-gold,#e59a34)}
@media(max-width:760px){
  .quick-icon{width:42px;height:42px;border-radius:13px;font-size:24px}
  .home-news-grid .home-panel .section-head::after{width:38px}
  .feature-card::before{width:90px;height:90px}
}
@media(prefers-reduced-motion:reduce){
  .home-hero *,.quick-item,.feature-card,.news-row,.announce-list>a,.simple-list>a,.gallery-item img,.home-btn{transition:none!important;animation:none!important}
}

/* ===== Phase 3.3.1 — Homepage Detail Polish ===== */
/* Micro-polish only: spacing, focus states, hierarchy and responsive details. No data/route changes. */
.home-main > section + section{margin-top:2px}
.home-panel,.leader-card{overflow:hidden}
.section-head>div{min-width:0}
.section-head h2{overflow-wrap:anywhere}
.section-head>a{display:inline-flex;align-items:center;gap:3px;padding:4px 6px;border-radius:8px;transition:background .18s ease,color .18s ease}
.section-head>a:hover{background:#edf7fc;color:#075b91}
.quick-item:focus-visible,.feature-card:focus-visible,.news-row:focus-visible,.announce-list>a:focus-visible,.simple-list>a:focus-visible,.gallery-item:focus-visible,.home-btn:focus-visible,.section-head>a:focus-visible,.hero-arrow:focus-visible,.hero-dot:focus-visible{outline:3px solid rgba(240,162,58,.72);outline-offset:3px}
.quick-item{isolation:isolate}
.quick-item::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 -3px 0 rgba(18,99,160,.06);opacity:0;transition:opacity .18s ease}
.quick-item:hover::after{opacity:1}
.news-row,.announce-list>a,.simple-list>a{border-radius:10px}
.news-row{margin:0 -5px;padding-left:5px;padding-right:5px}
.news-row:hover,.announce-list>a:hover,.simple-list>a:hover{padding-left:10px}
.news-thumb{position:relative}
.news-thumb::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.leader-card{position:relative;background:linear-gradient(145deg,#fff,#f7fbfe)}
.leader-card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#0873b6,#0b8d89,#e59a34)}
.leader-photo{position:relative;overflow:hidden}
.leader-photo img{transition:transform .35s ease}
.leader-card:hover .leader-photo img{transform:scale(1.025)}
.leader-info>a{display:inline-flex;align-items:center;gap:4px;border-radius:8px;transition:background .18s ease;padding:5px 7px;margin-left:-7px}
.leader-info>a:hover{background:#edf7fc}
.feature-card i{transition:transform .18s ease}
.feature-card:hover i{transform:translateX(3px)}
.latest-grid .home-panel,.bottom-grid .home-panel{min-width:0}
.simple-list b,.announce-list b,.news-row b{overflow-wrap:anywhere}
.stats-strip>div{min-width:0}
.stats-strip small{overflow-wrap:anywhere}
.gallery-item{transition:transform .2s ease,box-shadow .2s ease}
.gallery-item span{max-height:58px;overflow:hidden}
.video-frame{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.welcome-panel .home-btn{align-self:flex-start}

@media(max-width:1100px){
  .home-news-grid .leader-card{margin-top:0}
  .leader-info{padding:22px}
}

@media(max-width:760px){
  .section-head{align-items:center}
  .section-head>a{font-size:12px;padding:5px 7px}
  .news-row,.announce-list>a,.simple-list>a{margin:0 -3px;padding-left:3px;padding-right:3px}
  .news-row:hover,.announce-list>a:hover,.simple-list>a:hover{padding-left:7px}
  .leader-info{padding:18px}
  .stats-strip>div{min-height:82px}
  .gallery-item span{font-size:10px;padding:18px 8px 7px}
  .welcome-panel .home-btn{align-self:stretch;justify-content:center}
}

@media(max-width:480px){
  .quick-item{min-height:116px;padding:15px 8px}
  .quick-title{font-size:14px}
  .quick-item small{font-size:11px}
  .stats-strip{padding:8px}
  .stats-strip>div{padding:14px 11px;column-gap:9px}
  .stats-strip b{font-size:22px}
  .motto-stat b{font-size:15px}
  .gallery-item{height:125px}
}

/* ===== PHASE 3.6 — HOMEPAGE RESPONSIVE POLISH ===== */
@media (max-width: 900px){
  .home-news-grid{grid-template-columns:1fr 1fr}.home-news-grid .leader-panel{grid-column:1/-1}
  .latest-grid{grid-template-columns:1fr 1fr}.bottom-grid{grid-template-columns:1fr 1fr}
  .stats-strip{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 760px){
  .home-main{padding-left:0;padding-right:0}
  .home-hero{border-radius:0 0 22px 22px}.hero-copy{padding-right:4%;padding-left:4%}.hero-building{margin:0 4%}
  .quick-grid{grid-template-columns:repeat(3,1fr);margin-left:4%;margin-right:4%}.quick-item{min-width:0}
  .home-news-grid,.latest-grid,.bottom-grid{grid-template-columns:1fr}.home-news-grid .leader-panel{grid-column:auto}
  .feature-strip{grid-template-columns:repeat(2,1fr)}
  .stats-strip{grid-template-columns:repeat(2,1fr);margin-left:4%;margin-right:4%;border-radius:18px}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .home-panel{border-radius:16px}
}
@media (max-width: 480px){
  .home-hero{border-radius:0 0 18px 18px}.hero-copy h1{font-size:31px}.hero-copy p{font-size:15px}
  .quick-grid{grid-template-columns:repeat(2,1fr);margin-top:-12px}.quick-item{padding:14px 8px}.quick-icon{width:44px;height:44px;border-radius:13px;font-size:25px}
  .feature-strip{grid-template-columns:1fr}.feature-card{min-height:100px}
  .stats-strip{grid-template-columns:1fr;margin-left:3%;margin-right:3%}.stats-strip>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.18)}.stats-strip>div:last-child{border-bottom:0}
  .gallery-grid{grid-template-columns:1fr}.gallery-item{min-height:170px}
}

/* ===== Phase 3.7 — Final Homepage Polish ===== */
.home-main{min-width:0}
.home-hero,.quick-grid,.home-news-grid,.feature-strip,.latest-grid,.bottom-grid,.stats-strip{min-width:0}
.home-hero img,.gallery-item img,.news-thumb img,.hero-building img{display:block;max-width:100%}
.home-panel,.feature-card,.quick-item,.news-row,.announce-list>a,.simple-list>a{min-width:0}
.home-panel a,.feature-card,.quick-item,.news-row,.announce-list>a,.simple-list>a{overflow-wrap:anywhere}
.section-head a,.home-panel .section-head a{white-space:nowrap}
.feature-card:focus-visible,.quick-item:focus-visible,.gallery-item:focus-visible,.news-row:focus-visible,.announce-list>a:focus-visible,.simple-list>a:focus-visible{outline:3px solid rgba(18,99,160,.22);outline-offset:3px}
.hero-copy h1,.hero-copy p{overflow-wrap:anywhere}
.stats-strip>div{min-width:0}
.stats-strip b,.stats-strip small{overflow-wrap:anywhere}
.gallery-item,.video-card{min-width:0}
@media(max-width:760px){
  .section-head{gap:10px}
  .section-head a,.home-panel .section-head a{white-space:normal}
}
@media(max-width:480px){
  .home-panel{border-radius:15px}
  .feature-card{border-radius:15px}
  .quick-icon{width:44px;height:44px;border-radius:13px}
}
@media(prefers-reduced-motion:reduce){
  .quick-item,.feature-card,.news-row,.announce-list>a,.simple-list>a,.gallery-item{transition:none!important}
}

/* ===== PHASE 3.10 — Government Website Links ===== */
.website-links-section{margin-top:24px}
.website-links-panel{padding:22px 22px 24px;background:linear-gradient(145deg,#ffffff 0%,#fbfdff 68%,#f5fbfd 100%);border:1px solid var(--home-line);border-radius:18px;box-shadow:0 10px 30px rgba(16,67,100,.055);overflow:hidden}
.website-links-head{align-items:center;margin-bottom:17px;padding-bottom:11px;position:relative}
.website-links-head::after{content:"";position:absolute;left:0;bottom:0;width:46px;height:2px;border-radius:99px;background:linear-gradient(90deg,#1263a0,#0b8d89)}
.website-links-head h2{margin-top:4px}
.website-links-count{display:inline-flex;align-items:center;justify-content:center;padding:6px 11px;border:1px solid #d8e7ef;border-radius:999px;background:#f7fbfe;color:#567489;font:500 12px/1 Kanit,sans-serif;white-space:nowrap}
.website-links-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}
.website-link-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:164px;padding:12px 9px 11px;background:#fff;border:1px solid #dce8f0;border-radius:14px;color:#173f62;box-shadow:0 5px 16px rgba(23,77,115,.035);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease}
.website-link-card:hover{transform:translateY(-4px);border-color:#bcd9e9;background:linear-gradient(180deg,#fff,#f8fcff);box-shadow:0 13px 27px rgba(23,77,115,.105)}
.website-link-card:focus-visible{outline:3px solid rgba(18,99,160,.2);outline-offset:3px}
.website-link-logo{width:100%;height:82px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f8fbfd;overflow:hidden;margin-bottom:9px}
.website-link-logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;padding:7px;box-sizing:border-box}
.website-link-fallback{font-size:34px;line-height:1;filter:saturate(.72)}
.website-link-copy{display:block;width:100%;min-width:0;text-align:center}
.website-link-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 13px/1.35 Kanit,sans-serif;color:#17466b;overflow-wrap:anywhere}
.website-link-copy small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:#72899a;font:400 10.5px/1.35 Sarabun,sans-serif;overflow-wrap:anywhere}
.website-link-arrow{position:absolute;right:8px;top:8px;width:21px;height:21px;display:grid;place-items:center;border-radius:7px;background:#edf7fc;color:#0b72b1;font:600 13px/1 Sarabun,sans-serif;opacity:0;transform:translate(-2px,2px);transition:opacity .18s ease,transform .18s ease}
.website-link-card:hover .website-link-arrow,.website-link-card:focus-visible .website-link-arrow{opacity:1;transform:none}
@media(max-width:1150px){.website-links-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:900px){.website-links-section{margin-top:20px}.website-links-panel{padding:19px}.website-links-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.website-link-card{min-height:158px}}
@media(max-width:600px){.website-links-panel{padding:16px}.website-links-head{align-items:flex-end}.website-links-count{padding:5px 9px;font-size:11px}.website-links-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.website-link-card{min-height:148px;padding:9px 7px}.website-link-logo{height:72px;margin-bottom:7px}.website-link-copy strong{font-size:12px}.website-link-copy small{font-size:10px}.website-link-arrow{display:none}}
@media(max-width:420px){.website-links-head{align-items:flex-start;flex-direction:column;gap:8px}.website-links-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.website-link-card{min-height:157px}.website-link-logo{height:82px}.website-link-copy strong{font-size:12.5px}}
@media(prefers-reduced-motion:reduce){.website-link-card,.website-link-arrow{transition:none}}


/* ===== Patch 8 — Homepage Motion & Micro-interaction Polish ===== */
/* Subtle motion only: public-service UI should feel responsive, not distracting. */
.reveal{will-change:opacity,transform}
.reveal.visible{transition-delay:var(--reveal-delay,0ms)}
.quick-item .quick-icon img{transition:transform .22s ease}
.quick-item:hover .quick-icon img,.quick-item:focus-visible .quick-icon img{transform:scale(1.06)}
.feature-card i{will-change:transform}
.feature-card:hover i,.feature-card:focus-visible i{transform:translateX(4px)}
.gallery-item img{transition:transform .45s ease,filter .45s ease}
.gallery-item:hover img,.gallery-item:focus-visible img{transform:scale(1.025);filter:saturate(1.04)}
.hero-arrow,.hero-dot{transition:background .2s ease,transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.hero-arrow:focus-visible{box-shadow:0 0 0 4px rgba(229,154,52,.22)}

/* A small, unobtrusive back-to-top control. */
.home-backtop{position:fixed;right:22px;bottom:22px;z-index:40;width:44px;height:44px;border:1px solid #cfe1ec;border-radius:50%;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);color:#075b91;box-shadow:0 8px 24px rgba(15,67,100,.14);display:grid;place-items:center;font-size:20px;line-height:1;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s ease,visibility .2s ease,transform .2s ease,background .2s ease}
.home-backtop.is-visible{opacity:1;visibility:visible;transform:none}
.home-backtop:hover{background:#fff;transform:translateY(-2px)}
.home-backtop:focus-visible{outline:3px solid rgba(240,162,58,.72);outline-offset:3px}
@media(max-width:600px){.home-backtop{right:14px;bottom:14px;width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){
  .reveal{will-change:auto}
  .quick-item .quick-icon img,.gallery-item img,.feature-card i,.home-backtop{transition:none!important}
  .home-backtop{transform:none}
}


/* ===== Patch 8.1 — Homepage UX Upgrade ===== */
/* Stronger but restrained visual feedback: clear hierarchy, richer hero motion, and app-like quick links. */
.hero-slide.is-active .hero-bg{animation:heroKenBurns 8s ease-out both}
.hero-slide.is-active .hero-copy-animated{animation:heroCopyIn .65s cubic-bezier(.2,.75,.25,1) both}
.hero-slide.is-active .hero-building{animation:heroBuildingIn .75s cubic-bezier(.2,.75,.25,1) .08s both}
@keyframes heroKenBurns{from{transform:scale(1)}to{transform:scale(1.045)}}
@keyframes heroCopyIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes heroBuildingIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}

/* Make the quick-link area read as an application launcher. */
.quick-wrap{box-shadow:0 16px 42px rgba(20,76,108,.10)}
.quick-item{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease}
.quick-item::after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:3px;border-radius:99px;background:linear-gradient(90deg,#1263a0,#0b8d89);transform:scaleX(0);transform-origin:center;transition:transform .22s ease}
.quick-item:hover,.quick-item:focus-visible{transform:translateY(-5px);border-color:#c1dce9;background:linear-gradient(180deg,#fff 0%,#f5fbff 100%);box-shadow:0 14px 30px rgba(23,77,115,.12)}
.quick-item:hover::after,.quick-item:focus-visible::after{transform:scaleX(1)}
.quick-icon{width:52px;height:52px;border-radius:16px;background:#f3f9fc;border:1px solid #e0edf3;box-shadow:0 5px 14px rgba(23,77,115,.05);transition:transform .22s ease,box-shadow .22s ease,background .22s ease}
.quick-item:hover .quick-icon,.quick-item:focus-visible .quick-icon{transform:translateY(-2px) scale(1.035);background:#fff;box-shadow:0 9px 20px rgba(23,77,115,.10)}
.quick-icon img{max-width:34px;max-height:34px}

/* Give section headings a recognizable Nongkham visual signature. */
.section-head{position:relative}
.section-head::after{content:"";position:absolute;left:0;bottom:-8px;width:58px;height:3px;border-radius:99px;background:linear-gradient(90deg,#1263a0,#0b8d89,#e5a13a)}
.section-head a{transition:transform .18s ease,color .18s ease}
.section-head a:hover{transform:translateX(3px);color:#075b91}

/* Gallery / feature interaction is more obvious without becoming flashy. */
.feature-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease}
.feature-card:hover,.feature-card:focus-visible{transform:translateY(-5px);box-shadow:0 16px 34px rgba(23,77,115,.12)}
.gallery-item{transition:transform .25s ease,box-shadow .25s ease}
.gallery-item:hover,.gallery-item:focus-visible{transform:translateY(-4px);box-shadow:0 15px 30px rgba(23,77,115,.13)}

/* Scroll-progress back-to-top button. */
.home-backtop{width:48px;height:48px;padding:3px;background:conic-gradient(#1263a0 calc(var(--scroll-progress,0)*1%),#dceaf1 0);border:0;box-shadow:0 10px 28px rgba(15,67,100,.16)}
.backtop-ring{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.96);color:#075b91;font-size:19px;font-weight:700}
.home-backtop:hover{transform:translateY(-3px)}

@media(prefers-reduced-motion:reduce){
  .hero-slide.is-active .hero-bg,.hero-slide.is-active .hero-copy-animated,.hero-slide.is-active .hero-building{animation:none!important}
  .quick-item,.quick-item::after,.quick-icon,.feature-card,.gallery-item,.section-head a{transition:none!important}
}

/* ===== Nong Kham Modern Government — Orange & White Homepage Theme ===== */
/* Visual-only layer: preserve existing EJS, routes, data bindings and admin styles. */
:root{
  --home-blue:#e87519;
  --home-deep:#9a430d;
  --home-sky:#fff7f0;
  --home-line:#f0dfd2;
  --home-teal:#c96520;
  --home-gold:#f4a340;
  --home-text:#263445;
  --ds-line:#f0dfd2;
  --ds-shadow-sm:0 7px 24px rgba(137,67,22,.065);
  --ds-radius-lg:20px;
}
.home-hero{
  background:radial-gradient(ellipse at 82% 15%,rgba(255,184,112,.22),transparent 34%),
             linear-gradient(118deg,#fff2e5 0%,#fff 52%,#fff8f2 100%);
}
.hero-bg{background-color:#fff7f0}
.hero-kicker,.mini-kicker,.leader-kicker{color:#c45b16}
.hero-copy h1{color:#873b0d}
.hero-copy p{color:#5d6570}
.home-btn.primary{background:linear-gradient(135deg,#f58a24,#df6814);color:#fff;box-shadow:0 8px 20px rgba(222,103,20,.2)}
.home-btn.primary:hover{background:linear-gradient(135deg,#e87519,#c9530d);box-shadow:0 11px 26px rgba(222,103,20,.27)}
.home-btn:hover{box-shadow:0 10px 24px rgba(201,91,22,.2)}
.hero-building{border-color:#f0d5bf;background:rgba(255,250,245,.88);box-shadow:0 24px 55px rgba(137,67,22,.11)}
.building-mark{color:#e87519}
.hero-building strong{color:#8f410f}
.hero-building small{color:#76675d}
.hero-dot{box-shadow:0 0 0 1px #e8a16c}
.hero-dot.active{background:#e87519}
.hero-arrow{border-color:#f0d7c3;color:#b95110;box-shadow:0 6px 20px rgba(137,67,22,.09)}
.hero-arrow:hover{color:#8f410f}
.quick-grid{border-color:#f0dfd2;box-shadow:0 18px 45px rgba(137,67,22,.10)}
.quick-item{color:#7d3b12;border-color:#f3e4d9;background:linear-gradient(180deg,#fff 0%,#fffaf6 100%)}
.quick-item:hover,.quick-item:focus-visible{background:linear-gradient(180deg,#fff 0%,#fff3e7 100%);border-color:#efc8a8;box-shadow:0 14px 30px rgba(137,67,22,.11)}
.quick-item::after{background:linear-gradient(90deg,#f58a24,#d95f12)}
.quick-icon{background:#fff4e9;border-color:#f4dfcc;box-shadow:0 5px 14px rgba(137,67,22,.05)}
.quick-item:hover .quick-icon,.quick-item:focus-visible .quick-icon{background:#fff;box-shadow:0 9px 20px rgba(137,67,22,.1)}
.quick-arrow{color:#c95b12}
.home-panel,.leader-card,.feature-card,.stats-strip{border-color:#f0dfd2;box-shadow:0 9px 30px rgba(137,67,22,.055)}
.section-head h2{color:#813b11}
.section-head a{color:#c75b13}
.section-head a:hover{color:#8f410f}
.section-head::after{background:linear-gradient(90deg,#f58a24,#d95f12,#f4b25f)}
.news-row{color:#263445;border-bottom-color:#f1e7df}
.news-thumb{background:#fff1e4;color:#c77a42}
.news-row small,.announce-list small,.simple-list small{color:#81756c}
.news-row p{color:#6c6b6a}
.announce-list>a,.simple-list>a{color:#263445;border-bottom-color:#f1e7df}
.doc-icon,.list-icon{background:#fff0e2;color:#d96612}
.list-icon{background:#fff5ec}
.empty-home{color:#94877d}
.leader-card{background:linear-gradient(180deg,#fff0e1 0%,#fff 74%)}
.leader-photo{background:linear-gradient(180deg,#ffe3c8,#fff5ec)}
.leader-info b{color:#813b11}
.leader-info small{color:#746a62}
.leader-info a{background:linear-gradient(135deg,#ee7b1c,#cf570e)}
.feature-card{color:#7d3b12}
.feature-card:hover,.feature-card:focus-visible{box-shadow:0 16px 34px rgba(137,67,22,.12)}
.feature-card.ita{background:linear-gradient(135deg,#fff4e9,#fffdfb);border-color:#f0d7c3}
.feature-card.procurement{background:linear-gradient(135deg,#fff5e9,#fff);border-color:#f0d7c3}
.feature-card.downloads{background:linear-gradient(135deg,#fff8f1,#fff);border-color:#f0dfd2}
.feature-card.organization{background:linear-gradient(135deg,#fff2e5,#fff);border-color:#f0d7c3}
.feature-card i{color:#d96612}
.latest-grid .home-panel{border-top-color:#f0d7c3}
.stats-strip>div{border-right-color:#f0e2d8}
.stats-strip b{color:#873b0d}
.stats-strip small{color:#756b63}
.gallery-item{background:#fff0e2}
.gallery-placeholder{background:linear-gradient(135deg,#fff0e1,#fff9f4);color:#78685d}
.gallery-placeholder b{color:#873b0d}
.video-frame{background:#75340f}
.welcome-panel{background:linear-gradient(135deg,#fff2e5,#fff)}
.welcome-panel h2{color:#873b0d}
.welcome-panel p{color:#6c6b6a}
.home-backtop{background:conic-gradient(#e87519 calc(var(--scroll-progress,0)*1%),#f1dfd2 0);box-shadow:0 10px 28px rgba(137,67,22,.16)}
.backtop-ring{color:#a8490f}

/* Linked agency cards share the same visual language without changing their data. */
.website-links-panel{border-color:#f0dfd2}
.website-links-count{background:#fff0e2;color:#a8490f}
.website-link-card{border-color:#f0dfd2;background:linear-gradient(145deg,#fff 0%,#fffaf6 100%)}
.website-link-card:hover,.website-link-card:focus-visible{border-color:#efc49f;box-shadow:0 12px 28px rgba(137,67,22,.1)}
.website-link-arrow{color:#d96612}

/* Focus, motion and small-screen polish. */
.home-btn:focus-visible,.hero-arrow:focus-visible,.hero-dot:focus-visible,.home-backtop:focus-visible,
.quick-item:focus-visible,.feature-card:focus-visible,.news-row:focus-visible,.announce-list>a:focus-visible,
.simple-list>a:focus-visible,.gallery-item:focus-visible,.website-link-card:focus-visible{
  outline:3px solid rgba(232,117,25,.45);outline-offset:3px
}
@media(max-width:760px){
  .home-hero{background:linear-gradient(145deg,#fff2e5 0%,#fff 65%,#fff8f2 100%)}
  .quick-grid{box-shadow:0 12px 30px rgba(137,67,22,.09)}
}
@media(prefers-reduced-motion:reduce){
  .hero-slide.is-active .hero-bg,.hero-slide.is-active .hero-copy-animated,.hero-slide.is-active .hero-building{animation:none!important}
  .reveal{opacity:1;transform:none;transition:none}
}

/* Phase: Orange & White finishing pass — homepage stats and lingering blue accents */
:root{--home-blue:#e87519;--home-deep:#9a430d;--home-sky:#fff7f0;--home-line:#f0dfd2;--home-teal:#c96520;--home-text:#263445}
.home-btn.primary,.hero-dot.active{background:#e87519}
.home-btn:hover{box-shadow:0 10px 24px rgba(232,117,25,.2)}
.hero-arrow{color:#b9540d;border-color:#f0d2bd}
.quick-grid{border-color:#f0dfd2;box-shadow:0 18px 45px rgba(154,67,13,.09)}
.quick-item{color:#8d430f;border-color:#f4e5da}
.quick-item:hover{background:#fff5eb}
.quick-arrow,.section-head a,.doc-icon,.feature-card i,.home-backtop,.backtop-ring{color:#d96612}
.quick-item::after{background:linear-gradient(90deg,#f6a04a,#e87519,#ffd2a6)}
.section-head h2,.welcome-panel h2,.leader-info b{color:#9a430d}
.section-head::after{background:linear-gradient(90deg,#e87519,#f5ad63,#ffe0c2)}
.home-news-grid .news-panel{border-top-color:#e87519}
.home-news-grid .announce-panel{border-top-color:#f4b36c}
.doc-icon,.list-icon{background:#fff2e6;color:#d96612}
.feature-card.ita{background:linear-gradient(135deg,#fff0e2,#fffaf5)}
.feature-card.procurement{background:linear-gradient(135deg,#fff5e9,#fff)}
.feature-card.downloads{background:linear-gradient(135deg,#fff8f0,#fff)}
.feature-card.organization{background:linear-gradient(135deg,#fff0e2,#fff)}
.stats-strip{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(112deg,#fffaf5 0%,#fff 42%,#fff0e2 100%);border:1px solid #f0c9a8;box-shadow:0 14px 34px rgba(154,67,13,.11)}
.stats-strip::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 0% 0%,rgba(246,160,74,.22),transparent 36%),radial-gradient(circle at 100% 100%,rgba(232,117,25,.13),transparent 35%)}
.stats-strip::after{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#ffc98f,#e87519,#b9540d)}
.stats-strip>div{border-color:#f0d8c5}
.stats-strip b,.motto-stat b{color:#a8490d}
.stats-strip small{color:#806653}
.stats-strip .stat-icon::before{filter:brightness(0) saturate(100%) invert(48%) sepia(82%) saturate(1740%) hue-rotate(351deg) brightness(95%) contrast(94%)}
.home-backtop{background:conic-gradient(#e87519 calc(var(--scroll-progress,0)*1%),#f5dfce 0);box-shadow:0 10px 28px rgba(154,67,13,.16)}
.backtop-ring{color:#b9540d}
.website-links-head::after{background:linear-gradient(90deg,#e87519,#f5ad63)}
.website-link-card{border-color:#f0dfd2;box-shadow:0 5px 16px rgba(154,67,13,.04)}
.website-link-card:hover{border-color:#efb783;background:#fffaf5;box-shadow:0 12px 25px rgba(154,67,13,.1)}
.website-link-copy strong{color:#93430f}
.website-link-arrow{background:#fff0e2;color:#d96612}
.section-head>a:hover{background:#fff1e4;color:#b9540d}
@media(prefers-reduced-motion:reduce){.quick-item,.feature-card,.news-row,.announce-list>a,.simple-list>a{transition:none}}

/* ===== Patch 9 — News, Announcements & Document Cards ===== */
/* Preserve all existing data/rendering; improve only the public-facing presentation. */
.home-news-grid .home-panel,
.latest-grid .home-panel{
  position:relative;
  border:1px solid #f0dfd2;
  border-radius:20px;
  background:linear-gradient(150deg,#fff 0%,#fffdfb 72%,#fff6ed 100%);
  box-shadow:0 12px 32px rgba(132,67,25,.065);
  padding:clamp(16px,1.8vw,24px);
  transition:box-shadow .22s ease,border-color .22s ease,transform .22s ease;
}
.home-news-grid .home-panel:hover,
.latest-grid .home-panel:hover{
  border-color:#edc5a5;
  box-shadow:0 16px 36px rgba(132,67,25,.10);
}
.home-news-grid .news-panel{border-top:4px solid #e87519}
.home-news-grid .announce-panel{border-top:4px solid #f3b16e}
.home-news-grid .section-head::after,
.latest-grid .home-panel .section-head::after,
.bottom-grid .home-panel .section-head::after{
  background:linear-gradient(90deg,#e87519,#f6b878,#ffe4cc);
}
.home-news-grid .announce-panel .section-head::after{background:linear-gradient(90deg,#f0a04a,#ffd6ad)}
.home-news-grid .section-head{margin-bottom:18px;padding-bottom:13px}
.home-news-grid .section-head h2,.latest-grid .section-head h2{color:#71360f}
.home-news-grid .section-head .mini-kicker,.latest-grid .section-head .mini-kicker{color:#d96612;letter-spacing:1.1px}
.home-news-grid .section-head>a,
.latest-grid .section-head>a,
.bottom-grid .section-head>a{
  border:1px solid #f2d7c2;
  background:#fff8f1;
  color:#b9540d;
  padding:7px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.home-news-grid .section-head>a:hover,
.latest-grid .section-head>a:hover,
.bottom-grid .section-head>a:hover{background:#e87519;color:#fff;border-color:#e87519}
.news-list,.announce-list,.simple-list{display:grid;gap:9px}
.news-row{
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  align-items:start;
  gap:14px;
  padding:11px;
  margin:0;
  border:1px solid #f3e5d9;
  border-radius:15px;
  background:rgba(255,255,255,.82);
  box-shadow:0 3px 10px rgba(132,67,25,.025);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}
.news-row:hover,.news-row:focus-visible{
  padding-left:11px;
  background:#fff8f1;
  border-color:#efc29e;
  transform:translateY(-2px);
  box-shadow:0 9px 20px rgba(132,67,25,.08);
}
.news-thumb{width:104px;height:82px;border-radius:11px;overflow:hidden;background:linear-gradient(135deg,#fff0e2,#fbe0c6);border:1px solid #f3dfce}
.news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.news-row:hover .news-thumb img{transform:scale(1.045)}
.news-thumb>span{display:grid;place-items:center;width:100%;height:100%;font-size:27px;color:#d96612}
.news-row b,.announce-list b,.simple-list b{color:#3d3028;font-weight:600}
.news-row b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.5}
.news-row small,.announce-list small,.simple-list small{display:block;margin-top:5px;color:#a06b49;font-size:12px}
.news-row p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0 0;color:#79695e;font-size:12px;line-height:1.55}
.announce-list>a,.simple-list>a{
  display:flex;align-items:flex-start;gap:12px;
  padding:12px;
  border:1px solid #f2e3d7;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}
.announce-list>a:hover,.simple-list>a:hover{
  padding-left:12px;
  transform:translateX(2px);
  border-color:#efc29e;
  background:#fff8f1;
  box-shadow:0 7px 18px rgba(132,67,25,.07);
}
.doc-icon,.list-icon{
  flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;
  border:1px solid #f2d2b8;border-radius:12px;
  background:linear-gradient(145deg,#fff0e2,#fffaf5);
  color:#d96612;font-size:18px;
}
.announce-list>a>div,.simple-list>a>div{flex:1;min-width:0}
.announce-list b,.simple-list b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.announce-list small,.simple-list small{line-height:1.5;overflow-wrap:anywhere}
.empty-home{border:1px dashed #edc9ad;border-radius:14px;background:#fffaf5;color:#98745c;padding:22px 14px;text-align:center}
@media(max-width:760px){
 .home-news-grid .home-panel,.latest-grid .home-panel{padding:15px;border-radius:16px}
 .news-row{grid-template-columns:82px minmax(0,1fr);gap:11px;padding:9px}
 .news-thumb{width:82px;height:72px}
 .news-row b{font-size:13px}
 .news-row p{font-size:11px}
 .announce-list>a,.simple-list>a{padding:10px;gap:10px}
 .doc-icon,.list-icon{flex-basis:34px;width:34px;height:34px;border-radius:10px}
}
@media(prefers-reduced-motion:reduce){
 .home-news-grid .home-panel,.latest-grid .home-panel,.news-row,.news-thumb img,.announce-list>a,.simple-list>a{transition:none!important}
}


/* Patch 9.1 — force announcement/document icons into the orange-white palette. */
.home-news-grid .doc-icon,
.latest-grid .doc-icon,
.announce-list .doc-icon {
  color: #d96612 !important;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(145deg, #fff0e2 0%, #fffaf5 100%);
  border-color: #f2d2b8;
}
.home-news-grid .doc-icon::first-line,
.latest-grid .doc-icon::first-line,
.announce-list .doc-icon::first-line { color: #d96612 !important; }

/* Patch 10 — Modern Government hero refinement (orange & white). */
.home-hero{
  position:relative;
  isolation:isolate;
  background:linear-gradient(118deg,#fff3e7 0%,#ffffff 48%,#fff8f1 100%);
  border-bottom:1px solid #f3dfcd;
}
.home-hero::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse at 86% 12%,rgba(245,130,32,.13),transparent 32%),
    radial-gradient(ellipse at 8% 88%,rgba(255,190,125,.16),transparent 34%),
    linear-gradient(90deg,rgba(255,255,255,.28),transparent 68%);
}
.home-hero::after{
  content:"";position:absolute;z-index:2;left:clamp(18px,5vw,76px);right:clamp(18px,5vw,76px);bottom:0;height:3px;
  border-radius:99px 99px 0 0;
  background:linear-gradient(90deg,transparent,#f58220 22%,#ffc18d 50%,#f58220 78%,transparent);
  opacity:.8;pointer-events:none;
}
.hero-slide{background:transparent}
.hero-bg{
  background-color:#fff8f1;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}
.hero-shade{
  display:block;
  background:linear-gradient(90deg,rgba(255,250,245,.97) 0%,rgba(255,250,245,.86) 34%,rgba(255,250,245,.22) 70%,rgba(255,250,245,.05) 100%);
  pointer-events:none;
}
.hero-copy{z-index:3}
.hero-kicker,.hero-copy .hero-kicker{color:#c45b16}
.hero-copy h1{color:#873b0d;text-shadow:0 2px 16px rgba(255,255,255,.5)}
.hero-copy p{color:#625449}
.home-btn.primary{
  color:#fff;background:linear-gradient(135deg,#f58220 0%,#d96612 100%);
  border:1px solid rgba(190,82,12,.16);
  box-shadow:0 8px 20px rgba(217,102,18,.2);
}
.home-btn.primary:hover{background:linear-gradient(135deg,#ff963b 0%,#c9570c 100%);box-shadow:0 12px 25px rgba(217,102,18,.25)}
.hero-building{
  border:1px solid rgba(234,174,126,.72);
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,245,235,.86));
  box-shadow:0 22px 54px rgba(137,67,22,.12),inset 0 1px 0 rgba(255,255,255,.9);
}
.hero-building strong{color:#873b0d}
.hero-building small{color:#76675d}
.hero-arrow{
  border-color:#f0d2bd;background:rgba(255,255,255,.94);color:#b9540d;
  box-shadow:0 7px 20px rgba(137,67,22,.12);
}
.hero-arrow:hover{background:#fff2e5;color:#873b0d;border-color:#e9b184}
.hero-dot{background:#fff;box-shadow:0 0 0 1px #e8a16c}
.hero-dot.active{background:#e87519;box-shadow:0 0 0 3px rgba(232,117,25,.14)}
@media(max-width:760px){
 .home-hero::after{left:16px;right:16px}
 .hero-shade{background:linear-gradient(180deg,rgba(255,250,245,.72),rgba(255,250,245,.94) 65%,#fffaf5 100%)}
 .hero-bg{background-position:center top}
 .hero-arrow{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){
 .hero-slide.is-active .hero-bg,.hero-slide.is-active .hero-copy-animated,.hero-slide.is-active .hero-building{animation:none!important}
 .home-btn,.hero-arrow,.hero-dot{transition:none!important}
}


/* Patch 11 — Keep the orange/white ambience behind the hero artwork, never over it. */
.home-hero{
  background:linear-gradient(120deg,#fff4e8 0%,#fffaf5 48%,#ffead8 100%) !important;
}
.home-hero::before{
  z-index:0 !important;
  background:
    radial-gradient(ellipse at 82% 18%,rgba(245,130,32,.16),transparent 34%),
    radial-gradient(ellipse at 12% 82%,rgba(255,190,125,.18),transparent 36%) !important;
}
.home-hero .hero-slide{z-index:1;isolation:isolate}
.home-hero .hero-bg{
  z-index:0;
  background-color:transparent !important;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}
.home-hero .hero-shade{
  display:none !important;
  background:none !important;
}
.home-hero .hero-inner{z-index:3}
.home-hero::after{z-index:4}
@media(max-width:760px){
  .home-hero .hero-bg{background-position:center;background-size:contain}
}


/* Patch 12 — Quick Links / Public Service Launcher: Orange & White */
.quick-wrap{position:relative;z-index:6}
.quick-grid{
  background:linear-gradient(145deg,#fff 0%,#fffaf5 100%) !important;
  border:1px solid #f0d8c5 !important;
  border-radius:20px !important;
  box-shadow:0 16px 38px rgba(145,73,25,.10),0 2px 8px rgba(245,130,32,.05) !important;
  overflow:hidden;
}
.quick-item{
  color:#873b0d !important;
  border-right:1px solid #f1dfd1 !important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,248,241,.94)) !important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease !important;
}
.quick-item::before{
  content:"";position:absolute;left:16%;right:16%;top:0;height:3px;border-radius:0 0 5px 5px;
  background:linear-gradient(90deg,#ffc18d,#f58220,#d96612);opacity:0;transform:scaleX(.65);
  transition:opacity .2s ease,transform .2s ease;
}
.quick-item:hover,.quick-item:focus-visible{
  color:#713009 !important;
  background:linear-gradient(180deg,#fff 0%,#fff0e2 100%) !important;
  box-shadow:inset 0 0 0 1px rgba(245,130,32,.12);
  transform:translateY(-2px);
}
.quick-item:hover::before,.quick-item:focus-visible::before{opacity:1;transform:scaleX(1)}
.quick-icon{
  display:grid;place-items:center;
  width:54px;height:54px;margin:0 auto 11px;padding:9px;
  border:1px solid #f2d3ba;border-radius:16px;
  color:#d96612 !important;
  background:linear-gradient(145deg,#fff0e2 0%,#fffaf5 100%) !important;
  box-shadow:0 5px 14px rgba(217,102,18,.08);
  transition:transform .22s ease,background .22s ease,border-color .22s ease;
}
.quick-icon img{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:none}
.quick-item:hover .quick-icon,.quick-item:focus-visible .quick-icon{
  transform:translateY(-2px) scale(1.04);border-color:#eab184;
  background:linear-gradient(145deg,#ffe4ca,#fff7ef) !important;
}
.quick-title{color:#873b0d !important;font-weight:650;line-height:1.4}
.quick-item small{color:#8b7565 !important;line-height:1.45}
.quick-arrow{color:#d96612 !important;opacity:.75;transition:transform .2s ease,opacity .2s ease}
.quick-item:hover .quick-arrow,.quick-item:focus-visible .quick-arrow{opacity:1;transform:translateX(3px)}
.quick-item:focus-visible{outline:3px solid rgba(245,130,32,.28);outline-offset:-4px}
@media(max-width:900px){
 .quick-grid{border-radius:17px !important}
 .quick-item{border-bottom:1px solid #f1dfd1 !important}
}
@media(max-width:560px){
 .quick-wrap{margin-top:-20px}
 .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 .quick-item{min-height:112px;padding:15px 9px !important}
 .quick-icon{width:46px;height:46px;border-radius:14px;margin-bottom:8px}
 .quick-title{font-size:14px}
 .quick-item small{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .quick-item,.quick-item::before,.quick-icon,.quick-arrow{transition:none !important}
 .quick-item:hover,.quick-item:focus-visible{transform:none}
}


/* ===== Patch 10 — Procurement & Download Cards: Orange / White ===== */
/* Presentation only: preserve existing EJS markup, links, ordering and data. */
.latest-grid .home-panel{
  background:linear-gradient(145deg,#fff 0%,#fffdfb 58%,#fff4e9 100%);
  border:1px solid #f0d5c0;
  border-top:3px solid #e87519;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(132,67,25,.065);
}
.latest-grid .home-panel:nth-child(2){border-top-color:#f3b16e}
.latest-grid .home-panel .section-head{margin-bottom:14px}
.latest-grid .home-panel .section-head::after,
.bottom-grid .home-panel .section-head::after{
  background:linear-gradient(90deg,#e87519,#f6b878,#ffe4cc);
}
.latest-grid .simple-list,
.latest-grid .news-list,
.latest-grid .announce-list{gap:9px}
.latest-grid .simple-list>a,
.latest-grid .announce-list>a{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:11px 12px;
  border:1px solid #f1dfd1;
  border-radius:13px;
  background:rgba(255,255,255,.92);
  box-shadow:0 3px 10px rgba(132,67,25,.025);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.latest-grid .simple-list>a:hover,
.latest-grid .announce-list>a:hover{
  transform:translateY(-2px);
  border-color:#efbd96;
  background:#fffaf5;
  box-shadow:0 8px 18px rgba(132,67,25,.08);
}
.latest-grid .simple-list .list-icon,
.latest-grid .simple-list .doc-icon,
.latest-grid .announce-list .doc-icon{
  flex:0 0 34px;
  width:34px;height:34px;
  display:grid;place-items:center;
  border:1px solid #f1d0b5;
  border-radius:10px;
  background:linear-gradient(145deg,#ffead8,#fff8f1);
  color:#d96612!important;
}
.latest-grid .simple-list b,
.latest-grid .announce-list b{
  color:#71360f;
  font-weight:600;
  line-height:1.45;
}
.latest-grid .simple-list small,
.latest-grid .announce-list small,
.latest-grid .simple-list time,
.latest-grid .announce-list time{
  color:#8c7464;
}
.latest-grid .simple-list a:focus-visible,
.latest-grid .announce-list a:focus-visible{
  outline:3px solid rgba(232,117,25,.35);
  outline-offset:2px;
}
.feature-card.procurement,
.feature-card.downloads{
  position:relative;
  overflow:hidden;
  border:1px solid #f0d5c0;
  background:linear-gradient(135deg,#fff5e9 0%,#fff 78%);
  box-shadow:0 5px 15px rgba(132,67,25,.035);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.feature-card.procurement:hover,
.feature-card.downloads:hover{
  transform:translateY(-3px);
  border-color:#e9b184;
  box-shadow:0 10px 22px rgba(132,67,25,.09);
}
.feature-card.procurement strong,
.feature-card.downloads strong{color:#71360f}
.feature-card.procurement strong::before,
.feature-card.downloads strong::before{filter:none}
.feature-card.procurement i,
.feature-card.downloads i{color:#d96612}
@media(max-width:760px){
  .latest-grid .simple-list>a,
  .latest-grid .announce-list>a{padding:10px;gap:9px}
  .latest-grid .simple-list .list-icon,
  .latest-grid .simple-list .doc-icon,
  .latest-grid .announce-list .doc-icon{flex-basis:32px;width:32px;height:32px}
}
@media(prefers-reduced-motion:reduce){
  .latest-grid .simple-list>a,
  .latest-grid .announce-list>a,
  .feature-card.procurement,
  .feature-card.downloads{transition:none!important}
  .latest-grid .simple-list>a:hover,
  .latest-grid .announce-list>a:hover,
  .feature-card.procurement:hover,
  .feature-card.downloads:hover{transform:none}
}

/* ===== Step 7: Motion and responsive polish (public site only) ===== */
:root {
  --nk-motion-fast: 180ms;
  --nk-motion-standard: 240ms;
  --nk-motion-ease: cubic-bezier(.2,.7,.2,1);
}

/* Keep images and embedded media inside their content area. */
.home-hero img,
.quick-wrap img,
.home-news-grid img,
.latest-grid img,
.news-list img,
.news-row img,
.feature-card img,
.website-links-grid img {
  max-width: 100%;
}

/* Gentle interaction feedback; no changes to links or component structure. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .quick-item,
  .news-row,
  .news-card,
  .website-link-card,
  .feature-strip > *,
  .home-news-grid > *,
  .home-hero .hero-arrow,
  .home-hero .hero-dot {
    transition-duration: var(--nk-motion-standard);
    transition-timing-function: var(--nk-motion-ease);
  }
  .quick-item:hover,
  .website-link-card:hover {
    transform: translateY(-2px);
  }
  .home-hero .hero-arrow:hover {
    transform: scale(1.04);
  }
}

/* Make keyboard focus visible without relying on hover. */
.quick-item:focus-visible,
.news-row:focus-visible,
.news-card:focus-visible,
.website-link-card:focus-visible,
.home-hero .hero-arrow:focus-visible,
.home-hero .hero-dot:focus-visible {
  outline: 3px solid rgba(232, 117, 25, .42);
  outline-offset: 3px;
}

/* Tablet and mobile layout safety. */
@media (max-width: 900px) {
  .quick-wrap,
  .quick-grid,
  .home-news-grid,
  .latest-grid,
  .feature-strip,
  .website-links-grid {
    min-width: 0;
  }
  .quick-item,
  .news-row,
  .news-card,
  .feature-card,
  .website-link-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .home-hero,
  .home-hero .hero-inner,
  .home-hero .hero-slide {
    min-width: 0;
  }
  .home-hero img,
  .news-row img,
  .news-card img,
  .feature-card img {
    height: auto;
  }
  .quick-item,
  .website-link-card,
  .feature-card {
    -webkit-tap-highlight-color: rgba(232, 117, 25, .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-item,
  .news-row,
  .news-card,
  .website-link-card,
  .feature-strip > *,
  .home-news-grid > *,
  .home-hero .hero-arrow,
  .home-hero .hero-dot {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.site-address {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-top: 3px;
    margin-bottom: 2px;
}