:root {
  --cyan: #00a6d2;
  --cyan-dark: #007fa8;
  --cyan-soft: #dff6fb;
  --ink: #05060a;
  --muted: #6c6f78;
  --panel: #ffffff;
  --mist: #eef9fc;
  --footer: #003343;
  --footer-deep: #002d3b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Outfit', Arial, sans-serif;
  background: #ffffff;
  font-size: 17px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  align-items: center;
  display: grid;
  grid-template-columns: 170px minmax(320px, 1fr) 170px;
  gap: 18px;
  height: 86px;
  left: 0;
  padding: 0 28px 0 30px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  /* background: #ffffff; */
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  height: 74px;
  justify-content: center;
  justify-self: start;
  padding: 6px 12px;
  width: 134px;
}

.brand span:last-child {
  color: #ec9f13;
  display: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 66px;
  object-fit: contain;
  width: 118px;
}

.nav-center,
.nav-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d7dfe4;
  border-radius: 999px;
  display: flex;
  gap: 5px;
  justify-content: center;
  justify-self: center;
  padding: 3px;
}

.nav-center a,
.nav-actions a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  padding: 10px 16px;
}

.nav-center a.active {
  background: #e6f3f7;
}

.nav-actions {
  justify-self: end;
}

.nav-actions .signup {
  background: var(--cyan);
  color: #ffffff;
}

.profile-chip {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  padding: 6px 12px 6px 7px !important;
}

.profile-chip-avatar {
  align-items: center;
  background: var(--cyan);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.profile-chip-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Back Navigation Button */
.back-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #f1f5f9;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-nav:hover {
  background: #e2e8f0;
  transform: translateX(-2px);
}

.back-nav:active {
  transform: translateX(0);
}

.down {
  display: inline-flex;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-5px);
}

.section-snap {
  overflow: hidden;
  position: relative;
}

.hero {
  min-height: 745px;
  padding: 118px 24px 26px;
}

.hero-soft-grid {
  background:
    radial-gradient(circle at 7% 29%, rgba(249, 107, 118, 0.2), transparent 22%),
    radial-gradient(circle at 83% 31%, rgba(231, 239, 159, 0.23), transparent 28%),
    linear-gradient(180deg, rgba(236, 241, 250, 0.58), rgba(255, 255, 255, 0.82) 44%, #ffffff 100%);
  filter: blur(0.4px);
  inset: 0;
  opacity: 1;
  position: absolute;
}

.hero-soft-grid::before {
  background:
    linear-gradient(90deg, rgba(255, 106, 118, 0.16), transparent 24%),
    linear-gradient(90deg, transparent 68%, rgba(224, 240, 118, 0.15)),
    linear-gradient(180deg, rgba(224, 232, 245, 0.54), transparent 42%);
  content: '';
  inset: 0;
  position: absolute;
}

.hero-bg-elements {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}

.tile {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(221, 226, 229, 0.72);
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(24, 44, 62, 0.07);
  display: block;
  position: absolute;
}

.tile-a {
  height: 72px;
  left: -28px;
  top: 118px;
  width: 118px;
}

.tile-b {
  height: 92px;
  left: 95px;
  top: 92px;
  width: 155px;
}

.tile-c {
  height: 80px;
  left: 302px;
  top: 68px;
  width: 124px;
}

.tile-d {
  height: 96px;
  right: 166px;
  top: 35px;
  width: 160px;
}

.tile-e {
  height: 80px;
  right: -8px;
  top: 106px;
  width: 116px;
}

.tile-f {
  height: 92px;
  left: -22px;
  top: 265px;
  width: 116px;
}

.tile-g {
  height: 74px;
  left: 268px;
  top: 315px;
  width: 148px;
}

.tile-h {
  height: 94px;
  right: 260px;
  top: 292px;
  width: 122px;
}

.tile-i {
  height: 76px;
  right: 66px;
  top: 246px;
  width: 150px;
}

.tile-j {
  height: 92px;
  left: 292px;
  top: 480px;
  width: 142px;
}

.hero-content {
  margin: 0 auto;
  max-width: 620px;
  position: relative;
  text-align: center;
  z-index: 3;
}

.pill {
  border: 1px solid #35b7e1;
  border-radius: 999px;
  color: #009ad0;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0;
  margin: 0 0 21px;
  min-width: 190px;
  padding: 6px 22px;
}

.hero h1,
.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--cyan);
  display: block;
  font-size: 48px;
  margin-top: 5px;
}

.hero-copy,
.page-hero p {
  color: #6b6d76;
  font-size: 17px;
  line-height: 1.5;
  margin: 24px auto 26px;
  max-width: 560px;
}

.primary-cta {
  align-items: center;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  box-shadow: 0 14px 24px rgba(0, 166, 210, 0.18);
  font-size: 23px;
  font-weight: 700;
  gap: 18px;
  justify-content: center;
  min-height: 50px;
  min-width: 260px;
  padding: 5px 12px 5px 25px;
}

.arrow-icon {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  color: #111111;
  display: inline-flex;
  font-size: 20px;
  height: 33px;
  justify-content: center;
  width: 33px;
}

