/* Academics page (Figma-like layout, modern + smooth micro-interactions) */

:root {
  --blue-950: #0b2a4a;
  --blue-900: #0e3a66;
  --blue-800: #114b83;
  --blue-700: #165a9e;
  --sky-200: #bfe6f6;
  --card: #7ea9c6;
  --glass: rgba(255, 255, 255, .68);
  --glass2: rgba(255, 255, 255, .45);
  --accent: #ff7a2f;
  --text: #eaf3ff;
  --shadow: 0 16px 35px rgba(0, 0, 0, .25);
  --shadow2: 0 10px 22px rgba(0, 0, 0, .18);
  --stroke: rgba(255, 255, 255, .18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- Inserted menu/header CSS (user provided) --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;

  background: linear-gradient(180deg,
      #1C4D8D 0%,
      #2F6EB5 35%,
      #8EA9C9 70%,
      #E5E9F0 100%);

  min-height: 100vh;
}


/* ---------------- MENU BAR ---------------- */
.menu {
  background: #C2E4F2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  font-size: 16px;
  font-weight: 550;

  width: 85%;
  margin: 0 auto;
  padding: 20px 20px;
  border-radius: 25px;

  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.menu a,
.menu .dropdown {
  text-decoration: none;
  color: #1C4D8D;
  cursor: pointer;
}

.menu a:hover,
.menu .dropdown:hover {
  background-color: rgba(28, 77, 141, 0.1);
}


.menu .active {
  border-bottom: 3px solid #1C4D8D;
  padding-bottom: 0px;
  line-height: 1;
  display: inline-block;
}

/* ---------------- SIDE MENU ---------------- */

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: linear-gradient(180deg, #1C4D8D, #081F3F);
  color: white;
  padding: 40px 25px;
  transition: 0.4s ease;
  z-index: 10000;

  display: flex;
  flex-direction: column;
}

.side-menu.show {
  right: 0;
}


.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header input {
  width: 80%;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
}

.close-btn {
  font-size: 22px;
  cursor: pointer;
}

.menu-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.menu-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.menu-footer {
  margin-top: auto;
  color: #FF8246;
  font-size: 14px;
  margin-bottom: 90px;
}

/* Active สำหรับ mobile menu */
.menu-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
  display: block;
}

/* เส้นใต้ตอนกด */
.menu-links a:focus,
.menu-links a:active {
  border-bottom: 3px solid #FF8246;
}

/* ---------------- RESPONSIVE ---------------- */

/* ---------------- RESPONSIVE ---------------- */

@media(max-width: 650px) {

  /* แสดง hamburger */
  .hamburger {
    display: block;
  }

  /* ซ่อน navbar */
  .menu {
    display: none;
  }

  /*  ซ่อน search box ตอนจอเล็ก */
  .search-box {
    display: none;
  }

  /* ปรับ padding */
  .top-bar {
    padding: 15px 20px;
  }

}

@media(min-width: 650px) {

  /* ซ่อน hamburger */
  .hamburger {
    display: none;
  }

  /* -------- SEARCH BOX -------- */

  .search-box {
    display: flex;
    align-items: center;
    background: #FFFEEB;
    border-radius: 25px;
    padding: 5px 12px;
    gap: 8px;
  }

  .search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 140px;
  }

  .search-box input::placeholder {
    color: #555;
  }

  /* ── DROPDOWN ── */
  .dropdown-wrap {
    position: relative;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 999;
    overflow: hidden;
  }

  .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #1C4D8D;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .dropdown-menu a:hover {
    background: #f0f6ff;
  }

  .dropdown-wrap:hover .dropdown-menu {
    display: block;
  }




}

.card-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 5%;
}

/* --- End inserted block --- */

