:root {
  --ink: #07111f;
  --navy: #0d2b56;
  --blue: #1558b0;
  --sky: #2e7dd1;
  --ice: #e8f1fb;
  --silver: #f4f7fc;
  --mist: #eef2f8;
  --border: #dde4ef;
  --muted: #6b7a96;
  --white: #ffffff;
  --accent: #c7d9f5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", sans-serif;
  --nav-h: 72px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 20px rgba(7, 17, 31, 0.07);
  --shadow-md: 0 6px 36px rgba(7, 17, 31, 0.11);
  --shadow-lg: 0 16px 60px rgba(7, 17, 31, 0.16);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
}
ul {
  list-style: none;
}
input,
select,
textarea {
  font-family: var(--sans);
}

/* PAGE SYSTEM */
.page {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
}
.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* NAV */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 0 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.brand-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--sky);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  background: transparent;
  transition:
    color 0.2s,
    background 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--navy);
  background: var(--ice);
}
.nav-link.active {
  color: var(--blue);
  background: var(--ice);
  font-weight: 600;
}
.nav-btn-login {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
}
.nav-btn-login:hover {
  background: var(--blue) !important;
}

/* User Profile in Nav */
.nav-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-user-profile:hover {
  background: var(--ice);
}
.nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-user-avatar svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}
.nav-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile User Profile */
.mob-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.mob-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mob-user-avatar svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
}
.mob-user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

/* User Dashboard Profile Card */
.user-profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}
.user-profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.user-profile-avatar-large svg {
  width: 50px;
  height: 50px;
  stroke: var(--white);
}
.user-profile-info {
  text-align: left;
}
.profile-field {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.profile-field:last-child {
  border-bottom: none;
}
.profile-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.profile-field p {
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 899;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 20px;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nav-link {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  border-bottom: 1px solid var(--mist);
}
.mobile-menu .nav-link:last-child {
  border-bottom: none;
}
.site-body {
  padding-top: var(--nav-h);
}
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
}
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--silver);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}
.eyebrow-lt {
  color: #7ab8f5;
}
.rule {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 2px;
  margin: 14px 0 28px;
}
.rule-c {
  margin: 14px auto 28px;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
h2.section-title-lt {
  color: var(--white);
}
.lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.lead-lt {
  color: rgba(255, 255, 255, 0.65);
}
.body-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--ice);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.5s var(--ease) forwards;
}
.stagger > *:nth-child(1) {
  animation-delay: 0.04s;
}
.stagger > *:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger > *:nth-child(3) {
  animation-delay: 0.16s;
}
.stagger > *:nth-child(4) {
  animation-delay: 0.22s;
}
.stagger > *:nth-child(5) {
  animation-delay: 0.28s;
}
.stagger > *:nth-child(6) {
  animation-delay: 0.34s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOME */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-1 {
  width: 700px;
  height: 700px;
  background: rgba(21, 88, 176, 0.3);
  top: -200px;
  right: -100px;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(13, 43, 86, 0.45);
  bottom: -100px;
  left: -80px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}
.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4af;
  animation: ping 2s infinite;
}
@keyframes ping {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #7ab8f5, #4a9ded);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.role-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s,
    border-color 0.25s;
}
.role-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}
.role-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
}
.role-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}
.role-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.6;
  margin-bottom: 12px;
}
.role-link {
  font-size: 12px;
  font-weight: 700;
  color: #7ab8f5;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.stat-item {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 7px;
}

