/* Progressive enhancement: content is visible before JavaScript and after failure. */
:root{--motion-fast:220ms;--motion-enter:600ms;--motion-ease:cubic-bezier(.16,1,.3,1)}
body{background:linear-gradient(135deg,#eef8ff 0%,#f8fbff 48%,#fffaf2 100%)}
.dt-home{background:transparent}
.photography-course-container{padding-top:20px;padding-bottom:24px}
.photography-course{padding:clamp(18px,3vw,32px);border:1px solid var(--brand-200);border-radius:22px;background:linear-gradient(135deg,var(--surface),var(--brand-50));box-shadow:var(--shadow-sm)}
.photography-course-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.photography-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--brand-700);font-weight:600;font-size:13px}
.photography-course h2{font-size:clamp(22px,3vw,32px);line-height:1.5;color:var(--brand-900);margin-top:6px}
.photography-course p{color:var(--ink-muted);margin:4px 0 0;overflow-wrap:anywhere}
.photography-cohorts{flex-shrink:0;border-radius:18px;background:linear-gradient(135deg,var(--brand-800),var(--brand-600));color:white;padding:16px 24px;display:grid;gap:2px}
.photography-cohorts>span{font-size:13px}.photography-cohorts strong{font:700 40px/1.3 "Kanit",sans-serif}.photography-cohorts small{font-size:18px}
.photography-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.photography-gallery a{display:block;border-radius:14px;overflow:hidden;background:var(--brand-100)}
.photography-gallery img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:transform 500ms var(--motion-ease)}
.photography-gallery a:hover img{transform:scale(1.035)}
.photography-more summary{cursor:pointer;list-style-position:inside;padding:16px 0 4px;color:var(--brand-700);font-weight:600}
.photography-more[open] summary{margin-bottom:14px}
.m-app .photography-course-container{padding:16px}
@media(max-width:600px){.photography-course-heading{align-items:flex-start;gap:12px}.photography-cohorts{padding:12px}.photography-cohorts strong{font-size:30px}.photography-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.photography-course>.photography-gallery>a:first-child{grid-column:1/-1}}
.block,.services-section{position:relative}
.block-head{border-bottom:0;margin-bottom:22px;align-items:flex-end}
.block-head h2,.section-heading{font-size:clamp(1.2rem,2vw,1.65rem);color:#0b427c;letter-spacing:-.01em}
.block-head h2::after,.section-heading::after{content:"";display:block;width:52px;height:4px;margin-top:7px;border-radius:8px;background:linear-gradient(90deg,#f4c84a,#1592d0)}
.block-head h2 i{color:#148bd0}
.block-head .btn{color:#1677c5;border-color:transparent;background:transparent}
.news-headline-list{display:grid;gap:10px}
.reference-news .news-headline-list{grid-template-columns:minmax(0,1.15fr) minmax(230px,.85fr);align-items:stretch}
.reference-news .news-headline-item.is-featured{grid-row:span 3;display:grid;grid-template-columns:1fr;align-content:start;padding:0;overflow:hidden}
.reference-news .news-headline-item.is-featured .news-inline-thumb{width:100%;height:182px;border-radius:0;order:-1}
.reference-news .news-headline-item.is-featured>div{padding-left:16px;padding-right:16px;flex:1 1 auto}
.reference-news .news-headline-item.is-featured>div:last-child{padding-bottom:16px}
.news-headline-item{background:rgba(255,255,255,.78);border:1px solid rgba(178,211,235,.7);border-radius:14px;padding:14px 16px;box-shadow:0 8px 24px rgba(37,99,150,.06);transition:transform .25s var(--motion-ease),box-shadow .25s}
.reference-news .news-headline-item{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px;min-width:0;min-height:78px}
.reference-news .news-headline-item>div:first-of-type{flex:1 1 190px;min-width:0}
.reference-news .news-headline-item>div:last-child{flex:0 1 auto;max-width:100%;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.reference-news .news-headline-item .news-headline-title{display:block;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.news-inline-thumb{width:76px;height:56px;object-fit:cover;border-radius:10px;flex:0 0 76px;box-shadow:0 4px 12px rgba(13,67,110,.14)}
.news-headline-item:hover{transform:translateX(5px);box-shadow:0 14px 32px rgba(37,99,150,.13)}
.news-headline-title{color:#123f70;font-family:"Kanit";font-weight:600}
.news-headline-item .chip{background:#e6f3ff;color:#126bb4;border:0;border-radius:7px}
.panel{border:1px solid rgba(178,211,235,.75);border-radius:20px;box-shadow:0 14px 36px rgba(37,99,150,.09);overflow:hidden;background:rgba(255,255,255,.82)}
.panel-head{background:transparent;color:#0c4a82;border-bottom:1px solid #dbeaf5;padding:18px 20px;font-size:18px}
.panel-head::before{width:0}.panel-head i{color:#168bd0}
.calendar{padding:18px}.cal-head strong{color:#0c4a82}.cal-cell{border-radius:9px}.cal-today{background:#167dc2!important;color:#fff}.cal-event{box-shadow:inset 0 -3px 0 var(--ev)}
.reference-calendar .cal-list{display:grid;gap:10px;margin-top:14px}.reference-calendar .cal-list li{display:grid;grid-template-columns:52px 1fr;gap:8px;align-items:center;background:#f8fbff;border:1px solid #dbeaf5;border-radius:12px;padding:10px;color:#496b88}.reference-calendar .cal-list li strong{color:#c73545;font-family:"Kanit";font-size:16px}
@media(max-width:900px){.reference-news .news-headline-list{grid-template-columns:1fr}.reference-news .news-headline-item.is-featured{grid-row:auto}.reference-news .news-headline-item.is-featured .news-inline-thumb{height:160px}}
.quick-strip{margin-top:-26px;padding-bottom:10px}.quick-grid{gap:12px}.quick-card{min-height:78px;padding:13px 14px}.quick-ic{width:48px;height:48px}
.news-ticker{display:flex;align-items:center;gap:0;max-width:var(--container);height:52px;min-height:52px;margin:10px auto 10px;border-radius:16px;overflow:hidden;background:#092c52;box-shadow:0 12px 28px rgba(7,43,76,.18);color:#fff}
.news-ticker-label{display:flex;align-items:center;align-self:stretch;gap:8px;flex:0 0 auto;padding:0 20px;background:#cf3a42;font-family:"Kanit";font-weight:600}
.news-ticker-item{height:52px;padding:0 20px}
.main-grid{padding-top:10px}
/* One owner per gap: avoid adding strip padding, ticker margins and grid padding. */
.dt-home{--home-section-gap:20px}
.dt-home>.quick-strip{padding-bottom:0;margin-bottom:var(--home-section-gap)}
.dt-home>.news-ticker{margin:0 auto var(--home-section-gap);width:calc(100% - 36px);max-width:calc(var(--container) - 36px)}
.dt-home>.main-grid{padding-top:0}
@media(max-width:480px){.dt-home>.news-ticker{width:calc(100% - 28px)}}
.news-ticker-label i{color:#ffe081}.news-ticker-window{min-width:0;overflow:hidden;flex:1}.news-ticker-track{display:flex;width:max-content;animation:news-marquee 42s linear infinite}.news-ticker.is-hovered .news-ticker-track,.news-ticker.is-paused .news-ticker-track{animation-play-state:paused}.news-ticker-item{display:flex;align-items:center;gap:12px;min-width:360px;padding:12px 20px;color:#fff;white-space:nowrap}.news-ticker-item strong{font:500 14px "Kanit";overflow:hidden;text-overflow:ellipsis}.news-ticker-item time{color:#aec4d8;font-size:12px}.news-ticker-tag{padding:3px 8px;border-radius:6px;background:#e8bd35;color:#24354a;font:600 11px "Kanit"}.news-ticker-toggle{width:42px;height:42px;margin-right:8px;border-radius:50%;color:#fff;background:#ffffff1c}.news-ticker-toggle:hover{background:#ffffff35}@keyframes news-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:900px){.news-ticker{margin:10px 14px}.news-ticker-label{padding:0 14px}.news-ticker-item{min-width:280px;padding-left:14px;padding-right:14px}.news-ticker-item time{display:none}}
.quick-card{background:rgba(255,255,255,.9);border:1px solid #d5e7f5;box-shadow:0 12px 28px rgba(14,83,132,.1);border-radius:16px}
.quick-card:hover{box-shadow:0 18px 38px rgba(14,83,132,.17)}
.quick-meta strong{color:#164b7e}.quick-meta small{color:#6a87a3}
.services-section{background:rgba(255,255,255,.34);border-top:1px solid rgba(180,211,237,.45);border-bottom:1px solid rgba(180,211,237,.45)}
.services-section .svc-card{background:rgba(255,255,255,.9);border:1px solid #d8e9f5;border-radius:16px;box-shadow:0 10px 26px rgba(36,94,145,.07)}
.services-section .svc-card strong{color:#174a78}.services-section .svc-card small{color:#7390aa}
.gallery-item{border-radius:16px;box-shadow:0 12px 28px rgba(14,83,132,.12)}
.gallery-item::after{background:linear-gradient(180deg,transparent 42%,rgba(7,43,76,.9))}
.admission{border-radius:22px;box-shadow:0 16px 38px rgba(37,99,150,.15)}
.campus-explorer .block-head{margin-bottom:16px}.campus-explorer .block-head small{display:block;color:#6c89a3;margin-top:3px}.campus-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px}.campus-stage{position:relative;min-height:390px;border-radius:20px;overflow:hidden;background:#092f53;box-shadow:0 16px 34px rgba(8,55,92,.16)}.campus-slides,.campus-slide{position:absolute;inset:0}.campus-slide{opacity:0;visibility:hidden;transition:opacity .7s ease,visibility .7s}.campus-slide.is-active{opacity:1;visibility:visible;z-index:1}.campus-slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition:transform 7s ease}.campus-slide.is-active img{transform:scale(1.1)}.campus-slide::after{content:"";position:absolute;inset:40% 0 0;background:linear-gradient(transparent,rgba(2,25,48,.92))}.campus-caption{position:absolute;z-index:2;left:22px;right:22px;bottom:20px;color:white;display:grid;gap:2px}.campus-caption small{color:#f9cd4d;font-family:"Kanit"}.campus-caption strong{font:700 clamp(1.2rem,2.2vw,1.75rem) "Kanit"}.campus-caption em{font-style:normal;color:#c9d8e7;font-size:13px}.campus-pause{position:absolute;z-index:3;right:16px;top:16px;width:38px;height:38px;border-radius:50%;background:#0b3558d9;color:white}.campus-list{display:grid;align-content:start;gap:9px}.campus-item{display:flex;align-items:center;gap:10px;text-align:left;background:rgba(255,255,255,.9);border:1px solid #d8e8f4;border-radius:15px;padding:9px;min-height:66px;color:#174875;transition:.25s}.campus-item img{width:76px;height:50px;border-radius:10px;object-fit:cover;flex:0 0 76px}.campus-item span{display:grid;gap:2px;min-width:0}.campus-item strong{font:600 13px "Kanit";white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.campus-item small{color:#7892aa;font-size:11px}.campus-item.is-active{background:#0d3769;color:white;box-shadow:0 10px 24px #0d376933}.campus-item.is-active small{color:#f6c94a}
@media(max-width:800px){.campus-layout{grid-template-columns:1fr}.campus-stage{min-height:300px}.campus-list{grid-template-columns:repeat(2,minmax(0,1fr))}.campus-item img{width:52px;flex-basis:52px}}
[data-reveal],[data-reveal].is-in{opacity:1;transform:none;transition:none}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--brand-500);outline-offset:4px}
:where(section,[id]){scroll-margin-top:110px}
.hero-slide,.hero-slide.is-active{transform:none;transition:opacity 700ms ease,visibility 700ms}
.hero-image{position:absolute;inset:0;background-image:inherit;background-position:center;background-repeat:no-repeat;background-size:var(--hero-image-fit,cover);pointer-events:none}
.hero-slide::before{z-index:1;pointer-events:none}
.hero-slide.is-active .hero-image{animation:hero-drift 12s ease-out both}
.hero-text.animate__animated{animation:none}
.hero-slide.is-active :is(.hero-title,.hero-sub,.hero-badges,.hero-actions){animation:hero-reveal 700ms var(--motion-ease) both}
.hero-slide.is-active .hero-sub{animation-delay:90ms}
.hero-slide.is-active .hero-badges{animation-delay:170ms}
.hero-slide.is-active .hero-actions{animation-delay:250ms}
.hero-title{line-height:1.35;overflow-wrap:anywhere}
.hero-highlight{white-space:normal;line-height:1.5}
.hero-pause{color:white;border:1px solid #ffffff80;border-radius:20px;padding:5px 12px;background:#0005;font-size:12px}
.hero-arrow:focus-visible{opacity:1}
.hero-actions .btn{transition:transform var(--motion-fast),box-shadow var(--motion-fast),background var(--motion-fast)}
.hero-actions .btn:hover,.hero-actions .btn:focus-visible{box-shadow:0 0 0 5px #ffffff15,0 10px 30px #0003}
.site-header{transition:background-color 300ms,box-shadow 300ms}
.site-header.is-scrolled{background:var(--surface)}
.nav-drawer{overflow:clip;contain:paint;visibility:hidden;transition:visibility 350ms}
.nav-drawer.is-open{visibility:visible}
.news-page-grid{grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr))}
.news-filters:not([hidden]){display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.news-filters button{padding:9px 18px;border-radius:24px;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);transition:background 220ms,color 220ms}
.news-filters button[aria-pressed=true]{background:var(--brand-700);color:white;border-color:var(--brand-700)}
.news-filter-status{color:var(--ink-muted);font-size:14px;margin:0 0 16px}
.news-page-card[hidden]{display:none!important}
.news-page-img,.album-cover{overflow:hidden}
.premium-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nav-item-dropdown .dropdown-menu{max-width:calc(100vw - 32px)}
.nav-item-dropdown::after{left:0;right:0}
/* JS owns disclosure state, keeping visual and aria-expanded states aligned. */
.nav-item-dropdown[data-enhanced]:hover:not(.is-open) .dropdown-menu{opacity:0;visibility:hidden;pointer-events:none}
.nav-item-dropdown.is-open .dropdown-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.dropdown-item{white-space:normal;overflow-wrap:anywhere}
.main-nav .nav-link{position:relative}
.main-nav .nav-link::after{content:'';position:absolute;left:14px;right:14px;bottom:3px;height:2px;background:var(--brand-500);transform:scaleX(0);transform-origin:left;transition:transform var(--motion-fast)}
.main-nav .nav-link:is(:hover,:focus-visible,.is-active)::after{transform:scaleX(1)}
:is(.quick-card,.svc-card,.news-page-card,.album-card,.award-card,.m-news-card,.m-svc-card){transition:transform 280ms var(--motion-ease),box-shadow 280ms,border-color 280ms;min-width:0}
:is(.news-page-card,.album-card,.m-news-card){overflow:hidden}
:is(.news-page-card,.album-card,.gallery-item,.m-news-card) img{transition:transform 650ms var(--motion-ease)}
:is(.quick-card,.svc-card,.m-svc-card) .bi{transition:transform 280ms var(--motion-ease)}
.btn:active,.icon-btn:active{transform:scale(.97)}
:is(.main-grid,.news-page-grid,.album-grid,.quick-grid,.m-svc-grid)>*{min-width:0}
:is(.news-page-card,.album-card,.svc-card,.quick-card) :is(h2,h3,strong,p){overflow-wrap:anywhere}
@media(hover:hover) and (pointer:fine){
  :is(.quick-card,.svc-card,.news-page-card,.album-card,.award-card,.m-news-card,.m-svc-card):hover{transform:translateY(-4px);box-shadow:0 16px 34px #0f172a14;border-color:var(--brand-300)}
  :is(.news-page-card,.album-card,.gallery-item,.m-news-card):hover img{transform:scale(1.045)}
  :is(.quick-card,.svc-card,.m-svc-card):hover .bi{transform:translateY(-2px) rotate(-4deg)}
}
@keyframes hero-drift{from{transform:scale(1.025)}to{transform:scale(1.10)}}
.hero-fireflies{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;border-radius:inherit}
.hero-fireflies span{position:absolute;width:3px;height:3px;border-radius:50%;background:#ffe7a0;box-shadow:0 0 7px 2px #ffe39b70;opacity:0;animation:firefly-float var(--fly-duration) ease-in-out var(--fly-delay) infinite alternate}
.ambient-paused .hero-fireflies span,.ambient-offscreen .hero-fireflies span{animation-play-state:paused}
.hero-inner,.m-hero-body{position:relative;z-index:3}
.quick-card,.menu-list a,.m-svc-card{position:relative}
.menu-shimmer{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:2}
.menu-shimmer::before{content:'';position:absolute;inset:-10% 0;width:50%;background:linear-gradient(105deg,transparent,rgba(255,235,173,.48),rgba(255,255,255,.7),transparent);transform:translateX(-220%) skewX(-18deg)}
.quick-card .menu-shimmer::before{animation:menu-shine 9s ease-in-out var(--shine-delay) infinite}
:is(.nav-link,.menu-list a,.m-svc-card):is(:hover,:focus-visible)>.menu-shimmer::before{animation:menu-shine 1.1s ease-out}
@keyframes firefly-float{0%{opacity:.08;transform:translate3d(0,0,0) scale(.65)}40%{opacity:.8}75%{opacity:.25}100%{opacity:.65;transform:translate3d(var(--fly-x),var(--fly-y),0) scale(1)}}
@keyframes menu-shine{0%,65%{transform:translateX(-220%) skewX(-18deg);opacity:0}70%{opacity:1}100%{transform:translateX(320%) skewX(-18deg);opacity:0}}
@keyframes hero-reveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .hero-image{transform:none!important}
  .hero-fireflies,.menu-shimmer{display:none!important}
}
