:root {
  --header-h: 118px;
  --brand-50: #e8f4f5;
  --brand-100: #d1e9eb;
  --brand-200: #a3d3d7;
  --brand-300: #75bdc3;
  --brand-400: #47a7af;
  --brand-500: #3196a2;
  --brand-600: #1e8a98;
  --brand-700: #197681;
  --brand-800: #15616b;
  --ink-50: #f5f7fb;
  --ink-100: #edf1f5;
  --ink-200: #dfe6ee;
  --ink-300: #b9c5d2;
  --ink-400: #7d8ea3;
  --ink-500: #596a7d;
  --ink-600: #415160;
  --ink-700: #2f3c4d;
  --ink-800: #1d2a38;
  --ink-900: #0f1720;
  --white: #fff;
  --success-50: #edfdf4;
  --success-500: #1ea66a;
  --success-600: #168a59;
  --error-50: #fff3f3;
  --error-500: #d94f4f;
  --error-600: #c43d3d;
  --accent-50: #fff7e9;
  --accent-400: #f7c76d;
  --shadow-soft: 0 12px 30px rgba(15, 23, 32, 0.08);
  --shadow-glow: 0 24px 60px rgba(30, 138, 152, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: #fff;
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }

.rich-text-editor { border: 1px solid var(--ink-200); border-radius: 12px; overflow: hidden; background: var(--white); }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--ink-200); background: var(--ink-50); }
.rich-text-toolbar button { border: 1px solid var(--ink-200); border-radius: 6px; padding: 5px 9px; background: var(--white); color: var(--ink-700); cursor: pointer; }
.rich-text-toolbar button:hover, .rich-text-toolbar button:focus-visible { border-color: var(--brand-500); color: var(--brand-700); }
.rich-text-input { min-height: 180px; padding: 14px; outline: none; line-height: 1.7; }
.rich-text-input:focus { box-shadow: inset 0 0 0 2px rgba(49, 150, 162, .2); }
.rich-text-input p, .rich-text-input h3, .rich-text-input h4, .rich-text-input ul, .rich-text-input ol, .lms-lesson-content p, .lms-lesson-content h3, .lms-lesson-content h4, .lms-lesson-content ul, .lms-lesson-content ol, .lms-lesson-content blockquote { margin: 0 0 12px; }
.lms-lesson-content ul, .lms-lesson-content ol { padding-left: 24px; }
.lms-lesson-content blockquote { border-left: 3px solid var(--brand-400); padding-left: 14px; color: var(--ink-600); }
.lms-module-heading { margin: 28px 0 12px; }
.lms-module-heading:first-child { margin-top: 0; }
.lms-module-heading h3 { font-size: 24px; color: var(--ink-800); }
.lms-module-heading p { margin-top: 6px; color: var(--ink-500); line-height: 1.6; }
.course-description { line-height: 1.7; }
.course-description p, .course-description h3, .course-description h4, .course-description ul, .course-description ol, .course-description blockquote { margin: 0 0 16px; }
.course-description > :last-child { margin-bottom: 0; }
.course-description ul, .course-description ol { padding-left: 24px; }
.course-description blockquote { border-left: 3px solid var(--brand-400); padding-left: 14px; color: var(--ink-600); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
}

p { margin: 0; }

