/* Public website theme: recreates the former WordPress (Astra + Elementor) design. */
:root {
  --orange: #FD9800; --orange-dark: #E98C00; --navy: #0F172A; --text: #454F5E;
  --cream: #FEF9E1; --cream-dark: #F9F0C8; --ink: #141006; --body: #222222;
  --yellow: #FEDB3B; --header: #FFE042; --white: #FFFFFF;
  --shadow: 0 50px 50px -10px rgba(0, 0, 0, .1);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--cream); color: var(--text); font: 400 15px/1.7 'Prompt', sans-serif; -webkit-font-smoothing: antialiased; }
.site img { max-width: 100%; height: auto; display: block; }
.site h1, .site h2, .site h3, .site h4 { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.25; }
.site p { margin: 0; }
.site a { color: var(--orange); }
.site a:focus-visible, .site button:focus-visible, .site input:focus-visible, .site textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--navy); color: #fff !important; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.site main { flex: 1; }
.site-wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.site-narrow { max-width: 860px; }
.site-center { text-align: center; }
.site-icon { width: 1em; height: 1em; flex: none; }
.site-section { padding: 80px 0; }
.site-eyebrow { color: var(--yellow); font-size: 18px; font-weight: 400; margin-bottom: 12px; }
.site-eyebrow-orange { color: var(--orange); font-size: 14px; font-weight: 600; }
.site-muted { color: var(--text); font-size: 13px; }