.hero-students {
  height: 320px;
  margin: 42px auto 0;
  max-width: 1040px;
  overflow: hidden;
  position: relative;
  z-index: 3;
  margin-bottom: 78px;
}

.student-card {
  align-items: end;
  border-radius: 22px;
  box-shadow: 0 26px 45px rgba(41, 70, 83, 0.12);
  display: flex;
  height: 252px;
  justify-content: center;
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: 24px;
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 900ms ease,
    width 900ms cubic-bezier(0.22, 1, 0.36, 1),
    height 900ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 300px;
  will-change: transform, opacity;
}

.student-card:nth-child(3n + 1) {
  background: #f45f92;
}

.student-card:nth-child(3n + 2) {
  background: #56c0e6;
}

.student-card:nth-child(3n) {
  background: #d1a169;
}

.student-left {
  opacity: 0.88;
  transform: translateX(-440px) translateY(34px) rotate(-12deg) scale(0.94);
  z-index: 1;
}

.student-center {
  height: 275px;
  opacity: 1;
  transform: translateX(-50%) translateY(40px) rotate(0deg) scale(1.03);
  width: 315px;
  z-index: 3;
}

.student-right {
  opacity: 0.88;
  transform: translateX(140px) translateY(34px) rotate(12deg) scale(0.94);
  z-index: 1;
}

.student-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(310px) translateY(52px) rotate(16deg) scale(0.84);
  z-index: 0;
}

.student-card.is-moving {
  pointer-events: none;
}

.student-exit-left {
  opacity: 0;
  transform: translateX(-690px) translateY(52px) rotate(-18deg) scale(0.86);
  z-index: 0;
}

.student-enter-right {
  opacity: 0 !important;
  transform: translateX(260px) translateY(52px) rotate(16deg) scale(0.86) !important;
}

.student-card.is-resetting {
  pointer-events: none;
  transition: none !important;
  z-index: 0;
}

.image-placeholder {
  height: 100%;
  width: 100%;
}

.student-card img {
  display: block;
  height: 100%;
  /* object-fit: cover; */
  object-position: center bottom;
  width: 100%;
}

.courses-strip {
  background: linear-gradient(180deg, #00a6d2 0%, #49c1da 100%);
  min-height: 680px;
  padding: 64px 0 54px;
}

.corner-shape {
  border-color: rgba(255, 255, 255, 0.45) transparent transparent rgba(255, 255, 255, 0.45);
  border-radius: 0 0 120px 0;
  border-style: solid;
  border-width: 95px 95px 0 0;
  height: 0;
  left: 15px;
  position: absolute;
  top: 15px;
  width: 0;
}

.corner-shape.small {
  border-color: rgba(0, 128, 172, 0.55) transparent transparent rgba(0, 128, 172, 0.55);
  border-width: 68px 68px 0 0;
}

.section-title {
  position: relative;
  text-align: center;
  z-index: 2;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.section-title span {
  background: currentColor;
  display: block;
  height: 2px;
  margin: 10px auto 0;
  width: 104px;
}

.section-title p {
  font-size: 18px;
  margin: 14px 0 0;
}

.light-title {
  color: #ffffff;
}

.compact-title {
  color: var(--cyan);
}

.course-slider {
  display: flex;
  gap: 38px;
  margin: 72px auto 0;
  max-width: 1180px;
  overflow-x: auto;
  padding: 0 58px 10px;
  scrollbar-width: none;
}

.course-slider::-webkit-scrollbar {
  display: none;
}

.course-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 24px 42px rgba(0, 74, 98, 0.14);
  flex: 0 0 330px;
  overflow: hidden;
}

.course-image {
  align-items: center;
  background: #dedede;
  display: flex;
  height: 178px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.course-image span {
  display: none;
}

.course-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.course-body {
  padding: 18px 18px 16px;
}

.course-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}

.course-meta {
  color: #707070;
  display: flex;
  font-size: 16px;
  gap: 24px;
  margin-bottom: 28px;
}

.course-body a {
  background: var(--cyan);
  border-radius: 5px;
  color: #ffffff;
  display: block;
  font-size: 17px;
  font-weight: 600;
  padding: 14px;
  text-align: center;
}

.slider-controls {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 54px;
}

.slider-controls button {
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  color: var(--cyan);
  cursor: pointer;
  font-size: 22px;
  height: 38px;
  width: 38px;
}

.scholar-path {
  background: #ffffff;
  min-height: 365px;
  padding: 48px 50px 58px;
}

.path-corner {
  height: 118px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 145px;
}

.path-corner::before,
.path-corner::after {
  border: 36px solid rgba(0, 166, 210, 0.12);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 0 0 0 110px;
  content: '';
  position: absolute;
  right: -24px;
  top: -22px;
}

.path-corner::before {
  height: 112px;
  width: 112px;
}

.path-corner::after {
  height: 70px;
  opacity: 0.65;
  right: 18px;
  top: -4px;
  transform: rotate(-13deg);
  width: 70px;
}

.scholar-path .section-title h2 {
  font-size: 30px;
}

.scholar-path .section-title p {
  color: #6f737a;
  font-size: 17px;
  margin-top: 13px;
}

.path-steps {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, 1fr);
  margin: 46px auto 0;
  max-width: 1040px;
}

