@charset "utf-8";
/* ------------------------------------------------------------------
   site-en.css — สไตล์เฉพาะหน้าภาษาอังกฤษ (/en/)
   สีตามชุดเดียวกับ course-version.css ซึ่งอ้างอิงจาก style.css ของเว็บ
   ทุกคลาสขึ้นต้น en- เพื่อไม่ชนกับ template
   ------------------------------------------------------------------ */

.en {
  --en-sky: #21A7D0;
  --en-sky-deep: #1B8DB1;
  --en-sky-soft: #E4F3F9;
  --en-brand: #002AA2;
  --en-brand-soft: #E5EAF7;
  --en-ink: #031A3D;
  --en-body: #54647B;
  --en-faint: #8C99AC;
  --en-ground: #F3F8F9;
  --en-line: #DCE6EB;
  --en-shadow: 0 1px 2px rgba(3,26,61,.05), 0 10px 28px -14px rgba(3,26,61,.22);

  color: var(--en-body);
  font-size: 16px;
  line-height: 1.75;
}
.en *, .en *::before, .en *::after { box-sizing: border-box; }
.en h1, .en h2, .en h3, .en h4 { color: var(--en-ink); line-height: 1.3; margin: 0; font-weight: 600; text-wrap: balance; }
.en p { margin: 0; }
.en a { color: var(--en-brand); }
.en-measure { max-width: 68ch; }

.en-eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--en-sky-deep);
  padding-bottom: 10px;
}
.en-sec { padding: 84px 0; }
.en-sec-tight { padding: 56px 0; }
.en-sec-ground { background: var(--en-ground); }
.en-sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.en-sec-head h2 { font-size: clamp(26px, 3vw, 34px); }
.en-sec-head p { font-size: 17px; max-width: 62ch; }

.en a.en-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 8px; line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.en a.en-btn-fill { background: var(--en-brand); color: #fff; }
.en a.en-btn-fill:hover, .en a.en-btn-fill:focus-visible { background: #001F7A; color: #fff; }
.en a.en-btn-light { background: #fff; color: var(--en-brand); }
.en a.en-btn-light:hover, .en a.en-btn-light:focus-visible { background: var(--en-sky-soft); color: var(--en-brand); }
.en a.en-btn-ghost { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.en a.en-btn-ghost:hover, .en a.en-btn-ghost:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
.en a:focus-visible, .en-btn:focus-visible { outline: 2px solid var(--en-brand); outline-offset: 3px; }

/* ---------- Home: hero ---------- */
.en-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, #6CCBF2 0%, #21A7D0 45%, #0E94D6 100%);
}
.en-hero-inner { position: relative; z-index: 1; padding: 88px 0 96px; max-width: 720px; }
.en-hero .en-eyebrow { color: rgba(255,255,255,.88); }
.en-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.01em; }
.en-hero-lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.65; color: rgba(255,255,255,.95); max-width: 58ch; }
.en-hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.en-facts { background: #fff; border-bottom: 1px solid var(--en-line); }
.en-facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.en-facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--en-sky-soft); }
.en-facts strong { font-size: 24px; font-weight: 700; color: var(--en-ink); font-variant-numeric: tabular-nums; line-height: 1.25; }
.en-facts span { font-size: 14px; color: var(--en-body); }

/* ---------- Home: vision ---------- */
.en-vision { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.en-vision blockquote {
  margin: 0; padding: 0 0 0 26px; border-left: 4px solid var(--en-sky);
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.45; color: var(--en-ink); font-weight: 500;
}
.en-vision-side { display: flex; flex-direction: column; gap: 16px; }
.en-vision-side p { font-size: 16.5px; }
.en-link-arrow { font-weight: 600; text-decoration: none; }
.en-link-arrow:hover { text-decoration: underline; }

/* ---------- Program cards (home + programs page) ---------- */
.en-level + .en-level { margin-top: 52px; }
.en-level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--en-line); }
.en-level-head h3 { font-size: 22px; }
.en-level-head span { font-size: 14.5px; color: var(--en-faint); }
.en-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.en-program {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--en-line); border-radius: 10px;
  overflow: hidden; text-decoration: none; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.en-program:hover, .en-program:focus-visible { border-color: var(--en-sky); box-shadow: var(--en-shadow); transform: translateY(-2px); }
.en-program img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--en-ground); }
.en-program-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.en-program-body h4 { font-size: 17px; color: var(--en-ink); line-height: 1.4; }
.en-program-degree { font-size: 14px; color: var(--en-body); }
.en-program-tag { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--en-sky-deep); }

