/* ============================================================
   MINDGLE — Global Stylesheet (global.css)
   Logo colors: Navy #1a2744 | Blue #2d86c7 | Green #2e7d4f | Red #c0392b | Yellow #f5a623
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --navy:        #1a2744;
  --navy-soft:   #243362;
  --blue:        #2d86c7;
  --blue-dk:     #1e6aa0;
  --blue-lt:     #e8f4fc;
  --green:       #2e7d4f;
  --green-lt:    #edf7f2;
  --red:         #c0392b;
  --red-lt:      #fdf0ee;
  --yellow:      #f5a623;
  --yellow-lt:   #fef8ec;
  --yellow-dk:   #d4891a;

  --bg:          #f6f9fb;
  --white:       #ffffff;
  --text:        #1e2d3d;
  --muted:       #64748b;
  --border:      rgba(0,0,0,0.08);

  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Plus Jakarta Sans', sans-serif;

  --r:           8px;
  --r-lg:        16px;
  --r-xl:        24px;

  --sh-sm:       0 2px 8px rgba(0,0,0,0.06);
  --sh-md:       0 6px 24px rgba(0,0,0,0.09);
  --sh-lg:       0 16px 48px rgba(0,0,0,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.22s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 9px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.15px;
}
.top-bar-left i { color: var(--yellow); margin-right: 7px; }
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.info-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.42); }
.top-bar-links { display: flex; gap: 16px; }
.top-bar-links a { color: rgba(255,255,255,0.68); font-size: 12.5px; }
.top-bar-links a:hover { color: var(--yellow); }

/* ============================================================
   MAIN HEADER / NAV
   ============================================================ */
.main-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img {
  height: 62px !important;
  width: auto !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.navigation-menu { display: flex; align-items: center; }
.menu-list { display: flex; align-items: center; gap: 2px; }
.menu-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--r);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.menu-item:hover { color: var(--blue); background: var(--blue-lt); }
.menu-item.active { color: var(--blue); background: var(--blue-lt); }
.btn-login {
  background: var(--blue);
  color: #fff !important;
  margin-left: 10px;
  padding: 8px 18px;
  border-radius: var(--r);
}
.btn-login:hover { background: var(--navy); color: #fff !important; }

/* ============================================================
   PAGE HERO BANNER (used on every inner page)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dk) 100%);
  padding: 64px 5% 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(245,166,35,0.08);
  pointer-events: none;
}
.hero-breadcrumb {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.65); }
.hero-breadcrumb a:hover { color: var(--yellow); }
.hero-breadcrumb span { color: rgba(255,255,255,0.4); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  line-height: 1.65;
}
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.hero-tag.blue  { border-color: var(--blue); color: var(--blue-lt); }
.hero-tag.green { border-color: var(--green); color: #a7f3d0; }
.hero-tag.yellow{ border-color: var(--yellow); color: var(--yellow); }
.hero-tag.red   { border-color: var(--red); color: #fca5a5; }

/* ============================================================
   ARTICLE / CONTENT LAYOUT
   ============================================================ */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 5% 80px;
}
.article-wrap h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  line-height: 1.3;
}
.article-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}
.article-wrap p { margin-bottom: 14px; line-height: 1.75; color: var(--text); }
.article-wrap strong { color: var(--navy); }

/* Content block card */
.content-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1.5px solid var(--border);
  margin-bottom: 28px;
  box-shadow: var(--sh-sm);
}
.content-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 10px;
}
.step-pill {
  padding: 14px 18px;
  border-radius: 0 var(--r) var(--r) 0;
  border-left: 4px solid var(--blue);
  background: var(--blue-lt);
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.robust-box {
  background: var(--green-lt);
  border-left: 5px solid var(--green);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 24px 28px;
  margin-top: 20px;
}
.robust-box h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}
.robust-box p { color: var(--text); margin: 0; }
.inquiry-highlight {
  background: var(--blue-lt);
  border-radius: var(--r);
  padding: 20px 24px;
  text-align: center;
  margin-top: 20px;
}
.inquiry-highlight .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.inquiry-highlight h5 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

/* section divider */
.section-divider { border: 0; border-top: 1.5px solid var(--border); margin: 36px 0; }

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  background: #000;
  margin: 28px 0;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   MEDIA ASSETS HUB
   ============================================================ */