.path-step {
  min-width: 0;
}

.step-top {
  align-items: center;
  display: grid;
  gap: 15px;
  grid-template-columns: 66px 1fr;
  margin-bottom: 18px;
}

.step-top strong {
  align-items: center;
  background: linear-gradient(180deg, #67d0e5, #1fb0d0);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 30px;
  font-weight: 800;
  height: 66px;
  justify-content: center;
  width: 66px;
}

.step-top span {
  background: var(--cyan);
  display: block;
  height: 1px;
  position: relative;
  top: 1px;
}

.step-top span::after {
  background: var(--cyan);
  border-radius: 50%;
  content: '';
  height: 4px;
  position: absolute;
  right: -1px;
  top: -1.5px;
  width: 4px;
}

.path-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.path-step p {
  color: #737780;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  max-width: 205px;
}

.features-block {
  background: #edf9fc;
  padding: 78px 56px 84px;
}

.features-block .section-title h2,
.why-panel .section-title h2,
.testimonials .section-title h2,
.partners .section-title h2 {
  font-size: 30px;
  font-weight: 700;
}

.feature-layout {
  align-items: start;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(440px, 1fr) 420px;
  margin: 54px auto 76px;
  max-width: 1100px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 24px;
}

.feature-copy h2 {
  font-size: 33px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 48px;
  max-width: 520px;
}

.feature-list {
  display: grid;
  gap: 34px;
}

.feature-list article {
  display: grid;
  gap: 38px;
  grid-template-columns: 58px 1fr;
}

.feature-list article > span {
  align-items: center;
  background: #bfeefa;
  border-radius: 10px;
  color: var(--cyan);
  display: flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  width: 58px;
}

.feature-list h3 {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}

.feature-list p {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  max-width: 430px;
}

.feature-media {
  min-height: 535px;
  position: relative;
}

.mini-illustration,
.mentor-photo {
  background: #dedede;
  border-radius: 12px;
  overflow: hidden;
  position: absolute;
}

.mini-illustration img,
.mentor-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mini-illustration {
  height: 205px;
  right: 18px;
  top: 0;
  width: 225px;
}

.mentor-photo {
  bottom: 0;
  height: 330px;
  right: 0;
  width: 400px;
  margin-bottom: -15px;
}

.why-panel {
  margin: 0 auto;
  max-width: 1030px;
  padding-top: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px auto 38px;
}

.stats-row article {
  border-right: 1px solid #d2d2d2;
  padding: 0 28px;
  text-align: center;
}

.stats-row article:last-child {
  border-right: 0;
}

.stats-row strong {
  color: #06798c;
  display: block;
  font-size: 34px;
  font-weight: 500;
}

.stats-row article:first-child strong {
  color: #27137a;
}

.stats-row article:last-child strong {
  color: #563e23;
}

.stats-row p {
  color: #6e6e6e;
  font-size: 12px;
  letter-spacing: 3px;
  margin: 7px 0 0;
}

.benefit-row {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.benefit-row article {
  background: var(--cyan);
  border-radius: 7px;
  box-shadow: 0 18px 34px rgba(0, 166, 210, 0.18);
  color: #ffffff;
  min-height: 76px;
  padding: 14px 16px 12px;
  text-align: center;
}

.benefit-row p {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 0;
}

.team-block {
  background: linear-gradient(180deg, #48c3dd 0%, #f9f9f9 100%);
  min-height: 710px;
  padding: 48px 64px 68px;
}

.team-block .section-title h2 {
  font-size: 36px;
  font-weight: 700;
}

.teacher-grid {
  display: grid;
  gap: 42px 64px;
  grid-template-columns: repeat(4, 1fr);
  margin: 58px auto 0;
  max-width: 1040px;
}

.teacher-card {
  text-align: center;
}

.teacher-avatar {
  background: #dedede;
  border-radius: 50%;
  height: 156px;
  margin: 0 auto 22px;
  width: 156px;
}

.teacher-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px;
}

.teacher-card span {
  background: #dedede;
  border-radius: 999px;
  display: block;
  height: 31px;
  margin: 0 auto;
  width: 150px;
}

.testimonials {
  background: #ffffff;
  padding: 56px 42px 74px;
}

.testimonial-shell {
  align-items: center;
  display: block;
  margin: 44px auto 0;
  max-width: 1120px;
}

.testimonial-viewport {
  overflow: visible;
  width: 100%;
}

.testimonial-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  background: linear-gradient(180deg, #02a8d2, #029ac4);
  border-radius: 10px;
  box-shadow: 0 22px 38px rgba(0, 128, 168, 0.18);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  overflow: hidden;
  padding: 24px;
}

.testimonial-nav {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cdebf3;
  border-radius: 50%;
  box-shadow: 0 14px 26px rgba(0, 128, 168, 0.12);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 34px;
  font-weight: 500;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding-bottom: 4px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  width: 48px;
}

.testimonial-shell .testimonial-nav {
  display: none;
}

.testimonial-nav:hover {
  background: var(--cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

.rating {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f9d54c;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
  padding: 7px 12px;
}

.testimonial-card p {
  flex: 1;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  margin: 18px 0 24px;
  overflow-wrap: anywhere;
}

.reviewer {
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  color: #111111;
  display: flex;
  gap: 14px;
  margin-top: auto;
  min-height: 76px;
  padding: 12px;
}

.reviewer > span {
  align-items: center;
  background: #dedede;
  border-radius: 50%;
  color: transparent;
  flex: 0 0 auto;
  display: flex;
  font-size: 12px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.reviewer h3 {
  color: #101216;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px;
}

.reviewer small {
  color: #064db4;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.partners {
  background: #eef9fc;
  padding: 54px 40px 90px;
}

.partner-stage {
  align-items: center;
  display: grid;
  height: 170px;
  justify-items: center;
  margin: 58px auto 0;
  max-width: 430px;
  overflow: hidden;
  position: relative;
}

.partner-logo {
  align-items: center;
  display: flex;
  flex-direction: column;
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(34px) scale(0.88);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
}

.partner-logo strong {
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 93, 122, 0.1);
  display: flex;
  height: 92px;
  justify-content: center;
  padding: 14px 18px;
  width: 132px;
}

.coursera-logo strong {
  background: #ffffff;
}

.cloud-logo strong {
  background: #ffffff;
}

.academy-logo strong {
  background: #dedede;
}

.partner-logo img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.partner-logo span {
  font-size: 26px;
  font-weight: 700;
  margin-top: 16px;
  text-align: center;
}

.partner-logo.is-active {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

.partner-logo.is-exiting {
  filter: blur(2px);
  opacity: 0;
  transform: translateY(-34px) scale(0.92);
  z-index: 1;
}

#site-footer {
  background: var(--footer);
  color: #d4e5ea;
}

.footer-inner {
  display: grid;
  gap: 54px;
  grid-template-columns: 1.7fr 0.7fr 0.7fr 0.9fr;
  margin: 0 auto;
  max-width: 1060px;
  padding: 56px 42px 44px;
}

.footer-inner h2,
.footer-inner h3 {
  color: #ffffff;
  font-weight: 500;
  margin: 0 0 24px;
}

.footer-inner h2 {
  font-size: 24px;
}

.footer-inner h3 {
  color: #00afe4;
  font-size: 15px;
}

.footer-inner a {
  color: #a7bdc5;
  display: block;
  font-size: 15px;
  margin-bottom: 16px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  align-items: center;
  background: #07495c;
  border-radius: 6px;
  display: flex;
  height: 32px;
  justify-content: center;
  margin: 0;
  width: 32px;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #7fa0aa;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 16px 90px;
}

.page-main {
  padding-top: 72px;
}

.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #edf9fc 100%);
  padding: 82px 24px 68px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 auto;
  max-width: 760px;
}

.catalog-section,
.progress-dashboard,
.contact-section {
  margin: 0 auto;
  max-width: 1160px;
  padding: 64px 32px 86px;
}

.catalog-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.catalog-grid .course-card {
  flex: none;
}

.progress-dashboard {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, 1fr);
}

.progress-card {
  background: #ffffff;
  border: 1px solid #dceff4;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 88, 120, 0.08);
  padding: 30px;
}

.progress-card.wide {
  grid-column: 1 / -1;
}

.progress-card h2,
.progress-card h3,
.contact-info h2 {
  margin: 0 0 10px;
}

.progress-card strong {
  color: var(--cyan);
  display: block;
  font-size: 42px;
  margin-top: 15px;
}

.progress-bar {
  background: #e7f3f6;
  border-radius: 999px;
  height: 14px;
  margin-top: 22px;
  overflow: hidden;
}

.progress-bar span {
  background: var(--cyan);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.contact-section {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(280px, 1.2fr) 0.8fr;
}

.contact-form,
.contact-info {
  background: #ffffff;
  border: 1px solid #dceff4;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 88, 120, 0.08);
  padding: 34px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 16px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #cae6ee;
  border-radius: 7px;
  font: inherit;
  padding: 15px 16px;
  resize: vertical;
}

.contact-form .primary-cta {
  font-size: 19px;
  justify-self: start;
}

.contact-info {
  align-self: start;
  background: var(--cyan);
  color: #ffffff;
}

.contact-info p {
  line-height: 1.65;
}

.auth-main {
  background:
    radial-gradient(circle at 14% 20%, rgba(244, 95, 146, 0.12), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(223, 241, 116, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef9fc 100%);
  min-height: 100vh;
  padding: 118px 28px 74px;
}

.auth-shell {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 440px);
  margin: 0 auto;
  max-width: 1120px;
  position: relative;
}

.auth-shell::before,
.auth-shell::after {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(219, 228, 232, 0.7);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(24, 44, 62, 0.08);
  content: '';
  position: absolute;
  z-index: 0;
}

.auth-shell::before {
  height: 92px;
  left: -34px;
  top: -20px;
  width: 150px;
}

.auth-shell::after {
  height: 118px;
  right: -20px;
  top: 34px;
  width: 118px;
}

.auth-panel,
.auth-card {
  position: relative;
  z-index: 1;
}

.auth-panel h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  max-width: 590px;
}

.auth-panel p:not(.pill) {
  color: #626873;
  font-size: 19px;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 560px;
}

.auth-stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  margin-top: 36px;
  max-width: 430px;
}

.auth-stats article {
  background: #ffffff;
  border: 1px solid #d7eef5;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0, 128, 168, 0.09);
  padding: 18px;
}

.auth-stats strong {
  color: var(--cyan);
  display: block;
  font-size: 34px;
  line-height: 1;
}

.auth-stats span {
  color: #626873;
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d9eef4;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(0, 86, 114, 0.14);
  display: grid;
  gap: 18px;
  padding: 34px;
}

.auth-card h2 {
  font-size: 30px;
  margin: 0 0 6px;
}

.auth-card label {
  display: grid;
  gap: 8px;
}

.auth-card label > span {
  color: #252a32;
  font-size: 15px;
  font-weight: 700;
}

.auth-card input,
.auth-card select {
  background: #f8fdff;
  border: 1px solid #cce8f0;
  border-radius: 8px;
  color: #15181d;
  font: inherit;
  min-height: 52px;
  outline: none;
  padding: 14px 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-card input:focus,
.auth-card select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 166, 210, 0.12);
}

