/* KHNG website: styled to match the former Wix site (white pages, blue bands over a faded bus photo,
   blue footer with accreditation logos, black bottom bar). */
:root {
  --blue: #0530ad;          /* Wix band / footer blue */
  --blue-link: #0f62fe;     /* active menu item */
  --btn: #0434b8;
  --ink: #000;
  --text: #404040;
  --line: #e3e7ee;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 15px/1.65 "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-link); }
h1, h2, h3 { margin: 0 0 .6em; color: var(--ink); line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 20; }

/* Headings like the Wix site */
.title { font-family: Barlow, "DIN Next", "Segoe UI", sans-serif; font-weight: 300; font-size: clamp(30px, 5vw, 47px); letter-spacing: .02em; }
.heading { font-weight: 700; font-size: clamp(22px, 3.2vw, 28px); letter-spacing: 1.4px; text-transform: uppercase; }
.sub { font-weight: 400; font-size: 18px; letter-spacing: .9px; text-transform: uppercase; }

/* Header */
.top { background: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 120px; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > .item { position: relative; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--blue-link); }
.nav .drop { display: none; position: absolute; left: 0; top: 100%; background: #fff; min-width: 230px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px 0; }
.nav .drop a { font-weight: 400; text-transform: none; font-size: 14px; }
.nav .item:hover .drop, .nav .item:focus-within .drop { display: block; }
.nav a.signin { border: 1.5px solid var(--btn); color: var(--btn); margin-left: 8px; padding: 7px 14px; }
.nav a.signin:hover { background: var(--btn); color: #fff; }
/* Phones: "Sign in" always in the top bar beside Menu (the one in the menu is at the very bottom). */
.signin-top { display: none; font-weight: 700; border: 1.5px solid var(--btn); color: var(--btn); padding: 8px 14px; margin-left: auto; margin-right: 8px; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .signin-top { display: inline-block; } }
.menu-btn { display: none; font: inherit; font-weight: 700; background: #fff; border: 1.5px solid var(--line); padding: 8px 14px; color: var(--ink); }
.rule { height: 6px; background: var(--blue-link); }
@media (max-width: 900px) {
  .top-in { min-height: 84px; }
  .brand img { width: 160px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 8px 16px rgba(0,0,0,.08); max-height: calc(100vh - 84px); overflow: auto; }
  .nav.open { display: flex; }
  .nav .drop { display: block; position: static; box-shadow: none; padding: 0 0 0 14px; }
  .nav a.signin { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--btn); color: #fff; text-decoration: none; font-size: 14px; padding: 12px 56px; border: 0; }
.btn:hover { background: var(--blue); }
.btn-line { background: transparent; color: var(--btn); border: 1.5px solid var(--btn); padding: 10px 28px; }
.btn-line:hover { background: var(--btn); color: #fff; }

/* Home: faded bus photo behind the whole page, coloured bands over it */
.home { background: #8f969e url(/assets/bg-bus.jpg) center / cover fixed; }
@media (max-width: 900px), (hover: none) { .home { background-attachment: scroll; background-size: auto 100vh; background-repeat: repeat-y; } }
.band { padding: 56px 0; }
.band-hero { padding: 56px 0 64px; color: #fff; text-align: center; background: rgba(60, 66, 74, .35); }
.band-hero .title { color: #fff; }
.band-hero p { max-width: 720px; margin: 0 auto; font-size: 15px; }
.band-blue { background: rgba(5, 48, 173, .7); color: #fff; }
.band-blue .sub { color: #fff; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.cols3 > div { padding: 0 28px; }
.cols3.lines > div + div { border-left: 1px solid rgba(255,255,255,.85); }
.band-white { background: rgba(255, 255, 255, .68); }
.book { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.book p { font-size: 16px; }
.band-light { background: rgba(135, 177, 255, .79); }
.band-light .lead { color: #fff; font-size: 16px; max-width: 760px; margin: 0 auto 40px; }
.icon { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--blue-link); }
.band-light .sub { color: var(--ink); }
@media (max-width: 760px) {
  .cols3 { grid-template-columns: 1fr; gap: 28px; }
  .cols3.lines > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.6); padding-top: 28px; }
  .book { grid-template-columns: 1fr; }
}

/* Inner pages: white */
.page { padding: 56px 0 64px; }
.page .heading { text-align: center; margin-bottom: 28px; }
.intro { max-width: 860px; margin: 0 auto 40px; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid { display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc { text-align: center; }
.svc .sub { color: var(--ink); }
.svc p { font-size: 14px; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.letters img { border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.06); width: 100%; }
.contact p { font-size: 16px; }
.contact b { color: var(--ink); }
.cards .card { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; text-align: center; }
.cards .card p { flex: 1; }
.cards .card .btn, .cards .card .btn-line { align-self: center; padding-left: 24px; padding-right: 24px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-link); margin-bottom: 6px; }
.note { background: #fff8e1; border: 1px solid #f3dd8c; padding: 12px 16px; }
@media (max-width: 760px) { .two, .certs { grid-template-columns: 1fr; } }

/* Embedded forms from the KHNG system */
.embed { width: 100%; border: 0; display: block; min-height: 1500px; background: #fff; }
.embed-short { min-height: 1200px; }

/* Footer */
.foot { background: var(--blue); color: #fff; }
.foot a { color: #fff; text-decoration: none; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; align-items: center; padding: 32px 16px; max-width: 1100px; margin: 0 auto; font-size: 13px; }
.foot h2 { color: #fff; font-weight: 400; font-size: 18px; letter-spacing: .9px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.foot h2 svg { width: 20px; height: 20px; }
.foot p { margin: 0 0 8px; }
.logos { display: flex; align-items: center; gap: 18px; justify-content: flex-end; flex-wrap: wrap; }
.logos img { height: 56px; width: auto; }
.base { background: #000; color: #fff; text-align: center; font-size: 13px; padding: 10px 16px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .logos { justify-content: flex-start; } }