.container-px {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.section-py {
  padding: 88px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(30, 138, 152, 0.2);
  background: var(--brand-50);
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.btn, .btn-primary, .btn-ghost, .btn-light, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: #fff;
  color: var(--ink-800);
  border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }
.btn-light {
  background: #fff;
  color: var(--brand-700);
}
.btn-light:hover { background: var(--brand-50); }
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-secondary:hover { background: rgba(255,255,255,.16); }

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.text-balance { text-wrap: balance; }

.bg-grid {
  background-image: linear-gradient(to right, rgba(15, 22, 38, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 22, 38, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-soft);
}
.site-header:not(.scrolled) .nav .nav-link,
.site-header:not(.scrolled) .header-phone,
.site-header:not(.scrolled) .header-phone:hover,
.site-header:not(.scrolled) .social-icon {
  color: #fff;
}
.site-header:not(.scrolled) .social-icon {
  border-color: rgba(255,255,255,.55);
}
.site-header:not(.scrolled) .social-icon:hover,
.site-header:not(.scrolled) .social-icon:focus-visible {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}
.site-header:not(.scrolled) .nav .nav-link:hover {
  color: var(--brand-200);
}
.site-header.scrolled .nav .nav-link,
.site-header.scrolled .header-phone,
.site-header.scrolled .social-icon {
  color: var(--ink-700);
}
.site-header-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px; height: 150px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 5px rgba(71, 167, 175, 0.28)) drop-shadow(0 0 11px rgba(255, 255, 255, 0.12));
}
.brand-name {
  display: flex; flex-direction: column; line-height: 1;
  font-weight: 800;
}
.brand-name strong { font-size: 16px; }
.brand-name span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-600); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav .nav-link, .nav .nav-group-btn {
  border: none; background: transparent; color: var(--ink-700); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
}
.nav .nav-link:hover, .nav .nav-group-btn:hover { color: var(--brand-700); }
.nav .nav-link.active, .nav .nav-group-btn.active {
  color: var(--brand-700);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--brand-600);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-header:not(.scrolled) .nav .nav-link.active {
  color: #fff;
  background: transparent;
  text-decoration-color: var(--brand-600);
}
.mobile-menu .nav-link.active {
  color: var(--brand-700);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--brand-600);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid rgba(15, 23, 32, 0.08); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-soft); min-width: 220px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: all 0.2s ease; pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-dropdown-menu a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink-700); font-size: 14px; }
.nav-dropdown-menu a:hover { background: var(--ink-50); color: var(--brand-700); }
.header-controls { display: flex; align-items: center; gap: 12px; }
.header-socials, .mobile-socials { display: flex; align-items: center; gap: 6px; }
.social-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink-200); border-radius: 50%; color: var(--ink-600); transition: .2s ease; }
.social-icon:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); transform: translateY(-2px); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-700); }
.header-phone:hover { color: var(--brand-700); }
.header-mobile-toggle { display: none; }
.mobile-menu { display: none; }

.page-main { padding-top: 0; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
}
.hero-image {
  position: absolute; inset: 0;
  background-image: var(--hero-image, url('https://images.pexels.com/photos/31039051/pexels-photo-31039051.jpeg?auto=compress&cs=tinysrgb&w=1400'));
  background-size: cover; background-position: var(--hero-position, center);
  opacity: 100%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(15,23,32,.86), rgba(15,23,32,.98));
}
.hero-content { position: relative; z-index: 1; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 150px 0 60px; color: #fff; }
.hero-title { font-size: clamp(42px, 6vw, 92px); line-height: 1.05; margin-top: 16px; font-weight: 900; }
.hero-title span { display: block; background: linear-gradient(90deg, #b7e5e8, #47a7af, #a2ecf1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { margin-top: 20px; max-width: 620px; color: var(--ink-300); font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.hero-stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 20px 18px; backdrop-filter: blur(8px);
}
.hero-stat-value { font-size: clamp(28px, 3vw, 38px); font-weight: 900; }
.hero-stat-label { margin-top: 8px; font-size: 11px; color: #fff; }

.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 900; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-500); line-height: 1.7; }

.course-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.course-card { padding: 22px; overflow: hidden; transition: .2s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.course-detail-card { overflow: hidden; transition: .3s ease; }
.course-detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.course-detail-card:hover .course-icon { background: var(--brand-600); color: #fff; }
.course-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
.course-card h3 { margin-top: 18px; font-size: 22px; }
.course-card p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-500); }
.course-meta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.course-meta span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); font-weight: 800; }
.course-meta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-700); }
.programme-detail-group { margin-top: 18px; }
.programme-detail-group > strong { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.programme-detail-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.programme-detail-list span { padding: 5px 8px; border-radius: 6px; background: rgba(30,138,152,.08); color: var(--brand-700); font-size: 11px; font-weight: 700; }
.programme-detail-list.programme-modules span { background: var(--ink-50); color: var(--ink-600); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.core-values-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }

.feature-card { padding: 22px; border-radius: 22px; transition: .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
.feature-card h3 { margin-top: 20px; font-size: 20px; }
.feature-card p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-500); }