.auth-options {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.check-line {
  align-items: center;
  display: inline-flex !important;
  gap: 8px !important;
}

.check-line input {
  min-height: auto;
  width: auto;
}

.auth-options a,
.text-button,
.auth-switch a {
  color: var(--cyan);
  font-weight: 700;
}

.text-button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.auth-submit {
  font-size: 20px;
  justify-self: stretch;
  margin-top: 4px;
  width: 100%;
}

.google-auth {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cde8ef;
  border-radius: 999px;
  color: #15181d;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.google-auth:hover {
  border-color: var(--cyan);
  box-shadow: 0 14px 28px rgba(0, 128, 168, 0.12);
  transform: translateY(-1px);
}

.google-auth span {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  height: 28px;
  justify-content: center;
  overflow: hidden;
  width: 28px;
}

.google-auth img {
  display: block;
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.auth-message {
  border-radius: 8px;
  display: none;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 11px 13px;
}

.auth-message:not(:empty) {
  display: block;
}

.auth-message[data-state="success"] {
  background: #e9f9ee;
  color: #14753a;
}

.auth-message[data-state="error"] {
  background: #fff0f0;
  color: #b42318;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.auth-switch {
  color: #626873;
  font-size: 15px;
  margin: 4px 0 0;
  text-align: center;
}

.verify-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d9eef4;
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(0, 86, 114, 0.14);
  margin: 0 auto;
  max-width: 720px;
  padding: 44px;
  position: relative;
  text-align: center;
}

.verify-card h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0;
}

