/* ==========================================================================
   AUSWOW — design tokens + base + navbar + hero
   Source of truth: Figma "auswow" (fileKey JRUAbwBT2mpXsEF99s9Ebx)
   Layout grid: content container = 1024px centered inside a 1920 canvas.
   ========================================================================== */

:root {
  /* brand palette (from Figma) */
  --brand:      #fd612a;   /* primary orange — eyebrows, primary button */
  --brand-ink:  #08262e;   /* near-black teal — headings line 1 */
  --teal:       #007b81;   /* headings accent / section titles */
  --teal-2:     #02676c;   /* outline-button text + stroke */
  --body:       #363636;   /* body copy */
  --bg:         #f9f9f9;   /* page / light surfaces */
  --white:      #fdfdfd;
  --line:       #d9d9d9;

  --container: 1024px;
  --font:    'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-lo: 'Noto Sans Lao', 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
:lang(lo), .lo { font-family: var(--font-lo); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 0;        /* match Figma: content sits flush to the 1024 container edge */
}
@media (max-width: 1064px) { .container { padding-inline: 20px; } }

/* ---------- buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 8px 0 22px;
  border-radius: 22px; border: 1px solid transparent;
  font: 500 16px/1 var(--font); cursor: pointer; white-space: nowrap;
}
.btn .ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary .ico { background: var(--white); }
.btn-primary .ico svg { stroke: var(--brand); }
.btn-outline { background: var(--bg); color: var(--teal-2); border-color: var(--teal-2); }
.btn-outline .ico { background: var(--teal-2); }
.btn-outline .ico svg { stroke: var(--white); }
/* text-only button (no trailing icon) — e.g. the navbar CTA */
.btn-plain { padding: 0 24px; gap: 0; }
/* small button — e.g. blog card "Read More" */
.btn-sm { height: 34px; padding: 0 6px 0 16px; font-size: 14px; gap: 8px; }
.btn-sm .ico { width: 22px; height: 22px; }
.btn-sm .ico svg { width: 12px; height: 12px; }

/* ---------- navbar ----------------------------------------------------- */
.aw-header { position: sticky; top: 0; z-index: 100; }
.nav-top { background: linear-gradient(to left, var(--teal-2), var(--teal)); color: #f9f9f9; font-size: 14px; }
.nav-top .container { display: flex; align-items: center; justify-content: space-between; height: 40px; padding-inline: 0; gap: 16px; }
.nav-top .addr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-top .addr .pin { width: 16px; height: 16px; flex: none; }
.nav-top .addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-top-right { display: flex; align-items: center; gap: 16px; flex: none; }
.socials { display: flex; align-items: center; gap: 12px; }
.socials a { display: grid; place-items: center; opacity: .95; transition: opacity .15s; }
.socials a:hover { opacity: 1; }
.socials img { width: 20px; height: 20px; display: block; }
/* language flags live in the top bar — plain clickable images, no state */
.lang-flags { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.3); }
.lang-flags a { display: block; line-height: 0; border-radius: 3px; overflow: hidden; }
.lang-flags .flag-img { width: 26px; height: 17px; display: block; border-radius: 3px; }

.nav-main { background: #fdfdfd; box-shadow: 0 4px 20px rgba(0,0,0,.10); position: relative; z-index: 10; }
.nav-main .container { display: flex; align-items: center; height: 70px; gap: 20px; padding-inline: 0; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; margin-inline: auto; }
.nav-links a { font-weight: 500; color: var(--brand-ink); position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px; background: var(--brand);
}
.nav-main .btn { flex: none; }

/* mobile burger + drawer (burger/drawer revealed in the ≤820px media query) */
.nav-burger { display: none; flex: none; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-burger span { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--brand-ink); transition: transform .25s ease, opacity .2s ease; }
.aw-header.nav-open .nav-burger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.aw-header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.aw-header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fdfdfd; box-shadow: 0 12px 24px rgba(0,0,0,.12); border-top: 1px solid #eee; padding: 6px 20px 20px; z-index: 30; max-height: calc(100vh - 70px); overflow-y: auto; }
.nav-mobile > a:not(.btn) { padding: 13px 2px; font-weight: 500; color: var(--brand-ink); border-bottom: 1px solid #f0f0f0; }
.nav-mobile > a.active { color: var(--brand); }
.nav-mobile-flags { display: flex; gap: 18px; margin-top: 16px; }
.nav-mobile-flags a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--brand-ink); }
.nav-mobile-flags a.active { color: var(--brand); }
.nav-mobile-flags .flag-img { width: 26px; height: auto; border-radius: 3px; display: block; }

/* ---------- hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 655px;
  /* background-image is set inline (uses asset-base var A) so preview + production share one path */
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {           /* left white gradient for text legibility (Figma Banner Background) */
  content: ""; position: absolute; inset: 0; width: 1087px; max-width: 70%;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(249,249,249,0) 100%);
}
.hero .container { position: relative; }
.hero-content { position: relative; min-height: 655px; }
.hero-eyebrow {
  position: absolute; top: 157px; left: 0;
  margin: 0; font-weight: 700; font-size: 16px; color: var(--brand);
  letter-spacing: .02em; text-transform: uppercase;
}
.hero-title {
  position: absolute; top: 189px; left: 0; margin: 0;
  font-weight: 800; font-size: 44px; line-height: 52px; color: var(--brand-ink);
}
.hero-title .accent { color: var(--teal); display: block; }
.hero-desc {
  position: absolute; top: 314px; left: 0; width: 444px; max-width: 90%;
  margin: 0; font-weight: 700; font-size: 16px; color: var(--brand-ink);
}
.hero-divider { position: absolute; top: 378px; left: 0; width: 67px; height: 5px; margin: 0; border: 0; border-radius: 2px; background: var(--brand); }
.hero-para {
  position: absolute; top: 407px; left: 0; width: 478px; max-width: 90%;
  margin: 0; font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--body);
}
.hero-actions { position: absolute; top: 506px; left: 0; display: flex; gap: 12px; }