.image-panel { position: relative; }
.image-panel img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-glow); }
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.badge-floating { position: absolute; left: -26px; bottom: 26px; background: #fff; border: 1px solid var(--ink-100); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-soft); }
.badge-floating .big { font-size: 34px; font-weight: 900; color: var(--brand-600); }
.badge-floating .small { font-size: 11px; color: var(--ink-500); margin-top: 4px; }

.mission-card { padding: 28px; position: relative; overflow: hidden; }

.printable-application { padding: 28px 32px 32px; }

.form-shell { background: var(--ink-50); }
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.form-card, .info-card { padding: 32px; }
.field { display: block; }
.field span { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink-700); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--ink-200); background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(30, 138, 152, 0.2); border-color: var(--brand-500); }

.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--ink-100); background: #fff; box-shadow: var(--shadow-soft); }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
.contact-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); font-weight: 800; }
.contact-value { display: block; font-size: 14px; font-weight: 700; color: var(--ink-800); }

.page-hero {
  position: relative; overflow: hidden; background-color: var(--ink-950); background-image: linear-gradient(rgba(15,23,32,.78), rgba(15,23,32,.92)), var(--hero-image); background-size: cover; background-position: var(--hero-position, center); color: #fff; padding: 120px 0 90px;
}
.page-hero .grid-bg { position: absolute; inset: 0; opacity: .08; }
.page-hero .orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.page-hero-content { position: relative; z-index: 1; }
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-400); margin-bottom: 18px;
}
.crumbs a { color: #fff; }
.crumbs .current { color: var(--brand-300); }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 760px; }
.page-hero p { margin-top: 20px; max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink-300); }

.section-cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600), var(--brand-800));
  color: white; padding: 64px 28px; border-radius: 30px; overflow: hidden; position: relative;
}
.section-cta h2 { font-size: clamp(30px, 3vw, 42px); }
.section-cta p { margin-top: 14px; max-width: 720px; font-size: 18px; line-height: 1.7; margin-inline: auto; color: #d1e9eb; }
.section-cta .actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.footer { position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.2); background: #1E8A98; color: rgba(255,255,255,.82); }
.footer-inner { padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > div:first-child { margin-top: -30px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px; }
.footer-logo-badge .brand-mark { width: 150px; height: 150px; }
.footer-copy { max-width: 360px; margin-top: 20px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.8; }
.footer-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); }
.footer-col h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: rgba(255,255,255,.62); }
.footer-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 34px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.65); font-size: 14px; }
.footer-social { display: flex; align-items: center; gap: 14px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.82); }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink-950); padding: 50px 16px; position: relative; }
.auth-card { position: relative; width: min(100%, 480px); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-box { background: #fff; border: 1px solid var(--ink-100); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.auth-box-inner { padding: 34px 28px; }
.auth-box h1 { font-size: clamp(28px, 4vw, 42px); }
.auth-box p { margin-top: 8px; color: var(--ink-500); font-size: 14px; }
.auth-box .field input, .auth-box .field select, .auth-box .field textarea { min-height: 48px; padding: 14px 16px; }
.password-input-wrap { display: block !important; position: relative; margin: 0 !important; color: inherit !important; }
.auth-box .password-input-wrap input { padding-right: 52px; }
.password-visibility-toggle { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 7px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: var(--ink-500); cursor: pointer; }
.password-visibility-toggle:hover { background: var(--ink-50); color: var(--brand-700); }
.password-visibility-toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.password-visibility-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.password-icon-hide, .password-visibility-toggle[aria-pressed="true"] .password-icon-show { display: none; }
.password-visibility-toggle[aria-pressed="true"] .password-icon-hide { display: block; }
.auth-box form > .btn-primary { width: 100%; min-height: 48px; padding: 14px 20px; }
.auth-foot { display: flex; justify-content: center; gap: 28px; margin-top: 18px; color: var(--ink-500); font-size: 12px; }

.status-box { border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }
.status-box.error { border: 1px solid var(--error-500); background: var(--error-50); color: var(--error-600); }
.status-box.success { border: 1px solid var(--success-500); background: var(--success-50); color: var(--success-600); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,32,.58); }
.modal-backdrop.is-open { display: flex; }
.modal-panel { width: min(100%, 680px); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid var(--ink-200); border-radius: 18px; box-shadow: 0 24px 70px rgba(15,23,32,.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid var(--ink-100); }
.modal-header h2 { font-size: 28px; }
.modal-header p { margin-top: 6px; color: var(--ink-500); font-size: 14px; }
.modal-close { border: 0; background: transparent; color: var(--ink-500); font-size: 28px; line-height: 1; cursor: pointer; }
.course-form { display: flex; flex-direction: column; gap: 18px; padding: 22px 26px 26px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.lesson-video-modal { width: min(100%, 900px); }
.lesson-video-frame { aspect-ratio: 16 / 9; background: #101820; }
.lesson-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.course-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.repeatable-field-group { display: grid; gap: 10px; }
.repeatable-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-700); font-size: 13px; font-weight: 700; }
.repeatable-field-heading .inline-btn { color: var(--brand-700); font-size: 12px; font-weight: 800; }
.repeatable-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.repeatable-row input { flex: 1; min-width: 0; width: 100%; border: 1px solid var(--ink-200); background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-900); }
.repeatable-remove { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--ink-200); border-radius: 50%; background: #fff; color: var(--error-600); cursor: pointer; font-size: 20px; line-height: 1; }

.admin-shell { display: flex; min-height: 100vh; background: var(--ink-50); }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 260px; background: #fff; border-right: 1px solid var(--ink-100); z-index: 40; transition: .25s ease;
}
.sidebar-nav { padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--ink-600); font-weight: 700; font-size: 14px; }
.sidebar-link.active { background: var(--brand-50); color: var(--brand-700); }
.sidebar-footer { position: absolute; inset: auto 0 0 0; border-top: 1px solid var(--ink-100); padding: 16px; }
.sidebar-user { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--ink-50); border-radius: 14px; padding: 12px 14px; }
.content-shell { margin-left: 260px; width: calc(100% - 260px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); background: rgba(255,255,255,.85); backdrop-filter: blur(12px); padding: 0 20px; border-bottom: 1px solid var(--ink-100); }
.main-body { padding: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 18px; }
.stat-card .number { font-size: 30px; font-weight: 900; }
.stat-card .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.stat-card .sub { font-size: 12px; color: var(--ink-400); }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--ink-100); }
.list-row:last-child { border-bottom: none; }
.inline-btn { background: transparent; border: none; cursor: pointer; }

