/* Education & Schools — Study in Thailand guide */

.tl-main.tl-main--edu {
  padding: 0;
  background: #fff;
  overflow-x: clip;
}

.tl-edu {
  --edu-ink: #14241f;
  --edu-forest: #1b4d3e;
  --edu-teal: #2d6a5a;
  --edu-leaf: #3d8f72;
  --edu-mist: #eef4f1;
  --edu-paper: #f6f9f7;
  --edu-gold: #b08a3c;
  --edu-muted: #5a6b64;
  --edu-line: rgba(27, 77, 62, 0.14);
  color: var(--edu-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

.tl-edu__wrap {
  width: min(1100px, calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.tl-edu a:focus-visible,
.tl-edu button:focus-visible {
  outline: 3px solid rgba(45, 106, 90, 0.45);
  outline-offset: 2px;
}

/* —— Hero —— */
.tl-edu-hero.tl-hero--photo {
  --tl-cover-min-height: 460px;
  position: relative;
}

.tl-edu-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 40em;
}

.tl-edu-hero h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tl-edu-hero__sub {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.25;
}

.tl-edu-hero__lead {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 36em;
}

.tl-edu-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tl-edu-hero__stamp {
  margin: 18px 0 0;
  color: #d4e8a8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tl-edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--edu-teal);
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tl-edu-btn:hover {
  transform: translateY(-2px);
  background: var(--edu-forest);
  box-shadow: 0 12px 28px rgba(27, 77, 62, 0.32);
}

.tl-edu-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.tl-edu-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.tl-edu-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--edu-teal) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}

.tl-edu-link:hover {
  color: var(--edu-forest) !important;
}

/* —— Jump —— */
.tl-edu-jump {
  background: var(--edu-paper);
  border-bottom: 1px solid var(--edu-line);
}

.tl-edu-jump__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  list-style: none;
}

.tl-edu-jump__list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--edu-line);
  border-radius: 10px;
  background: #fff;
  color: var(--edu-forest) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tl-edu-jump__list a:hover {
  border-color: var(--edu-leaf);
  box-shadow: 0 8px 20px rgba(27, 77, 62, 0.1);
  transform: translateY(-2px);
}