/* Fix white gaps + better typography */
html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body.academics-page {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 22% 18%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(720px 440px at 78% 12%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(860px 520px at 70% 80%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, var(--blue-800), #0a2e52 65%, #082744);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Inter", "Prompt", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

/* Prevent anchored sections from hiding under the fixed header */
.academics-page section {
  scroll-margin-top: 170px;
}

/* Make header blend with page */
header {
  background: var(--blue-800);
}

/*
  Figma-like hero: background image should run behind the header.
  Keep header readable with a glass top-bar + nav.
*/
body.academics-page header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: transparent;
  box-shadow: none;
}

body.academics-page header .top-bar {
  background: #1C4D8D;;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

body.academics-page header .menu {
  backdrop-filter: blur(12px);
}

body.academics-page .nav-glass {
  background: rgba(206, 240, 252, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .55);
}

body.academics-page .nav-glass ul li a {
  color: #0b3a63;
}

body.academics-page .nav-glass ul li a:hover {
  color: #0b3a63;
}

/* Dropdown chooser */
.acad-chooser {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  z-index: 999;
  background: rgba(8, 28, 52, .35);
  backdrop-filter: blur(10px);
}

.acad-chooser.show {
  display: flex;
}

.acad-chooser__panel {
  width: min(760px, calc(100% - 32px));
  border-radius: 48px;
  background: rgba(255, 255, 255, .24);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.acad-choice {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 22px 18px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .94);
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.acad-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.acad-choice:active {
  transform: translateY(0px);
  filter: brightness(.98);
}

/* HERO */
/* Track (iot / dual) images */
body.academics-page.track-iot {
  --heroImg: url("../assets/img/iot-1.png");
  /* position the hero photo similar to the Figma mock (text-left / people-right) */
  --heroPos: 70% 45%;
  --photoBig: url("../assets/img/iot-3.png");
  --photoCircle: url("../assets/img/iot-4.png");
  --photoWide: url("../assets/img/iot-5.png");
  --courseBgImg: url("../assets/img/iot-2.png");
  --featureImg: url("../assets/img/iot-4.png");
}

body.academics-page.track-dual {
  --heroImg: url("../assets/img/dual-1.png");
  --heroPos: 70% 40%;

  /* Collage images (requested: dual-3 to dual-5) */
  --photoBig: url("../assets/img/dual-3.png");
  --photoCircle: url("../assets/img/dual-4.png");
  --photoWide: url("../assets/img/dual-5.png");

  /* Course details background (requested: dual-2) */
  --courseBgImg: url("../assets/img/dual-2.png");

  --featureImg: url("../assets/img/dual-4.png");
}

.hero {
  position: relative;
  //min-height: 640px;
  display: flex;
  align-items: stretch;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    /* blue glass tint (match the "dyed" look from the Figma reference) */
    linear-gradient(180deg, rgba(10, 44, 86, .88) 0%, rgba(7, 28, 55, .92) 100%),
    radial-gradient(900px 520px at 70% 26%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(740px 460px at 18% 40%, rgba(255, 255, 255, .09), transparent 55%),
    radial-gradient(920px 600px at 82% 78%, rgba(255, 140, 85, .12), transparent 60%),
    linear-gradient(135deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .10)),
    var(--heroImg);
  background-size: auto, auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center, var(--heroPos, center);
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 190px 0 110px;
}

.hero__title {
  margin: 10px 0 24px;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1.05;
  color: var(--accent);
  text-shadow: 0 10px 22px rgba(0, 0, 0, .32);
}

.hero__desc {
  max-width: 620px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
  font-size: 16.5px;
  margin: 0 0 26px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .28);
  font-weight: 800;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 20px 36px rgba(0, 0, 0, .30);
}

.hero__cta:active {
  transform: translateY(0px);
  filter: brightness(.98);
}

.hero__ctaIcon {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.hero__cards {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  /* Align cards to the right for default (IoT) */
  margin-top: 60px;
  flex-wrap: wrap;
  /* Proper responsiveness */
}

/* Specific layout for dual track hero cards */
body.academics-page.track-dual .hero__cards {
  justify-content: flex-start;
  /* Align cards to the left for dual track */
}

.mini-card {
  width: 240px;
  height: 170px;
  position: relative;
  background: rgba(255, 255, 255, .34);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 46px 1fr;
  padding: 18px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
}

.mini-card:active {
  transform: translateY(-1px);
}

.mini-card::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 65px;
  left: -10%;
  top: 90px;
  background: rgba(0, 0, 0, .15);
}

/* keep cards clean (no dark band) */
.mini-card::after {
  display: none;
}

.mini-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(5, 35, 70, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
}

.mini-card__num {
  justify-self: end;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, .35);
}

.mini-card__title {
  grid-column: 1 / -1;
  z-index: 1;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  margin-top: 10px;
}

/* ABOUT */

/* Modern tech layout: clean collage on the left + content on the right */
.about {
  background: linear-gradient(180deg, #0b2e52 0%, #0a2a4a 45%, #082744 100%);
  padding: 110px 0 80px;
}

.about__wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.about__left {
  position: relative;
}

.about__collage {
  position: relative;
  width: min(640px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto auto;
  gap: 22px;
  padding-top: 6px;
}

.photo {
  position: relative;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background-image: var(--photoBig);
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 100px at 30% 30%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02)),
    linear-gradient(180deg, rgba(13, 49, 86, .30), rgba(6, 28, 54, .45));
}

/* fallback layers if image missing */
.photo {
  background-color: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}

.photo--big {
  background-image: var(--photoBig);
}

.photo--circle {
  background-image: var(--photoCircle);
}

.photo--wide {
  background-image: var(--photoWide);
}

/* photo layout + orange badge (match Figma feel, keep overlaps clean) */
.photo--big {
  width: 100%;
  height: 320px;
}

.photo--wide {
  width: 100%;
  height: 320px;
  border-radius: 40px;
  background-position: center 30%;
}

/* Circle badge photo sits between cards without blocking */
.photo--circle {
  position: absolute;
  right: 18px;
  top: 210px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background-position: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

/* Bottom accent badge (no overlap with images) */
.badge {
  position: absolute;
  left: 22px;
  bottom: 0;
  transform: translateY(36px);
  width: 320px;
  background: var(--accent);
  color: #fff;
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}

.badge__icon {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .18);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

/* Make the icon in the badge feel centered and consistent */
.badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .about__wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about {
    padding: 88px 0 72px;
  }

  .photo--circle {
    right: 14px;
    top: 210px;
  }

  .badge {
    position: relative;
    left: 0;
    transform: none;
    margin-top: 8px;
    width: min(360px, 100%);
  }
}

.badge__text span {
  opacity: .95;
  font-weight: 700;
}

.kicker {
  color: rgba(255, 170, 125, .95);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  letter-spacing: .4px;
}

.about__title {
  margin: 12px 0 12px;
  font-size: clamp(44px, 4.4vw, 70px);
  color: rgba(220, 240, 255, .95);
  text-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

.about__title span {
  color: var(--accent);
}

.about__desc {
  color: rgba(255, 255, 255, .85);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.bullet {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 18px;
}

.bullet li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(200, 240, 255, .85);
  box-shadow: 0 12px 20px rgba(0, 0, 0, .18);
  margin-top: 2px;
}

.bullet b {
  color: rgba(210, 240, 255, .95);
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.bullet div {
  color: rgba(255, 255, 255, .80);
  line-height: 1.4;
}

/* COURSE DETAILS */
.course {
  position: relative;
  padding: 80px 0 80px;
  background: var(--blue-800);
}

.course__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(0, 210, 255, .12), transparent 60%),
    radial-gradient(720px 420px at 80% 55%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(180deg, rgba(6, 26, 48, .55), rgba(6, 26, 48, .78)),
    var(--courseBgImg);
  background-size: auto, auto, cover, cover;
  /* last layer is the photo: keep faces visible (shift upward a bit) */
  background-position: 30% 20%, 80% 55%, center, 50% 12%;
  background-repeat: no-repeat;
}

.course__wrap {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: stretch;
}

.glass {
  background: var(--glass);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 26px 26px;
  border: 1px solid rgba(255, 255, 255, .22);
}

.glass.big {
  min-height: 340px;
}

.glass__kicker {
  color: rgba(255, 120, 50, .95);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.glass__title {
  font-size: 46px;
  margin: 10px 0 18px;
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.rows {
  display: grid;
  gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: 28px 190px 1fr;
  gap: 12px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 2px solid rgba(0, 0, 0, .08);
}

.row:last-child {
  border-bottom: none;
}

.check {
  color: #3a6e98;
  font-weight: 900;
}

.label {
  color: #2e5d86;
  font-weight: 800;
}

.value {
  color: #184b77;
  font-weight: 700;
}

.glass.small {
  display: grid;
  gap: 20px;
  background: rgba(255, 255, 255, .30);
}

.icon-card {
  background: rgba(255, 255, 255, .55);
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .32);
}

.icon-card__icon {
  font-size: 44px;
  color: #1b4f7f;
  margin-bottom: 8px;
}

.icon-card__title {
  font-size: 24px;
  font-weight: 900;
  color: #1b4f7f;
  margin-bottom: 10px;
}

.icon-card__desc {
  color: #2a5f8a;
  line-height: 1.45;
}

.tuition {
  background: rgba(255, 255, 255, .48);
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .18);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .30);
}

.tuition__icon {
  font-size: 44px;
  margin: 6px 0 10px;
}

.tuition__title {
  font-weight: 900;
  color: #1b4f7f;
  font-size: 22px;
  margin-bottom: 14px;
}

.tuition__price {
  color: #1b4f7f;
  font-weight: 900;
  font-size: 22px;
}

.tuition__price span {
  font-weight: 700;
  font-size: 16px;
  opacity: .95;
}

/* FEATURES */
.features {
  padding: 40px 0 90px;
  background: var(--blue-800);
}

.features__wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fcard {
  background: rgba(255, 255, 255, .22);
  border-radius: 36px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  color: #1b4f7f;
  border: 1px solid rgba(255, 255, 255, .20);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fcard:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .30);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.fcard:active {
  transform: translateY(-1px);
}

.fcard__icon {
  font-size: 44px;
  margin: 8px 0 10px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18));
}