/* PAGE HEROES */
.page-hero {
  padding: 80px 0;
}
.page-hero-dark {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.page-hero-silver {
  background: var(--silver);
  border-bottom: 1px solid var(--border);
}

/* ABOUT */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-glass {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.about-glass h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 22px;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fact-box {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.fact-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: #7ab8f5;
}
.fact-lbl {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.who-card {
  padding: 34px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.who-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transition: 0.3s;
}
.who-card:hover::after {
  transform: scaleX(1);
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.why-item:last-child {
  border-bottom: none;
}
.why-num {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}
.vm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-panel {
  border-radius: var(--radius-lg);
  padding: 46px 38px;
  position: relative;
  overflow: hidden;
}
.vm-vision {
  background: var(--navy);
}
.vm-mission {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.vm-vision h3,
.vm-mission h3 {
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 16px;
}
.vm-vision h3 {
  color: var(--white);
}
.vm-mission h3 {
  color: var(--navy);
}
.vm-vision p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}
.vm-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 15px;
  line-height: 1.7;
}
.chk {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ice);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 34px 28px;
}
.service-card .icon-box {
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.diff-strip {
  background: var(--ink);
  padding: 72px 0;
}
.diff-pts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.diff-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.diff-tag.pos {
  background: rgba(46, 125, 209, 0.18);
  border-color: rgba(46, 125, 209, 0.38);
  color: #7ab8f5;
}

/* CLIENTS */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition:
    border-color 0.22s,
    transform 0.22s;
}
.client-tile:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.client-tile .t-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.client-tile .t-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.client-tile .t-type {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* GALLERY */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gc {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.28s var(--ease);
}
.gc:hover {
  transform: scale(1.025);
}
.gc.wide {
  grid-column: span 2;
}
.gc.tall {
  grid-row: span 2;
}
.gc-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 17, 31, 0.75),
    rgba(7, 17, 31, 0.05) 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: 0.3s;
}
.gc:hover .gc-ov {
  opacity: 1;
}
.gc-ov span {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.gc-fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gc-fill .gi {
  font-size: 40px;
  opacity: 0.35;
}
.gc-fill .gl {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.5;
}
.c1 {
  background: linear-gradient(135deg, #0d2b56, #1558b0);
}
.c2 {
  background: linear-gradient(135deg, #1558b0, #2e7dd1);
}
.c3 {
  background: linear-gradient(135deg, #e8f1fb, #c7d9f5);
}
.c4 {
  background: linear-gradient(135deg, #07111f, #0d2b56);
}
.c5 {
  background: linear-gradient(135deg, #2e7dd1, #e8f1fb);
}
.c6 {
  background: linear-gradient(135deg, #0d2b56, #07111f);
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.cinfo-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cinfo-card:last-child {
  border-bottom: none;
}
.cinfo-card h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.cinfo-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fg {
  margin-bottom: 18px;
}
.fg label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--silver);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 88, 176, 0.1);
}
.fg textarea {
  resize: vertical;
  min-height: 108px;
}
.f-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.18s;
}
.f-btn:hover {
  background: var(--blue);
  transform: translateY(-1px);
}
.success-msg {
  display: none;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #1b5e20;
  margin-top: 14px;
  text-align: center;
}

/* CAREERS */
.careers-banner {
  background: linear-gradient(135deg, var(--ink), var(--navy));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.careers-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.career-card {
  padding: 28px 24px;
}
.career-card:hover {
  border-color: var(--blue);
}
.c-dept {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 7px;
}
.career-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 9px;
}
.c-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.c-tag {
  background: var(--mist);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
}
.career-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.c-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.culture-val {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.culture-val h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.culture-val p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* COMMUNITY */
.community-banner {
  background: linear-gradient(160deg, var(--ink), var(--navy));
  padding: 80px 0;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.portal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s,
    box-shadow 0.28s;
}
.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.p-head {
  padding: 28px 28px 20px;
  background: var(--navy);
}
.p-head-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 7px;
}
.p-icon {
  font-size: 26px;
}
.p-head h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--white);
}
.p-head p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}
.p-body {
  padding: 24px 28px 28px;
  background: var(--white);
}
.p-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--mist);
}
.p-features li:last-child {
  border-bottom: none;
}
.p-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.p-btn {
  display: block;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: var(--sans);
}
.p-btn:hover {
  background: var(--blue);
}