/* Buttons */
.site-button { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 100px; background: var(--yellow); color: var(--ink) !important; padding: 20px 40px; font: 600 15px/1 'Prompt', sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.site-button:hover { background: var(--orange); transform: translateY(-1px); }
.site-button .site-icon { width: 14px; height: 14px; }
.site-button-orange { background: var(--orange); color: #fff !important; padding: 10px 15px; font-size: 14px; border-radius: 30px; }
.site-button-orange:hover { background: var(--orange-dark); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--header); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 83px; gap: 20px; }
.site-logo img { width: 75px; height: 55px; object-fit: contain; }
.site-menu { display: flex; align-items: center; gap: 14px; }
.site-menu ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-menu li a { display: block; padding: 0 14px; line-height: 56px; color: var(--body); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
.site-menu li a:hover, .site-menu li a[aria-current="page"] { color: var(--orange-dark); }
.site-login { display: inline-flex; align-items: center; justify-content: center; min-width: 144px; height: 54px; padding: 0 28px; border-radius: 100px; background: var(--orange); color: #fff !important; font-weight: 600; text-decoration: none; transition: background .2s; }
.site-login:hover { background: var(--orange-dark); }
.site-account { gap: 10px; padding: 0 20px 0 8px; line-height: 1.2; text-align: left; }
.site-account small { display: block; max-width: 140px; overflow: hidden; color: rgba(255, 255, 255, .85); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.site-account-initial { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--orange-dark); font-weight: 700; }

/* Sign-in and verification pages */
.site-auth { padding: 70px 0 90px; }
.site-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.site-auth-intro h1 { font-size: 44px; }
.site-auth-intro p { margin-top: 16px; font-size: 17px; }
.site-auth-card { display: grid; gap: 16px; padding: 36px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.site-auth-card form { display: grid; gap: 16px; }
.site-auth-card label { display: grid; gap: 6px; color: var(--navy); font-weight: 500; }
.site-auth-card input:not([type="hidden"]) { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; font: 400 15px 'Prompt', sans-serif; }
.site-auth-card .site-button { justify-content: center; width: 100%; padding: 16px 24px; }
.site-auth-card .notice.error, .site-auth .notice.error { background: #fdecec; color: #8a1c1c; }
.site-auth-card a { color: var(--orange-dark); font-weight: 500; }
.site-password { position: relative; display: block; }
.site-auth-card .site-password input { padding-right: 76px; }
.site-auth-card select { width: 100%; padding: 12px 14px; border: 1px solid rgba(180, 130, 0, .18); border-radius: 14px; background: rgba(255, 255, 255, .8); font: 400 15px 'Prompt', sans-serif; }
.site-auth-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 544px) { .site-auth-pair { grid-template-columns: 1fr; } }
.site-password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 12px; border: 1px solid #ddd; border-radius: 8px; background: var(--cream); color: var(--navy); font: 500 13px 'Prompt', sans-serif; cursor: pointer; }
.site-password-toggle[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.site-link-button { border: 0; background: none; color: var(--text); font: 500 14px 'Prompt', sans-serif; text-decoration: underline; cursor: pointer; }
@media (max-width: 921px) { .site-auth-grid { grid-template-columns: 1fr; } .site-auth-intro h1 { font-size: 34px; } }
@media (max-width: 544px) { .site-auth { padding: 40px 0 60px; } .site-auth-card { padding: 24px; } }
.site-menu-toggle { display: none; border: 0; background: transparent; color: var(--orange); padding: 8px; cursor: pointer; }
.site-menu-toggle .site-icon { width: 28px; height: 28px; }

/* Inner page hero */
.site-hero { position: relative; display: grid; place-items: center; min-height: 455px; overflow: hidden; background: var(--ink); color: #fff; text-align: center; }
.site-hero-bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.site-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.site-hero-inner { position: relative; z-index: 1; padding: 80px 0; max-width: 760px; }
.site-hero h1 { color: #fff; font-size: 60px; }
.site-hero p { margin-top: 16px; color: #fff; font-size: 26px; font-weight: 500; line-height: 1.4; }
.site-hero-icon { display: inline-flex; margin-bottom: 16px; font-size: 48px; color: #fff; }
.site-hero-plain { min-height: 280px; background: linear-gradient(0deg, var(--ink) 0%, #3a3216 100%); }
.site-hero-plain::after { display: none; }
.site-hero-plain h1 { font-size: 44px; }
.site-hero-plain p { font-size: 18px; font-weight: 400; }

/* Homepage hero */
.home-hero { position: relative; min-height: 688px; padding-bottom: 140px; display: grid; place-items: center; overflow: hidden; background: var(--ink); text-align: center; }
.home-hero-slides img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.home-hero-slides img.is-active { opacity: 1; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(0, 0, 0, .53) 50%), rgba(20, 16, 6, .55); }
.home-hero-inner { position: relative; z-index: 1; padding: 60px 0 40px; }
.home-hero h1 { max-width: 1100px; margin: 0 auto; color: #fff; font-size: 50px; }
.home-hero-down { display: inline-flex; margin-top: 36px; color: #fff; font-size: 30px; }

/* Course cards */
.home-courses { position: relative; z-index: 2; margin-top: -140px; padding-bottom: 60px; }
.site-course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-course { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 32px 32px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.site-course-tag { display: inline-block; padding: 9px 12px 7px; border-radius: 10px; background: var(--yellow); color: var(--body); font-size: 15px; line-height: 1.25; }
.site-course h3 { font-size: 20px; margin-top: 8px; }
.site-course p { font-size: 14px; }
.site-course-code { display: inline-block; min-width: 46px; padding: 4px 8px; border: 1px solid var(--orange); border-radius: 6px; color: var(--orange); font-size: 13px; font-weight: 500; }
.site-course-grid-compact .site-course { padding: 28px 24px; }
.site-overlap { margin-top: -110px; position: relative; z-index: 2; padding-top: 0; }
.home-courses .site-center { margin-top: 60px; }

/* Journey */
.home-journey { padding: 100px 0; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.home-journey-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 40px; align-items: center; }
.home-journey-intro h2 { font-size: 50px; }
.home-journey-intro p { margin-top: 16px; }
.home-journey-intro hr { width: 120px; margin: 24px 0 0; border: 0; border-top: 2px solid var(--orange); }
.home-journey-image img { width: 100%; height: 620px !important; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.home-steps { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; }
.home-step-number { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--orange); font-size: 50px; font-weight: 700; line-height: 1; }
.home-steps h3 { font-size: 22px; margin-bottom: 8px; }
.home-journey-grid .home-steps { margin-left: -90px; }

/* Feature rows (homepage highlights, courses page features) */
.home-highlights { padding: 60px 0; background: #fff; }
.site-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.site-feature-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--cream-dark); color: var(--orange); font-size: 18px; }
.site-feature h3 { font-size: 21px; font-weight: 500; margin-bottom: 10px; }

/* Why us / About us */
.home-why { padding: 100px 0 60px; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.home-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.home-why-title { font-size: 24px; margin-bottom: 8px; }
.site-arrow-list { display: grid; gap: 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.site-arrow-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.site-arrow-list .site-icon { width: 22px; height: 22px; color: var(--orange); margin-top: 4px; }
.site-arrow-list h3, .site-arrow-list h4 { font-size: 21px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.home-about-title { color: var(--navy); font-size: 50px; font-weight: 500; line-height: 1.3; }
.home-about-text { margin: 20px 0 36px; font-size: 18px; }
.site-partners { margin-top: 90px; }
.site-partners-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 24px) / 6); gap: 24px; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.site-partners-track::-webkit-scrollbar { display: none; }
.site-partners-track img { margin: 0 auto; scroll-snap-align: start; opacity: .6; filter: grayscale(1); }

/* Feedback */
.home-feedback { padding: 100px 0; background: var(--cream); }
.home-feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.home-feedback-head h2 { font-size: 50px; margin-top: 8px; }
.home-quote { margin: 0; padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.home-quote-rating { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--navy); font-size: 22px; font-weight: 500; }
.home-quote-rating .site-icon { width: 24px; height: 24px; }
.home-quote blockquote { margin: 16px 0 20px; color: var(--text); font-size: 18px; line-height: 32px; }
.home-quote figcaption { display: grid; justify-items: center; gap: 10px; color: var(--navy); }
.home-quote figcaption img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }

/* Team */
.site-team { display: grid; gap: 50px; }
.site-member { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; padding-bottom: 50px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.site-member-card { display: grid; justify-items: center; gap: 8px; padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.site-member-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
/* Icon flows with the text, so a role that wraps keeps the icon just before its first word. */
.site-member-role { display: block; color: var(--navy); text-align: center; text-wrap: balance; }
.site-member-role .site-icon { display: inline-block; margin-right: 8px; vertical-align: -2px; color: var(--navy); }
.site-member-rating { display: flex; align-items: center; gap: 8px; color: #EFAC57; font-size: 17px; font-weight: 700; }
.site-stars { display: inline-flex; color: #EFAC57; }
.site-stars .site-icon { width: 14px; height: 14px; }
.site-member-lessons { color: var(--navy); }
.site-member-body h2 { font-size: 30px; margin-bottom: 14px; }
.site-member-body dl { margin: 18px 0 0; }
.site-member-body dt { margin-top: 12px; color: var(--text); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.site-member-body dd { margin: 2px 0 0; color: var(--navy); font-size: 17px; }

/* About */
.about-intro { background: #fff; }
.about-intro h2 { font-size: 40px; }
.site-rule { width: 120px; margin: 24px auto; border: 0; border-top: 2px solid var(--orange); }
.about-paragraph { margin-top: 16px; font-size: 16px; text-align: left; text-indent: 2.5em; }
.about-photo { margin: 60px auto 0; border-radius: 20px; box-shadow: 0 70px 100px 0 rgba(0, 0, 0, .2); }
.about-row { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding: 50px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.about-row h3 { font-size: 28px; margin: 6px 0 10px; }
.about-list { grid-template-columns: 1fr 1fr; margin: 0; }
.about-closing { margin-top: 50px; font-size: 16px; }

/* Contact */
.contact-heading { font-size: 40px; text-decoration: underline; text-underline-offset: 8px; }
.contact-placeholder { margin-top: 24px; color: var(--navy); font-size: 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; margin-top: 60px; }
.contact-info { display: grid; gap: 8px; align-content: start; }
.contact-info h3 { font-size: 24px; }
.site-form { display: grid; gap: 16px; padding: 36px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.site-form label { display: grid; gap: 6px; color: var(--navy); }
.site-form input, .site-form textarea, .site-search input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; background: #fff; font: 400 15px 'Prompt', sans-serif; color: var(--body); }
.site-form button { justify-self: start; padding: 14px 28px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--cream-dark); color: var(--navy); }

/* News */
.site-search { display: flex; gap: 12px; margin-bottom: 40px; }
.site-search label { flex: 1; }
.site-search .site-button { padding: 14px 28px; }
.site-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.site-news { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.site-news img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.site-news > div { display: grid; gap: 10px; justify-items: start; padding: 22px; }
.site-news h3 { font-size: 20px; }
.site-news h3 a { color: var(--navy); text-decoration: none; }
.booking-intro { max-width: 760px; margin: 0 auto 40px; }
.site-booking-card > div { gap: 12px; }
.site-booking-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 8px; font-size: 14px; }
.site-booking-card dt { color: var(--text); }
.site-booking-card dd { margin: 0; color: var(--navy); }
.site-empty { padding: 60px 20px; border-radius: 14px; background: #fff; text-align: center; }
.site-pages { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.site-article img { margin: 24px 0; border-radius: 14px; }
.site-lead { font-size: 18px; color: var(--navy); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; }
.site-footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 101px; font-size: 14px; }

/* Tablet (Astra 921px breakpoint) */
@media (max-width: 921px) {
  .site-header-row { min-height: 100px; }
  .site-logo img { width: 110px; height: 80px; }
  .site-menu-toggle { display: inline-flex; }
  .site-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .1); }
  .site-menu.is-open { display: flex; }
  .site-menu ul { flex-direction: column; }
  .site-menu li a { padding: 0 6px; line-height: 48px; border-bottom: 1px solid #eee; }
  .site-login { margin-top: 14px; }
  .site-course-grid, .site-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-journey-grid { grid-template-columns: 1fr; }
  .home-journey-grid .home-steps { margin-left: 0; }
  .home-journey-image img { height: 420px !important; }
  .home-why-grid, .about-row, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-feedback-grid, .site-news-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feedback-head { grid-column: 1 / -1; }
  .site-partners-track { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
  .site-member { grid-template-columns: 1fr; text-align: center; }
  .site-member-body dl { text-align: center; }
  .home-about-title, .home-feedback-head h2, .home-journey-intro h2 { font-size: 40px; }
}

/* Mobile (Astra 544px breakpoint) */
@media (max-width: 544px) {
  .site-wrap { width: calc(100% - 32px); }
  .site-section { padding: 56px 0; }
  .home-hero { min-height: 610px; }
  .home-hero h1 { font-size: 30px; line-height: 1.3; }
  .site-hero { min-height: 340px; }
  .site-hero h1 { font-size: 40px; }
  .site-hero p { font-size: 20px; }
  .site-course-grid, .site-feature-grid, .home-feedback-grid, .site-news-grid, .about-list { grid-template-columns: 1fr; }
  .site-feature, .home-why-grid > div:last-child { text-align: center; }
  .home-about-title, .home-feedback-head h2, .home-journey-intro h2, .about-intro h2, .contact-heading { font-size: 30px; }
  .home-journey-intro { text-align: center; }
  .home-journey-intro hr { margin: 24px auto 0; }
  .home-steps li { grid-template-columns: 72px 1fr; }
  .home-step-number { width: 72px; height: 72px; font-size: 36px; }
  .site-partners-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .site-footer-row { flex-direction: column; justify-content: center; padding: 24px 0; text-align: center; }
  .site-form { padding: 24px; }
  .site-search { flex-direction: column; }
}
/* ===== Yellow liquid glass theme (Oct 2026, requested to match or beat spmsakon-civiccenter.akat.ac.th) ===== */
:root {
  --gold-1: #FFEC9E; --gold-2: #FFD95A; --gold-3: #FFC52E; --gold-ink: #8A6210;
  --glass: rgba(255, 255, 255, .62); --glass-strong: rgba(255, 255, 255, .78); --glass-line: rgba(255, 255, 255, .85);
  --glass-shadow: 0 20px 60px rgba(120, 80, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
  --radius: 28px; --header-h: 92px;
}
body.site { background: #FFF8E6; color: #4A4236; }
body.site::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 40vmax at 12% 18%, rgba(255, 214, 64, .55), transparent 60%),
              radial-gradient(36vmax 36vmax at 88% 8%, rgba(255, 170, 0, .32), transparent 60%),
              radial-gradient(42vmax 42vmax at 70% 85%, rgba(255, 226, 122, .45), transparent 60%),
              radial-gradient(30vmax 30vmax at 10% 90%, rgba(255, 190, 60, .25), transparent 60%);
  animation: glass-drift 28s ease-in-out infinite alternate; }
@keyframes glass-drift { to { transform: translate3d(3vmax, -2vmax, 0) scale(1.05); } }
.site h1, .site h2, .site h3, .site h4 { color: #1F1A10; letter-spacing: -.01em; }
.site-gold, .home-hero h1, .site-hero h1, .home-journey-intro h2, .home-feedback-head h2, .home-about-title, .about-intro h2, .contact-heading {
  background: linear-gradient(100deg, #C98A12 0%, #F2B227 35%, #FFD24D 55%, #E2A21C 80%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* Glass surfaces */
.site-course, .home-quote, .site-member-card, .site-form, .site-auth-card, .site-news, .site-empty, .home-step-number, .about-photo, .home-journey-image img {
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--glass-shadow); }
.home-step-number { border-radius: 50%; }
.site-course, .home-quote, .site-news, .site-member-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.site-course:hover, .home-quote:hover, .site-news:hover, .site-member-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(120, 80, 0, .2), inset 0 1px 0 #fff; }
.site-course-tag, .site-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 201, 40, .55); color: var(--gold-ink); font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-3); box-shadow: 0 0 0 4px rgba(245, 163, 0, .18); }
.site-eyebrow-orange { color: var(--gold-ink); }
.site-course-code { border-color: var(--gold-3); color: var(--gold-ink); border-radius: 100px; }
.site-feature-icon { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--gold-1), var(--gold-3)); color: #fff; box-shadow: 0 10px 24px rgba(245, 163, 0, .35); font-size: 20px; }
.site-arrow-list .site-icon, .site-rule, .home-journey-intro hr { color: var(--gold-3); border-color: var(--gold-3); }
.site-form input, .site-form textarea, .site-search input, .site-auth-card input:not([type="hidden"]) { border: 1px solid rgba(180, 130, 0, .18); background: rgba(255, 255, 255, .8); border-radius: 14px; }
.site-form input:focus, .site-form textarea:focus, .site-auth-card input:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 4px rgba(255, 201, 40, .3); }

/* Buttons */
.site-button, .site-button-orange { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #2A1C00 !important;
  box-shadow: 0 12px 28px rgba(240, 180, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .25s, box-shadow .25s, filter .25s; }
.site-button:hover, .site-button-orange:hover { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(240, 180, 30, .36), inset 0 1px 0 rgba(255, 255, 255, .6); }
.site-password-toggle { background: rgba(255, 255, 255, .8); border-radius: 100px; }
.site-password-toggle[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); }

/* Floating glass header */
.site-header { position: sticky; top: 0; z-index: 40; padding: 12px 0; background: transparent; }
.site-header-row { min-height: 68px; padding: 0 10px 0 22px; border-radius: 24px;
  background: linear-gradient(120deg, rgba(255, 238, 160, .82), rgba(255, 216, 100, .76));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 40px rgba(160, 100, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .8); }
.site-logo img { width: 64px; height: 48px; }
.site-menu li a { line-height: 40px; margin: 0 2px; border-radius: 100px; color: #2A2110; transition: background .2s, color .2s; }
.site-menu li a:hover { color: #2A2110; background: rgba(255, 255, 255, .35); }
.site-menu li a[aria-current="page"] { color: #2A2110; background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff; }
.site-login { height: 48px; min-width: 128px; background: #fff; color: var(--gold-ink) !important; box-shadow: 0 6px 18px rgba(120, 80, 0, .18); }
.site-login:hover { background: #fffdf5; }
.site-account small { color: #9a7a3a; }
.site-account-initial { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #fff; }
.site-menu-toggle { color: #2A2110; }

/* Heroes: photo washed in warm light, dark gold text */
.home-hero, .site-hero { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); background: #FFF3CF; }
.home-hero::after { background: linear-gradient(180deg, rgba(255, 248, 230, .35) 0%, rgba(255, 244, 214, .6) 55%, #FFF8E6 100%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.home-hero-inner { width: min(980px, calc(100% - 32px)); margin-top: 40px; padding: 44px 40px 28px; border-radius: 36px; background: rgba(255, 252, 240, .72);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 80px rgba(120, 80, 0, .2), inset 0 1px 0 #fff; }
.home-hero-down { margin-top: 20px; }
.home-hero { padding-bottom: 180px; }
.site-hero-inner { margin: 50px auto; padding: 36px 44px; border-radius: 32px; background: rgba(255, 252, 240, .72);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 80px rgba(120, 80, 0, .18), inset 0 1px 0 #fff; }
.site-hero-plain .site-hero-inner { background: rgba(255, 255, 255, .5); }
.site-hero::after { background: linear-gradient(180deg, rgba(255, 248, 230, .6) 0%, rgba(255, 244, 214, .78) 70%, #FFF8E6 100%); }
.site-hero-plain { background: linear-gradient(180deg, #FFE9A8, #FFF8E6); }
.home-hero h1 { font-size: 56px; line-height: 1.2; text-shadow: none; }
.home-hero .site-eyebrow { margin-bottom: 20px; font-size: 16px; }
.home-hero-down { color: var(--gold-3); }
.site-hero h1 { font-size: 56px; }
.site-hero p, .site-hero-icon { color: #4A4236; }
.site-hero-plain p { color: #4A4236; }

/* Sections float on the warm background */
.home-journey, .home-highlights, .home-why, .home-feedback, .about-intro { background: transparent; }
.home-highlights .site-feature-grid { padding: 36px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.site-partners-track img { filter: grayscale(.2); opacity: .85; }
.site-member, .about-row { border-bottom-color: rgba(180, 130, 0, .14); }

/* Footer */
.site-footer { margin-top: 40px; background: linear-gradient(120deg, #3A2E12, #4A3A14); color: #FFE9A8; border-top: 1px solid rgba(255, 201, 40, .4); }
.site-footer a { color: var(--gold-2); }

@media (max-width: 921px) {
  :root { --header-h: 92px; }
  .site-header-row { min-height: 68px; }
  .site-logo img { width: 64px; height: 48px; }
  .site-menu { top: calc(100% + 8px); border-radius: 22px; padding: 12px; background: rgba(255, 250, 235, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid #fff; box-shadow: 0 20px 50px rgba(120, 80, 0, .2); }
  .site-menu li a { border-bottom: 0; padding: 0 14px; line-height: 44px; }
  .home-hero h1, .site-hero h1 { font-size: 40px; }
}
@media (max-width: 544px) {
  .site-header { padding: 8px 0; }
  :root { --header-h: 84px; --radius: 22px; }
  .home-hero h1 { font-size: 30px; }
  .home-hero-inner { padding: 28px 20px 18px; border-radius: 26px; }
  .site-hero-inner { margin: 30px auto; padding: 24px 20px; border-radius: 24px; }
  .site-hero h1 { font-size: 34px; }
  .home-highlights .site-feature-grid { padding: 24px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-course, .home-quote, .site-member-card, .site-form, .site-auth-card, .site-news, .site-empty { background: rgba(255, 255, 255, .94); }
}

/* ===== Landing animations (site.js adds the classes; nothing is hidden without JavaScript) ===== */
.site-header-row { transition: min-height .35s, box-shadow .35s, background .35s; }
.site-header.is-scrolled .site-header-row { min-height: 58px; box-shadow: 0 18px 50px rgba(160, 110, 0, .26), inset 0 1px 0 #fff; }

/* Gold light sweeping across the headline */
.home-hero h1 { background-image: linear-gradient(100deg, #A86E05 0%, #D9970F 25%, #F5C232 50%, #D9970F 75%, #A86E05 100%); background-size: 220% 100%; animation: gold-sweep 7s ease-in-out infinite; }
@keyframes gold-sweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Hero title: the brand large, the centre's full name smaller on its own line */
.home-hero h1 { font-size: 64px; line-height: 1.1; }
.home-hero-sub { display: block; margin-top: 14px; font-size: 26px; line-height: 1.45; font-weight: 600; text-wrap: balance; }
/* Each space-separated part stays whole when it fits (Thai breaks at the space, not mid-word),
   and still wraps inside itself when the panel is narrower than the part. */
.home-hero-sub > span { display: inline-block; max-width: 100%; }
@media (max-width: 921px) { .home-hero h1 { font-size: 48px; } .home-hero-sub { font-size: 21px; } }
@media (max-width: 544px) { .home-hero h1 { font-size: 38px; } .home-hero-sub { font-size: 17px; } }
.site-hero h1, .site-hero p, .site-member-body p, .about-paragraph { text-wrap: pretty; }
.site-hero p { font-size: 20px; }
.site-overlap { margin-top: 0; padding-top: 10px; } /* cards sit below the glass title panel, not over it */

/* Hero entrance + tilt */
.home-hero-inner { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: glass-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.home-hero-inner > * { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.home-hero-inner > :nth-child(1) { animation-delay: .25s; }
.home-hero-inner > :nth-child(2) { animation-delay: .4s; }
.home-hero-inner > :nth-child(3) { animation-delay: .7s; }
@keyframes glass-in { from { opacity: 0; transform: perspective(1200px) translateY(40px) scale(.94); filter: blur(8px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.home-hero-down .site-icon { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.home-hero-inner::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); background-size: 250% 100%; animation: glass-glint 6s ease-in-out 1.2s infinite; }
@keyframes glass-glint { 0% { background-position: 120% 0; } 35%, 100% { background-position: -120% 0; } }
.home-hero-inner { position: relative; isolation: isolate; }

/* Floating glass code chips */
.home-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; transform: translate(var(--px, 0), var(--py, 0)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.home-chips span { position: absolute; left: var(--x); top: var(--y); padding: 10px 16px; border-radius: 16px; font: 700 18px/1 'Prompt', monospace; color: #8A6210;
  background: rgba(255, 252, 240, .55); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 34px rgba(160, 110, 0, .2), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: chip-float 7s ease-in-out var(--d) infinite, chip-in 1s cubic-bezier(.2, .8, .2, 1) calc(var(--d) * .4 + .6s) both; }
.home-chips span:nth-child(even) { animation-duration: 9s, 1s; font-size: 15px; }
@keyframes chip-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes chip-in { from { opacity: 0; scale: .6; } }
.home-hero-inner { z-index: 2; }
@media (max-width: 921px) { .home-chips span:nth-child(n+5) { display: none; } .home-chips span { font-size: 14px; padding: 8px 12px; } }
@media (max-width: 544px) { .home-chips { opacity: .7; } .home-chips span:nth-child(n+4) { display: none; } }

/* Light that follows the pointer across glass */
.site-course, .home-quote, .site-news, .site-member-card, .site-hero-inner, .home-highlights .site-feature-grid { position: relative; isolation: isolate; }
:is(.site-course, .home-quote, .site-news, .site-member-card, .home-hero-inner, .site-hero-inner, .home-highlights .site-feature-grid)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .85), rgba(255, 230, 140, .25) 40%, transparent 70%); }
:is(.site-course, .home-quote, .site-news, .site-member-card, .home-hero-inner, .site-hero-inner, .home-highlights .site-feature-grid):hover::before { opacity: 1; }

/* Rise into view */
.reveal { opacity: 0; transform: translateY(34px) scale(.97); filter: blur(6px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1) var(--stagger, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--stagger, 0ms), filter .8s var(--stagger, 0ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.site-course.reveal.is-in:hover, .home-quote.reveal.is-in:hover, .site-news.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
.home-step-number { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.home-steps li.is-in .home-step-number { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) calc(var(--stagger, 0ms) + 200ms) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero-slides img, .site-button, .site-login, .site-course, .home-quote, .site-news, .site-member-card { transition: none; }
  .home-hero h1, .home-hero-inner, .home-hero-inner > *, .home-hero-inner::after, .home-hero-down .site-icon, .home-chips span { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  body.site::before { animation: none; }
}

/* Workshop อบรม: list, countdown badge, detail and photo gallery */
.workshop-heading { margin: 40px 0 22px; font-size: 28px; color: var(--navy); }
.workshop-heading:first-child { margin-top: 0; }
.workshop-card.is-past img { filter: saturate(.8); }
.workshop-cover { display: block; }
.workshop-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workshop-countdown { display: inline-block; padding: 6px 14px; border-radius: 100px; background: var(--ink); color: var(--yellow); font-weight: 600; font-size: 15px; }
.workshop-countdown.ongoing { background: var(--orange); color: var(--ink); }
.workshop-countdown.past { background: #e7e3d3; color: var(--text); }
.workshop-countdown.big { padding: 10px 22px; font-size: 22px; }
.workshop-when, .workshop-where, .workshop-seats { margin: 0; color: var(--text); }
.workshop-when { font-weight: 600; color: var(--navy); }
.workshop-seats { font-size: 14px; }
.workshop-detail { display: grid; gap: 18px; }
.workshop-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; }
.workshop-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; padding: 18px 22px; border-radius: 14px; background: var(--cream); }
.workshop-facts dt { font-weight: 600; color: var(--navy); }
.workshop-facts dd { margin: 0; }
.workshop-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.workshop-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
@media (max-width: 921px) { .site-news-grid:has(.workshop-card) { grid-template-columns: 1fr; } }
.site-news-grid:has(.workshop-card) { align-items: start; }

/* Articles: featured story, category chips, cards, reading page */
.article-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.article-chips a { padding: 8px 18px; border-radius: 100px; background: #fff; border: 1px solid rgba(0,0,0,.12); color: var(--navy); text-decoration: none; font-weight: 500; }
.article-chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.article-cover { display: block; overflow: hidden; }
.article-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-cover img { transform: scale(1.04); }
.article-noimg { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--cream-dark); color: var(--orange); }
.article-noimg .site-icon { width: 56px; height: 56px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }
.article-meta .site-course-tag { text-decoration: none; }
.article-more { font-weight: 600; color: var(--orange-dark); text-decoration: none; }
.article-card.is-featured { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 30px; }
.article-card.is-featured .article-cover img, .article-card.is-featured .article-noimg { height: 100%; aspect-ratio: auto; min-height: 320px; }
.article-card.is-featured > div { align-content: center; padding: 34px; }
.article-card.is-featured h3 { font-size: 28px; line-height: 1.3; }
.article-detail { display: grid; gap: 20px; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 14px; }
.article-body { font-size: 18px; line-height: 1.9; }
.article-related { background: var(--cream); }
@media (max-width: 921px) { .article-card.is-featured { grid-template-columns: 1fr; } .article-card.is-featured .article-cover img, .article-card.is-featured .article-noimg { min-height: 0; aspect-ratio: 16 / 10; } .article-card.is-featured > div { padding: 22px; } }

/* Home: latest articles */
.home-articles { padding: 70px 0 20px; }
.home-articles-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.home-articles-head h2 { margin: 6px 0 0; font-size: 34px; }

/* Countdown pop-up on the homepage */
.site-popup { width: min(920px, calc(100% - 28px)); max-height: calc(100vh - 28px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--text); box-shadow: 0 40px 90px rgba(10, 19, 48, .45); overflow: hidden; }
.site-popup:focus { outline: none; }
.site-popup::backdrop { background: rgba(10, 19, 48, .62); backdrop-filter: blur(3px); }
.site-popup[open] { animation: popup-in .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes popup-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.site-popup-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(10, 19, 48, .75); color: #fff; font: 400 28px/1 'Prompt', sans-serif; cursor: pointer; }
.site-popup-close:hover { background: var(--orange); }
.site-popup-body { display: grid; max-height: calc(100vh - 28px); overflow: auto; }
.site-popup-body.has-poster { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.site-popup-poster { background: #0a1330; }
.site-popup-poster img { width: 100%; height: 100%; object-fit: cover; }
.site-popup-info { display: grid; align-content: center; gap: 14px; padding: 38px 36px; }
.site-popup-eyebrow { color: var(--orange); font-size: 14px; font-weight: 600; }
.site-popup-info h2 { font-size: 30px; line-height: 1.25; }
.site-popup-sub { color: var(--navy); font-size: 18px; font-weight: 500; }
.site-popup-details { font-size: 14px; }
.site-popup-label { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.site-popup-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.site-popup-count div { display: grid; gap: 2px; justify-items: center; padding: 12px 4px; border-radius: 16px; background: var(--navy); color: #fff; }
.site-popup-count b { font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; }
.site-popup-count span { font-size: 12px; opacity: .85; }
.site-popup-when, .site-popup-soon { font-size: 14px; font-weight: 500; color: var(--navy); }
.site-popup-soon { padding: 12px 16px; border-radius: 14px; background: var(--cream); }
.site-popup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.site-popup-actions .site-button { padding: 16px 28px; }
.site-popup-skip { border: 0; background: none; color: var(--text); font: 500 14px/1 'Prompt', sans-serif; text-decoration: underline; cursor: pointer; padding: 10px; }
@media (max-width: 760px) {
  .site-popup-body.has-poster { grid-template-columns: 1fr; }
  .site-popup-poster img { display: block; width: auto; max-width: 100%; height: auto; max-height: 40vh; margin: 0 auto; object-fit: contain; }
  .site-popup-info { padding: 24px 20px 26px; gap: 12px; }
  .site-popup-info h2 { font-size: 24px; }
  .site-popup-count b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .site-popup[open] { animation: none; } }

/* Pop-up motion: spring-in, slow poster zoom with a light sweep, staggered text, ticking countdown, pulsing button (CSS only; off for reduced motion) */
.site-popup[open] { animation: popup-in .55s cubic-bezier(.17, .9, .25, 1.25); }
.site-popup[open]::backdrop { animation: popup-fade .5s ease both; }
@keyframes popup-fade { from { opacity: 0; } }
@keyframes popup-in { 0% { opacity: 0; transform: translateY(40px) scale(.86) rotate(-1.2deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.site-popup-poster { position: relative; overflow: hidden; }
.site-popup[open] .site-popup-poster img { animation: poster-zoom 14s ease-in-out .3s infinite alternate; transform-origin: 40% 30%; }
@keyframes poster-zoom { to { transform: scale(1.07) translateY(-1%); } }
.site-popup-poster::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat; }
.site-popup[open] .site-popup-poster::after { animation: poster-sweep 4.2s ease-in-out 1s infinite; }
@keyframes poster-sweep { 0% { background-position: 160% 0; } 45%, 100% { background-position: -80% 0; } }
.site-popup[open] .site-popup-info > * { animation: popup-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.site-popup[open] .site-popup-info > :nth-child(1) { animation-delay: .25s; }
.site-popup[open] .site-popup-info > :nth-child(2) { animation-delay: .33s; }
.site-popup[open] .site-popup-info > :nth-child(3) { animation-delay: .41s; }
.site-popup[open] .site-popup-info > :nth-child(4) { animation-delay: .49s; }
.site-popup[open] .site-popup-info > :nth-child(5) { animation-delay: .57s; }
.site-popup[open] .site-popup-info > :nth-child(6) { animation-delay: .65s; }
.site-popup[open] .site-popup-info > :nth-child(n+7) { animation-delay: .73s; }
@keyframes popup-rise { from { opacity: 0; transform: translateY(16px); } }
.site-popup-eyebrow::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--orange); animation: popup-dot 1.6s ease-out infinite; vertical-align: 1px; }
@keyframes popup-dot { 0% { box-shadow: 0 0 0 0 rgba(253, 152, 0, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(253, 152, 0, 0); } }
.site-popup[open] .site-popup-count div { animation: popup-count-in .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.site-popup[open] .site-popup-count div:nth-child(1) { animation-delay: .7s; }
.site-popup[open] .site-popup-count div:nth-child(2) { animation-delay: .8s; }
.site-popup[open] .site-popup-count div:nth-child(3) { animation-delay: .9s; }
.site-popup[open] .site-popup-count div:nth-child(4) { animation-delay: 1s; }
@keyframes popup-count-in { from { opacity: 0; transform: translateY(14px) scale(.7) rotate(-6deg); } }
.site-popup-count div { position: relative; overflow: hidden; box-shadow: 0 8px 18px rgba(10, 19, 48, .22); }
.site-popup-count div:last-child { box-shadow: 0 8px 18px rgba(10, 19, 48, .22), inset 0 0 0 2px rgba(254, 219, 59, .55); }
.site-popup-count b.tick { animation: popup-tick .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes popup-tick { 0% { transform: translateY(-45%) scale(.8); opacity: .2; } 100% { transform: none; opacity: 1; } }
.site-popup-actions .site-button { position: relative; animation: popup-cta 2.2s ease-in-out 1.6s infinite; }
@keyframes popup-cta { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 152, 0, .55); } 50% { transform: scale(1.045); box-shadow: 0 0 0 14px rgba(253, 152, 0, 0); } }
.site-popup-actions .site-button:hover { animation-play-state: paused; }
.site-popup-close { transition: transform .25s ease, background .2s ease; }
.site-popup-close:hover { transform: rotate(90deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .site-popup[open], .site-popup[open]::backdrop, .site-popup[open] .site-popup-poster img, .site-popup[open] .site-popup-poster::after, .site-popup[open] .site-popup-info > *, .site-popup-eyebrow::before, .site-popup[open] .site-popup-count div, .site-popup-count b.tick, .site-popup-actions .site-button { animation: none; }
}

/* Footer: one rounded glass card (brand, two link columns, contact) like a modern app footer; editable in the admin area (ท้ายเว็บ) */
.site-footer { margin-top: 56px; padding: 0 0 36px; background: none; border-top: 0; color: var(--text); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer-card { padding: 44px 48px 26px; border-radius: 32px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.site-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px 40px; }
.site-footer-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 700; font-size: 17px; line-height: 1.3; }
.site-footer-logo img { width: 56px; height: auto; flex: none; }
.site-footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; max-width: 36ch; }
.site-footer-col h2 { margin: 0 0 16px; font-size: 16px; color: var(--navy); }
.site-footer-col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.site-footer-col a { transition: color .2s ease, transform .2s ease; display: inline-block; }
.site-footer-col a:hover { color: var(--orange-dark); transform: translateX(3px); }
.site-footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.7; }
.site-footer-contact .site-icon { width: 18px; height: 18px; margin-top: 4px; color: var(--orange-dark); }
.site-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(20, 16, 6, .1); font-size: 13px; }
.site-footer-top { font-weight: 600; color: var(--navy); }
.site-footer-top:hover { color: var(--orange-dark); }
@media (max-width: 921px) {
  .site-footer-card { padding: 30px 24px 22px; border-radius: 26px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-brand, .site-footer-contact { grid-column: 1 / -1; }
  .site-footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
/* In the editor preview the pop-up is not modal: keep it centred in the preview window instead of in the middle of the page */
.site-popup:not(:modal)[open] { position: fixed; inset: 0; z-index: 50; }

/* Course cards that open a detail page, and the course detail page */
.site-course.has-link { cursor: pointer; }
.site-course-link { color: inherit; text-decoration: none; }
.site-course-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.site-course-link:focus-visible { outline: none; }
.site-course.has-link:has(.site-course-link:focus-visible) { outline: 3px solid var(--orange, #f5a300); outline-offset: 3px; }
.site-course-more { margin-top: auto; padding-top: 6px; color: var(--gold-ink, #8a5a00); font-size: 14px; font-weight: 500; }
.site-course.has-link:hover .site-course-more { text-decoration: underline; }
.course-detail h1 { margin: 12px 0 6px; }
.course-lead { color: var(--gold-ink, #8a5a00); font-weight: 500; margin: 0 0 14px; }
.course-overview { font-size: 17px; line-height: 1.9; margin: 0 0 8px; }
.course-topics { margin: 6px 0 18px; }
.course-steps { margin: 6px 0 22px; padding-left: 22px; line-height: 2; }
.course-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