.portal-course-card { padding: 22px; min-height: 240px; }
.progress-bar { height: 10px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--brand-600); border-radius: inherit; }
.lms-record-list { display: grid; gap: 12px; margin-top: 18px; }
.lms-record-list > article { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--ink-100); border-radius: 14px; }
.lms-record-list > article > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lms-actions { display: flex; align-items: center; gap: 12px; color: var(--brand-700); font-size: 12px; font-weight: 800; }
.lms-actions form { display: inline-flex; }
.lms-actions button { color: var(--error-600); font-weight: 800; }
.lms-muted { display: block; margin-top: 5px; color: var(--ink-500); font-size: 12px; }
.lms-question { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ink-100); }
.lms-question-form { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--ink-50); }
.lms-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.lms-form > .field:nth-last-of-type(1), .lms-form > button { grid-column: 1 / -1; }
.lms-class-card > div { display: grid; gap: 10px; }
.lms-status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.lms-status.pending { background: var(--accent-50); color: #815b12; }
.lms-status.rejected { background: var(--error-50); color: var(--error-600); }
.lms-status.approved { background: var(--success-50); color: var(--success-600); }
.lms-status.submitted { background: var(--accent-50); color: #815b12; }
.lms-status.graded { background: var(--success-50); color: var(--success-600); }
.lms-lessons { display: grid; gap: 12px; margin: 22px 0; }
.lms-lesson { overflow: hidden; }
.lms-lesson > summary { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
.lms-lesson > summary::-webkit-details-marker { display: none; }
.lms-lesson > summary .lms-muted { margin: 0 0 0 auto; }
.lms-lesson-content { padding: 0 18px 18px; color: var(--ink-600); line-height: 1.8; white-space: normal; }
.lms-lesson-content > p { margin-top: 16px; }
.lms-quiz-form { display: grid; gap: 16px; margin-top: 20px; }
.lms-timer { position: sticky; top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-50); color: #815b12; font-weight: 800; }
.lms-question-block { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--ink-200); border-radius: 14px; }
.lms-question-block legend { float: none; width: auto; font-weight: 800; }
.lms-question-block label { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.lms-question-block input { accent-color: var(--brand-600); }
.lms-wide { grid-column: 1 / -1; }
.lms-assignment-card { display: grid; gap: 16px; padding: 22px; margin-bottom: 18px; }
.lms-assignment-heading, .lms-submission-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.lms-assignment-heading h3 { margin-top: 10px; font-size: 22px; }
.lms-assignment-heading p, .lms-submission-heading p { margin-top: 8px; color: var(--ink-500); font-size: 13px; }
.lms-assignment-instructions { color: var(--ink-600); line-height: 1.8; }
.lms-assignment-submit { display: grid; gap: 14px; border-top: 1px solid var(--ink-100); padding-top: 16px; }
.lms-submission-card { display: grid; gap: 16px; padding: 20px; margin-bottom: 18px; }
.lms-submission-heading h3 { font-size: 19px; }
.lms-submission-text, .lms-feedback { padding: 14px; border-radius: 12px; background: var(--ink-50); color: var(--ink-700); line-height: 1.8; overflow-wrap: anywhere; }
.lms-feedback { background: var(--success-50); }
.lms-feedback p { margin-top: 6px; }
.image-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.image-setting { min-width: 0; }
.image-preview { height: 180px; margin-top: 12px; border: 1px solid var(--ink-100); border-radius: 14px; background-color: var(--ink-100); background-repeat: no-repeat; background-size: cover; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.image-preview span { padding: 6px 10px; border-radius: 999px; background: rgba(15,23,32,.55); font-size: 12px; font-weight: 800; }
.image-browse-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.image-browse-button { display: inline-flex; cursor: pointer; padding: 9px 13px; font-size: 12px; }
.image-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-500); font-size: 12px; }
.image-position-controls { display: grid; gap: 10px; margin-top: 12px; }
.mining-hero-settings form { min-width: 0; }
.range-field { display: grid; gap: 6px; color: var(--ink-600); font-size: 12px; font-weight: 700; }
.range-field span { display: flex; justify-content: space-between; }
.range-field output { color: var(--brand-700); }
.range-field input { width: 100%; accent-color: var(--brand-600); }

@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .page-main > section.section-py > .container-px[style*="1.05fr"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  .page-main > section.section-py > .container-px[style*="1fr 1.3fr"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  .grid-2[style*="1.2fr .8fr"] { grid-template-columns: 1fr !important; }
  .card > div[style*="1.5fr 1fr"] { grid-template-columns: 1fr !important; gap: 30px !important; }
  .page-main > section.section-py > .container-px[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 30px !important; }
  .core-values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-controls > .btn-ghost, .header-controls > .btn-primary { display: none; }
  .header-phone { font-size: 11px; gap: 4px; white-space: nowrap; }
  .header-mobile-toggle { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow-soft); padding: 18px 20px; }
  .mobile-menu-nav { display: flex; flex-direction: column; gap: 14px; }
  .mobile-menu .nav-link { display: block; padding: 8px 0; font-weight: 700; }
  .mobile-nav-group { border-bottom: 1px solid var(--ink-100); }
  .mobile-nav-group summary { cursor: pointer; list-style: none; padding: 8px 0; color: var(--ink-900); font-weight: 700; }
  .mobile-nav-group summary::-webkit-details-marker { display: none; }
  .mobile-nav-group summary::after { content: '+'; float: right; color: var(--brand-600); font-size: 20px; line-height: 1; }
  .mobile-nav-group[open] summary::after { content: '-'; }
  .mobile-nav-submenu { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px 14px; }
  .mobile-nav-submenu .nav-link { color: var(--ink-600); font-size: 14px; }
  .mobile-socials { padding: 8px 0 2px; }
  .admin-shell { display: block; }
  .sidebar { transform: translateX(-100%); }
  .content-shell { margin-left: 0; width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container-px, .site-header-inner { width: min(100% - 24px, 1280px); }
  .header-controls { gap: 6px; }
  .header-phone { font-size: 10px; }
  .hero-content { padding-top: 130px; }
  .hero-actions, .section-cta .actions { flex-direction: column; }
  .course-grid, .grid-2, .grid-3, .grid-4, .stats-grid { grid-template-columns: 1fr; }
  .core-values-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .auth-box-inner { padding: 24px 18px; }
  .main-body { padding: 18px; }
  .about-intro { gap: 30px; }
  .about-intro .image-panel { min-height: 280px; }
  .about-intro .image-panel img { height: 280px; }
  .about-intro .badge-floating { left: 16px; bottom: 16px; }
  .page-main > section.section-py > .container-px[style*="1.05fr"] .image-panel { min-height: 280px; }
  .page-main > section.section-py > .container-px[style*="1.05fr"] .image-panel img { height: 280px; }
  .image-settings-grid { grid-template-columns: 1fr; }
  .course-detail-fields { grid-template-columns: 1fr; }
  .lms-form { grid-template-columns: 1fr; }
  .lms-wide { grid-column: auto; }
  .mining-hero-settings { width: calc(100% - 24px) !important; margin-top: 18px !important; padding: 20px !important; }
  .mining-hero-settings form { grid-template-columns: 1fr !important; }
}

.admin-shell {
  --admin-surface: #fff;
  --admin-canvas: #f4f7fb;
  --admin-line: #e6edf3;
  --admin-radius: 20px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(30, 138, 152, .055), transparent 34%),
    var(--admin-canvas);
}
.admin-shell .sidebar {
  width: 276px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .97);
  border-right: 1px solid var(--admin-line);
  box-shadow: 8px 0 28px rgba(15, 23, 32, .025);
}
.admin-shell .sidebar::before {
  content: "";
  flex: 0 0 auto;
  display: block;
  height: 54px;
  margin: 22px 24px 0;
  background: url('/static/images/youtech-centex.png') left center / contain no-repeat;
}
.admin-shell .sidebar::after {
  content: "YOUTECH CENTEX\A ADMIN CONSOLE";
  white-space: pre;
  position: absolute;
  top: 35px;
  left: 91px;
  color: var(--ink-900);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.7;
}
.portal-shell .sidebar::after {
  content: "YOUTECH CENTEX\A LEARNER PORTAL";
}
.admin-shell .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 26px 16px 110px;
  gap: 5px;
}
.admin-shell .sidebar-link {
  position: relative;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.admin-shell .sidebar-link:hover {
  color: var(--brand-700);
  background: #f6fafb;
  border-color: #eaf3f4;
  transform: translateX(2px);
}
.admin-shell .sidebar-link.active {
  color: var(--brand-800);
  background: linear-gradient(100deg, #eaf6f7, #f5fbfb);
  border-color: #d9edef;
  box-shadow: inset 3px 0 0 var(--brand-600);
}
.admin-shell .sidebar-footer {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22%);
  border-color: var(--admin-line);
}
.admin-shell .sidebar-user {
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background: #f7f9fc;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 800;
}
.admin-shell .sidebar-user .btn-ghost {
  padding: 9px 13px;
  font-size: 12px;
}
.admin-shell .content-shell {
  width: calc(100% - 276px);
  margin-left: 276px;
}
.admin-shell .topbar {
  min-height: 76px;
  padding: 0 clamp(22px, 3vw, 42px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(225, 233, 240, .9);
  box-shadow: 0 4px 18px rgba(15, 23, 32, .025);
  backdrop-filter: blur(18px);
}
.admin-shell .topbar > strong {
  color: var(--ink-800);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.admin-shell .topbar form { margin: 0; }
.admin-shell .topbar .btn-ghost {
  min-height: 40px;
  padding: 10px 17px;
  background: #fff;
  border-color: var(--admin-line);
  box-shadow: 0 2px 5px rgba(15, 23, 32, .03);
}
.admin-shell .main-body {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 42px);
}
.admin-shell .main-body h2 {
  color: var(--ink-900);
  font-size: clamp(28px, 2.6vw, 36px) !important;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.admin-shell .main-body h3 {
  color: var(--ink-900);
  font-weight: 750;
}
.admin-shell .main-body > div > p,
.admin-shell .main-body > p {
  color: var(--ink-500);
  line-height: 1.7;
}
.admin-shell .card {
  border-color: #e8edf3;
  border-radius: var(--admin-radius);
  box-shadow: 0 10px 30px rgba(24, 39, 56, .055), 0 1px 2px rgba(24, 39, 56, .025);
}
.admin-shell .stats-grid { gap: 16px; }
.admin-shell .stat-card {
  min-height: 156px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-shell .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(24, 39, 56, .09);
}
.admin-shell .stat-card .feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  border-radius: 15px;
  background: #e9f5f6;
  color: var(--brand-700);
}
.admin-shell .stat-card .number {
  color: var(--ink-900);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px;
  line-height: 1.1;
}
.admin-shell .stat-card .label {
  margin-top: 5px;
  color: var(--ink-600);
  font-size: 11px;
  letter-spacing: .09em;
}
.admin-shell .stat-card .sub {
  margin-top: 3px;
  color: var(--ink-400);
}
.admin-shell .main-body > .card,
.admin-shell .main-body section.card { overflow: hidden; }
.admin-shell table {
  border-collapse: separate !important;
  border-spacing: 0;
  color: var(--ink-700);
  font-size: 13px;
}
.admin-shell table thead {
  background: #f6f8fb;
}
.admin-shell table th {
  padding: 15px 18px !important;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-shell table td {
  padding: 15px 18px !important;
  border-top: 1px solid #edf1f5;
  vertical-align: middle;
}
.admin-shell table tbody tr {
  transition: background .16s ease;
}
.admin-shell table tbody tr:hover {
  background: #f9fbfc;
}
.admin-shell table tbody tr:first-child td { border-top-color: #e8edf3; }
.admin-shell .btn-primary,
.admin-shell .btn-ghost {
  min-height: 40px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}
.admin-shell .btn-primary { box-shadow: 0 5px 12px rgba(30, 138, 152, .16); }
.admin-shell .btn-primary:hover { box-shadow: 0 8px 18px rgba(30, 138, 152, .22); }
.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-shell select,
.admin-shell textarea {
  min-height: 46px;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-800);
  box-shadow: 0 1px 2px rgba(15, 23, 32, .025);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.admin-shell textarea { min-height: 110px; }
.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(30, 138, 152, .11);
}
.admin-shell .field > span {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 800;
}
.admin-shell .list-row {
  padding: 16px 20px;
  border-color: #edf1f5;
}
.admin-shell .status-box {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(24, 39, 56, .04);
}
.admin-shell .lms-record-list > article {
  border-color: #e8edf3;
  border-radius: 15px;
  background: #fff;
}
.admin-shell .lms-assignment-card,
.admin-shell .lms-submission-card {
  padding: 24px;
}
.admin-shell .modal-panel {
  border: 1px solid rgba(230, 237, 243, .95);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15, 23, 32, .24);
}
.admin-shell .modal-header { padding: 26px 28px 20px; }
.admin-shell .course-form { padding: 24px 28px 28px; }

@media (max-width: 1100px) {
  .admin-shell .sidebar { width: 248px; }
  .admin-shell .content-shell { width: calc(100% - 248px); margin-left: 248px; }
  .admin-shell .main-body { padding: 26px; }
}
@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-shell .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    box-shadow: 0 5px 18px rgba(15, 23, 32, .055);
  }
  .admin-shell .sidebar::before {
    height: 42px;
    margin: 12px 18px 0;
  }
  .admin-shell .sidebar::after {
    top: 20px;
    left: 78px;
    font-size: 10px;
  }
  .admin-shell .sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 14px;
    scrollbar-width: thin;
  }
  .admin-shell .sidebar-link {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 12px;
  }
  .admin-shell .sidebar-link.active { box-shadow: inset 0 -2px 0 var(--brand-600); }
  .admin-shell .sidebar-footer { display: none; }
  .admin-shell .content-shell { width: 100%; margin: 0; }
  .admin-shell .topbar { min-height: 62px; }
}
@media (max-width: 620px) {
  .admin-shell .main-body { padding: 22px 14px; }
  .admin-shell .topbar { padding: 0 16px; }
  .admin-shell .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-shell .stat-card { min-height: 140px; padding: 16px 10px; }
  .admin-shell .stat-card .number { font-size: 26px; }
  .admin-shell .sidebar-nav { padding-inline: 10px; }
  .admin-shell .sidebar::before { margin-left: 14px; }
  .admin-shell .sidebar::after { left: 72px; }
  .admin-shell table th,
  .admin-shell table td { padding: 12px 13px !important; }
  .admin-shell .lms-assignment-card,
  .admin-shell .lms-submission-card { padding: 18px; }
  .admin-shell .modal-header { padding: 20px 20px 16px; }
  .admin-shell .course-form { padding: 20px; }
}
