/* ============================================================
   โรงเรียนศรีสะเกษวิทยาลัย — Shared Stylesheet
   Sisaketwittayalai School
   ============================================================ */
:root{
  --navy:#122a63;
  --navy-deep:#0b1c45;
  --gold:#c79a2a;
  --gold-light:#e9c469;
  --paper:#ffffff;
  --stone:#f6f5f1;
  --ink:#1d2233;
  --grey:#6a7186;
  --line:#e6e3da;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Sarabun',sans-serif;color:var(--ink);background:var(--paper);line-height:1.8;font-weight:300}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.serif{font-family:'Prompt',sans-serif}
.en{font-family:'Prompt',sans-serif}
.container{max-width:1240px;margin:0 auto}

/* ===== Utility bar ===== */
.utility{background:var(--navy-deep);color:#b8c3e4;font-size:.78rem;padding:.45rem 6%;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.utility a{transition:.2s}
.utility a:hover{color:var(--gold-light)}
.utility .lang b{color:#fff}

/* ===== Nav ===== */
nav{position:sticky;top:0;z-index:200;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:.9rem 6%}
.brand{display:flex;align-items:center;gap:.9rem}
.crest{width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--gold-light),var(--gold) 65%,#8e6a12);display:flex;align-items:center;justify-content:center;font-family:'Prompt',sans-serif;color:#fff;font-size:1.3rem;font-weight:700}
.brand h1{font-family:'Prompt',sans-serif;font-size:1.05rem;color:var(--navy);line-height:1.3;font-weight:600}
.brand small{display:block;font-family:'Prompt',sans-serif;font-weight:500;color:var(--grey);font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}
.menu{display:flex;gap:2rem;font-size:.92rem;font-weight:400}
.menu a{position:relative;padding:.3rem 0}
.menu a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:1.5px;background:var(--gold);transition:.3s}
.menu a:hover::after,.menu a.active::after{width:100%}
.menu a.active{color:var(--navy);font-weight:500}
.apply{border:1px solid var(--navy);color:var(--navy);padding:.5rem 1.4rem;font-size:.88rem;letter-spacing:.05em;transition:.25s}
.apply:hover{background:var(--navy);color:#fff}
.hamburger{display:none;font-size:1.5rem;background:none;border:none;color:var(--navy);cursor:pointer}

/* ===== Hero (home) ===== */
.hero{position:relative;height:88vh;min-height:560px;overflow:hidden;color:#fff;display:flex;align-items:flex-end}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,16,40,.85) 0%,rgba(8,16,40,.25) 55%,rgba(8,16,40,.15) 100%)}
.hero-content{position:relative;z-index:2;padding:0 6% 5rem;max-width:900px}
.hero .kicker{font-family:'Prompt',sans-serif;letter-spacing:.35em;text-transform:uppercase;font-size:.85rem;color:var(--gold-light);margin-bottom:1rem}
.hero h2{font-family:'Prompt',sans-serif;font-weight:600;font-size:clamp(2rem,5vw,3.4rem);line-height:1.35;margin-bottom:1rem}
.hero p{font-weight:300;font-size:1.05rem;color:#e7ebf7;max-width:580px;margin-bottom:2rem}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.btn-solid{background:var(--gold);color:#fff;padding:.85rem 2.2rem;letter-spacing:.05em;transition:.25s;display:inline-block}
.btn-solid:hover{background:var(--gold-light);color:var(--navy)}
.btn-line{border:1px solid rgba(255,255,255,.7);color:#fff;padding:.85rem 2.2rem;letter-spacing:.05em;transition:.25s;display:inline-block}
.btn-line:hover{background:#fff;color:var(--navy)}
.scroll-hint{position:absolute;right:6%;bottom:2rem;z-index:2;font-family:'Prompt',sans-serif;letter-spacing:.3em;font-size:.75rem;writing-mode:vertical-rl;color:rgba(255,255,255,.7)}

/* ===== Sub-page hero (inner pages) ===== */
.subhero{position:relative;color:#fff;overflow:hidden;padding:5.5rem 6% 4rem;display:flex;align-items:flex-end;min-height:320px}
.subhero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.subhero .veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(11,28,69,.92),rgba(11,28,69,.55))}
.subhero .inner{position:relative;z-index:2;max-width:1240px;margin:0 auto;width:100%}
.subhero .kicker{font-family:'Prompt',sans-serif;letter-spacing:.35em;text-transform:uppercase;font-size:.82rem;color:var(--gold-light);margin-bottom:.6rem}
.subhero h2{font-family:'Prompt',sans-serif;font-weight:600;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.35}
.breadcrumb{position:relative;z-index:2;font-size:.85rem;color:#c3cdea;margin-top:1rem}
.breadcrumb a:hover{color:var(--gold-light)}
.breadcrumb span{color:var(--gold-light)}

/* ===== Section base ===== */
section{padding:5.5rem 6%}
.head{margin-bottom:3rem;max-width:760px}
.head .kicker{font-family:'Prompt',sans-serif;letter-spacing:.35em;text-transform:uppercase;font-size:.8rem;color:var(--gold)}
.head h3{font-family:'Prompt',sans-serif;font-weight:600;font-size:clamp(1.6rem,3.2vw,2.3rem);color:var(--navy);margin:.5rem 0 .6rem;line-height:1.4}
.head p{color:var(--grey)}
.head.center{margin-left:auto;margin-right:auto;text-align:center}

/* ===== Numbers strip ===== */
.numbers{background:var(--stone);display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;padding:3.5rem 6%}
.numbers div{text-align:center;border-left:1px solid var(--line)}
.numbers div:first-child{border:none}
.numbers b{font-family:'Prompt',sans-serif;font-size:2.8rem;font-weight:600;color:var(--navy);display:block;line-height:1.1}
.numbers span{font-size:.85rem;color:var(--grey);letter-spacing:.05em}

/* ===== Feature (image + text alternating) ===== */
.feature{display:grid;grid-template-columns:1.1fr 1fr;gap:4rem;align-items:center;max-width:1240px;margin:0 auto}
.feature.flip .media{order:2}
.feature .media{position:relative}
.feature .media img{width:100%;height:460px;object-fit:cover}
.feature .media::after{content:"";position:absolute;inset:1.2rem -1.2rem -1.2rem 1.2rem;border:1px solid var(--gold);z-index:-1}
.feature h3{font-family:'Prompt',sans-serif;font-weight:600;font-size:1.8rem;color:var(--navy);line-height:1.45;margin:.5rem 0 1rem}
.feature p{color:var(--grey);margin-bottom:1.2rem}
.feature .kicker{font-family:'Prompt',sans-serif;letter-spacing:.35em;text-transform:uppercase;font-size:.8rem;color:var(--gold)}
.link-arrow{font-size:.9rem;color:var(--navy);font-weight:500;letter-spacing:.04em;border-bottom:1px solid var(--gold);padding-bottom:.15rem;transition:.2s;display:inline-block}
.link-arrow:hover{color:var(--gold)}

/* ===== Programs ===== */
.programs{background:var(--navy);color:#dfe5f5}
.programs .head h3{color:#fff}
.programs .head p{color:#b8c3e4}
.prog-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:1.2rem;max-width:1240px;margin:0 auto}
.prog:nth-child(-n+4){width:calc(25% - 0.9rem)}      /* แถวบน 4 ใบ */
.prog:nth-child(n+5){width:calc(20% - 0.96rem)}      /* แถวล่าง 5 ใบ */
@media(max-width:900px){.prog:nth-child(-n+4),.prog:nth-child(n+5){width:calc(50% - 0.6rem)}}
@media(max-width:560px){.prog:nth-child(-n+4),.prog:nth-child(n+5){width:100%}}
.prog{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.16);padding:1.9rem 1.7rem;transition:.3s;border-radius:18px;display:flex;flex-direction:column}
.prog:hover{background:rgba(255,255,255,.1);border-color:var(--yellow);transform:translateY(-5px)}
.prog .en-tag{font-family:'Prompt',sans-serif;letter-spacing:.04em;font-size:1.7rem;font-weight:700;text-transform:uppercase;color:var(--yellow);display:block;margin-bottom:.5rem;line-height:1.1}
.prog h4{font-family:'Prompt',sans-serif;font-weight:600;color:#fff;margin:.2rem 0 .6rem;font-size:1.12rem;line-height:1.45}
.prog p{font-size:.88rem;color:#c2cbe6}

/* ===== Gallery ===== */
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:1rem;max-width:1240px;margin:0 auto}
.gallery figure{position:relative;overflow:hidden}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.gallery figure:hover img{transform:scale(1.05)}
.gallery figcaption{position:absolute;left:0;right:0;bottom:0;padding:1.4rem 1.2rem .9rem;background:linear-gradient(to top,rgba(8,16,40,.8),transparent);color:#fff;font-size:.85rem;letter-spacing:.04em}
.g1{grid-column:span 7;height:380px}
.g2{grid-column:span 5;height:380px}
.g3{grid-column:span 4;height:280px}
.g4{grid-column:span 4;height:280px}
.g5{grid-column:span 4;height:280px}

/* ===== News ===== */
.news{background:var(--stone)}
.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;max-width:1240px;margin:0 auto}
.news article{background:#fff;transition:.3s;display:flex;flex-direction:column}
.news article:hover{box-shadow:0 16px 40px rgba(18,42,99,.12);transform:translateY(-4px)}
.news .thumb{height:200px;overflow:hidden}
.news .thumb img{width:100%;height:100%;object-fit:cover}
.news .body{padding:1.5rem 1.6rem 1.8rem}
.news .date{font-family:'Prompt',sans-serif;letter-spacing:.2em;font-size:.75rem;text-transform:uppercase;color:var(--gold)}
.news h4{font-family:'Prompt',sans-serif;font-weight:600;color:var(--navy);margin:.4rem 0 .5rem;font-size:1.05rem;line-height:1.5}
.news p{font-size:.88rem;color:var(--grey)}

/* ===== Admission CTA ===== */
.cta{position:relative;color:#fff;text-align:center;overflow:hidden;padding:0}
.cta img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cta .veil{position:absolute;inset:0;background:rgba(11,28,69,.78)}
.cta .inner{position:relative;z-index:2;max-width:680px;margin:0 auto;padding:7rem 6%}
.cta h3{font-family:'Prompt',sans-serif;font-weight:600;font-size:clamp(1.7rem,3.5vw,2.4rem);margin-bottom:1rem;line-height:1.45}
.cta p{color:#d7def2;margin-bottom:2rem}

/* ===== Footer ===== */
footer{background:var(--navy-deep);color:#9fabd0;padding:4rem 6% 1.5rem;font-size:.9rem}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;max-width:1240px;margin:0 auto 2.5rem}
footer h5{font-family:'Prompt',sans-serif;color:#fff;margin-bottom:1rem;font-weight:600}
footer li{list-style:none;padding:.3rem 0}
footer a:hover{color:var(--gold-light)}
.foot-brand p{font-size:.85rem;line-height:1.9}
.copy{text-align:center;font-size:.75rem;border-top:1px solid rgba(255,255,255,.12);padding-top:1.4rem;letter-spacing:.06em}

/* ===== Prose / generic content ===== */
.prose{max-width:820px;margin:0 auto}
.prose p{color:var(--ink);margin-bottom:1.2rem}
.prose h3{font-family:'Prompt',sans-serif;color:var(--navy);font-weight:600;font-size:1.5rem;margin:2rem 0 .8rem}
.lead{font-size:1.12rem;color:var(--navy);line-height:1.9;margin-bottom:1.6rem}

/* values / mission cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.6rem;max-width:1240px;margin:0 auto}
.cards.cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.cards.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.cards.cols-3{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--line);padding:2rem 1.8rem;transition:.3s}
.card:hover{box-shadow:0 16px 40px rgba(18,42,99,.1);transform:translateY(-4px)}
.card .num{font-family:'Prompt',sans-serif;font-size:2rem;color:var(--gold);font-weight:600}
.card h4{font-family:'Prompt',sans-serif;color:var(--navy);font-weight:600;font-size:1.15rem;margin:.4rem 0 .6rem}
.card p{font-size:.9rem;color:var(--grey)}

/* timeline */
.timeline{max-width:820px;margin:0 auto;border-left:2px solid var(--line);padding-left:2rem}
.timeline .item{position:relative;padding-bottom:2.2rem}
.timeline .item::before{content:"";position:absolute;left:-2.55rem;top:.4rem;width:12px;height:12px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px var(--stone)}
.timeline .yr{font-family:'Prompt',sans-serif;font-size:1.3rem;color:var(--navy);font-weight:600}

/* placeholder รูปผู้บริหารในบล็อก feature (เปลี่ยนเป็น <img> รูปจริงได้) */
.exec-photo{width:100%;height:460px;border-radius:18px;background:linear-gradient(160deg,#1b3470,var(--navy-deep));display:flex;align-items:center;justify-content:center;color:var(--gold-light);font-family:'Prompt',sans-serif;font-size:3rem;font-weight:700}
.feature .accordion{max-width:none;margin:1.2rem 0 0}

/* Why SKW : สองผู้บริหาร แบ่งซ้าย–ขวา ในแถวเดียว */
/* บล็อกแบบจุฬาฯ : รูปข้างหนึ่ง + แผงสีอ่อนข้างหนึ่ง */
.why2{display:grid;grid-template-columns:1.05fr 1.15fr;max-width:1240px;margin:0 auto;background:#faf6ea;border-radius:22px;overflow:hidden}
.why2 + .why2{margin-top:2.5rem}
.why2 .pic{position:relative;min-height:480px}
.why2 .pic img,.why2 .pic .exec-photo{position:absolute;inset:0;width:100%;height:100%;border-radius:0;object-fit:cover}
.why2.flip .pic{order:2}
.why2 .panel{padding:3rem 3.4rem;display:flex;flex-direction:column;justify-content:center}
.why2 .panel .kicker{color:var(--yellow-deep);display:block}
.why2 .panel h3{font-family:'Prompt',sans-serif;color:var(--navy);font-weight:600;font-size:1.8rem;margin:.25rem 0 .5rem;line-height:1.35}
.why2 .panel .sub{color:var(--grey);margin-bottom:1rem}
.acc-flat{margin:0}
.acc-flat .acc-item{border:none;border-bottom:1px solid rgba(18,42,99,.14);background:none;margin:0;border-radius:0}
.acc-flat .acc-head{padding:1.05rem 0;font-size:1rem;color:var(--navy)}
.acc-flat .acc-body{padding:0}
.acc-flat .acc-item.open .acc-body{padding:0 0 1.1rem}
.why2 .pill-link{display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;margin-top:1.6rem;border:1px solid var(--navy);color:var(--navy);padding:.6rem 1.5rem;border-radius:999px;font-weight:500;font-size:.9rem;transition:.25s}
.why2 .pill-link:hover{background:var(--navy);color:#fff}
@media(max-width:860px){.why2{grid-template-columns:1fr}.why2 .pic{min-height:300px}.why2.flip .pic{order:0}.why2 .panel{padding:2.2rem 1.8rem}}
@media(max-width:860px){.why-grid{grid-template-columns:1fr;gap:3rem}}
.timeline p{color:var(--grey);font-size:.92rem}

/* ===== Personnel ===== */
.exec{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2rem;max-width:1240px;margin:0 auto}
.exec.lead-row{max-width:340px}
.person{text-align:center}
.person .photo{width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--stone);border-bottom:3px solid var(--gold)}
.person .photo.ph{display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#1b3470,var(--navy-deep));color:var(--gold-light);font-family:'Prompt',sans-serif;font-size:2.6rem;font-weight:700}
.person h4{font-family:'Prompt',sans-serif;color:var(--navy);font-weight:600;font-size:1.05rem;margin:.9rem 0 .2rem}
.person .role{font-size:.85rem;color:var(--gold);letter-spacing:.03em}
.person .meta{font-size:.8rem;color:var(--grey)}
.dept-tabs{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin-bottom:2.5rem}
.dept-tabs button{font-family:'Sarabun',sans-serif;border:1px solid var(--line);background:#fff;color:var(--grey);padding:.5rem 1.2rem;font-size:.88rem;cursor:pointer;transition:.2s;border-radius:30px}
.dept-tabs button:hover{border-color:var(--gold)}
.dept-tabs button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.dept-panel{display:none}
.dept-panel.show{display:block}

/* compact roster for large staff lists */
.roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.7rem;max-width:1240px;margin:0 auto;align-items:stretch}
.roster .r{background:#fff;border:1px solid var(--line);border-left:3px solid var(--gold);padding:.7rem .95rem;display:flex;flex-direction:column;justify-content:center}
.roster .r b{font-weight:500;color:var(--ink);font-size:.95rem;display:block;line-height:1.4}
.roster .r span{font-size:.8rem;color:var(--grey)}
.roster .r.head{border-left-color:var(--navy);background:var(--stone);margin:0;max-width:none}
.roster .r.head span{color:var(--navy);font-weight:500}
/* การ์ดครูแบบมีรูป (เช่น กลุ่มสาระศิลปะ) */
.roster.roster-photo{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}
.roster.roster-photo .r{padding:0;overflow:hidden;border-left:1px solid var(--line);border-radius:14px;justify-content:flex-start}
.roster.roster-photo .r.head{border:1px solid var(--navy);background:#fff}
.roster.roster-photo .rphoto{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top center;display:block;background:#eaf0f7}
.roster.roster-photo .rphoto.ph{display:flex;align-items:center;justify-content:center;font-family:'Prompt',sans-serif;font-size:2.2rem;font-weight:600;color:var(--navy);background:var(--stone)}
.roster.roster-photo .rinfo{padding:.6rem .75rem .85rem}
.roster.roster-photo .r b{font-size:.92rem}
.roster.roster-photo .r.head .rinfo{border-top:2px solid var(--gold)}
.roster .r .tel{font-size:.82rem;color:var(--navy);text-decoration:none;margin-top:.25rem;font-family:'Prompt',sans-serif}
.roster .r .tel:hover{text-decoration:underline}
.roster .head-role{color:var(--gold);font-weight:600;font-family:'Prompt',sans-serif;font-size:.84rem}
.dept-count{text-align:center;color:var(--grey);font-size:.85rem;margin-bottom:1.5rem}

/* ===== Table ===== */
.table-wrap{overflow-x:auto;max-width:1240px;margin:0 auto}
table.data{width:100%;border-collapse:collapse;font-size:.92rem;background:#fff}
table.data th{background:var(--navy);color:#fff;font-family:'Prompt',sans-serif;font-weight:600;text-align:left;padding:.9rem 1.1rem}
table.data td{padding:.85rem 1.1rem;border-bottom:1px solid var(--line);color:var(--ink)}
table.data tr:nth-child(even) td{background:var(--stone)}
table.data tr:hover td{background:#eef1f8}

/* ===== Accordion ===== */
.accordion{max-width:900px;margin:0 auto}
.acc-item{border:1px solid var(--line);margin-bottom:.8rem;background:#fff}
.acc-head{width:100%;text-align:left;font-family:'Prompt',sans-serif;font-weight:600;color:var(--navy);font-size:1.02rem;padding:1.1rem 1.4rem;background:none;border:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.acc-head .ico{color:var(--gold);transition:.3s;font-size:1.2rem}
.acc-item.open .acc-head .ico{transform:rotate(45deg)}
.acc-body{max-height:0;overflow:hidden;transition:max-height .35s ease;padding:0 1.4rem}
.acc-item.open .acc-body{max-height:600px;padding:0 1.4rem 1.3rem}
.acc-body p{color:var(--grey);font-size:.92rem}

/* ===== Downloads list ===== */
.dl-list{max-width:980px;margin:0 auto;display:flex;flex-direction:column;gap:.7rem}
.dl{display:flex;align-items:center;gap:1.2rem;background:#fff;border:1px solid var(--line);padding:1.05rem 1.4rem;transition:.2s}
.dl:hover{border-color:var(--gold);box-shadow:0 10px 26px rgba(18,42,99,.08)}
.dl .ficon{width:42px;height:42px;flex:none;border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:'Prompt',sans-serif;font-weight:700;font-size:.78rem;color:#fff;letter-spacing:.02em}
.ficon.pdf{background:#c0392b}.ficon.doc{background:#2a5db0}.ficon.xls{background:#1e7d4f}.ficon.zip{background:#7a6033}
.dl .info{flex:1;min-width:0}
.dl .info h4{font-family:'Sarabun',sans-serif;font-weight:500;color:var(--ink);font-size:.98rem;line-height:1.5}
.dl .info span{font-size:.78rem;color:var(--grey)}
.dl .get{flex:none;border:1px solid var(--navy);color:var(--navy);font-size:.82rem;padding:.4rem 1rem;transition:.2s;white-space:nowrap}
.dl .get:hover{background:var(--navy);color:#fff}

/* announcement / notice ribbon */
.notice{background:var(--gold);color:#3a2c05;font-size:.85rem;padding:.5rem 6%;text-align:center;letter-spacing:.02em}
.notice b{font-weight:600}

/* ===== Contact ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;max-width:1240px;margin:0 auto;align-items:start}
.info-block{margin-bottom:1.8rem}
.info-block .lbl{font-family:'Prompt',sans-serif;letter-spacing:.2em;text-transform:uppercase;font-size:.74rem;color:var(--gold)}
.info-block p{color:var(--ink);font-size:.95rem;margin-top:.2rem}
.form-field{margin-bottom:1.2rem}
.form-field label{display:block;font-size:.85rem;color:var(--grey);margin-bottom:.35rem}
.form-field input,.form-field textarea,.form-field select{width:100%;font-family:'Sarabun',sans-serif;font-size:.95rem;padding:.75rem .9rem;border:1px solid var(--line);background:#fff;color:var(--ink);transition:.2s}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{outline:none;border-color:var(--gold)}
.btn-submit{background:var(--navy);color:#fff;border:none;padding:.85rem 2.2rem;font-family:'Sarabun',sans-serif;font-size:.95rem;letter-spacing:.04em;cursor:pointer;transition:.25s}
.btn-submit:hover{background:var(--gold);color:var(--navy)}
.map-embed{width:100%;height:340px;border:0;filter:grayscale(.1)}
.dir-table td{padding:.6rem 1rem;border-bottom:1px solid var(--line);font-size:.9rem}
.dir-table td:first-child{color:var(--navy);font-weight:500}
.dir-table td:last-child{color:var(--grey);text-align:right;font-family:'Prompt',sans-serif;letter-spacing:.05em}

.section-stone{background:var(--stone)}
.mt0{margin-top:0}

/* ===== Responsive ===== */
@media(max-width:900px){
  .menu,.apply{display:none}
  .menu.open{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#fff;padding:1.2rem 6%;border-bottom:1px solid var(--line);gap:1rem}
  .menu.open a.active{font-weight:600}
  .hamburger{display:block}
  .feature{grid-template-columns:1fr;gap:2.5rem}
  .feature.flip .media{order:0}
  .gallery{grid-template-columns:1fr 1fr}
  .g1,.g2{grid-column:span 2;height:300px}
  .g3,.g4,.g5{grid-column:span 1;height:220px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr;gap:2.5rem}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.gallery figure:hover img{transform:none}}

/* ============================================================
   ===============  CHULA-STYLE COMPONENTS  ===================
   โทนน้ำเงิน–เหลือง · เมกะเมนู · บล็อกภาพ · สถิติ · ฟุตเตอร์
   ============================================================ */
:root{
  --yellow:#f4c20d;
  --yellow-deep:#d9a400;
  --navy-soft:#1b3a82;
}

/* ---------- Top bar ---------- */
.topbar{background:var(--navy-deep);color:#c4cfee;font-size:.8rem}
.topbar-in{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.4rem;padding:.5rem 6%}
.topbar-in a{transition:.2s}
.topbar-in a:hover{color:var(--yellow)}
.topbar-links{display:flex;gap:.9rem;align-items:center}
.topbar-links b{color:#fff}

/* ---------- Main nav ---------- */
.site-head{position:sticky;top:0;z-index:500;background:#fff;box-shadow:0 2px 16px rgba(11,28,69,.07)}
.mainnav{display:flex;align-items:center;justify-content:space-between;padding:.7rem 6%;gap:1.5rem;background:transparent;border-bottom:none;backdrop-filter:none}
.mainnav .brand{display:flex;align-items:center;gap:.85rem;flex:none}
.mainnav .crest{width:50px;height:50px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--yellow),var(--yellow-deep) 70%,#9c7700);display:flex;align-items:center;justify-content:center;font-family:'Prompt',sans-serif;color:var(--navy-deep);font-size:1.25rem;font-weight:700}
.mainnav .brand h1{font-family:'Prompt',sans-serif;font-size:1rem;color:var(--navy);line-height:1.25;font-weight:600}
.mainnav .brand small{display:block;font-family:'Prompt',sans-serif;font-weight:500;color:var(--grey);font-size:.72rem;letter-spacing:.04em;text-transform:uppercase}

.nav-list{display:flex;align-items:center;gap:.3rem;list-style:none;flex:1;justify-content:flex-end}
.nav-list>li{position:static}
.nav-list>li>a{display:inline-flex;align-items:center;gap:.25rem;padding:.6rem .85rem;font-size:.93rem;color:var(--ink);font-weight:400;border-radius:6px;transition:.2s;cursor:pointer}
.nav-list>li>a:hover,.nav-list>li.active>a{color:var(--navy);background:var(--stone)}
.nav-list>li.active>a{font-weight:600;box-shadow:inset 0 -2px 0 var(--yellow)}
.caret{font-size:.6rem;opacity:.6;display:inline-block;transition:transform .25s}
.has-mega.open>a .caret{transform:rotate(180deg)}
.nav-cta{background:var(--navy)!important;color:#fff!important;padding:.6rem 1.3rem!important;font-weight:500!important}
.nav-cta:hover{background:var(--yellow)!important;color:var(--navy-deep)!important}

/* mega panel */
.has-mega>.mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--line);box-shadow:0 24px 40px rgba(11,28,69,.14);opacity:0;visibility:hidden;transform:translateY(8px);transition:.22s;z-index:400}
.has-mega:hover>.mega{opacity:1;visibility:visible;transform:translateY(0)}
.mega-in{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem 2.5rem;padding:2.2rem 6%}
.mega-col h6{font-family:'Prompt',sans-serif;color:var(--navy);font-size:.95rem;font-weight:600;margin-bottom:.7rem;padding-bottom:.5rem;border-bottom:1px solid var(--line)}
.mega-col a{display:block;font-size:.88rem;color:var(--grey);padding:.32rem 0;transition:.18s}
.mega-col a:hover{color:var(--navy);padding-left:.3rem}
.mega-feature{background:linear-gradient(160deg,var(--navy),var(--navy-deep));color:#fff;padding:1.6rem;border-radius:10px}
.mega-feature .en-tag{font-family:'Prompt',sans-serif;letter-spacing:.2em;text-transform:uppercase;font-size:.72rem;color:var(--yellow)}
.mega-feature h6{color:#fff;border:none;font-size:1.05rem;margin:.4rem 0 .5rem}
.mega-feature p{font-size:.83rem;color:#c4cfee;margin-bottom:1rem}
.mega-feature a{display:inline-block;color:var(--navy-deep);background:var(--yellow);padding:.5rem 1.1rem;border-radius:6px;font-size:.83rem;font-weight:500}

.crest-img{width:54px;height:54px;object-fit:contain;border-radius:50%;background:#fff;flex:none}
.footer-cu .fc-brand .fc-crest{width:64px;height:64px;margin-bottom:1rem;padding:3px}
.nav-burger{display:none;font-size:1.6rem;background:none;border:none;color:var(--navy);cursor:pointer;flex:none}

/* ---------- Transparent header over hero (หน้าแรก) ---------- */
.site-head.overlay{position:fixed;top:0;left:0;right:0;background:transparent;box-shadow:none;transition:background .3s,box-shadow .3s}
.site-head.overlay .topbar{background:transparent;color:#e7ebf7}
.site-head.overlay .mainnav{background:transparent}
.site-head.overlay .brand h1{color:#fff}
.site-head.overlay .brand small{color:rgba(255,255,255,.75)}
.site-head.overlay .nav-list>li>a{color:#fff}
.site-head.overlay .nav-list>li>a:hover,.site-head.overlay .nav-list>li.active>a{background:rgba(255,255,255,.16);color:#fff;box-shadow:inset 0 -2px 0 var(--yellow)}
.site-head.overlay .caret,.site-head.overlay .nav-burger{color:#fff}
.site-head.overlay.solid{background:#fff;box-shadow:0 2px 16px rgba(11,28,69,.08)}
.site-head.overlay.solid .topbar{background:var(--navy-deep);color:#c4cfee}
.site-head.overlay.solid .mainnav{background:#fff}
.site-head.overlay.solid .brand h1{color:var(--navy)}
.site-head.overlay.solid .brand small{color:var(--grey)}
.site-head.overlay.solid .nav-list>li>a{color:var(--ink)}
.site-head.overlay.solid .nav-list>li>a:hover,.site-head.overlay.solid .nav-list>li.active>a{background:var(--stone);color:var(--navy)}
.site-head.overlay.solid .caret,.site-head.overlay.solid .nav-burger{color:var(--navy)}
@media(max-width:1024px){.site-head.overlay .nav-list{background:#fff}.site-head.overlay .nav-list>li>a{color:var(--ink);background:none}.site-head.overlay .nav-list>li.active>a{color:#fff;background:var(--navy)}.site-head.overlay .has-mega.open>a{color:var(--navy);background:var(--stone)}.site-head.overlay .nav-list .caret{color:var(--gold)}.site-head.overlay .nav-list>li.active>a .caret{color:#fff}}

/* ---------- CU-style hero ---------- */
.cuhero{position:relative;min-height:78vh;display:flex;align-items:center;overflow:hidden;color:#fff;background:var(--navy-deep)}
.cuhero-slides{position:absolute;inset:0}
.cuhero-slides img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;opacity:0;transition:opacity 1.6s ease}
.cuhero-slides img.active{opacity:1}
.cuhero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.cuhero-dots{position:absolute;z-index:3;bottom:1.6rem;left:6%;display:flex;gap:.5rem}
.cuhero-dots button{width:11px;height:11px;border-radius:50%;border:none;background:rgba(255,255,255,.45);cursor:pointer;padding:0;transition:.3s}
.cuhero-dots button.active{background:var(--yellow);width:26px;border-radius:6px}

/* hero แบบกึ่งกลาง + ลิงก์ด่วนไอคอน */
.cuhero.center-hero{text-align:center;min-height:100vh;flex-direction:column;justify-content:center}
.cuhero.center-hero .veil{background:linear-gradient(rgba(8,16,40,.3),rgba(8,16,40,.48))}
.cuhero.center-hero .cuhero-in{max-width:1320px;margin:0 auto}
.cuhero.center-hero h2,.cuhero.center-hero p{margin-left:auto;margin-right:auto}
.quicklinks{position:absolute;left:0;right:0;bottom:6vh;z-index:2;display:flex;flex-wrap:nowrap;justify-content:center;gap:.7rem;padding:0 4%}
.ql{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;width:142px;flex:0 0 auto;min-height:128px;background:rgba(16,26,56,.26);border:1px solid rgba(255,255,255,.16);border-radius:18px;color:#fff;font-size:.95rem;font-weight:500;line-height:1.25;text-align:center;padding:1.1rem .55rem;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);transition:.25s}
.ql:hover{background:var(--yellow);color:var(--navy-deep);border-color:var(--yellow);transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.ql-ic{width:36px;height:36px;display:block;opacity:.95}
.ql-ic svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px){.quicklinks{flex-wrap:wrap}}
@media(max-width:560px){.ql{width:30%;min-height:90px;font-size:.78rem}}
.cuhero .veil{position:absolute;inset:0;background:linear-gradient(105deg,rgba(8,16,40,.92) 0%,rgba(8,16,40,.5) 55%,rgba(8,16,40,.15) 100%)}
.cuhero-in{position:relative;z-index:2;max-width:1240px;margin:0 auto;width:100%;padding:3rem 6%}
.cuhero .badge{display:inline-block;background:var(--yellow);color:var(--navy-deep);font-size:.8rem;font-weight:600;letter-spacing:.04em;padding:.35rem 1rem;border-radius:30px;margin-bottom:1.3rem}
.cuhero h2{font-family:'IBM Plex Sans Thai','Prompt',sans-serif;font-weight:700;font-size:clamp(2.1rem,4.6vw,4.4rem);line-height:1.26;letter-spacing:0;width:100%;max-width:100%;text-align:center;margin-bottom:1.1rem;text-shadow:0 2px 22px rgba(0,0,0,.45)}
.cuhero h2 .hl-light,.cuhero h2 .hl-strong{display:block;text-align:center}
/* หัวข้ออังกฤษยาวกว่า — ให้ตัดบรรทัดได้และขนาดพอดี ไม่ล้นจอ */
html[lang="en"] .cuhero h2{white-space:normal;font-size:clamp(2rem,4.6vw,3.8rem)}
.cuhero h2 .hl-light{font-weight:400}
.cuhero p{font-size:1.08rem;color:#dbe3f6;max-width:620px;margin-bottom:2rem}
.cuhero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.btn-yellow{background:var(--yellow);color:var(--navy-deep);padding:.85rem 2rem;font-weight:600;border-radius:6px;transition:.25s;display:inline-block}
.btn-yellow:hover{background:#fff}
.btn-ghost{border:1px solid rgba(255,255,255,.7);color:#fff;padding:.85rem 2rem;border-radius:6px;transition:.25s;display:inline-block}
.btn-ghost:hover{background:#fff;color:var(--navy)}

/* ---------- Feature tiles (การศึกษา/วิจัย/...) ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0;max-width:1600px;margin:0 auto}
.tile{position:relative;min-height:340px;display:flex;align-items:flex-end;overflow:hidden;color:#fff}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s ease}
.tile:hover img{transform:scale(1.07)}
.tile .veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,16,40,.9) 0%,rgba(8,16,40,.35) 60%,rgba(8,16,40,.15) 100%);transition:.3s}
.tile:hover .veil{background:linear-gradient(to top,rgba(18,42,99,.92) 0%,rgba(18,42,99,.45) 60%,rgba(18,42,99,.2) 100%)}
.tile-in{position:relative;z-index:2;padding:2rem 1.8rem}
.tile .en-tag{font-family:'Prompt',sans-serif;letter-spacing:.22em;text-transform:uppercase;font-size:.74rem;color:var(--yellow)}
.tile h3{font-family:'Prompt',sans-serif;font-weight:600;font-size:1.5rem;margin:.3rem 0 .4rem}
.tile p{font-size:.9rem;color:#d7def2;margin-bottom:.8rem}
.tile .more{font-size:.85rem;color:#fff;border-bottom:2px solid var(--yellow);padding-bottom:.15rem}

/* ---------- Ranking band ---------- */
.rankband{background:linear-gradient(120deg,var(--navy),var(--navy-soft));color:#fff;text-align:center;padding:3.5rem 6%}
.rankband .big{font-family:'Prompt',sans-serif;font-size:4.5rem;font-weight:700;color:var(--yellow);line-height:1}
.rankband p{max-width:620px;margin:.6rem auto 0;color:#dbe3f6}

/* ---------- Highlight feature ---------- */
.hl-feature{display:grid;grid-template-columns:1.3fr 1fr;gap:0;max-width:1240px;margin:0 auto;background:#fff;box-shadow:0 20px 50px rgba(11,28,69,.1)}
.hl-feature .img{position:relative;min-height:380px}
.hl-feature .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hl-feature .txt{padding:3rem 2.8rem;display:flex;flex-direction:column;justify-content:center}
.hl-feature .en-tag{font-family:'Prompt',sans-serif;letter-spacing:.25em;text-transform:uppercase;font-size:.78rem;color:var(--yellow-deep)}
.hl-feature h3{font-family:'Prompt',sans-serif;font-weight:600;color:var(--navy);font-size:1.7rem;line-height:1.45;margin:.5rem 0 1rem}
.hl-feature p{color:var(--grey);margin-bottom:1.5rem}

/* ---------- Quote / testimonial ---------- */
.quote-cu{position:relative;color:#fff;overflow:hidden;padding:6rem 6%}
.quote-cu img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}
.quote-cu .veil{position:absolute;inset:0;background:var(--navy-deep);opacity:.82}
.quote-cu .q-in{position:relative;z-index:2;max-width:860px;margin:0 auto;text-align:center}
.quote-cu .mark{font-family:'Prompt',sans-serif;font-size:4rem;color:var(--yellow);line-height:.6}
.quote-cu blockquote{font-family:'Prompt',sans-serif;font-size:clamp(1.3rem,2.6vw,1.9rem);font-weight:500;line-height:1.6;margin:1rem 0 1.5rem}
.quote-cu cite{font-style:normal;color:#c4cfee;font-size:.95rem}
.quote-cu cite b{color:var(--yellow);font-weight:600}

/* ---------- Join / careers CTA ---------- */
.join-cu{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;background:var(--stone)}
.join-cu .img{min-height:320px;position:relative}
.join-cu .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.join-cu .txt{padding:4rem 6%}
.join-cu h3{font-family:'Prompt',sans-serif;color:var(--navy);font-weight:600;font-size:1.9rem;margin-bottom:.5rem}
.join-cu p{color:var(--grey);margin-bottom:1.5rem;max-width:420px}
.join-links a{display:inline-block;margin:0 1.2rem .5rem 0;color:var(--navy);font-weight:500;font-size:.92rem;border-bottom:2px solid var(--yellow);padding-bottom:.15rem}

/* ---------- Facebook page plugin wrapper ---------- */
.fb-wrap{max-width:500px;margin:0 auto;background:#fff;box-shadow:0 14px 36px rgba(11,28,69,.1)}
.fb-wrap .fb-page,.fb-wrap .fb-page>span,.fb-wrap .fb-page iframe{width:100%!important}

/* ---------- Auto-loop card slider (ข่าวไหลต่อเนื่อง) ---------- */
.cardflow{position:relative;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.cardflow::-webkit-scrollbar{display:none}
.cardflow.dragging{cursor:grabbing}
.cardflow.dragging *{pointer-events:none}
.cardflow + .cardflow{margin-top:1.5rem}
.cardflow-track{display:flex;gap:1.5rem;width:max-content}
@keyframes cardflow{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.flow-card{flex:0 0 250px;position:relative;height:310px;overflow:hidden;color:#fff;display:flex;align-items:flex-end}
.flow-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.flow-card:hover img{transform:scale(1.07)}
.flow-card .veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,16,40,.9) 0%,rgba(8,16,40,.35) 60%,rgba(8,16,40,.1) 100%);transition:.3s}
.flow-card:hover .veil{background:linear-gradient(to top,rgba(18,42,99,.92) 0%,rgba(18,42,99,.45) 60%,rgba(18,42,99,.15) 100%)}
.flow-card .fc-in{position:relative;z-index:2;padding:1.2rem 1.2rem}
.flow-card .date{font-family:'Prompt',sans-serif;letter-spacing:.18em;text-transform:uppercase;font-size:.72rem;color:var(--yellow)}
.flow-card h4{font-family:'Prompt',sans-serif;font-weight:600;font-size:1rem;line-height:1.45;margin:.35rem 0 .25rem;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.flow-card p{font-size:.8rem;color:#eef1f8;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.flow-card .arrow{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:none;background:#fff;color:var(--navy);margin-top:.7rem;font-size:1rem;transition:.25s}
.flow-card:hover .arrow{background:var(--yellow);color:var(--navy-deep)}
@media(prefers-reduced-motion:reduce){.cardflow-track{animation:none}.cardflow{overflow-x:auto}}

/* ---------- Highlight slider (ข่าวเด่น การ์ดใหญ่แนวนอน) ---------- */
.hlflow{position:relative;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.hlflow::-webkit-scrollbar{display:none}
.hlflow.dragging{cursor:grabbing}
.hlflow.dragging *{pointer-events:none}
.hlflow-track{display:flex;gap:1.6rem;width:max-content}
.hl-card{flex:0 0 560px;max-width:86vw;height:340px;position:relative;overflow:hidden;border-radius:18px;color:#fff;display:flex;align-items:flex-end}
.hl-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.hl-card:hover img{transform:scale(1.05)}
.hl-card .veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,16,40,.92) 0%,rgba(8,16,40,.4) 55%,rgba(8,16,40,.1) 100%)}
.hl-card .hc-in{position:relative;z-index:2;padding:2rem 2.1rem}
.hl-card .tag{display:inline-block;background:var(--yellow);color:var(--navy-deep);font-size:.72rem;font-weight:600;letter-spacing:.04em;padding:.25rem .8rem;border-radius:999px;margin-bottom:.7rem}
.hl-card h3{font-family:'Prompt',sans-serif;font-weight:600;font-size:1.5rem;line-height:1.4;margin-bottom:1rem;max-width:90%;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hl-card .go{display:inline-flex;align-items:center;gap:.4rem;background:#fff;color:var(--navy);font-size:.85rem;font-weight:500;padding:.5rem 1.2rem;border-radius:999px;transition:.25s}
.hl-card:hover .go{background:var(--yellow);color:var(--navy-deep)}
@media(prefers-reduced-motion:reduce){.hlflow-track{animation:none}.hlflow{overflow-x:auto}}
@media(max-width:560px){.hl-card h3{font-size:1.3rem}}

/* ---------- CU-style footer ---------- */
.footer-cu{background:var(--navy-deep);color:#9fabd0;padding:4rem 6% 1.5rem;font-size:.9rem}
.footer-cu .fc-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem;max-width:1240px;margin:0 auto 2.5rem}
.footer-cu h5{font-family:'Prompt',sans-serif;color:#fff;margin-bottom:1rem;font-weight:600;font-size:1rem}
.footer-cu li{list-style:none;padding:.28rem 0}
.footer-cu a:hover{color:var(--yellow)}
.footer-cu .fc-brand .crest{width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--yellow),var(--yellow-deep) 70%,#9c7700);display:flex;align-items:center;justify-content:center;font-family:'Prompt',sans-serif;color:var(--navy-deep);font-size:1.1rem;font-weight:700;margin-bottom:1rem}
.footer-cu .fc-brand p{font-size:.85rem;line-height:1.9}
.footer-cu .socials{display:flex;gap:1.5rem;margin-top:1.1rem;align-items:center}
.footer-cu .socials a{display:flex;align-items:center;justify-content:center;color:#fff;opacity:.82;transition:.22s}
.footer-cu .socials a:hover{opacity:1;transform:translateY(-2px)}
.footer-cu .socials a svg{width:23px;height:23px;display:block}
.footer-cu .fc-copy{text-align:center;font-size:.75rem;border-top:1px solid rgba(255,255,255,.12);padding-top:1.4rem;letter-spacing:.05em}

/* ---------- Responsive (Chula components) ---------- */
@media(max-width:1024px){
  /* ===== เมนูมือถือ (ออกแบบใหม่) ===== */
  .nav-list{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;background:#fff;padding:.7rem .8rem 1.1rem;gap:.14rem;box-shadow:0 24px 44px rgba(11,28,69,.18);border-radius:0 0 22px 22px;max-height:calc(100vh - 5rem);max-height:calc(100dvh - 5rem);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;z-index:600}
  .nav-list.open{display:flex;animation:navDrop .26s cubic-bezier(.2,.7,.2,1)}
  @keyframes navDrop{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
  .nav-list>li{position:static}
  /* แก้บั๊ก: ลิงก์เต็มความกว้างแถว (เดิม inline-flex กว้างแค่ตัวอักษร) */
  .nav-list>li>a{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem;padding:.9rem 1rem;font-size:1.02rem;font-weight:400;color:var(--ink);border:none;border-radius:12px;transition:background .18s,color .18s}
  .nav-list>li>a:hover,.nav-list>li>a:active{background:var(--stone)}
  .nav-list>li.active>a{background:var(--navy);color:#fff;font-weight:600;box-shadow:none}
  .nav-list>li.active>a .caret{color:#fff}
  .nav-list .caret{font-size:.72rem;color:var(--gold);opacity:.95;transition:transform .25s}
  .has-mega.open>a{background:var(--stone);color:var(--navy)}
  .has-mega.open>a .caret{transform:rotate(180deg)}
  .has-mega>.mega{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-top:none;display:none;background:transparent}
  .has-mega.open>.mega{display:block;animation:navDrop .2s ease}
  .mega-in{grid-template-columns:1fr;gap:.2rem;padding:.2rem .2rem .5rem .3rem}
  .mega-col{padding:0}
  .mega-col h6{font-family:'Prompt',sans-serif;font-size:.78rem;color:var(--gold);border:none;letter-spacing:.03em;margin:.6rem 0 .1rem;padding:0 0 0 1.1rem}
  .mega-col a{display:block;padding:.55rem 1rem .55rem 1.4rem;border-radius:10px;font-size:.9rem;color:var(--grey);transition:.16s}
  .mega-col a:hover,.mega-col a:active{background:var(--stone);color:var(--navy);padding-left:1.4rem}
  .mega-feature{display:none}
  .nav-cta{margin-top:.7rem;text-align:center;justify-content:center;border-radius:12px;padding:.95rem 1rem!important}
  .nav-burger{display:block}
}
@media(max-width:860px){
  .hl-feature,.join-cu{grid-template-columns:1fr}
  .hl-feature .img,.join-cu .img{min-height:240px}
  .footer-cu .fc-grid{grid-template-columns:1fr 1fr}
}

/* ============================================================
   ====================  ROUNDED "มนๆ" THEME  ================
   มุมมนนุ่มทั่วทั้งเว็บ
   ============================================================ */
/* ปุ่มทรงแคปซูล */
.btn-solid,.btn-line,.btn-yellow,.btn-ghost,.btn-submit,.nav-cta,.apply,
.dl .get,.cta .btn-solid,.programs .btn-line{border-radius:999px}

/* การ์ดและกล่องต่าง ๆ มุมมน + ตัดขอบรูปให้โค้งตาม */
.card,.prog,.roster .r,.dl,.mega-feature,.fb-wrap,.numbers{border-radius:18px}
.tile,.flow-card,.news article,.hl-feature,.gallery figure,.acc-item{border-radius:18px;overflow:hidden}
.news .thumb{border-radius:0}
.feature .media img{border-radius:18px}
.map-embed{border-radius:18px}
.person .photo{border-radius:16px}
.mega-feature{border-radius:16px}

/* ช่องกรอกฟอร์มมุมมน */
.form-field input,.form-field textarea,.form-field select{border-radius:12px}

/* การ์ดผู้บริหารให้ภาพมน */
.exec .person .photo{border-radius:16px}

/* ตารางบนมือถือ: เลื่อนแนวนอนได้ ไม่บีบคอลัมน์ */
@media(max-width:640px){
  .table-wrap{-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px}
  .table-wrap table.data{min-width:600px;font-size:.85rem;border-radius:0}
  table.data th,table.data td{padding:.65rem .75rem}
  /* ตารางปฏิทิน 2 คอลัมน์ ไม่ต้องกว้างมาก */
  .table-wrap table.dir-table{min-width:0}
}

/* ============================================================
   ==========  RESPONSIVE FIXES — มือถือ / แท็บเล็ต  ==========
   ============================================================ */
/* กันเลื่อนแนวนอน (ตัวการทำให้หน้าเพี้ยน) */
html,body{overflow-x:hidden}

/* แท็บเล็ตและจอแคบลงมา (≤1024px) */
@media(max-width:1024px){
  /* หัวข้อ hero ให้ตัดบรรทัดได้ (เลิก nowrap ที่ทำให้ล้นจอ) */
  .cuhero h2{white-space:normal}
  /* hero ภาพเต็มจอแบบจุฬา */
  .cuhero.center-hero{min-height:100vh;justify-content:center}
  /* กล่องลิงก์ด่วน: แถวเดียวเลื่อนแนวนอนได้ ติดด้านล่างทับภาพ */
  .quicklinks{position:absolute;left:0;right:0;bottom:4.5vh;margin-top:0;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:.7rem;padding:0 5%;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .quicklinks::-webkit-scrollbar{display:none}
  .ql{width:120px;flex:0 0 120px}
}

/* โทรศัพท์ (≤640px) */
@media(max-width:640px){
  .cuhero h2{font-size:clamp(1.75rem,7vw,2.7rem);line-height:1.38}
  .quicklinks{bottom:7.5vh;gap:.6rem;padding:0 5%}
  .ql{width:110px;flex:0 0 110px;min-height:96px;font-size:.8rem;padding:.85rem .4rem;gap:.5rem}
  .ql-ic{width:28px;height:28px}
  section{padding:3.2rem 6%}
  .head{margin-bottom:2rem}
  /* ซ่อนคำบรรยายยาวบนทॉปบาร์ เหลือเฉพาะลิงก์ */
  .topbar-in>span:first-child{display:none}
  .topbar-in{justify-content:center}
  /* แบนเนอร์ย่อยเตี้ยลงเล็กน้อย */
  .subhero{min-height:240px;padding:4.5rem 6% 2.5rem}
  /* การ์ดข่าวเด่นเป็นแนวตั้งแบบจุฬา โชว์ทีละใบ มีขอบใบข้างโผล่ */
  .hl-card{flex:0 0 76vw;max-width:76vw;height:300px;min-height:0}
  .hl-card .hc-in{padding:1.6rem 1.7rem}
  .hlflow{padding:0}
  /* การ์ดข่าวสารแถวล่างให้สูงขึ้นนิดบนมือถือ */
  .flow-card{flex:0 0 58vw;height:240px;min-height:0}
}

/* ============================================================
   ลูกเล่นสไตล์จุฬาฯ — scroll reveal / progress bar / back-to-top / hover
   ============================================================ */

/* เนื้อหาค่อย ๆ จางขึ้นเมื่อเลื่อนถึง */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.6,.2,1),transform .7s cubic-bezier(.2,.6,.2,1);will-change:opacity,transform}
.reveal.in-view{opacity:1;transform:none}
/* ไล่จังหวะการ์ดในแถวเดียวกันให้ขึ้นทีละใบเล็กน้อย */
.cards .reveal:nth-child(2),.why2 .reveal:nth-child(2){transition-delay:.08s}
.cards .reveal:nth-child(3),.why2 .reveal:nth-child(3){transition-delay:.16s}
.cards .reveal:nth-child(4){transition-delay:.24s}

/* แถบความคืบหน้าการอ่าน (เส้นทองด้านบนสุด) */
#read-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:600;background:linear-gradient(90deg,var(--gold),var(--gold-light));box-shadow:0 0 8px rgba(199,154,42,.55);pointer-events:none;transition:width .12s ease-out}

/* ปุ่มกลับขึ้นบนสุด */
#to-top{position:fixed;right:1.4rem;bottom:1.4rem;width:46px;height:46px;border:none;border-radius:50%;background:var(--navy);color:#fff;font-size:1.35rem;line-height:1;cursor:pointer;z-index:550;display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(16px) scale(.9);pointer-events:none;box-shadow:0 8px 24px rgba(18,42,99,.3);transition:opacity .3s ease,transform .3s ease,background .25s ease}
#to-top.show{opacity:1;transform:none;pointer-events:auto}
#to-top:hover{background:var(--gold);color:var(--navy-deep);transform:translateY(-3px)}
@media(max-width:560px){#to-top{right:1rem;bottom:1rem;width:42px;height:42px}}

/* hover เพิ่มเติม — การ์ดบุคลากรลอยขึ้นเล็กน้อยตอนชี้เมาส์ */
.person{transition:transform .3s ease}
.person:hover{transform:translateY(-6px)}
.person .photo{transition:transform .5s ease}
.person:hover .photo{transform:scale(1.03)}

/* เคารพการตั้งค่า "ลดการเคลื่อนไหว" ของผู้ใช้ */
@media(prefers-reduced-motion: reduce){
  .reveal{opacity:1!important;transform:none!important;transition:none}
  #read-progress,#to-top,.person,.person .photo{transition:none}
  .person:hover,.person:hover .photo{transform:none}
}