/* ---------- shared section bits (reused across sections) --------------- */
.section-eyebrow { margin: 0; font-weight: 700; font-size: 16px; color: var(--brand); letter-spacing: .02em; text-transform: uppercase; }
.section-heading { margin: 8px 0 0; font-weight: 700; font-size: 30px; line-height: 1.25; color: var(--teal); }
.section-divider { width: 67px; height: 5px; margin: 14px 0 0; border: 0; border-radius: 2px; background: var(--brand); }

/* ---------- Get to Know AUSWOW ----------------------------------------- */
.gtk { padding: 90px 0; }
.gtk-row { display: flex; align-items: center; gap: 20px; }
.gtk-text { flex: 1 1 502px; min-width: 0; }
.gtk-para { margin: 18px 0 0; font-size: 14px; line-height: 1.7; color: var(--body); }
.gtk-text .section-divider { margin-bottom: 18px; }
.gtk-media { flex: 0 0 502px; max-width: 502px; }
.gtk-media img {
  width: 100%; aspect-ratio: 502 / 393; object-fit: cover;
  border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

/* ---------- Your Future, Our Commitment (teal bg image) --------------- */
.commit { background-position: center; background-size: cover; background-repeat: no-repeat; padding: 56px 0 64px; color: #fefefe; }
.commit-head { text-align: center; margin-bottom: 34px; }
.commit-head .commit-title { margin: 6px 0 0; font-weight: 700; font-size: 30px; color: #fefefe; }
.commit-head .section-divider { margin: 14px auto 0; }
.commit-grid { display: flex; gap: 20px; align-items: flex-start; }
.commit-cards { flex: 1 1 676px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.commit-card-item { display: flex; align-items: center; gap: 22px; padding: 22px 28px; border-radius: 15px; background: linear-gradient(135deg, #01727d, #008490); }
.commit-icon { flex: none; width: 88px; height: 88px; border-radius: 50%; background: #fefefe; display: grid; place-items: center; }
.commit-icon img { width: auto; height: 44px; }
.commit-card-text h3 { margin: 0; font-weight: 700; font-size: 21px; color: #fefefe; }
.commit-card-text p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #fefefe; }
.commit-aside { flex: 0 0 328px; max-width: 328px; }
.commit-cta { background: #fefefe; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,.15); padding: 24px; }
.commit-pill { display: inline-block; border: 1px solid var(--brand); color: var(--brand); border-radius: 20px; padding: 7px 16px; font-size: 14px; font-weight: 500; }
.commit-cta h3 { margin: 16px 0 0; font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--teal); }
.commit-cta hr { margin: 14px 0; border: 0; border-top: 1px solid #e6e6e6; }
.commit-cta p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--body); }
.commit-cta .btn { width: 100%; justify-content: center; }
.commit-trusted { margin: 22px 0 0; font-weight: 800; font-size: 30px; line-height: 1.18; color: #fefefe; }

/* ---------- Why Choose Us ---------------------------------------------- */
.why { padding: 84px 0; }
.why-grid { display: flex; gap: 20px; align-items: flex-start; }
.why-intro { flex: 1 1 502px; min-width: 0; }
.why-para { margin: 18px 0 0; font-size: 14px; line-height: 1.7; color: var(--body); }
.why-features { flex: 1 1 502px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.why-feature { display: flex; gap: 22px; align-items: flex-start; }
.why-feature-icon { flex: none; width: 67px; display: flex; align-items: center; justify-content: center; }
.why-feature-icon img { width: auto; max-width: 67px; max-height: 52px; }
.why-feature-text h3 { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--teal); }
.why-feature-text p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.why-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ---------- Testimonials ---------------------------------------------- */
.testi { padding: 36px 0 80px; }
.testi-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 38px; }
.testi-rating {
  display: flex; align-items: center; gap: 18px; flex: none;
  background: #f9f9f9; border: 1px solid rgba(2,103,108,.18); border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10); padding: 16px 26px;
}
.testi-rating-note { margin: 0; max-width: 165px; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--teal); }
.testi-score { font-weight: 700; font-size: 92px; line-height: 1; color: var(--brand); }
.testi-rating-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.testi-rating-meta p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--body); }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; }
.stars.teal { color: var(--teal); }
.stars.orange { color: var(--brand); }
.testi-card { background: #f9f9f9; border-radius: 14px; padding: 18px; }
/* Owl Carousel — testimonials. Equal-height cards (dot + img overrides live in home.jade
   page-css so they load AFTER owl's own CSS). */
.testi-cards.owl-carousel { cursor: grab; }
.testi-cards.owl-carousel.is-grabbing { cursor: grabbing; }
.testi .owl-stage { display: flex; }
.testi .owl-item { display: flex; }
.testi .owl-item .testi-card { width: 100%; }
/* Empty-state placeholder shown when a CMS list has no data (instead of fake demo cards) */
.aw-empty { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 150px; padding: 48px 20px; color: #9aa3a6; font-size: 16px; font-weight: 500; line-height: 1.6; }
.testi-card-top { display: flex; gap: 14px; align-items: center; }
.testi-avatar { width: 61px; height: 61px; border-radius: 10px; object-fit: cover; box-shadow: 4px 4px 0 #10c3ce; flex: none; }
.testi-card-id h4 { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--teal); }
.testi-card-id p { margin: 4px 0 0; font-size: 14px; color: var(--body); }
.testi-card hr { margin: 14px 0; border: 0; border-top: 1px solid #10c3ce; }
.testi-review { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); min-height: 66px; }
.testi-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.testi-user { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--body); }
.testi-user svg { width: 16px; height: 16px; color: var(--teal); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testi-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.testi-dots span.active { background: var(--teal); }
.testi-trust { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 0; font-size: 14px; color: var(--body); }
.testi-heart { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ccf6f8; flex: none; }
.testi-heart svg { width: 12px; height: 12px; color: var(--teal); }

/* ---------- Accommodations / Health Cover (image cards) --------------- */
.servcards { padding: 0 0 80px; }
.servcards-row { display: flex; gap: 20px; }
.servcard { flex: 1 1 0; min-width: 0; min-height: 180px; display: flex; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.servcard-overlay { width: 62%; padding: 22px 24px; background: linear-gradient(90deg, rgba(249,249,249,.97) 58%, rgba(249,249,249,0)); }
.servcard-title { margin: 0 0 8px; font-weight: 700; font-size: 16px; }
.servcard-title.is-teal { color: var(--teal); }
.servcard-title.is-orange { color: var(--brand); }
.servcard-overlay p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }

/* ---------- Latest Blogs ---------------------------------------------- */
.blogs { padding: 0 0 84px; }
.blogs-head { position: relative; text-align: center; margin-bottom: 32px; }
.blogs-title { margin: 6px 0 0; font-weight: 700; font-size: 30px; color: var(--teal); }
.blogs-head .section-divider { margin: 14px auto 0; }
.blogs-seemore { position: absolute; top: 6px; right: 0; font-size: 16px; color: var(--teal); }
.blogs-grid { display: flex; gap: 20px; }
.blog-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.blog-card-img { display: block; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.blog-card-img img { width: 100%; aspect-ratio: 228 / 137; object-fit: cover; display: block; }
.blog-card h3 { margin: 14px 0 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--teal); }
.blog-card-excerpt { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.blog-card-date { font-size: 14px; color: var(--body); }

/* ---------- Last CTA banner ------------------------------------------- */
.lastcta { padding: 0 0 72px; }
.lastcta-banner {
  border-radius: 37px; overflow: hidden;
  aspect-ratio: 1024 / 218;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 24px; text-align: center; color: #fff;
}
.lastcta-title { margin: 0; font-weight: 700; font-size: 30px; color: #fff; text-shadow: 0 4px 5px rgba(0,0,0,.15); }
.lastcta-sub { margin: 12px 0 0; font-weight: 500; font-size: 16px; color: #f9f9f9; text-shadow: 0 4px 5px rgba(0,0,0,.15); }
.lastcta-actions { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }

/* ---------- Sub-page hero (Our Student, etc.) ------------------------- */
.subhero { position: relative; min-height: 455px; display: flex; align-items: center; background-size: cover; background-position: center right; background-repeat: no-repeat; }
.subhero::before { content: ""; position: absolute; inset: 0; width: 60%; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(249,249,249,0) 100%); }
.subhero .container { position: relative; }
.subhero-content { max-width: 520px; padding: 30px 0; }
.subhero-eyebrow { margin: 0; font-weight: 700; font-size: 16px; color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.subhero-title { margin: 8px 0 0; font-weight: 800; font-size: 44px; line-height: 1.1; color: var(--teal); }
.subhero-divider { width: 67px; height: 5px; margin: 18px 0; border: 0; border-radius: 2px; background: var(--brand); }
.subhero-para { margin: 0 0 28px; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--body); }
.subhero-actions { display: flex; gap: 12px; }

/* ---------- Students grid (Our Student) ------------------------------- */
.students { padding: 70px 0 80px; }
.students-head { text-align: center; margin-bottom: 36px; }
.students-head .section-divider { margin: 14px auto 18px; }
.students-subtext { max-width: 620px; margin: 0 auto; font-size: 14px; line-height: 1.6; color: var(--body); }
.student-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aw-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; }
.aw-pager-num, .aw-pager-arrow { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; font-size: 14px; color: var(--body); cursor: pointer; }
.aw-pager-num.active { background: var(--brand); color: #fff; font-weight: 700; }
.aw-pager-arrow { color: #bdbdbd; }

/* ---------- Courses (listing + category sidebar) ---------------------- */
.courses { padding: 56px 0 80px; }
.courses-layout { display: flex; gap: 40px; align-items: flex-start; }
.courses-side { flex: 0 0 200px; }
.courses-side-title { margin: 0 0 18px; font-weight: 700; font-size: 30px; color: var(--teal); }
.courses-cats { list-style: none; margin: 0; padding: 0; }
.courses-cats li { margin-bottom: 12px; }
.courses-cats a { font-size: 18px; color: var(--body); }
.courses-cats a.active { font-weight: 700; }
.courses-cats a:hover { color: var(--brand); }
/* category dropdown toggle — desktop hidden, revealed as a themed dropdown ≤820px */
.cats-toggle { display: none; }
.courses-main { flex: 1 1 auto; min-width: 0; }
.courses-main .section-heading { margin: 0; }
.courses-desc { margin: 14px 0 28px; font-size: 14px; line-height: 1.7; color: var(--body); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.course-card { display: flex; flex-direction: column; }
.course-card-img { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.course-card-img img { width: 100%; aspect-ratio: 241 / 135; object-fit: cover; display: block; }
.course-card h3 { margin: 12px 0 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--teal); }
.course-card h3 a { color: inherit; }
.course-meta { margin: 6px 0 0; font-size: 14px; color: var(--body); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.course-date { font-size: 14px; color: var(--body); }
.course-readmore { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand); }
.rm-arrow { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.rm-arrow svg { width: 10px; height: 10px; stroke: #fff; }
/* blog listing grid (Blogs page) — reuses .blog-card */
.blog-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }

/* ---------- Course detail --------------------------------------------- */
.cd { padding: 36px 0 56px; }
.cd-breadcrumb { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; font-size: 16px; color: var(--body); }
.cd-crumb a { color: var(--body); }
.cd-crumb a:hover { color: var(--brand); }
.cd-main { flex: 1 1 auto; min-width: 0; }
.cd-title { margin: 0 0 22px; font-weight: 700; font-size: 30px; color: var(--teal); }
.cd-top { display: flex; gap: 32px; align-items: flex-start; }
.cd-gallery { flex: 1 1 501px; min-width: 0; }
.cd-gallery-main { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.cd-gallery-main img { width: 100%; aspect-ratio: 501 / 289; object-fit: cover; display: block; }
.cd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.cd-thumb { aspect-ratio: 118 / 65; border-radius: 10px; overflow: hidden; background: #e6e6e6; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-info { flex: 0 0 228px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 4px 15px rgba(0,0,0,.08); }
.cd-info h3 { margin: 0 0 14px; font-weight: 700; font-size: 20px; color: var(--teal); }
.cd-label { display: block; font-weight: 700; font-size: 14px; color: var(--teal); }
.cd-value { margin: 2px 0 14px; font-weight: 700; font-size: 19px; color: var(--body); }
.cd-note { margin: 0 0 16px; font-size: 10px; line-height: 1.5; color: var(--body); }
.cd-info .btn { width: 100%; justify-content: center; }
.cd-box { background: #ccf6f8; border-radius: 12px; padding: 18px 22px; margin-top: 24px; }
.cd-box p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.cd-pathways { margin-top: 22px; }
.cd-pathways p { margin: 0 0 8px; font-size: 16px; line-height: 1.7; color: var(--body); }
.cd-path-title { font-weight: 700; color: var(--brand-ink); }
/* article/blog detail body */
.art-img { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); margin-bottom: 24px; }
.art-img img { width: 100%; aspect-ratio: 763 / 437; object-fit: cover; display: block; }
.art-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--body); }
.art-h { margin: 28px 0 14px; font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--teal); }
.art-body .cd-box { margin-top: 24px; }

/* ---------- Accommodations (amber widget) ----------------------------- */
.amber-section { padding: 60px 0 80px; min-height: 320px; }
.amber-wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 20px; }
#amber-widget { width: 100%; }

/* ---------- Services page --------------------------------------------- */
.svc-intro { padding: 64px 0 0; }
.svc-intro-img { border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); margin-bottom: 28px; }
.svc-intro-img img { width: 100%; aspect-ratio: 1024 / 213; object-fit: cover; display: block; }
.svc-list { margin: 0; padding: 0; list-style: none; }
.svc-list li { margin-bottom: 14px; font-size: 14px; line-height: 1.7; color: var(--body); }
.svc-intro-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.svc-cards-sec { padding: 56px 0 80px; }
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.svc-card { flex: 0 1 328px; max-width: 100%; display: flex; flex-direction: column; }
.svc-card-img { border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.svc-card-img img { width: 100%; aspect-ratio: 327 / 183; object-fit: cover; display: block; }
.svc-card h3 { margin: 14px 0 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--teal); }
.svc-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }

/* ---------- About Us -------------------------------------------------- */
.aw-rule { border: 0; border-top: 1px solid #a7dadc; margin: 0; }
.about-gtk { padding: 70px 0 50px; }
.about-gtk-img { border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); margin-bottom: 28px; }
.about-gtk-img img { width: 100%; aspect-ratio: 1024 / 238; object-fit: cover; display: block; }
.about-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; list-style: none; margin: 0; padding: 0; }
.about-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--body); }
.check-ico { width: 22px; height: 22px; flex: none; margin-top: 1px; }

.about-who { padding: 0; }
.about-who-row { display: flex; gap: 40px; align-items: center; margin: 50px 0; }
.about-who-img { flex: 0 0 502px; max-width: 502px; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.about-who-img img { width: 100%; aspect-ratio: 502 / 346; object-fit: cover; display: block; }
.about-who-text { flex: 1 1 auto; min-width: 0; }
.about-who-text .section-divider { margin: 14px 0 18px; }
.about-who-para { margin: 0 0 26px; font-size: 14px; line-height: 1.7; color: var(--body); }
.about-who-actions { display: flex; gap: 12px; }

.about-team { padding: 30px 0 80px; }
.team-rule { border: 0; border-top: 1px solid #10c3ce; margin: 14px 0; }
.about-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.team-card { display: flex; flex-direction: column; background: #f9f9f9; border-radius: 20px; box-shadow: 0 6px 22px rgba(8,38,46,.10); padding: 18px; }
.team-card-img { border-radius: 10px; box-shadow: 4px 4px 0 #10c3ce; }
.team-card-img img { width: 100%; aspect-ratio: 287 / 212; object-fit: cover; display: block; border-radius: 10px; }
.team-name { margin: 18px 0 0; font-weight: 700; font-size: 40px; line-height: 1; color: var(--teal); }
.team-role { margin: 8px 0 0; font-weight: 700; font-size: 16px; color: var(--brand); }
.team-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.team-cta-slot { display: flex; flex-direction: column; }
.team-cta-slot .commit-cta { border: 1px solid var(--line); }
.commit-trusted.is-teal { color: var(--teal); margin-top: 18px; }

/* ---------- Contact --------------------------------------------------- */
.contact { padding: 56px 0 0; }
.contact-grid { display: flex; gap: 40px; align-items: flex-start; }
.contact-info { flex: 1 1 470px; min-width: 0; }
.contact-info .section-heading { margin: 0; }
.contact-intro { margin: 14px 0 0; max-width: 420px; font-size: 14px; line-height: 1.7; color: var(--body); }
.contact-phone { margin: 6px 0 20px; font-size: 16px; font-weight: 500; color: var(--body); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; line-height: 1.5; color: var(--body); }
.contact-ico { width: 24px; height: 24px; flex: none; display: block; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 22px; }
.contact-link { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--body); }
.contact-link:hover { color: var(--brand); }

.contact-form { flex: 1 1 490px; min-width: 0; }
.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .form-row { display: flex; gap: 14px; }
.contact-form .form-row input { flex: 1 1 0; min-width: 0; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; font: 400 16px var(--font); color: var(--body); background: #fff; }
.contact-form textarea { min-height: 132px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa0a0; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal-2); }
.contact-form .form-send { align-self: flex-end; }
.contact-form .form-status { margin: 0; font: 500 15px var(--font); }
.contact-form .form-status[hidden] { display: none; }

.contact-map { margin-top: 46px; margin-bottom: 64px; }
.contact-map iframe { width: 100%; height: 392px; border: 0; border-radius: 12px; display: block; box-shadow: 0 4px 15px rgba(0,0,0,.1); }

/* ---------- Footer ---------------------------------------------------- */
.aw-footer-main { background: linear-gradient(to left, var(--teal-2), var(--teal)); color: #fdfbfc; padding: 42px 0 30px; }
.aw-footer-grid { display: flex; gap: 40px; }
.aw-footer-brand { flex: 1 1 360px; min-width: 0; }
.aw-footer-logo { height: 84px; width: auto; margin-bottom: 16px; }
.aw-footer-brand p { margin: 0; max-width: 340px; font-weight: 300; font-size: 14px; line-height: 1.7; }
.aw-footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.aw-footer-socials img { width: 22px; height: 22px; display: block; }
.aw-footer-col { flex: 1 1 auto; }
.aw-footer-col h4 { position: relative; margin: 0 0 30px; padding-bottom: 14px; font-weight: 500; font-size: 16px; color: #f9f9f9; text-transform: capitalize; }
.aw-footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; border-radius: 2px; background: var(--brand); }
.aw-footer-col ul { margin: 0; padding-left: 18px; list-style: disc; }
.aw-footer-col li { margin-bottom: 8px; font-weight: 300; font-size: 14px; }
.aw-footer-col a { color: #fdfbfc; }
.aw-footer-col a:hover { text-decoration: underline; }
.aw-footer-contact .aw-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 300; font-size: 14px; color: #fdfbfc; }
.aw-footer-contact img { width: 20px; height: 20px; flex: none; }
.aw-footer-bottom { background: #015b60; border-top: 1px solid #10c3ce; padding: 12px 0; text-align: center; }
.aw-footer-bottom span { font-size: 12px; color: #f9f9f9; }

/* ---------- responsive (initial) -------------------------------------- */
@media (max-width: 820px) {
  .nav-top, .nav-links { display: none; }
  .nav-main .container { padding-inline: 18px; gap: 12px; }   /* keep logo/CTA/burger off the screen edges */
  .nav-cta { display: inline-flex; margin-left: auto; height: 40px; padding: 0 18px; font-size: 14px; }
  .nav-burger { display: flex; }
  .aw-header.nav-open .nav-mobile { display: flex; flex-direction: column; }
  .hero { background-position: right; }   /* mobile: align hero image to the right */
  .hero::before { width: 100%; max-width: 100%; background: linear-gradient(180deg, rgba(249,249,249,.92), rgba(249,249,249,.75)); }
  .hero-content { min-height: auto; padding-bottom: 48px; }
  .hero-eyebrow { position: static; padding-top: 80px; }
  .hero-title, .hero-desc, .hero-para, .hero-divider, .hero-actions { position: static; width: auto; margin-top: 14px; left: 0; }
  .hero-divider { margin-top: 18px; }
  .hero-title { font-size: 32px; line-height: 40px; }
  .hero-actions { margin-top: 28px; }
  .gtk { padding: 56px 0; }
  .gtk-row { flex-direction: column; align-items: stretch; }
  .gtk-media { flex-basis: auto; max-width: none; }
  .commit-grid { flex-direction: column; }
  .commit-aside { flex-basis: auto; max-width: none; }
  .commit-card-item { padding: 18px 20px; gap: 16px; }
  .commit-icon { width: 72px; height: 72px; }
  .commit-icon img { height: 38px; }
  .why { padding: 56px 0; }
  .why-grid { flex-direction: column; gap: 36px; }
  /* stacked columns: reset px flex-basis (becomes phantom HEIGHT in flex-direction:column) → size to content */
  .gtk-text, .commit-cards, .why-intro, .why-features, .cd-gallery { flex: 1 1 auto; }
  .testi-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .testi-score { font-size: 72px; }
  .servcards-row { flex-direction: column; }
  .servcard-overlay { width: 100%; background: linear-gradient(90deg, rgba(249,249,249,.95), rgba(249,249,249,.8)); }
  .blogs-grid { flex-wrap: wrap; }
  .blog-card { flex: 1 1 calc(50% - 10px); }
  .blogs-seemore { position: static; display: inline-block; margin-top: 12px; }
  .lastcta-banner { aspect-ratio: auto; padding: 34px 20px; }
  .lastcta-title { font-size: 23px; }
  .lastcta-actions { flex-wrap: wrap; justify-content: center; }
  .aw-footer-main { padding: 36px 0 26px; }
  /* wrap on the row axis (NOT column) so flex-basis stays width — avoids the brand growing to 360px tall */
  .aw-footer-grid { flex-wrap: wrap; gap: 26px 20px; }
  .aw-footer-brand { flex: 1 1 100%; }        /* brand full width on top */
  .aw-footer-brand p { max-width: 100%; }
  .aw-footer-col { flex: 1 1 calc(50% - 10px); }   /* Quick Links + Popular Courses → 6/6 */
  .aw-footer-contact { flex: 1 1 100%; }      /* Contact full width below */
  .aw-footer-col h4 { margin-bottom: 16px; }
  .subhero::before { width: 100%; background: linear-gradient(180deg, rgba(249,249,249,.93), rgba(249,249,249,.78)); }
  .subhero { background-position: right; }   /* mobile: align subpage hero image to the right */
  .subhero-title { font-size: 32px; }
  .student-grid { grid-template-columns: 1fr; }
  .courses-layout { flex-direction: column; gap: 24px; }
  .courses-side { flex-basis: auto; }
  /* category menu → themed dropdown (collapsed by default so it isn't a long list) */
  .courses-side-title { display: none; }
  .cats-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font: 600 16px var(--font); color: var(--teal); cursor: pointer; box-shadow: 0 2px 10px rgba(8,38,46,.06); }
  .cats-toggle-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cats-toggle-chev { display: inline-flex; flex: none; color: var(--brand); transition: transform .25s ease; }
  .courses-side.cats-open .cats-toggle-chev { transform: rotate(180deg); }
  .courses-cats { display: none; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(8,38,46,.08); }
  .courses-side.cats-open .courses-cats { display: block; }
  .courses-cats li { margin: 0; }
  .courses-cats a { display: block; padding: 12px 16px; font-size: 15px; color: var(--body); border-bottom: 1px solid #f1f1f1; }
  .courses-cats li:last-child a { border-bottom: 0; }
  .courses-cats a.active { color: var(--brand); background: rgba(253,97,42,.06); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-list-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-top { flex-direction: column; }
  .cd-info { flex-basis: auto; }
  .cd-breadcrumb { flex-direction: column; align-items: flex-start; gap: 8px; }
  .about-checklist { grid-template-columns: 1fr; }
  .about-who-row { flex-direction: column; align-items: stretch; }
  .about-who-img { flex-basis: auto; max-width: none; }
  .about-team-grid { grid-template-columns: 1fr; }
  /* wrap on the row axis (NOT column) so the px flex-basis stays width instead of becoming height */
  .contact-grid { flex-wrap: wrap; gap: 32px; }
  .contact-info, .contact-form { flex: 1 1 100%; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-form .form-row { flex-direction: column; }
  .contact-form .form-row input { flex: 1 1 auto; }
  .contact-form .form-send { align-self: stretch; justify-content: center; }
}
@media (min-width: 821px) and (max-width: 1024px) {
  .student-grid { grid-template-columns: repeat(2, 1fr); }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .courses-grid { grid-template-columns: 1fr; }
  .blog-card { flex-basis: 100%; }            /* home Latest Blogs → 1 column (no narrow-card button overflow) */
  .blog-list-grid { grid-template-columns: 1fr; }
}

/* ---------- subtle scroll-reveal (added by JS in auswow-layout) -------------- */
/* The .aw-reveal class is applied by JS only to below-the-fold targets, so content
   stays visible if JS is off and there's no flash for above-the-fold elements. */
.aw-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.aw-reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aw-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* hero / subpage-hero text: staggered rise-in on page load (above the fold, pure CSS) */
@keyframes aw-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-content > *, .subhero-content > * { animation: aw-rise .65s cubic-bezier(.22,.61,.36,1) both; }
  .hero-content > *:nth-child(1), .subhero-content > *:nth-child(1) { animation-delay: .10s; }
  .hero-content > *:nth-child(2), .subhero-content > *:nth-child(2) { animation-delay: .20s; }
  .hero-content > *:nth-child(3), .subhero-content > *:nth-child(3) { animation-delay: .30s; }
  .hero-content > *:nth-child(4), .subhero-content > *:nth-child(4) { animation-delay: .40s; }
  .hero-content > *:nth-child(5), .subhero-content > *:nth-child(5) { animation-delay: .50s; }
  .hero-content > *:nth-child(6) { animation-delay: .60s; }
}