.assets-hub {
  background: var(--blue-lt);
  border: 2px dashed rgba(45,134,199,0.3);
  border-radius: var(--r-xl);
  padding: 36px;
  margin-bottom: 28px;
}
.assets-hub h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}
.assets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.asset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
  width: 100%;
  transition: all 0.22s ease;
}
.asset-btn.primary   { background: var(--blue); color: #fff; }
.asset-btn.primary:hover { background: var(--navy); }
.asset-btn.outline   { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.asset-btn.outline:hover { background: var(--blue); color: #fff; }

/* ============================================================
   DOCUMENT / RESOURCE CARDS
   ============================================================ */
.doc-section { padding: 48px 5%; background: var(--bg); }
.doc-section-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.doc-section-sub { color: var(--muted); margin-bottom: 32px; }

.pdf-preview {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--sh-sm);
}
.pdf-preview-header {
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-preview-header i { color: var(--red); font-size: 16px; }
.pdf-preview iframe { display: block; width: 100%; border: none; }

.doc-link-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.doc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.doc-card:hover { box-shadow: var(--sh-md); transform: translateX(3px); }
.doc-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.doc-icon.pdf  { background: var(--red-lt); color: var(--red); }
.doc-icon.ppt  { background: #fff3e0; color: #e65100; }
.doc-icon.link { background: var(--blue-lt); color: var(--blue); }
.doc-meta { flex: 1; }
.doc-meta h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.doc-meta p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.doc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--blue-lt);
  color: var(--blue-dk);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.doc-action:hover { background: var(--blue); color: #fff; }

/* ============================================================
   KEEP LEARNING GRID (video cards)
   ============================================================ */
.keep-learning { padding: 56px 5%; background: var(--navy); }
.keep-learning h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
}
.kl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kl-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.kl-card:hover { transform: translateY(-4px); }
.kl-card-inner { padding: 18px; }
.kl-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yellow);
  margin-bottom: 8px;
}
.kl-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.kl-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.kl-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   TEACHER GUIDE LAYOUT
   ============================================================ */
.tg-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 5% 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.tg-panel h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}
.tg-panel p { color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.pillar-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm);
}
.pillar-num {
  min-width: 40px; height: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.pillar-body strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.pillar-body p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.tg-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.sidebar-card-label {
  padding: 12px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-card-body { padding: 20px 18px; }
.sidebar-card-body p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.quote-card {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 24px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
}
.quote-card .quote-icon { color: var(--yellow); font-size: 22px; margin-bottom: 12px; display: block; }
.quote-card .quote-attr { display: block; margin-top: 12px; font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--yellow); }

/* ============================================================
   ABOUT PAGE LAYOUT
   ============================================================ */
.about-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 5% 80px;
}
.about-wrap h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
}
.about-wrap p { line-height: 1.75; color: var(--text); margin-bottom: 14px; }
.about-wrap ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.about-wrap li {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px 14px 44px;
  position: relative;
  font-size: 0.96rem;
  line-height: 1.65;
}
.about-wrap li::before { content: '→'; position: absolute; left: 16px; top: 14px; color: var(--blue); font-weight: 700; }
.about-wrap li strong { color: var(--navy); }
.about-wrap blockquote {
  border-left: 5px solid var(--yellow);
  background: var(--yellow-lt);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--navy);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.info-panel, .form-panel {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  padding: 36px;
  box-shadow: var(--sh-sm);
}
.info-panel h2, .form-panel h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.info-panel > p, .form-panel > p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.info-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
}
.info-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--blue);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.info-text strong { display: block; font-size: 0.88rem; color: var(--navy); font-weight: 700; margin-bottom: 2px; }
.info-text p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.quote-block {
  background: var(--blue-lt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px;
}
.quote-block i { color: var(--blue); opacity: 0.45; font-size: 20px; margin-bottom: 8px; display: block; }
.quote-block p { font-style: italic; color: var(--navy); font-size: 0.94rem; line-height: 1.6; margin-bottom: 8px; }
.quote-block .attr { font-size: 0.8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 11px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,134,199,0.12);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  transition: all 0.22s ease;
}
.btn-submit:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5%;
}
.login-box {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 56px 48px 48px;
  max-width: 840px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-lg);
}
.login-logo { height: 64px; object-fit: contain; mix-blend-mode: multiply; margin: 0 auto 24px; }
.login-box h1 { font-family: var(--serif); font-size: 2.4rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.login-box .sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin-bottom: 44px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.portal-cell { padding: 0; }
.portal-cell:first-child { border-right: 1px solid var(--border); }
.portal-card-inner {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--r-lg);
  transition: all 0.3s ease;
  position: relative;
}
.portal-card-inner:hover { background: var(--bg); transform: translateY(-4px); box-shadow: var(--sh-md); }
.portal-badge {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.portal-card-inner:hover .portal-badge { transform: scale(1.08) rotate(-5deg); }
.badge-student { background: var(--yellow-lt); border: 3px solid var(--yellow); }
.badge-teacher { background: var(--blue-lt); border: 3px solid var(--blue); }
.portal-card-inner h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.portal-card-inner p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.portal-link { position: absolute; inset: 0; z-index: 3; }
.login-footer { margin-top: 32px; font-size: 13px; color: var(--muted); }
.login-footer a { color: var(--blue); font-weight: 600; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.58);
  font-size: 14px;
  padding: 70px 5% 26px;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { margin-bottom: 16px; }
.footer-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 12px;
}
.footer-col h4 {
  font-family: var(--serif);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--yellow);
}
.footer-col p { line-height: 1.7; margin-bottom: 10px; font-size: 13.5px; }
.footer-col p i { color: var(--yellow); margin-right: 8px; width: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: rgba(255,255,255,0.52); font-size: 13.5px; }
.footer-col ul a:hover { color: var(--yellow); padding-left: 4px; }
.footer-bottom {
  max-width: 1360px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
  z-index: 999;
  font-size: 14px;
  transition: all 0.22s ease;
}
.back-to-top:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container-lg { max-width: 1360px; margin: 0 auto; padding: 0 5%; }
.badge-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-tag.blue   { background: var(--blue-lt); color: var(--blue-dk); }
.badge-tag.green  { background: var(--green-lt); color: var(--green); }
.badge-tag.yellow { background: var(--yellow-lt); color: var(--yellow-dk); }
.badge-tag.red    { background: var(--red-lt); color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .tg-layout { grid-template-columns: 1fr; }
  .kl-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-container { height: 68px; padding: 0 4%; }
  .menu-list { display: none; }
  .page-hero { padding: 48px 4% 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .kl-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-cell:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .assets-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV DROPDOWN — Courses Menu
   ============================================================ */
.nav-item { position: relative; }

.menu-item.has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.menu-item.has-dropdown .drop-arrow {
    font-size: 9px;
    opacity: 0.55;
    transition: transform 0.22s ease;
}

.nav-item:hover .menu-item.has-dropdown .drop-arrow,
.nav-item:focus-within .menu-item.has-dropdown .drop-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown panel */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 680px;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1.5px solid var(--border);
    box-shadow: 0 24px 64px rgba(0,0,0,0.13);
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 2000;
}

/* small triangle pointer */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 14px;
    background: var(--white);
    border-left: 1.5px solid var(--border);
    border-top: 1.5px solid var(--border);
    rotate: 45deg;
    border-radius: 2px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown header */
.dd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.dd-header-title {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.dd-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.18s ease;
}

.dd-view-all:hover { gap: 8px; color: var(--navy); }

/* Courses grid inside dropdown */
.dd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dd-course-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 13px;
    border-radius: var(--r);
    border: 1.5px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
    text-decoration: none;
}

.dd-course-item:hover {
    background: var(--bg);
    border-color: var(--border);
    transform: translateY(-1px);
}

.dd-icon {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.dd-icon.blue   { background: #2d86c7; }
.dd-icon.green  { background: #2e7d4f; }
.dd-icon.yellow { background: #d4891a; }
.dd-icon.red    { background: #c0392b; }
.dd-icon.teal   { background: #1a99ab; }
.dd-icon.purple { background: #8e44ad; }
.dd-icon.navy   { background: #1a2744; }

.dd-course-text { flex: 1; min-width: 0; }

.dd-course-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dd-course-count {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
}

/* Bottom strip */
.dd-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dd-footer-note {
    font-size: 12px;
    color: var(--muted);
}

.dd-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--r);
    font-size: 12.5px;
    font-weight: 700;
    transition: background 0.18s ease;
    white-space: nowrap;
}

.dd-footer-cta:hover { background: var(--blue); color: #fff; }