/* ═══ LOGIN MODAL ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 17, 31, 0.65);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--white);
  border-radius: 24px;
  padding: 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 80px rgba(7, 17, 31, 0.28);
  animation: modalIn 0.32s var(--ease);
  margin: auto;
  flex-shrink: 0;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--silver);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  transition: background 0.2s;
}
.modal-close:hover {
  background: var(--mist);
  color: var(--ink);
}
.modal-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ice);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.modal-box h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.modal-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border-left: 3px solid #ef4444;
}
.m-fg {
  margin-bottom: 18px;
}
.m-fg label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.m-fg input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--silver);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.m-fg input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 88, 176, 0.1);
}
.m-submit {
  width: 100%;
  padding: 14px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.18s;
  margin-top: 6px;
}
.m-submit:hover:not(:disabled) {
  background: var(--blue);
  transform: translateY(-1px);
}
.m-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.modal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 14px;
}
.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.modal-divider span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.modal-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.modal-footer a {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}
.modal-footer a:hover {
  text-decoration: underline;
}
.role-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}
.role-switch-btn {
  background: var(--silver);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--sans);
}
.role-switch-btn:hover,
.role-switch-btn.active {
  background: var(--ice);
  border-color: var(--blue);
  color: var(--blue);
}
/* register select */
#regRole {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--silver);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  appearance: none;
  cursor: pointer;
}
#regRole:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 88, 176, 0.1);
}
/* password strength */
.pwd-weak {
  color: #dc2626;
}
.pwd-fair {
  color: #d97706;
}
.pwd-good {
  color: #16a34a;
}
/* toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(7, 17, 31, 0.3);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ═══ AI CHATBOT ═══ */
.chatbot-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 800;
}
.chatbot-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(7, 17, 31, 0.3);
  transition:
    background 0.2s,
    transform 0.2s;
  position: relative;
}
.chatbot-toggle-btn:hover {
  background: var(--blue);
  transform: scale(1.08);
}
.cb-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--white);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-tip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 9px;
  pointer-events: none;
  opacity: 0;
  transition: 0.2s;
}
.chatbot-widget:hover .cb-tip {
  opacity: 1;
}
.chatbot-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 100px;
  right: 26px;
  z-index: 801;
  width: 390px;
  max-height: 570px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(7, 17, 31, 0.2);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: chatUp 0.3s var(--ease);
}
.chatbot-panel.open {
  display: flex;
}
@keyframes chatUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cb-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.cb-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.cb-status {
  font-size: 11px;
  color: #5ce65c;
  font-weight: 500;
}
.cb-close-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cb-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cb-messages::-webkit-scrollbar {
  width: 4px;
}
.cb-messages::-webkit-scrollbar-track {
  background: transparent;
}
.cb-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.cb-msg {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.cb-msg.user {
  flex-direction: row-reverse;
}
.cb-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
  max-width: 290px;
  word-wrap: break-word;
}
.cb-bubble.bot {
  background: var(--ice);
  color: var(--ink);
  border-radius: 3px 14px 14px 14px;
}
.cb-bubble.user {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px 3px 14px 14px;
}
.cb-bubble.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.cb-typing-wrap {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.cb-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--ice);
  border-radius: 3px 14px 14px 14px;
  width: fit-content;
}
.cb-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dotB 1.2s infinite;
}
.cb-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.cb-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dotB {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-7px);
  }
}
.cb-quick-btns {
  padding: 0 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cb-quick {
  background: var(--ice);
  border: 1px solid var(--accent);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s;
  font-family: var(--sans);
}
.cb-quick:hover {
  background: var(--accent);
}
.cb-input-row {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--white);
}
.cb-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  color: var(--ink);
  background: var(--silver);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.cb-input:focus {
  border-color: var(--blue);
  background: var(--white);
}
.cb-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cb-send-btn:hover:not(:disabled) {
  background: var(--blue);
}
.cb-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* FOOTER */
#site-footer {
  background: var(--ink);
  padding: 62px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.f-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.f-logo-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
  max-width: 270px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.18s;
  cursor: pointer;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.33);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .role-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .who-grid,
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-hero-grid,
  .vm-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-grid,
  .careers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-about-grid,
  .why-split,
  .ai-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .offer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-inner {
    padding: 56px 20px;
  }
  .role-cards,
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-grid,
  .careers-grid,
  .services-grid,
  .who-grid,
  .culture-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .vm-split,
  .about-hero-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .gc.wide {
    grid-column: span 2;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 0 20px;
  }
  .section {
    padding: 60px 0;
  }
  .form-wrap,
  .modal-box {
    padding: 26px 20px;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-box {
    max-width: 100% !important;
  }
  .reg-name-grid {
    grid-template-columns: 1fr !important;
  }
  .page-hero {
    padding: 56px 0;
  }
  .diff-pts {
    flex-direction: column;
    align-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .chatbot-panel {
    width: calc(100vw - 32px);
    right: 16px;
  }
  .offer-grid {
    grid-template-columns: 1fr !important;
  }
  .home-about-grid,
  .why-split,
  .ai-grid {
    gap: 32px !important;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .role-cards {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .gc.wide {
    grid-column: span 1;
  }
  .gc.tall {
    grid-row: span 1;
  }
  .chatbot-panel {
    bottom: 70px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
  }
  .chatbot-widget {
    bottom: 16px;
    right: 16px;
  }
  .modal-box {
    border-radius: 16px;
    padding: 22px 16px;
  }
  .modal-overlay {
    padding: 8px;
  }
  .modal-box h2 {
    font-size: 22px !important;
  }
  .modal-sub {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .m-fg {
    margin-bottom: 14px;
  }
  .m-fg input,
  #regRole {
    padding: 11px 13px;
    font-size: 13px;
  }
  .m-submit {
    padding: 12px;
    font-size: 14px;
  }
  .role-switcher {
    gap: 4px;
  }
  .role-switch-btn {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ── REGISTER MODAL ── */
#regRole {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--silver);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}
#regRole:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 88, 176, 0.1);
}
.pwd-weak {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}
.pwd-fair {
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
}
.pwd-good {
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   ENROLLED COURSES GRID (Learner Dashboard)
══════════════════════════════════════════ */
.enrolled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.enrolled-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
  background: var(--white);
}
.enrolled-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.enrolled-card-body {
  padding: 24px;
}
.enrolled-domain-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky);
  background: var(--ice);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.enrolled-card-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 14px;
}
.progress-bar-wrap {
  height: 6px;
  background: var(--mist);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 3px;
  transition: width 0.4s var(--ease);
}
.progress-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   COURSE CATALOG
══════════════════════════════════════════ */
.catalog-domain {
  margin-bottom: 48px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.catalog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.catalog-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow);
}
.catalog-card.enrolled {
  border-color: #5ce65c;
  background: #f0fdf4;
}
.catalog-card-check {
  position: absolute;
  top: 14px;
  right: 14px;
}
.catalog-card-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
  cursor: pointer;
}
.catalog-card-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.catalog-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.topic-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
}
.already-enrolled-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 6px;
}
.enroll-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 800;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.enroll-bar span {
  font-size: 14px;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   COURSE VIEWER LAYOUT
══════════════════════════════════════════ */
.viewer-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}
.viewer-sidebar {
  background: var(--silver);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
}
.viewer-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.viewer-sidebar-header h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin: 12px 0 6px;
}
.btn-back {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
}
.btn-back:hover {
  text-decoration: underline;
}
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.topic-item:hover {
  background: var(--mist);
}
.topic-item.active {
  background: var(--ice);
  border-left: 3px solid var(--blue);
}
.topic-item.completed .topic-tick {
  background: #16a34a;
  color: white;
}
.topic-check {
  flex-shrink: 0;
}
.topic-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mist);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.topic-info {
  display: flex;
  flex-direction: column;
}
.topic-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.topic-duration {
  font-size: 12px;
  color: var(--muted);
}
.viewer-main {
  padding: 0;
}
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.viewer-info {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--sans);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
}
.btn-incomplete {
  border-color: #dc2626;
  color: #dc2626;
}
.btn-incomplete:hover {
  background: #dc2626;
  color: white;
}