.verify-card p {
  color: #626873;
  font-size: 18px;
  line-height: 1.6;
  margin: 20px auto 0;
  max-width: 560px;
}

.verify-card strong {
  color: var(--cyan);
}

.verify-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.profile-main {
  background: linear-gradient(180deg, #ffffff 0%, #eef9fc 100%);
  min-height: 100vh;
  padding: 118px 28px 84px;
}

.profile-hero {
  margin: 0 auto 42px;
  max-width: 860px;
  text-align: center;
}

.profile-hero h1 {
  font-size: 50px;
  line-height: 1.1;
  margin: 0;
}

.profile-hero p {
  color: #626873;
  font-size: 18px;
  margin: 18px auto 0;
  max-width: 580px;
}

.profile-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 320px minmax(280px, 1fr);
  margin: 0 auto;
  max-width: 1120px;
}

.profile-card {
  background: #ffffff;
  border: 1px solid #d8eef4;
  border-radius: 12px;
  box-shadow: 0 22px 46px rgba(0, 86, 114, 0.1);
  padding: 28px;
}

.profile-card h2 {
  font-size: 28px;
  margin: 0 0 18px;
}

.profile-summary {
  align-content: start;
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-avatar {
  align-items: center;
  background: #dff6fb;
  border: 5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 32px rgba(0, 128, 168, 0.18);
  color: var(--cyan);
  display: flex;
  font-size: 54px;
  font-weight: 800;
  height: 150px;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  width: 150px;
}

.profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-summary h2 {
  margin-bottom: 6px;
}

.profile-summary p {
  color: #626873;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-badge {
  background: #e9f9ee;
  border-radius: 999px;
  color: #14753a;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  margin-top: 18px;
  padding: 8px 14px;
}

.logout-button {
  margin-top: 22px;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-list div {
  background: #f8fdff;
  border: 1px solid #d8eef4;
  border-radius: 9px;
  padding: 15px;
}

.detail-list span {
  color: #626873;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-list strong {
  color: #15181d;
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.avatar-editor {
  grid-column: 2;
}

.avatar-editor p {
  color: #626873;
  margin: -8px 0 18px;
}

.upload-box {
  align-items: center;
  background: #eef9fc;
  border: 1px dashed var(--cyan);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 58px;
  margin-bottom: 18px;
}

.upload-box input {
  display: none;
}

.upload-box span {
  color: var(--cyan);
  font-weight: 800;
}

.crop-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.crop-stage canvas {
  background: #edf9fc;
  border-radius: 50%;
  max-width: 100%;
}

.crop-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.crop-controls label {
  display: grid;
  gap: 7px;
}

.crop-controls span {
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .navbar {
    grid-template-columns: auto 1fr;
    padding: 15px 20px;
    height: 70px;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .nav-center, .nav-label {
    display: none; 
  }

  .nav-actions {
    display: flex !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .brand {
    width: 80px;
    height: 50px;
    background: transparent !important;
  }

  .brand-logo {
    width: 80px;
    height: 45px;
  }

  .profile-chip {
    padding: 5px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px);
    border-radius: 50% !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Bottom Nav Styles */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 600px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        height: 75px;
        z-index: 10000;
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
        border-top: 1px solid #e5e7eb;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: #111827;
        text-decoration: none;
        font-size: 11px;
        font-weight: 800;
        opacity: 0.62;
        transition: color 0.2s, opacity 0.2s, transform 0.2s;
        flex: 1;
    }

    .mobile-bottom-nav a i {
        width: 24px;
        height: 24px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-size: 0;
        font-style: normal;
        color: currentColor;
        transition: background 0.2s, color 0.2s, transform 0.2s;
    }

    .mobile-bottom-nav a i::before {
        content: "";
        width: 20px;
        height: 20px;
        display: block;
        background: currentColor;
        -webkit-mask: var(--mobile-nav-icon) center / contain no-repeat;
        mask: var(--mobile-nav-icon) center / contain no-repeat;
    }

    .mobile-bottom-nav a:nth-child(1) i {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 10.4 12 4l8 6.4v8.1A1.5 1.5 0 0 1 18.5 20H15v-5.5H9V20H5.5A1.5 1.5 0 0 1 4 18.5v-8.1Z'/%3E%3C/svg%3E");
    }

    .mobile-bottom-nav a:nth-child(2) i {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 4h10.5A1.5 1.5 0 0 1 18 5.5V20H7a3 3 0 0 1-3-3V6a2 2 0 0 1 2-2Zm1 12.5a.75.75 0 0 0 0 1.5h9v-1.5H7Zm1-9v2h7v-2H8Zm0 4v2h5.8v-2H8Z'/%3E%3C/svg%3E");
    }

    .mobile-bottom-nav a:nth-child(3) i {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 19a1 1 0 1 1 0-2h14a1 1 0 1 1 0 2H5Zm1.3-4.2a1 1 0 0 1-.1-1.4l3.2-3.5a1 1 0 0 1 1.4-.1l2.4 2.1 4-5.1a1 1 0 0 1 1.6 1.2l-4.7 6a1 1 0 0 1-1.4.2l-2.5-2.2-2.6 2.8a1 1 0 0 1-1.3 0Z'/%3E%3C/svg%3E");
    }

    .mobile-bottom-nav a:nth-child(4) i {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7.2 4.2a1.4 1.4 0 0 1 1.8.7l1.2 2.7a1.5 1.5 0 0 1-.4 1.7l-1 .9a9 9 0 0 0 5 5l.9-1a1.5 1.5 0 0 1 1.7-.4l2.7 1.2a1.4 1.4 0 0 1 .7 1.8l-.7 2a1.7 1.7 0 0 1-1.7 1.1A14.4 14.4 0 0 1 3.6 6.6a1.7 1.7 0 0 1 1.1-1.7l2.5-.7Z'/%3E%3C/svg%3E");
    }

    .mobile-bottom-nav a.active {
        color: #05060a;
        opacity: 1;
    }

    .mobile-bottom-nav a.active i {
        background: #05060a;
        color: #ffffff;
        transform: translateY(-2px);
    }

    /* Padding for page content to not be hidden behind bottom nav */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 820px) {
  .hero {
    padding: 100px 20px 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h1 span {
    font-size: 36px;
  }

  .hero {
    min-height: auto;
    padding: 138px 18px 54px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero h1 span {
    font-size: 40px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 16px;
  }

  .primary-cta {
    font-size: 19px;
    min-width: 220px;
  }

  .hero-students,
  .feature-layout,
  .teacher-grid,
  .testimonial-grid,
  .catalog-grid,
  .progress-dashboard,
  .contact-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-students {
    height: 300px;
    max-width: 330px;
    overflow: hidden;
  }

  .student-card {
    border-radius: 20px;
    height: 260px;
    left: 50%;
    top: 16px;
    transition:
      transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 520ms ease,
      width 760ms cubic-bezier(0.22, 1, 0.36, 1),
      height 760ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 292px;
  }

  .student-left {
    opacity: 0;
    transform: translateX(-178%) translateY(0) rotate(0deg) scale(0.94);
  }

  .student-center {
    height: 260px;
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
    width: 292px;
  }

  .student-right {
    opacity: 0;
    transform: translateX(78%) translateY(0) rotate(0deg) scale(0.94);
  }

  .student-hidden {
    opacity: 0;
    transform: translateX(78%) translateY(0) rotate(0deg) scale(0.94);
  }

  .student-exit-left {
    opacity: 0;
    transform: translateX(-178%) translateY(0) rotate(0deg) scale(0.94);
  }

  .student-enter-right {
    opacity: 0 !important;
    transform: translateX(78%) translateY(0) rotate(0deg) scale(0.94) !important;
  }

  .courses-strip {
    min-height: auto;
    padding: 52px 0;
  }

  .course-slider {
    gap: 20px;
    margin-top: 50px;
    padding: 0 22px 10px;
  }

  .course-card {
    flex-basis: 300px;
  }

  .course-image {
    height: 160px;
  }

  .scholar-path {
    padding: 48px 22px 56px;
  }

  .path-steps {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .step-top {
    grid-template-columns: 62px 1fr;
  }

  .step-top strong {
    font-size: 26px;
    height: 62px;
    width: 62px;
  }

  .path-step p {
    max-width: 100%;
  }

  .feature-layout {
    gap: 24px;
  }

  .features-block {
    padding: 56px 22px;
  }

  .features-block .section-title h2,
  .why-panel .section-title h2,
  .testimonials .section-title h2,
  .partners .section-title h2 {
    font-size: 24px;
  }

  .feature-copy h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .feature-list article {
    gap: 18px;
    grid-template-columns: 50px 1fr;
  }

  .feature-list article > span {
    height: 44px;
    width: 50px;
  }

  .feature-list h3 {
    font-size: 18px;
  }

  .feature-list p {
    font-size: 16px;
  }

  .feature-media {
    min-height: 420px;
  }

  .mini-illustration {
    height: 155px;
    width: 175px;
  }

  .mentor-photo {
    height: 265px;
    max-width: 100%;
    width: 330px;
    margin-bottom: -15px;
  }

  .stats-row,
  .benefit-row {
    grid-template-columns: 1fr;
  }

  .stats-row article {
    border-bottom: 1px solid #d2d2d2;
    border-right: 0;
    padding: 18px;
  }

  .partner-stage {
    align-items: center;
    height: 165px;
  }

  .team-block {
    min-height: auto;
    padding: 50px 22px 64px;
  }

  .team-block .section-title h2 {
    font-size: 28px;
  }

  .teacher-avatar {
    height: 142px;
    width: 142px;
  }

  .testimonial-grid {
    display: flex;
    gap: 0;
    grid-template-columns: none;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .testimonial-card {
    flex: 0 0 100%;
    min-height: 250px;
    padding: 20px;
  }

  .testimonial-card p {
    font-size: 15px;
  }

  .testimonial-shell {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    margin-top: 34px;
    max-width: 100%;
  }

  .testimonial-viewport {
    overflow: hidden;
  }

  .testimonial-shell .testimonial-nav {
    display: flex;
  }

  .testimonial-nav {
    font-size: 28px;
    height: 38px;
    width: 38px;
  }

  .catalog-section,
  .progress-dashboard,
  .contact-section {
    padding: 46px 22px 64px;
  }

  .auth-main {
    padding: 128px 18px 54px;
  }

  .auth-shell {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .auth-shell::before,
  .auth-shell::after {
    display: none;
  }

  .auth-panel h1 {
    font-size: 36px;
  }

  .auth-panel p:not(.pill) {
    font-size: 16px;
  }

  .auth-stats {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .verify-card {
    padding: 28px 22px;
  }

  .verify-card h1 {
    font-size: 34px;
  }

  .verify-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-main {
    padding: 128px 18px 56px;
  }

  .profile-hero h1 {
    font-size: 36px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .avatar-editor {
    grid-column: auto;
  }

  .profile-card {
    padding: 22px;
  }

  .crop-stage canvas {
    height: 260px;
    width: 260px;
  }

  .progress-card.wide {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
/* Modern learner profile dashboard */
.learner-profile-shell {
  background: #ffffff;
  min-height: 100vh;
  padding: 84px 0 70px;
  color: #14213a;
  position: relative;
}

.learner-profile-header,
.learner-profile-grid {
  animation: profileFadeUp 0.36s ease both;
}

.profile-loader {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.profile-loader[hidden] {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-loader-card {
  width: min(330px, calc(100% - 48px));
  border-radius: 22px;
  border: 1px solid #e5eff7;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  padding: 28px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-loader-card strong {
  font-size: 18px;
}

.profile-loader-card span {
  color: #6b7280;
  font-size: 13px;
}

.profile-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: #06a9cf;
  animation: profileSpin 0.8s linear infinite;
  margin-bottom: 4px;
}

.profile-loading .learner-profile-header,
.profile-loading .learner-profile-grid {
  opacity: 0.42;
  transform: translateY(8px);
  pointer-events: none;
}

@keyframes profileSpin {
  to { transform: rotate(360deg); }
}

@keyframes profileFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learner-profile-header {
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  padding: 44px 28px 34px;
}

.learner-profile-inner,
.learner-profile-grid {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.learner-profile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.learner-identity {
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.learner-profile-shell .profile-avatar {
  width: 104px;
  height: 104px;
  margin: 0;
  border: 5px solid #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  font-size: 36px;
  background: #dff6fb;
}

.avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #ffffff;
  color: #14213a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  font-weight: 800;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-name-row h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.05;
}

.verified-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.verified-mark::before {
  content: "\2713";
  font-size: 13px;
  font-weight: 800;
}

.student-code {
  display: block;
  margin-top: 10px;
  color: #174cff;
  font-size: 14px;
}

.profile-focus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: #6b7280;
}

.profile-focus::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 -4px 0 rgba(107, 114, 128, 0.16);
}

.profile-focus strong {
  font-weight: 500;
}

.edit-profile-btn {
  min-width: 134px;
  height: 42px;
  border: 1px solid #a7ccff;
  border-radius: 999px;
  background: #ffffff;
  color: #0284c7;
  font-weight: 800;
  cursor: pointer;
}

.learner-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 58px;
  padding-top: 24px;
}

.profile-main-column {
  min-width: 0;
}

.profile-stat-hero {
  min-height: 176px;
  border-radius: 8px;
  background: linear-gradient(105deg, #06a9cf 0%, #07536d 100%);
  color: #ffffff;
  box-shadow: 0 22px 42px rgba(8, 83, 109, 0.22);
  display: grid;
  grid-template-columns: 190px 1px 1fr 1px 210px;
  align-items: center;
  gap: 34px;
  padding: 26px 42px;
}

.overall-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(0, 50, 75, 0.78);
  display: grid;
  place-content: center;
  text-align: center;
}

.overall-ring strong {
  font-size: 30px;
  line-height: 1;
}

.overall-ring span,
.study-spark span,
.profile-stat-list span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.stat-divider {
  width: 1px;
  height: 78px;
  background: rgba(255, 255, 255, 0.18);
}

.profile-stat-list {
  display: grid;
  gap: 18px;
}

.profile-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  align-items: center;
}

.profile-stat-list strong {
  font-size: 22px;
}

.green { color: #22c55e !important; }
.amber { color: #f59e0b !important; }
.red { color: #ef4444 !important; }
.profile-stat-hero .green { color: #5ff4a0 !important; }
.profile-stat-hero .amber { color: #ffc15a !important; }
.profile-stat-hero .red { color: #ff8a8a !important; }

.study-spark strong {
  display: block;
  font-size: 35px;
  line-height: 1;
  margin: 6px 0 18px;
}

.study-spark svg {
  width: 150px;
  color: #74f097;
}

.profile-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.profile-panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.1;
}

.attendance-card,
.quick-action-grid,
.profile-account-card,
.upcoming-card,
.achievement-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
}

.attendance-card {
  min-height: 214px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 22px;
}

.attendance-title {
  grid-column: 1 / -1;
  font-weight: 800;
  color: #14213a;
}

.attendance-title::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  vertical-align: -2px;
}

.attendance-score strong {
  display: block;
  font-size: 28px;
}

.attendance-score span,
.attendance-meta span,
.achievement-card span,
.upcoming-card small {
  color: #6b7280;
  font-size: 12px;
}

.attendance-meta {
  display: grid;
  gap: 16px;
}

.attendance-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quick-action-grid {
  min-height: 214px;
  padding: 24px 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.quick-action {
  background: #f3f6fc;
  color: #14213a;
  text-decoration: none;
  border-radius: 7px;
  padding: 20px 16px;
  font-weight: 800;
  display: grid;
  align-content: center;
  gap: 12px;
}

.quick-action span {
  width: 31px;
  height: 31px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.quick-action small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action .blue { background: #dbeafe; color: #2563eb !important; }
.quick-action .green { background: #dcfce7; color: #16a34a !important; }
.quick-action .purple { background: #f3e8ff; color: #9333ea !important; }
.quick-action .orange { background: #ffedd5; color: #f97316 !important; }

.achievements-panel {
  margin-top: 26px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.achievement-card {
  min-height: 76px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.achievement-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.achievement-card strong {
  display: block;
  font-size: 14px;
}

.profile-side-column {
  padding-top: 6px;
}

.upcoming-card {
  padding: 17px 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 12px;
}

.upcoming-card span {
  color: #2563eb;
  font-weight: 800;
  font-size: 12px;
}

.upcoming-card.assignment span {
  color: #f97316;
}

.upcoming-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 15px;
}

.upcoming-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #2563eb;
  font-weight: 800;
}

.upcoming-card.assignment .upcoming-icon {
  background: #ffedd5;
  color: #f97316;
}

.profile-account-card {
  margin-top: 24px;
  padding: 18px;
}

.detail-list.compact {
  gap: 10px;
}

.detail-list.compact div {
  padding: 12px;
  border-radius: 7px;
}

.profile-editor-modal[hidden] {
  display: none;
}

.profile-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-editor-card {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: white;
  border-radius: 18px;
  padding: 28px;
  position: relative;
}

.editor-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: #eef2f7;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.profile-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
}

.profile-edit-fields label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}

.profile-edit-fields input {
  height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

.profile-edit-fields .edit-profile-btn {
  min-width: 110px;
}

@media (max-width: 980px) {
  .learner-profile-grid,
  .profile-section-grid {
    grid-template-columns: 1fr;
  }

  .profile-stat-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 680px) {
  .learner-profile-shell {
    padding-top: 72px;
  }

  .learner-profile-inner,
  .learner-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .achievement-grid,
  .quick-action-grid,
  .profile-edit-fields {
    grid-template-columns: 1fr;
  }
}