/* ---------- CTA band ---------- */
.en-cta { background: var(--en-brand); color: #fff; border-radius: 14px; padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.en-cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.en-cta p { color: rgba(255,255,255,.88); margin-top: 6px; }

/* ---------- Inner pages ---------- */
.en-page { padding: 72px 0 88px; }
.en-lead { font-size: 18px; line-height: 1.75; color: var(--en-ink); }
.en-prose p + p { margin-top: 16px; }

/* History timeline */
.en-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.en-timeline::before { content: ""; position: absolute; left: 96px; top: 8px; bottom: 8px; width: 2px; background: var(--en-line); }
.en-timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 0 32px; position: relative; padding-bottom: 30px; }
.en-timeline li:last-child { padding-bottom: 0; }
.en-timeline li::before { content: ""; position: absolute; left: 90px; top: 9px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--en-sky); }
.en-tl-year { font-weight: 700; color: var(--en-brand); font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.en-tl-year small { display: block; font-weight: 400; font-size: 12.5px; color: var(--en-faint); }
.en-tl-body { padding-left: 8px; }

/* Vision page */
.en-statement { background: var(--en-ground); border-radius: 14px; padding: 36px 40px; }
.en-statement h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--en-sky-deep); margin-bottom: 14px; }
.en-statement blockquote { margin: 0; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.5; color: var(--en-ink); font-weight: 500; }
.en-mission { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 14px; }
.en-mission li { counter-increment: m; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--en-line); border-radius: 10px; background: #fff; }
.en-mission li::before { content: counter(m); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--en-sky-soft); color: var(--en-brand); font-weight: 700; }
.en-mission small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--en-sky-deep); }
.en-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.en-value { padding: 26px 28px; border-radius: 12px; border: 1px solid var(--en-line); background: #fff; }
.en-value h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--en-sky-deep); margin-bottom: 10px; }
.en-value p.en-value-motto { font-size: 22px; font-weight: 600; color: var(--en-ink); line-height: 1.35; }
.en-value p + p { margin-top: 10px; }

/* Contact */
.en-contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.en-contact-card { padding: 28px 30px; border: 1px solid var(--en-line); border-radius: 12px; background: #fff; }
.en-contact-card h2 { font-size: 20px; margin-bottom: 16px; }
.en-contact-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; }
.en-contact-card dt { font-weight: 600; color: var(--en-ink); }
.en-contact-card dd { margin: 0; }
.en-map { margin-top: 28px; border-radius: 12px; overflow: hidden; border: 1px solid var(--en-line); }
.en-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Notice for content not yet available in English */
.en-note { margin-top: 28px; padding: 14px 18px; border-radius: 8px; background: var(--en-sky-soft); color: var(--en-ink); font-size: 15px; }

@media (max-width: 991px) {
  .en-vision { grid-template-columns: 1fr; gap: 28px; }
  .en-facts ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .en-sec { padding: 60px 0; }
  .en-hero-inner { padding: 64px 0 70px; }
  .en-values, .en-contact { grid-template-columns: 1fr; }
  .en-cta { padding: 30px 24px; }
  .en-statement { padding: 28px 24px; }
  .en-timeline::before { left: 7px; }
  .en-timeline li { grid-template-columns: 1fr; padding-left: 34px; }
  .en-timeline li::before { left: 1px; }
  .en-tl-body { padding-left: 0; }
  .en-contact-card dl { grid-template-columns: 1fr; gap: 2px; }
  .en-contact-card dd + dt { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .en-program, .en-btn { transition: none; }
  .en-program:hover { transform: none; }
}

/* News section on the home page (shared with the Thai site) */
.en-news-note { margin-top: 10px; color: #54647B; font-size: 15px; }

/* English menu labels are longer than the Thai ones, so tighten the gap between
   top-level items to keep the menu on one line beside the logo (desktop only).
   The "body" prefix outranks the theme rule in style.css. */
@media only screen and (min-width: 992px) {
  body .full-width-header.header-style2 .rs-header .menu-area .rs-menu-area .main-menu .rs-menu ul.nav-menu > li { margin-right: 26px; }
  body .full-width-header.header-style2 .rs-header .menu-area .rs-menu-area .main-menu .rs-menu ul.nav-menu > li:last-child { margin-right: 0; }
}

/* The theme capitalises every word in sub-menus ("Office Of The School").
   Formal English title case keeps short words lowercase, so show labels as written. */
body .full-width-header .rs-header .menu-area .main-menu .rs-menu ul.sub-menu li a { text-transform: none; }

/* News card without a cover image (placeholder instead of a broken image) */
.en-noimg { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10;
  background: linear-gradient(120deg, #21A7D0, #002AA2); color: #fff; text-decoration: none; }
.en-noimg span { font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.en-noimg:hover { color: #fff; }