.fcard__title {
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 10px;
}

.fcard__desc {
  color: #2a5f8a;
  line-height: 1.4;
}

/* SUMMARY */
.summary {
  padding: 84px 0 110px;
  background: radial-gradient(1200px 520px at 50% 0%, rgba(255, 255, 255, .10), transparent 60%), linear-gradient(180deg, var(--blue-800), #0b2f53);
}

.summary__wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.summary__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 152, 90, .98);
  font-weight: 800;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.summary__kickerIcon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 122, 47, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.summary__kickerText {
  text-decoration: none;
}

.summary__title {
  margin: 0 0 30px;
  font-size: clamp(54px, 5.4vw, 84px);
  color: rgba(220, 240, 255, .95);
  text-shadow: 0 14px 28px rgba(0, 0, 0, .26);
}

.summary__title span {
  color: var(--accent);
}

.roadmap {
  position: relative;
  margin: 0 auto;
  width: min(1040px, 100%);
  background: rgba(255, 255, 255, .90);
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .32);
}

.roadmap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.roadmap__edit {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(13, 56, 94, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(12, 60, 110, .9);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.roadmap__edit:hover {
  transform: translateY(-2px);
  background: rgba(13, 56, 94, .24);
}

/* user request: remove the floating edit icon */
.roadmap__edit {
  display: none !important;
}

.roadmap__nav,
.roadmap__navBtn {
  display: none;
}

/* Responsive */
@media (max-width: 1060px) {

  .hero__cards,
  body.academics-page.track-dual .hero__cards {
    margin-top: 40px;
    justify-content: center;
  }

  .mini-card {
    width: 220px;
  }

  .about__wrap {
    grid-template-columns: 1fr;
  }

  .about__left {
    min-height: 540px;
  }

  .course__wrap {
    grid-template-columns: 1fr;
  }

  .features__wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero__content {
    width: calc(100% - 10px);
    padding-bottom: 70px;
  }

  .hero__title {
    margin-top: 36px;
  }

  .mini-card {
    width: 100%;
  }

  .photo--big {
    width: 100%;
  }

  .photo--wide {
    width: 100%;
  }

  .photo--circle {
    left: auto;
    right: 12px;
  }

  .badge {
    left: 0;
    width: min(360px, 92vw);
  }

  .features__wrap {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 24px 150px 1fr;
  }
}

/* Accessible focus + reduced motion */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 122, 47, .55);
  outline-offset: 4px;
  border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
}