/* ══════════════════════════════════════════
   OTP MODAL
══════════════════════════════════════════ */
.otp-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}
.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--sans);
}
.otp-digit:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 88, 176, 0.12);
}

/* ══════════════════════════════════════════
   VIEWER MOBILE RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .viewer-layout {
    grid-template-columns: 1fr;
  }
  .viewer-sidebar {
    position: static;
    max-height: none;
    order: 2;
  }
  .viewer-main {
    order: 1;
  }
  .viewer-info {
    padding: 20px 16px;
  }
  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
  .enroll-bar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }
}

/* ══════════════════════════════════════════
   COURSE PREVIEW MODAL
══════════════════════════════════════════ */
.course-preview-box {
  max-height: 85vh;
  overflow-y: auto;
}
.course-preview-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.course-preview-topics {
  margin-bottom: 24px;
}
.preview-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.preview-topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mist);
}
.preview-topic-item:last-child {
  border-bottom: none;
}
.preview-topic-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.preview-topic-title {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.preview-topic-duration {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.course-preview-actions {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   PAYMENT METHODS SECTION
══════════════════════════════════════════ */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.payment-method-option {
  display: block;
  cursor: pointer;
}

.payment-method-option input[type="radio"] {
  display: none;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition:
    all 0.22s var(--ease),
    border-color 0.2s,
    background 0.2s;
  text-align: center;
  min-height: 90px;
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
  border-color: var(--blue);
  background: var(--ice);
  box-shadow: 0 0 0 3px rgba(21, 88, 176, 0.1);
}

.payment-method-card:hover {
  border-color: var(--blue);
  background: var(--silver);
}

.payment-method-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mist);
}

.payment-method-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.payment-method-option
  input[type="radio"]:checked
  + .payment-method-card
  .payment-method-icon {
  background: var(--blue);
  color: white;
}

/* reg-name-grid responsive now handled in 768px breakpoint above */

/* ══════════════════════════════════════════
   SHARE MODAL STYLES
══════════════════════════════════════════ */
.share-modal-box {
  max-height: 85vh;
  overflow-y: auto;
}

.share-course-preview {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.share-course-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.share-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s;
}

.share-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Share button in course catalog */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.share-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}
