/* Bridge: PHP pages use modern shell; keep Bootstrap off the global look */
body {
  margin: 0;
  font-family: "Anuphan", system-ui, sans-serif;
  background: var(--surface-tint, #f3f7fb);
  color: var(--ink, #1a2332);
}
img { max-width: 100%; height: auto; }

/* Hide legacy template leftovers when modern layout is active */
body.tsu-modern #preloader,
body.tsu-modern .back-to-top { display: none !important; }

.site-header__inner .brand__logo,
.brand img.brand__logo,
.logo img {
  max-height: 44px;
  width: auto;
}
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; text-decoration: none; color: inherit; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(145deg, var(--tsu-blue, #2b6cb0), var(--tsu-blue-deep, #1a4a82));
  color: #fff; display: grid; place-items: center;
  font-family: "Be Vietnam Pro", "Anuphan", sans-serif;
  font-weight: 800; font-size: .7rem; flex-shrink: 0;
}
.brand__name {
  display: block;
  font-family: "Be Vietnam Pro", "Anuphan", sans-serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--tsu-blue-deep, #1a4a82); line-height: 1.2;
}
.brand__sub { display: block; font-size: .75rem; color: var(--ink-muted, #5c768d); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Legacy pages that still use .container — soft spacing */
main#main > .container,
main#main > section > .container {
  max-width: var(--max, 1120px);
  margin-inline: auto;
  padding-inline: var(--space, 1.25rem);
}

/* Mobile nav open state for PHP header */
.mobile-nav.is-open { display: grid; }
@media (min-width: 960px) {
  .mobile-nav { display: none !important; }
  .menu-toggle { display: none !important; }
  .nav { display: flex; }
}

.nav__group { position: relative; }
.nav__group > button {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__group > button:hover { background: var(--tsu-blue-soft, #eaf3fb); color: var(--tsu-blue-deep, #1a4a82); }
.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line, #d7e3f0);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 12px 40px rgba(26,63,122,.1));
  padding: 0.4rem;
  z-index: 60;
}
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub { display: grid; }
.nav__sub a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.nav__sub a:hover { background: var(--tsu-blue-soft, #eaf3fb); }

.mobile-nav__label {
  padding: 0.75rem 0.85rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted, #5c768d);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-nav__sub { padding-left: 1.25rem !important; font-size: 0.95rem; }

/* Soften old team/member blocks if any leftover pages use them */
.team.section-bg { background: transparent !important; padding: 0 !important; }

/* —— โทนสีตามโลโก้ TSU: ฟ้า #3288C9 · ส้ม #F4881D · เทา #6D6E71 —— */
.topbar { border-bottom: 3px solid var(--tsu-gold); }
.site-header { border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(27,79,128,.06); }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--tsu-blue) 0 66%, var(--tsu-gold) 66% 100%); }
.brand__logo { height: 48px; width: auto; }
.nav > a, .nav__group > button { position: relative; }
.nav > a::after, .nav__group > button::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--tsu-gold); transform: scaleX(0); transition: transform .2s; }
.nav > a:hover::after, .nav__group:hover > button::after, .nav__group:focus-within > button::after { transform: scaleX(1); }
.nav > a:hover, .nav__group > button:hover { background: #fff4e8; color: var(--tsu-blue-deep); }
.nav__sub a:hover { background: #fff4e8; }
.header-actions .btn--ghost { border-color: var(--tsu-gold); color: var(--tsu-red); }
.header-actions .btn--ghost:hover { background: var(--tsu-gold); color: #fff; }
.hero-simple__eyebrow { background: #fff1e0; color: var(--tsu-red); }
.hero-simple__title { color: var(--tsu-blue-deep); }
.steps li:nth-child(2) .step__icon { background: var(--tsu-gold); fill: #fff; }
.steps li:nth-child(2) .step:hover .step__icon { background: #e07a10; box-shadow: 0 10px 28px rgba(244,136,29,.35); }
.step:hover { border-color: var(--tsu-gold); }
.search-panel .btn--primary { background: var(--tsu-gold); color: #1d1200; box-shadow: 0 8px 24px rgba(244,136,29,.35); }
.search-panel .btn--primary:hover { background: #e07a10; color: #fff; }
.search-panel { border-top: 3px solid var(--tsu-blue); }

/* —— ติดตั้งท้ายหน้าให้ชิดล่างจอเสมอ (ไม่มีช่องว่างใต้ footer) —— */
body.tsu-modern { min-height: 100vh; display: flex; flex-direction: column; }
body.tsu-modern > main { flex: 1 0 auto; }
body.tsu-modern > .site-footer { margin-top: 0; }

/* —— หน้าติดต่อ (สายตรงผู้บริหาร) —— */
.ct-hero { background: linear-gradient(160deg, var(--tsu-blue-deep), var(--tsu-blue-mid)); color: #fff; text-align: center; border-bottom: 4px solid var(--tsu-gold); }
.ct-hero__inner { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem,7vw,4.5rem) var(--space); }
.ct-hero__eyebrow { display: inline-block; margin: 0 0 .75rem; padding: .3rem .9rem; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .85rem; font-weight: 600; }
.ct-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,5vw,2.8rem); margin: 0 0 .6rem; line-height: 1.2; }
.ct-hero__lead { margin: 0 auto; max-width: 38rem; opacity: .92; }
.ct-wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--space) 3rem; }
.ct-alert { display: flex; gap: .6rem; align-items: center; padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; font-weight: 500; }
.ct-alert--ok { background: #e6f6ec; color: #17623a; border: 1px solid #b8e2c8; }
.ct-alert--err { background: #fdecea; color: #a12a1f; border: 1px solid #f3c1bb; }
.ct-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ct-grid { grid-template-columns: 340px minmax(0,1fr); align-items: start; } }
.ct-info { background: linear-gradient(160deg, var(--tsu-blue-deep), var(--tsu-blue-mid)); color: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--tsu-gold); }
.ct-info h2 { margin: 0 0 1.2rem; font-size: 1.2rem; }
.ct-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ct-info li { display: flex; gap: .85rem; align-items: flex-start; line-height: 1.5; }
.ct-info li > i { flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--tsu-gold); color: #fff; font-size: 1.05rem; }
.ct-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ct-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem,3vw,2rem); }
.ct-form h2 { margin: 0 0 1.2rem; font-size: 1.25rem; color: var(--tsu-blue-deep); }
.ct-form form { display: grid; gap: 1rem; }
.ct-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ct-row { grid-template-columns: 1fr 1fr; } }
.ct-submit { justify-self: start; min-height: 48px; padding-inline: 1.6rem; background: var(--tsu-gold); color: #1d1200; box-shadow: 0 8px 24px rgba(244,136,29,.35); }
.ct-submit:hover { background: #e07a10; color: #fff; }
.ct-grid--single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.ct-hero__inner { padding-block: clamp(1.25rem,3vw,2rem); }

/* —— หัวข้อส่วน: ชิดซ้าย · ตัวเล็กลง · เส้นส้มอ้างอิงโลโก้ —— */
.section__head,
.stats-band__head,
.section__head--center {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .65rem 1rem;
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: .55rem;
  border-bottom: 0;
}
.section__head > div,
.stats-band__head > div,
.section__head--center > div {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.section__head .link-all,
.section__head--center .link-all {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}
.section__head .section__desc,
.stats-band__head .section__desc,
.section__head--center .section__desc {
  display: block;
  margin: .2rem 0 0;
  text-align: left;
  font-size: .9rem;
  color: var(--ink-muted);
}
.section__title {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  color: var(--tsu-blue-deep);
  line-height: 1.25;
  margin: 0;
}
.section__title::after {
  content: "";
  display: block !important;
  width: 2.75rem;
  height: 3px;
  margin-top: .4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tsu-gold) 0%, #f6b15a 70%, transparent 100%);
}
.link-all { border-bottom: 0 !important; padding-bottom: .2rem; }
.link-all:hover { background: transparent; text-decoration: underline; }
.course-card__media { display: block; }

/* —— เลขหน้า —— */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pager__btn { min-width: 2.5rem; height: 2.5rem; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--tsu-blue-deep); font-weight: 500; transition: background .15s, color .15s; }
.pager__btn:hover { background: #fff4e8; border-color: var(--tsu-gold); }
.pager__btn.is-active { background: var(--tsu-blue-mid); color: #fff; border-color: var(--tsu-blue-mid); }

/* —— Hero + ค้นหา แบบรูปอ้างอิง —— */
.hero-search { position: relative; isolation: isolate; text-align: center; background: #dcebf7 url("../img/hero-bg-books.webp") center / cover no-repeat; }
.hero-search::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(232,243,251,.8)); }
.hero-search__inner { max-width: var(--max); margin: 0 auto; padding: clamp(1.75rem,4vw,2.75rem) var(--space) clamp(1.75rem,4vw,2.5rem); }
.hero-search__title { margin: 0 0 1.1rem; font-family: var(--font-display); font-size: clamp(1.7rem,4vw,2.4rem); font-weight: 800; color: var(--tsu-blue-deep); letter-spacing: -.02em; line-height: 1.15; }
.hero-search .search-band:not(.search-band--flat) { max-width: 860px; margin: 0 auto; padding: 0; background: none; border: 0; }
.hero-search .search-band:not(.search-band--flat) .search-panel { max-width: none; margin: 0; padding: 0; gap: 0; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(27,79,128,.18); display: grid; grid-template-columns: minmax(0,1fr); }
@media (min-width: 720px) { .hero-search .search-band:not(.search-band--flat) .search-panel { grid-template-columns: 230px minmax(0,1fr) auto; } }
.hero-search .search-panel .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hero-search .search-panel .field select, .hero-search .search-panel .field input { height: 56px; border: 0; border-radius: 0; background: #fff; font-size: .95rem; }
.hero-search .search-panel .field:first-of-type select { border-right: 1px solid var(--line); font-weight: 600; }
.hero-search .search-panel .btn { min-height: 56px; border-radius: 0; padding-inline: 1.6rem; background: var(--tsu-blue-deep); color: #fff; box-shadow: none; }
.hero-search .search-panel .btn:hover { background: var(--tsu-blue-ink); }

/* —— การ์ดบริการ 3 ขั้นตอน แบบรูปอ้างอิง —— */
.quick__wrap { max-width: var(--max); margin: 0 auto; padding: 1.75rem var(--space) .5rem; }
.quick .hero-simple__steps-title { position: static; width: auto; height: auto; margin: 0 0 .9rem; overflow: visible; clip: auto; font-size: 1.1rem; text-align: left; }
.quick .step { justify-items: start; text-align: left; padding: 1rem 1.05rem 1.1rem; gap: .5rem; border: 1px solid #d7e3f0; border-top: 3px solid var(--tsu-blue-deep); border-radius: 14px; }
.quick .step__top { justify-content: flex-start; margin: 0; }
.quick .step__icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--tsu-blue-deep); fill: #fff; }
.quick .step strong { font-size: 1rem; }
.quick .step .step__desc { color: var(--ink-muted); font-size: .88rem; line-height: 1.5; }
.quick .step .step__tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--tsu-blue-soft); color: var(--tsu-blue-deep); font-size: .72rem; font-weight: 600; }
.quick .steps li:nth-child(2) .step { border-top-color: var(--tsu-gold); }

/* —— ลดพื้นที่ว่าง / ให้หน้าสั้นลง —— */
.fbmsn-slot { height: 0; overflow: visible; line-height: 0; }
.section { padding-block: clamp(1rem, 2.4vw, 1.5rem); }
.section__head,
.stats-band__head { margin-bottom: .85rem; padding-bottom: .45rem; }
.stats-band { margin-top: 0; padding-bottom: .5rem; }
.stats-band__source { margin-top: .5rem; }
.top10-section { padding-top: 0; }
.site-footer__inner { padding-block: clamp(1.25rem, 3vw, 1.75rem); gap: 1.25rem; }
.site-footer { margin-top: .5rem; }
.hero-search__inner { padding-block: clamp(1.1rem, 2.5vw, 1.6rem); }
.hero-search__title { margin-bottom: .75rem; font-size: clamp(1.5rem, 3.4vw, 2rem); }

/* —— 3 ขั้นตอน: ไอคอนวงกลม + คำอธิบายสั้น + CTA —— */
.quick__wrap { padding: .9rem var(--space) .85rem; }
.quick .hero-simple__steps-title {
  position: static; width: auto; height: auto; margin: 0 0 .75rem;
  overflow: visible; clip: auto; font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  text-align: center; color: var(--tsu-blue-deep);
}
.quick .steps { gap: .75rem; }
.quick .step {
  justify-items: center; text-align: center;
  padding: .85rem .85rem 1rem; gap: .4rem;
  border: 1px solid #d7e3f0; border-top-width: 1px; border-radius: 16px;
}
.quick .steps li:nth-child(2) .step { border-top-color: #d7e3f0; }
.quick .step__top { justify-content: center; }
.quick .step__icon { width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--tsu-sky); fill: #fff; }
.quick .step:hover .step__icon { background: var(--tsu-blue); }
.quick .steps li:nth-child(2) .step__icon { background: var(--tsu-gold); }
.quick .step strong { font-size: .98rem; }
.quick .step .step__desc {
  display: block; max-width: 14rem; margin: 0 auto;
  color: var(--ink-muted); font-size: .86rem; line-height: 1.45; font-weight: 500;
}
.quick .step .step__tag { display: none; }
.quick__cta { margin-top: 1rem; }
.course-card__org {
  max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* —— หน้าผลการค้นหา —— */
.search-summary { margin: .35rem 0 0; color: var(--ink-muted); font-size: .95rem; }
.search-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-muted); background: #fff; border: 1px dashed rgba(50,136,201,.35); border-radius: var(--radius); }
.section__head .search-summary { display: block; }

/* —— 3 ขั้นตอน อยู่ใต้ชื่อเว็บในส่วนหัว —— */
.hero-search .steps { max-width: 760px; margin: 0 auto 1rem; gap: .6rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.hero-search .step {
  flex-direction: row; display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .5rem .7rem;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(27,79,128,.06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-search .step:hover {
  background: rgba(255,255,255,.48);
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 6px 18px rgba(27,79,128,.1);
}
.hero-search .step__top { margin: 0; }
.hero-search .step__icon { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--tsu-sky); fill: #fff; }
.hero-search .steps li:nth-child(2) .step__icon { background: var(--tsu-gold); }
.hero-search .step strong { font-size: .92rem; line-height: 1.25; text-align: left; }
.hero-search .step__desc, .hero-search .step__tag { display: none; }
@media (max-width: 640px) { .hero-search .steps { grid-template-columns: 1fr; max-width: 360px; } }

/* —— หน้าเนื้อหา / รายการเมนู / ติดต่อเรา (แผงพื้นฟ้าอ่อน) —— */
.pg-hero { background: linear-gradient(160deg, var(--tsu-blue-deep), var(--tsu-blue-mid)); color: #fff; border-bottom: 4px solid var(--tsu-gold); }
.pg-hero__inner { max-width: var(--max); margin: 0 auto; padding: clamp(1.5rem,4vw,2.4rem) var(--space); }
.pg-hero__crumb { margin: 0 0 .4rem; font-size: .85rem; opacity: .9; }
.pg-hero__crumb a:hover { text-decoration: underline; }
.pg-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem,3.6vw,2.2rem); line-height: 1.25; }
.pg-wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--space) 2.5rem; }
.pg-panel { background: #f7fafd; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem,4vw,2.75rem); }
.pg-img { text-align: center; margin: 0 0 1.25rem; }
.pg-img img { max-width: 100%; height: auto; border-radius: 12px; }
.cms-content { line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.cms-content h1, .cms-content h2, .cms-content h3 { color: var(--tsu-blue-deep); font-weight: 500; }
.cms-content img, .cms-content iframe { max-width: 100%; }
.cms-content .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin: 0; }
.cms-content .row > [class*="col"] { width: auto; max-width: none; padding: 0; }
.pg-intro { margin-bottom: 1.25rem; }
.pg-links { display: grid; gap: .6rem; }
@media (min-width: 760px) { .pg-links { grid-template-columns: 1fr 1fr; } }
.pg-link { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); line-height: 1.4; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pg-link > .bi:first-child { flex: 0 0 auto; font-size: 1.3rem; color: var(--tsu-gold); }
.pg-link span { flex: 1; }
.pg-link__go { color: var(--tsu-sky); }
.pg-link:hover { border-color: var(--tsu-gold); box-shadow: 0 8px 22px rgba(27,79,128,.1); transform: translateY(-1px); }

.ct-cols { display: grid; gap: 2rem; }
@media (min-width: 900px) { .ct-cols { grid-template-columns: 1.1fr 1fr 1fr; gap: 3rem; } }
.ct-col > .bi { font-size: 1.15rem; color: var(--ink-muted); }
.ct-col h2 { margin: .15rem 0 .6rem; font-size: 1.5rem; font-weight: 500; color: #44505a; }
.ct-col .ct-col__sub { margin-top: 1.25rem; }
.ct-col p { margin: 0 0 .5rem; color: #44505a; line-height: 1.6; }
.ct-col .ct-col__small { font-size: .92rem; }
.ct-col a { color: var(--tsu-blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.ct-map { margin: 0 0 1.25rem; }
.ct-map iframe { display: block; width: 100%; max-width: 300px; height: 250px; border: 0; }
.ct-map figcaption { max-width: 300px; margin-top: .4rem; font-size: .9rem; color: #44505a; line-height: 1.55; }

/* —— เลือกตามวัย อยู่ในส่วนหัว เหนือแถบค้นหา —— */
.hero-paths { max-width: 760px; margin: 0 auto 1.1rem; }
.hero-paths__title { margin: 0 0 .35rem; font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 700; color: var(--tsu-blue-deep); }
.hero-paths__note { margin: 0 0 .75rem; font-size: .88rem; color: var(--ink-muted); font-weight: 500; }
.hero-paths .pathway__hint { color: #3d6a93; font-size: .72rem; font-weight: 500; }
.hero-search .pathway { max-width: none; gap: .25rem .1rem; justify-content: center; align-items: flex-start; }
.hero-search .pathway__item { width: clamp(5.2rem, 18vw, 7.6rem); gap: .4rem; }
.hero-search .pathway__icon { width: clamp(2.9rem, 8vw, 3.5rem); height: clamp(2.9rem, 8vw, 3.5rem); }
.hero-search .pathway__label { font-size: clamp(.78rem, 1.6vw, .88rem); font-weight: 600; }
.hero-search .pathway__arrow { margin-top: .8rem; font-size: 1.2rem; }
@media (max-width: 520px) { .hero-search .pathway { grid-template-columns: repeat(4, 1fr); gap: .5rem; } .hero-search .pathway__item { width: auto; } .hero-search .pathway__arrow { display: none; } }
.ct-col a { text-decoration: none; }
.ct-col a:hover { text-decoration: none; opacity: .8; }
.ct-col .ct-social { display: inline-block; font-size: 2.2rem; line-height: 1; color: #3b5998; }

/* —— TOP 10: พื้นหลังฟ้าอ่อน —— */
.top10 { background: linear-gradient(135deg, #e3f0fb 0%, #c9e0f5 100%); color: var(--tsu-blue-deep); border: 1px solid #b9d5ee; box-shadow: 0 10px 30px rgba(50,136,201,.14); }
.top10__title { color: var(--tsu-blue-deep); }
.top10__hint { color: #3d6a93; opacity: 1; }
.top10 .course-card { box-shadow: 0 3px 12px rgba(27,79,128,.12); }

/* —— สถิติ: ไม่มีการ์ดพื้นขาว เหลือเฉพาะข้อความ —— */
.stat-card { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.stat-card:hover { transform: none; box-shadow: none; }

/* —— DASHBOARD: เหลือเฉพาะข้อความ ไม่มีปุ่มพื้นสี —— */
.stats-band__dashboard {
  background: transparent; box-shadow: none; padding: 0; border-radius: 0;
  color: var(--tsu-blue-ink); text-decoration: none !important;
  display: inline-flex; align-items: center; gap: .4rem;
}
.stats-band__dashboard:hover {
  background: transparent; box-shadow: none; transform: none;
  color: var(--tsu-blue-deep); text-decoration: none !important;
}

/* ---- TOP 10 wow ---- */
.top10 { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 0%, #fff6e6 0, transparent 38%), radial-gradient(circle at 95% 100%, #bcdcf6 0, transparent 45%), linear-gradient(135deg, #e3f0fb 0%, #c4ddf4 100%); }
.top10::before { content: ''; position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(244,136,29,.28), transparent 68%); pointer-events: none; }
.top10::after { content: ''; position: absolute; width: 260px; height: 260px; left: -80px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(50,136,201,.25), transparent 68%); pointer-events: none; }
.top10__head, .top10-grid, .top10-ranks { position: relative; z-index: 1; }
.top10__title { font-weight: 800; letter-spacing: -.01em; background: linear-gradient(90deg, #1b4f80 0%, #3288C9 55%, #F4881D 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.top10__flame { display: inline-block; -webkit-text-fill-color: initial; animation: t10flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes t10flame { 0%,100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18) rotate(4deg); } }
.top10 .course-card { border: 1px solid rgba(255,255,255,.8); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s; animation: t10in .6s both; }
.top10 .course-card:nth-child(2){animation-delay:.05s}.top10 .course-card:nth-child(3){animation-delay:.1s}.top10 .course-card:nth-child(4){animation-delay:.15s}.top10 .course-card:nth-child(5){animation-delay:.2s}.top10 .course-card:nth-child(6){animation-delay:.25s}.top10 .course-card:nth-child(7){animation-delay:.3s}.top10 .course-card:nth-child(8){animation-delay:.35s}.top10 .course-card:nth-child(9){animation-delay:.4s}.top10 .course-card:nth-child(10){animation-delay:.45s}
@keyframes t10in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.top10 .course-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 36px rgba(27,79,128,.28); }
.top10 .course-card__media img { transition: transform .5s; }
.top10 .course-card:hover .course-card__media img { transform: scale(1.08); }
.top10 .course-card__rank { width: 42px; height: 42px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.top10 .course-card__rank small { display: block; font-size: .5rem; line-height: 1; font-weight: 700; letter-spacing: .08em; }
.top10 .course-card__rank { align-content: center; }
.top10 .course-card__rank b { font-size: 1rem; line-height: 1; }
.top10 .course-card:nth-child(1) .course-card__rank { background: linear-gradient(135deg,#ffd75e,#f4a000); color: #5a3a00; width: 48px; height: 48px; animation: t10pulse 2s ease-in-out infinite; }
.top10 .course-card:nth-child(2) .course-card__rank { background: linear-gradient(135deg,#f4f6f8,#aab4bf); color: #3b4650; }
.top10 .course-card:nth-child(3) .course-card__rank { background: linear-gradient(135deg,#f0b27a,#b8672b); color: #fff; }
.top10 .course-card:nth-child(n+4) .course-card__rank { background: linear-gradient(135deg,#3288C9,#1b4f80); color: #fff; }
.top10 .course-card:nth-child(1) { box-shadow: 0 8px 24px rgba(244,160,0,.35); }
@keyframes t10pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,160,0,.55), 0 4px 12px rgba(0,0,0,.3); } 50% { box-shadow: 0 0 0 9px rgba(244,160,0,0), 0 4px 12px rgba(0,0,0,.3); } }
@media (prefers-reduced-motion: reduce) { .top10 .course-card, .top10__flame, .top10 .course-card:nth-child(1) .course-card__rank { animation: none; } }
.top10__flame{vertical-align:-5px;margin-right:.15rem}.top10__flame svg{display:block;filter:drop-shadow(0 2px 4px rgba(244,136,29,.5))}
/* TOP 10: solid title + background pattern */
.top10__title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--tsu-blue-deep, #1b4f80); }
.top10 { background:
  radial-gradient(circle at 12% 0%, #fff6e6 0, transparent 38%),
  radial-gradient(circle at 95% 100%, #bcdcf6 0, transparent 45%),
  radial-gradient(rgba(50,136,201,.22) 1.6px, transparent 1.8px) 0 0 / 22px 22px,
  repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 26px),
  linear-gradient(135deg, #e3f0fb 0%, #c4ddf4 100%); }

/* TOP 10: dark blue banner style */
.top10 { background:
  radial-gradient(circle at 90% -10%, rgba(255,255,255,.10) 0 120px, transparent 121px),
  radial-gradient(circle at 78% 120%, transparent 0 96px, rgba(255,255,255,.09) 97px 112px, transparent 113px),
  radial-gradient(circle at 8% 110%, rgba(244,136,29,.22), transparent 40%),
  linear-gradient(120deg, #123f6b 0%, #1b4f80 45%, #2a7bbd 100%); color: #fff; border: 0; box-shadow: 0 14px 36px rgba(18,63,107,.35); padding-top: 2rem; }
.top10::before, .top10::after { display: none; }
.top10__head { padding-right: 120px; align-items: flex-end; }
.top10__eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #ffc27a; margin-bottom: .55rem; }
.top10__eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--tsu-gold, #F4881D); display: block; }
.top10__eyebrow span { width: 44px; height: 1px; background: rgba(255,255,255,.45); display: block; }
.top10__title { color: #fff; font-size: clamp(1.6rem,3.4vw,2.2rem); }
.top10__title em { font-style: normal; color: #ffb15c; }
.top10__hint { color: rgba(255,255,255,.88); opacity: 1; }
.top10__badge { position: absolute; z-index: 2; right: 1.4rem; top: 1.1rem; width: 86px; height: 86px; border-radius: 18px; background: linear-gradient(145deg,#ffa23a,#F4881D); color: #fff; display: grid; place-content: center; text-align: center; transform: rotate(6deg); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.top10__badge small { font-size: .72rem; font-weight: 800; letter-spacing: .14em; line-height: 1; }
.top10__badge b { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.top10 .btn--light { background: #fff; color: var(--tsu-blue-deep, #1b4f80); }
.top10 .btn--light:hover { background: #fdebd9; }
@media (max-width: 640px) { .top10__head { padding-right: 0; padding-top: 3.2rem; } .top10__badge { width: 66px; height: 66px; right: 1rem; top: .9rem; } .top10__badge b { font-size: 1.6rem; } }
/* TOP 10: lighter logo-blue */
.top10 { background:
  radial-gradient(circle at 90% -10%, rgba(255,255,255,.14) 0 120px, transparent 121px),
  radial-gradient(circle at 78% 120%, transparent 0 96px, rgba(255,255,255,.12) 97px 112px, transparent 113px),
  radial-gradient(circle at 8% 110%, rgba(244,136,29,.25), transparent 40%),
  linear-gradient(120deg, #2678b8 0%, #3288C9 50%, #5aa9e0 100%); box-shadow: 0 14px 36px rgba(50,136,201,.32); }
/* separate stats from FAQ */
.stats-band { padding-bottom: .75rem; margin-bottom: 1.25rem; position: relative; }
.stats-band::after { display: none !important; content: none; }
.stats-band__desc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  margin: .35rem 0 0;
  font-size: .9rem;
  color: var(--ink-muted);
}
.stats-band__desc .stats-band__dashboard {
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--tsu-blue-ink);
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.stats-band__live {
  position: relative;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: stats-live-pulse 1.6s ease-out infinite;
}
.stats-band__live::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, .45);
}
@keyframes stats-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .stats-band__live { animation: none; }
}
.stats-band__desc .stats-band__source-note { color: var(--ink-muted); font-weight: 500; }
#faq { padding-top: 0; }
/* nav: make buttons match links */
.nav > a, .nav__group > button, .nav__group > a { font-family: inherit; font-size: .9rem; font-weight: 500; line-height: inherit; letter-spacing: normal; }

/* hero title image */
.hero-search__title { background: none; margin: 0 0 .5rem; line-height: 0; }
.hero-search__title img { display: block; margin: 0 auto; width: min(300px, 72vw); height: auto; background: none; }

/* TOP 10: banner 40% lighter + dark text for contrast */
.top10 { background:
  radial-gradient(circle at 90% -10%, rgba(255,255,255,.30) 0 120px, transparent 121px),
  radial-gradient(circle at 78% 120%, transparent 0 96px, rgba(255,255,255,.28) 97px 112px, transparent 113px),
  radial-gradient(circle at 8% 110%, rgba(244,136,29,.18), transparent 40%),
  linear-gradient(120deg, #7daed4 0%, #84b8df 50%, #9ccbec 100%); box-shadow: 0 14px 36px rgba(50,136,201,.2); }
.top10__title { color: #12395f; }
.top10__title em { color: #e0720a; }
.top10__hint { color: #1f4d78; }
.top10__eyebrow { color: #1b4f80; }
.top10__eyebrow span { background: rgba(27,79,128,.45); }

/* TOP 10 approach B + cover: rank cards on light banner */
.top10-ranks { position: relative; z-index: 1; }
.rank-card {
  background: #fff;
  border-color: rgba(27,79,128,.12);
  color: #12395f;
  box-shadow: 0 3px 12px rgba(27,79,128,.1);
  animation: t10in .55s both;
}
.rank-card:nth-child(1){animation-delay:.04s}.rank-card:nth-child(2){animation-delay:.08s}.rank-card:nth-child(3){animation-delay:.12s}
.rank-card:nth-child(4){animation-delay:.16s}.rank-card:nth-child(5){animation-delay:.2s}.rank-card:nth-child(6){animation-delay:.24s}
.rank-card:hover {
  background: #fff;
  border-color: rgba(50,136,201,.35);
  color: #12395f;
  box-shadow: 0 12px 28px rgba(27,79,128,.18);
}
.rank-card__media { background: linear-gradient(135deg, #d6e8f7, #b7d4ee); }
.rank-card__fallback { color: #1b4f80; }
.rank-card__meta { color: #3d6a93; opacity: 1; }
.rank-card--gold .rank-card__num { animation: t10pulse 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .rank-card, .rank-card--gold .rank-card__num { animation: none; }
}

/* ===== wider layout on large desktops: hero + card sections only ===== */
@media (min-width: 1280px) {
  #courses, #minors, #popular { max-width: 1360px; }
  .hero-search__inner { max-width: 1360px; }
  .hero-search .steps { max-width: 980px; }
  .hero-paths { max-width: 980px; }
  .hero-search .search-band:not(.search-band--flat) { max-width: 1080px; }
}

/* ===== event pop-up (Bootstrap modal, minimal styles) ===== */
.modal { position: fixed; inset: 0; z-index: 1060; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal.show { display: block; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(15,35,60,.6); }
.modal-backdrop.fade { opacity: 0; transition: opacity .15s linear; }
.modal-backdrop.show { opacity: 1; }
.modal.fade .modal-dialog { transform: translateY(-24px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-dialog { position: relative; width: auto; max-width: 960px; margin: 1.75rem auto; padding: 0 .75rem; pointer-events: none; }
.modal-content { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); pointer-events: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 3px solid var(--tsu-gold, #F4881D); background: #f4f9fe; }
.modal-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--tsu-blue-deep, #1b4f80); }
.modal-body { padding: 0; }
.modal-body img { display: block; width: 100%; height: auto; }
.btn-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231b4f80'%3E%3Cpath d='M2.1 2.1a1 1 0 0 1 1.4 0L8 6.6l4.5-4.5a1 1 0 1 1 1.4 1.4L9.400 8l4.500 4.500a1 1 0 0 1-1.400 1.400L8 9.400l-4.500 4.500a1 1 0 0 1-1.400-1.400L6.600 8 2.100 3.500a1 1 0 0 1 0-1.400z'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; flex: none; }
.btn-close:hover { background-color: #fdebd9; }
body.modal-open { overflow: hidden; }

/* align header / footer edges with the wider card sections */
@media (min-width: 1280px) {
  .topbar__inner, .site-header__inner, .site-footer__inner { max-width: 1360px; }
}

/* search sits between the 3 steps and the age pathways */
.hero-search .search-band:not(.search-band--flat) { margin: 0 auto 1.4rem; }

/* hero background: clean learning-themed line icons */
.hero-search { background:
  radial-gradient(ellipse at 15% 0%, rgba(50,136,201,.16), transparent 55%),
  radial-gradient(ellipse at 90% 100%, rgba(244,136,29,.12), transparent 50%),
  url("../img/hero-bg-learning.svg") center top / 560px 360px repeat,
  linear-gradient(180deg, #f7fbff 0%, #e6f1fa 100%); }
.hero-search::before { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(232,243,251,.15)); }

/* ===== วิชาโท: ปกออกแบบโทน TSU (ชื่อชุดเป็นตัวเอก) ===== */
.mset-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem; padding-bottom: .65rem; isolation: isolate;
}
@media (min-width: 900px) { .mset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; } }
@media (max-width: 479px) { .mset-grid { grid-template-columns: 1fr; } }
.mset {
  position: relative; border-radius: 18px;
  transition: transform .25s ease;
}
.mset::before, .mset::after {
  content: ''; position: absolute; left: 7%; right: 7%; bottom: -7px; height: 12px;
  border-radius: 0 0 12px 12px; background: rgba(255,255,255,.8); z-index: -1;
  box-shadow: 0 4px 12px rgba(27,79,128,.1); pointer-events: none;
}
.mset::after { bottom: -12px; left: 14%; right: 14%; background: #e8f3fb; z-index: -2; }
.mset:hover { transform: translateY(-5px); }
.mset:focus-within { outline: 3px solid var(--tsu-blue-deep, #1b4f80); outline-offset: 3px; }
.mset__link { display: block; text-decoration: none; color: inherit; border-radius: 18px; }
.mset__link:hover { text-decoration: none; color: inherit; }
.mset__cover {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; min-height: 250px; padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 18px; overflow: hidden; color: #fff;
  box-shadow: 0 14px 32px rgba(27,79,128,.22);
  background: linear-gradient(155deg, #163f6a 0%, #1b4f80 42%, #3288C9 100%);
}
.mset--t1 .mset__cover { background: linear-gradient(155deg, #14385e 0%, #1b4f80 45%, #2f7fbe 100%); }
.mset--t2 .mset__cover { background: linear-gradient(155deg, #1a4f7d 0%, #3288C9 55%, #6eb6e3 100%); }
.mset--t3 .mset__cover { background: linear-gradient(155deg, #1b4f80 0%, #2a6fa8 48%, #c97820 120%); }
.mset--t4 .mset__cover { background: linear-gradient(155deg, #0f3558 0%, #1b4f80 40%, #245f96 78%, #f4881d 145%); }
.mset__glow {
  position: absolute; width: 180px; height: 180px; right: -40px; top: -50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
  pointer-events: none;
}
.mset--t3 .mset__glow, .mset--t4 .mset__glow {
  background: radial-gradient(circle, rgba(244,136,29,.35), transparent 68%);
}
.mset__pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px),
    linear-gradient(135deg, transparent 40%, rgba(255,255,255,.06) 40%, rgba(255,255,255,.06) 41%, transparent 41%);
  background-size: 18px 18px, 100% 100%;
}
.mset__mark {
  position: absolute; left: .9rem; top: .85rem; z-index: 1;
  font-family: var(--font-display), "Be Vietnam Pro", sans-serif;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  color: rgba(255,255,255,.55);
}
.mset__count {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  padding: .28rem .7rem; border-radius: 999px;
  background: #f4881d; color: #fff;
  font-size: .75rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}
.mset__content { position: relative; z-index: 2; display: grid; gap: .45rem; }
.mset__eyebrow {
  display: inline-flex; align-self: start;
  padding: .18rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.mset__title {
  margin: 0; font-family: var(--font-display), "Be Vietnam Pro", "Anuphan", sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 1.35rem); font-weight: 800; line-height: 1.3;
  letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.mset__rule {
  display: block; width: 2.4rem; height: 3px; margin-top: .15rem;
  border-radius: 999px; background: linear-gradient(90deg, #f4881d, rgba(244,136,29,.15));
}
@media (prefers-reduced-motion: reduce) { .mset { transition: none; } }
/* สลับชุดวิชาโท (ใช้ร่วมกับหน้า pathway) */
.pw-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pw-tabs a { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid #b9d5ee; background: #fff; color: var(--tsu-blue-deep, #1b4f80); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .2s, color .2s; }
.pw-tabs a:hover { background: #eaf4fc; }
.pw-tabs a[aria-current="page"] { background: var(--tsu-blue, #3288C9); border-color: var(--tsu-blue, #3288C9); color: #fff; }

/* วิชาโท: ภาพหน้าปกจริง (ถ้ามีไฟล์ภาพ) + ไล่สีน้ำเงินด้านล่างให้อ่านตัวอักษรชัด */
.mset--photo .mset__cover { background: #14385e; aspect-ratio: 5 / 6; }
.mset__photo { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transition: transform .6s ease; }
.mset__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,40,75,.0) 28%, rgba(16,56,100,.55) 58%, rgba(15,48,88,.96) 100%); }
.mset--photo:hover .mset__photo { transform: scale(1.06); }
.mset--photo .mset__pattern, .mset--photo .mset__glow { display: none; }
.mset--photo .mset__mark { color: #fff; font-size: .8rem; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.mset--photo .mset__eyebrow { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }

/* วิชาโท: ภาพชัดเต็มด้านบน + แถบชื่อชุดวิชาด้านล่าง (ไม่ทับภาพ) */
.mset--photo .mset__cover { aspect-ratio: 1 / 1.02; justify-content: flex-end; padding: 0; background: linear-gradient(180deg, #17497a 0%, #123a63 100%); }
.mset--photo .mset__photo { inset: 0 0 auto 0; height: 64%; }
.mset--photo .mset__photo::after { background: linear-gradient(180deg, rgba(10,40,75,.18) 0%, rgba(10,40,75,0) 28%, rgba(10,40,75,0) 78%, rgba(23,73,122,.9) 100%); }
.mset--photo .mset__content { padding: .9rem 1.05rem 1.1rem; min-height: 36%; align-content: center; }
.mset--photo .mset__title { font-size: clamp(1.05rem, 1.7vw, 1.25rem); -webkit-line-clamp: 3; }
.mset__mark, .mset__eyebrow { display: none; }

/* วิชาโท: ภาพเต็มใบ + ไล่สีน้ำเงินสีเดียวด้านล่าง ชื่ออยู่ซ้อนบนภาพ */
.mset--photo .mset__cover { aspect-ratio: 5 / 6; padding: 1.15rem 1.1rem 1.2rem; justify-content: flex-end; background: #123a63; }
.mset--photo .mset__photo { inset: 0; height: auto; }
.mset--photo .mset__photo::after { background: linear-gradient(180deg, rgba(18,58,99,0) 38%, rgba(18,58,99,.6) 66%, rgba(18,58,99,.95) 100%); }
.mset--photo .mset__content { padding: 0; min-height: 0; align-content: end; }
.mset--photo .mset__title { font-size: clamp(1.15rem, 2.1vw, 1.35rem); -webkit-line-clamp: 4; }

/* เมนูมือถือ: ขนาดตัวอักษรเท่ากันทุกรายการ (หัวกลุ่ม / เมนูย่อย / เมนูหลัก) */
.mobile-nav a, .mobile-nav button, .mobile-nav .mobile-nav__label, .mobile-nav .mobile-nav__sub { font-family: inherit; font-size: 1rem !important; line-height: 1.5; letter-spacing: normal; }
.mobile-nav a, .mobile-nav .mobile-nav__sub { font-weight: 500; }
.mobile-nav .mobile-nav__label { font-weight: 700; color: var(--tsu-blue-deep, #1b4f80); }