/* Feature card subtle image */
.fcard {
  position: relative;
  overflow: hidden;
}

.fcard::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--featureImg);
  background-size: cover;
  background-position: center;
  opacity: .12;
  filter: blur(2px);
  transform: scale(1.05);
}

.fcard>* {
  position: relative;
  z-index: 1;
}

/* user request: no background image inside each glass box */
.fcard::before {
  display: none;
}


/* ===== Updated Courses Section ===== */
.courses-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #1c3f6e 0%, #274f86 100%);
  text-align: center;
}

.courses-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #cfe8ff;
}

.courses-title .accent {
  color: #ff7f3f;
}

.roadmap-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.roadmap-card img {
  width: 100%;
  border-radius: 16px;
}



@media (max-width: 980px) {
  .about__wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about__collage {
    width: min(720px, 100%);
  }

  .photo--big {
    height: 300px;
  }

  .photo--wide {
    height: 290px;
  }

  .photo--circle {
    width: 150px;
    height: 150px;
    top: 210px;
    right: 18px;
  }

  .badge--years {
    left: 18px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .photo--big {
    height: 240px;
    border-radius: 26px;
  }

  .photo--wide {
    height: 240px;
    border-radius: 26px;
  }

  .photo--circle {
    width: 120px;
    height: 120px;
    top: 170px;
  }
}


/* ================= WHAT SECTION ================= */

.what-section {
  padding: 140px 0;
  background: linear-gradient(180deg, #1d4273 0%, #18365f 100%);
}

.what-container {
  width: 1200px;
  max-width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.what-images {
  position: relative;
}

.img-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.img-card img {
  width: 100%;
  display: block;
}

.img-top {
  width: 85%;
}

.img-bottom {
  width: 85%;
  margin-top: 40px;
  margin-left: 60px;
}

.img-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  top: 40px;
  right: -30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-content .tag {
  color: #ff8a3d;
  font-weight: 600;
  letter-spacing: 1px;
}

.what-content h2 {
  font-size: 52px;
  margin: 15px 0 25px;
  color: #ffffff;
}

.what-content h2 span {
  color: #ff8a3d;
}

.what-content p {
  color: #d7e5ff;
  line-height: 1.8;
  margin-bottom: 30px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 25px;
  padding: 20px 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list h4 {
  margin: 0 0 5px;
  color: #ffffff;
}

.feature-list p {
  margin: 0;
  color: #c9dcff;
}


/* เผื่อพื้นที่ให้การ์ดลอย */


@media (max-width: 900px) {}

/* Dual track assets are controlled via CSS variables in body.academics-page.track-dual */

/* ===== Modern IoT About Section ===== */

.iot-about-modern {
  padding: 120px 0;
  background: linear-gradient(180deg, #0e3a66 0%, #0b2f54 100%);
}

.iot-container {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* LEFT SIDE */

.iot-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.iot-main-image {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.iot-main-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.iot-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.iot-small {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.iot-small img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* RIGHT SIDE */

.iot-tag {
  color: #ff8a3d;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.iot-content h2 {
  font-size: 56px;
  color: #ffffff;
  line-height: 1.1;
}

.iot-content h2 span {
  color: #ff8a3d;
}

.iot-desc {
  margin: 25px 0 35px;
  color: #cfe6ff;
  line-height: 1.8;
}

.iot-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iot-feature {
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.iot-feature h4 {
  color: #ffffff;
  margin-bottom: 6px;
}

.iot-feature p {
  color: #bcd9ff;
  font-size: 14px;
}

/* Responsive */

@media (max-width: 992px) {
  .iot-container {
    grid-template-columns: 1fr;
  }

  .iot-main-image img {
    height: 350px;
  }
}

/* กันการ์ดล้นด้านล่าง */


/* กันปุ่มส้มโดนทับ “จนกดไม่ได้” -> ให้ปุ่มอยู่เหนือการ์ด */
body.track-dual .hero .btn,
body.track-dual .hero__cta,
body.track-dual .hero__button {
  position: relative;
  z-index: 6;
}

/* มือถือให้เป็นเรียงลง ไม่ลอย */
@media (max-width: 900px) {}

/* ===== FIX Dual hero cards (no extra gap bar) ===== */

/* ยกการ์ดให้ทับลงไปแบบ IoT */
/* ดัน section ถัดไปขึ้นมารับการ์ด (ทับนิด ๆ แบบ IoT) */
body.track-dual .hero+section {
  margin-top: -72px;
  /* ต้องเท่ากับ bottom: -72px */
  padding-top: 120px;
  /* กันเนื้อหาชนการ์ด */
  position: relative;
  z-index: 1;
}

/* มือถือ */
@media (max-width: 900px) {
  body.track-dual .hero+section {
    margin-top: 0;
    padding-top: 40px;
  }
}


/* ===== Dual Degree (PhysIoT) hero cards (match IoT, shift right) =====
   - Cards float at bottom of hero and overlap the next section a bit (like IoT)
   - Keep them toward the right (leave room for the orange CTA on the left)
*/
body.track-dual .hero {
  position: relative;
  padding-bottom: 140px;
  /* reserve space so hero doesn't jump */
}

body.track-dual .hero__cards {
  position: absolute;
  left: auto;
  /* push cards closer to the right edge */
  right: clamp(8px, 1.5vw, 24px);
  /* drop slightly lower to overlap the next section a bit more */
  bottom: -72px;
  width: min(980px, calc(100% - 64px));
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  /* closer like IoT */
  z-index: 5;
}

/* stack on small screens */
@media (max-width: 900px) {
  body.track-dual .hero {
    padding-bottom: 32px;
  }

  body.track-dual .hero__cards {
    position: static;
    width: calc(100% - 32px);
    margin: 20px auto 0;
    flex-direction: column;
    gap: 14px;
  }
}