.tl-edu-jump__num {
  color: var(--edu-leaf);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* —— Type —— */
.tl-edu-kicker {
  margin: 0 0 10px;
  color: var(--edu-leaf);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-edu-head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.tl-edu-head h2 {
  margin: 0 0 12px;
  max-width: 24ch;
  color: var(--edu-forest);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tl-edu-head__sub {
  margin: 0;
  max-width: 44em;
  color: var(--edu-muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-edu-section {
  padding: clamp(48px, 7vw, 88px) 0;
  scroll-margin-top: 88px;
}

.tl-edu-section--mist {
  background: var(--edu-mist);
}

.tl-edu-section--paper {
  background: var(--edu-paper);
}

.tl-edu-section--forest {
  background: linear-gradient(150deg, #14241f 0%, #1b4d3e 48%, #245a48 100%);
  color: #fff;
}

.tl-edu-section--forest .tl-edu-head h2 {
  color: #fff;
  max-width: 28ch;
}

.tl-edu-section--forest .tl-edu-head__sub {
  color: rgba(255, 255, 255, 0.82);
}

.tl-edu-section--forest .tl-edu-kicker {
  color: #b8d9a8;
}

/* —— Intro —— */
.tl-edu-intro p {
  margin: 0 0 16px;
  color: var(--edu-muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 62ch;
}

.tl-edu-intro p:last-child {
  margin-bottom: 0;
}

.tl-edu-intro p strong {
  color: var(--edu-ink);
  font-weight: 500;
}

.tl-edu-intro--on-dark {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.tl-edu-intro--on-dark p {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.82);
}

.tl-edu-intro--on-dark p strong {
  color: #fff;
}


.tl-edu-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}

.tl-edu-stat {
  padding: 22px 20px;
  border: 1px solid var(--edu-line);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-edu-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(27, 77, 62, 0.1);
}

.tl-edu-stat__value {
  margin: 0 0 8px;
  color: var(--edu-forest);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tl-edu-stat p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

/* —— International schools —— */
.tl-edu-schools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}

.tl-edu-school {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--edu-line);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tl-edu-school:hover {
  transform: translateY(-3px);
  border-color: var(--edu-leaf);
  box-shadow: 0 14px 32px rgba(27, 77, 62, 0.1);
}

.tl-edu-school__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.tl-edu-school__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--edu-mist);
  color: var(--edu-forest);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tl-edu-school__place {
  color: var(--edu-muted);
  font-size: 13px;
  font-weight: 300;
}

.tl-edu-school h3 {
  margin: 0;
  color: var(--edu-forest);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.tl-edu-school p {
  margin: 0;
  flex: 1;
  color: var(--edu-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-edu-school .tl-edu-link {
  margin-top: 4px;
  font-size: 14px;
}

.tl-edu-school-note {
  margin-top: clamp(24px, 4vw, 36px);
  padding: 20px 22px;
  border-left: 3px solid var(--edu-leaf);
  border-radius: 0 10px 10px 0;
  background: var(--edu-mist);
}

.tl-edu-school-note p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 68ch;
}

.tl-edu-school-note strong {
  color: var(--edu-ink);
  font-weight: 500;
}

/* —— University type panels —— */
.tl-edu-types {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.tl-edu-type {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--edu-line);
  border-radius: 14px;
  background: #fff;
}

.tl-edu-type__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.tl-edu-type__top h3 {
  margin: 0;
  color: var(--edu-forest);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
}

.tl-edu-type__count {
  color: var(--edu-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-edu-type > p {
  margin: 0 0 14px;
  color: var(--edu-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 68ch;
}

.tl-edu-type > p:last-of-type {
  margin-bottom: 18px;
}

.tl-edu-uni-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-edu-uni-grid a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--edu-line);
  color: var(--edu-ink) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.tl-edu-uni-grid a:hover {
  color: var(--edu-teal) !important;
}

.tl-edu-uni-grid a span {
  color: var(--edu-muted);
  font-size: 13px;
  font-weight: 300;
}

.tl-edu-type__note {
  margin: 16px 0 0;
  color: var(--edu-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

/* —— Apply paths —— */
.tl-edu-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tl-edu-path {
  padding: 26px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tl-edu-path h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.tl-edu-path p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-edu-callout {
  margin-top: clamp(24px, 4vw, 36px);
  padding: 20px 22px;
  border-left: 3px solid #b8d9a8;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 10px 10px 0;
}

.tl-edu-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-edu-callout a {
  color: #d4e8a8 !important;
  font-weight: 500;
}

/* —— Docs checklist —— */
.tl-edu-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tl-edu-doc {
  padding: 22px 20px;
  border: 1px solid var(--edu-line);
  border-radius: 12px;
  background: #fff;
}

.tl-edu-doc h3 {
  margin: 0 0 8px;
  color: var(--edu-forest);
  font-size: 17px;
  font-weight: 600;
}

.tl-edu-doc p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

/* —— Steps —— */
.tl-edu-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: edu-step;
}

.tl-edu-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 0 0 28px;
  counter-increment: edu-step;
}

.tl-edu-steps li:last-child {
  padding-bottom: 0;
}

.tl-edu-steps li::before {
  content: counter(edu-step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--edu-forest);
  color: #fff;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.tl-edu-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--edu-line);
}

.tl-edu-steps h3 {
  margin: 4px 0 6px;
  color: var(--edu-forest);
  font-size: 19px;
  font-weight: 600;
}

.tl-edu-steps p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 54ch;
}

.tl-edu-steps a {
  color: var(--edu-teal) !important;
  font-weight: 500;
}

/* —— Related —— */
.tl-edu-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tl-edu-related a {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--edu-line);
  border-radius: 12px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tl-edu-related a:hover {
  transform: translateY(-3px);
  border-color: var(--edu-leaf);
  box-shadow: 0 12px 28px rgba(27, 77, 62, 0.1);
}

.tl-edu-related h3 {
  margin: 0 0 8px;
  color: var(--edu-forest);
  font-size: 18px;
  font-weight: 600;
}

.tl-edu-related p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

.tl-edu-related span {
  display: inline-block;
  margin-top: 12px;
  color: var(--edu-teal);
  font-size: 14px;
  font-weight: 600;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .tl-edu-jump__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tl-edu-jump__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-edu-stats,
  .tl-edu-paths,
  .tl-edu-docs,
  .tl-edu-related,
  .tl-edu-schools {
    grid-template-columns: 1fr;
  }

  .tl-edu-uni-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tl-edu__wrap {
    width: calc(100% - 32px);
  }

  .tl-edu-jump__list {
    grid-template-columns: 1fr;
  }

  .tl-edu-steps li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .tl-edu-steps li::before {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .tl-edu-steps li:not(:last-child)::after {
    left: 21px;
    top: 44px;
  }
}
