:root {
  --header-bg: #152f6c;
  --search-border: #b896f3;
  --search-glow: rgba(171, 123, 255, 0.2);
  --nav-white: #f8fbff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Nunito", "Baloo 2", sans-serif;
  background: #0b1638;
  color: #fff;
}

.slis-header {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 220px at 50% -40px, rgba(130, 173, 255, 0.16), transparent 60%),
    radial-gradient(620px 160px at 14% 0%, rgba(160, 140, 255, 0.12), transparent 58%),
    linear-gradient(180deg, #1a3b86 0%, #152f6c 46%, #12285d 100%);
  width: 100%;
  min-height: 104px;
  padding: 0;
}

.header-inner {
  width: min(1366px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 162px minmax(500px, 1fr) 222px;
  gap: 8px;
  min-height: 104px;
  align-items: center;
  padding: 0 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.slis-logo {
  width: 96px;
  max-width: 100%;
  height: auto;
  transform: translateY(-2px);
}

.center-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateY(-6px);
}

.search-shell {
  width: min(620px, 100%);
  max-width: 620px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 2.5px solid var(--search-border);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 0 7px var(--search-glow);
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  overflow: hidden;
}

.search-shell input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.18vw, 1.28rem);
  color: #5f6880;
  padding: 0 4px;
}

.search-shell input::placeholder {
  color: #7a8498;
  opacity: 1;
}

.icon-chip {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  margin: 0 auto;
  background: #e5ebf6;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.icon-chip .icon {
  font-size: 1.02rem;
  line-height: 1;
}

.icon-chip:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.03);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  margin-top: 2px;
  padding: 0 8px 0;
}

.header-nav a {
  text-decoration: none;
  color: var(--nav-white);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 700;
  font-size: clamp(1.06rem, 1.42vw, 1.32rem);
  line-height: 1.05;
  letter-spacing: 0.15px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
  white-space: nowrap;
  transition: transform 0.25s ease, text-shadow 0.25s ease, filter 0.25s ease;
}

.header-nav a:nth-child(1) { transform: rotate(-2.8deg); }
.header-nav a:nth-child(2) { transform: rotate(-2deg); }
.header-nav a:nth-child(3) { transform: rotate(-2.4deg); }
.header-nav a:nth-child(4) { transform: rotate(-2.2deg); }

.header-nav a:hover {
  text-shadow: 0 0 10px rgba(210, 231, 255, 0.9);
  filter: drop-shadow(0 0 5px rgba(188, 218, 255, 0.45));
  transform: translateY(-2px) rotate(-1.4deg);
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-right: 4px;
  transform: translateY(-2px);
}

.action-btn img {
  display: block;
  width: 140px;
  height: auto;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.members-login img {
  width: 140px;
}


.mobile-menu-toggle {
  display: none;
}

.mobile-nav-panel {
  display: none;
}

.action-btn:hover img {
  transform: translateY(-1px) scale(1.028);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 420px at 10% 18%, rgba(82, 142, 255, 0.28), transparent 62%),
    radial-gradient(900px 420px at 75% 8%, rgba(112, 84, 255, 0.2), transparent 66%),
    linear-gradient(145deg, #08132f 0%, #0d1f4d 46%, #102860 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background-image: radial-gradient(circle, rgba(173, 215, 255, 0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.25;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}

.hero::after {
  background: radial-gradient(60% 60% at 14% 65%, rgba(255, 206, 82, 0.15), transparent 65%);
}

.hero-inner {
  width: min(1366px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(420px, 40%) 1fr;
  gap: 20px;
  padding: 12px 24px 30px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.platform-badge {
  width: clamp(176px, 24vw, 270px);
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.hero-title {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.05vw, 3.23rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  text-shadow: 0 12px 26px rgba(4, 10, 31, 0.46);
}

.title-learning {
  background: linear-gradient(180deg, #ffe474 0%, #ffc928 48%, #ffb300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 10px rgba(255, 184, 0, 0.25);
}

.hero-sinhala {
  margin: 18px 0 0;
  font-family: "Noto Sans Sinhala", "Baloo 2", sans-serif;
  font-size: clamp(1.1rem, 1.95vw, 1.55rem);
  font-weight: 800;
  color: #ffd84e;
}

.hero-description {
  margin: 14px 0 0;
  max-width: 510px;
  font-size: clamp(1rem, 1.16vw, 1.26rem);
  line-height: 1.5;
  color: #dbe7ff;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.hero-cta-btn {
  display: inline-flex;
}

.hero-cta-btn img {
  width: clamp(135px, 13vw, 184px);
  height: auto;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.hero-cta-btn:hover img {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(47, 114, 255, 0.35));
}

.feature-row {
  margin-top: 4px;
  border-top: 1px solid rgba(158, 198, 255, 0.22);
  padding-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-item {
  position: relative;
  text-align: center;
  padding: 4px 10px;
}

.feature-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(145, 217, 255, 0.55), transparent);
  box-shadow: 0 0 12px rgba(124, 195, 255, 0.5);
}

.feature-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 8px;
}

.feature-item h3 {
  margin: 0;
  font-size: clamp(0.94rem, 1.04vw, 1.1rem);
  line-height: 1.15;
  color: #ffffff;
}

.feature-item p {
  margin: 2px 0 0;
  font-size: clamp(0.84rem, 0.96vw, 1.04rem);
  line-height: 1.1;
  color: #bbcdf8;
  font-weight: 700;
}

.hero-right-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(21, 38, 89, 0.58), rgba(14, 25, 64, 0.82));
  box-shadow:
    0 24px 52px rgba(6, 13, 36, 0.58),
    0 0 42px rgba(103, 158, 255, 0.26),
    0 0 75px rgba(141, 103, 255, 0.2);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-right-slider:hover {
  transform: scale(1.01);
  box-shadow:
    0 30px 58px rgba(6, 13, 36, 0.62),
    0 0 54px rgba(118, 180, 255, 0.34),
    0 0 84px rgba(152, 115, 255, 0.26);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 70vh, 760px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  filter: saturate(1.03) contrast(1.02);
}

.hero-slide.is-active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(223, 236, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.slider-dot:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.92);
}

.slider-dot.is-active {
  background: #8ad4ff;
  box-shadow: 0 0 10px rgba(91, 182, 255, 0.9);
}

@media (max-width: 1190px) {
  .header-inner {
    grid-template-columns: 160px 1fr 198px;
    gap: 10px;
  }

  .slis-logo {
    width: 126px;
  }

  .header-nav a {
    font-size: clamp(0.98rem, 1.62vw, 1.2rem);
  }

  .action-btn img {
    width: 182px;
  }

  .members-login img {
    width: 164px;
  }

  .hero-inner {
    grid-template-columns: minmax(400px, 46%) 1fr;
    gap: 20px;
    padding-inline: 20px;
  }

  .feature-row {
    margin-top: 24px;
  }
}

@media (max-width: 920px) {
  .slis-header {
    padding: 9px 0 10px;
    min-height: auto;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  .slis-logo {
    width: 132px;
    transform: none;
  }

  .center-zone {
    width: min(760px, 96vw);
    gap: 10px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    column-gap: 16px;
  }

  .header-actions {
    align-items: center;
    gap: 6px;
    padding-right: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 16px 26px;
    gap: 0;
  }

  .hero-left {
    align-items: center;
    text-align: center;
  }

  .hero-description {
    max-width: 640px;
  }

  .hero-cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .feature-row {
    width: 100%;
    margin-top: 22px;
  }

  .hero-right-slider {
    margin-top: 18px;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
    overflow: hidden;
  }

  .slider-track {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    display: block;
  }

  .hero-slide.is-active {
    opacity: 1;
  }

  .slider-dots {
    position: static;
    transform: none;
    justify-content: center;
    margin: 10px 0 0;
  }
}


@media (max-width: 1190px) {
  .slider-track {
    min-height: clamp(360px, 62vh, 580px);
  }
}

@media (max-width: 640px) {
  .search-shell {
    height: 48px;
    grid-template-columns: 48px 1fr 48px;
    border-width: 2.5px;
  }

  .search-shell input {
    font-size: clamp(0.86rem, 3.6vw, 1rem);
  }

  .icon-chip {
    width: 30px;
    height: 30px;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
  }

  .feature-item:nth-child(3)::before,
  .feature-item:nth-child(odd)::before {
    display: none;
  }
}



.join-split-page {
  display: grid;
  grid-template-columns: minmax(0, 66%) minmax(340px, 34%);
  min-height: calc(100vh - 104px);
  background: #f4fbff;
}

.join-split-left {
  min-height: calc(100vh - 104px);
  overflow: hidden;
  background: #eaf7ff;
}

.join-split-image {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 104px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.join-page-body {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(120, 180, 255, 0.20), transparent 60%),
    radial-gradient(700px 340px at 88% 0%, rgba(84, 140, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #dfefff 0%, #edf7ff 24%, #f5fbff 58%, #eef8ff 100%);
  color: #143164;
  min-height: 100vh;
}

.join-split-right {
  padding: 10px 28px 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(120, 190, 255, 0.18), transparent 65%),
    linear-gradient(180deg, #f7fcff 0%, #eef8ff 100%);
}

.join-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.05;
  color: #082d68;
}

.join-title-line {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, #17a8ff, #0954df);
}

.join-subtitle { display: none; }

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.join-card {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbff 100%);
  border-radius: 18px;
  border: 1px solid rgba(87, 142, 220, 0.18);
  box-shadow:
    0 10px 24px rgba(26, 76, 146, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  min-height: 165px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.join-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(27, 74, 140, 0.18); }

.join-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #d7eeff, #c8f8ff);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.join-card h2 { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.15; color: #15356a; }
.join-card p { margin: 0 0 12px; color: #4f6388; line-height: 1.45; font-size: 0.72rem; }

.join-card-btn {
  margin-top: auto;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #0d56d9, #2f86ff);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 0.72rem;
  min-height: auto;
  box-shadow: 0 10px 22px rgba(24, 104, 228, 0.22);
}

.join-card-btn::after { content: " →"; }
.join-login-link { margin: 24px 2px 0; color: #4d6693; font-weight: 700; }
.join-login-link a { color: #1757bb; }

@media (max-width: 920px) {
  .join-split-page { grid-template-columns: 1fr; }
  .join-split-left { min-height: auto; }
  .join-split-image { height: auto; min-height: 0; object-fit: contain; }
  .join-split-right { padding: 22px 16px 40px; }
}

@media (max-width: 640px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-title { font-size: 2rem; }
  .join-card { min-height: auto; }
}

/* Final mobile header overrides (must come after existing header media queries) */
@media (max-width: 640px) {
  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 6px 8px;
    gap: 6px;
  }

  .header-nav {
    display: none !important;
  }

  .center-zone {
    display: flex;
    width: auto;
    transform: none;
    gap: 0;
  }

  .search-shell {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    grid-template-columns: 1fr !important;
    border-radius: 50%;
    padding: 0;
  }

  .search-shell input,
  .search-shell .right {
    display: none !important;
  }

  .search-shell .left {
    display: grid !important;
    width: 30px;
    height: 30px;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    padding: 0;
    transform: none;
  }

  .action-btn img {
    width: 74px !important;
    max-width: 74px !important;
  }

  .slis-logo {
    width: 62px !important;
    transform: none;
  }

  .mobile-menu-toggle {
    display: grid !important;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-size: 22px;
    flex: 0 0 auto;
  }

  .mobile-nav-panel {
    display: none;
    position: absolute;
    right: 10px;
    top: 72px;
    background: #102a66;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.28);
    z-index: 99;
  }

  .mobile-nav-panel.is-open {
    display: grid;
    gap: 10px;
  }

  .mobile-nav-panel a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 14px;
    min-width: 180px;
  }
}

/* Mobile homepage layout fixes (390px target) */
@media (max-width: 640px) {
  .feature-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    margin-top: 10px !important;
    padding-top: 4px !important;
  }

  .feature-item {
    padding: 2px 2px !important;
  }

  .feature-item img {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 4px !important;
  }

  .feature-item h3 {
    font-size: 0.78rem !important;
    line-height: 1 !important;
  }

  .feature-item p {
    font-size: 0.62rem !important;
    line-height: 1.05 !important;
  }

  .feature-item::before {
    display: none !important;
  }

  .hero-inner {
    padding-top: 4px !important;
  }

  .hero-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .platform-badge {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    width: 180px !important;
  }

  .hero-title {
    margin-top: 0 !important;
  }
}

/* Register form page */
.register-page {
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 42% 58%;
  padding-top: 0 !important;
  background:
    radial-gradient(900px 480px at 0% 20%, rgba(70, 165, 255, 0.20), transparent 65%),
    linear-gradient(135deg, #eef8ff 0%, #ffffff 54%, #eaf6ff 100%);
  color: #0b2c68;
}
.register-left { position: relative; overflow: hidden; padding: 2px 44px 0 !important; background: radial-gradient(650px 420px at 35% 85%, rgba(50, 145, 255, 0.22), transparent 70%); }
.register-left::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(245,250,255,0.55) 0%, rgba(245,250,255,0.18) 45%, rgba(245,250,255,0.02) 100%); pointer-events: none; z-index: 0; }
.register-left > * { position: relative; z-index: 1; }
.register-left h1 { margin: 0 0 16px; margin-top: 0 !important; font-size: clamp(2.6rem, 4.4vw, 4.8rem); line-height: 0.98; letter-spacing: -0.04em; }
.register-left h1 span { display: block; background: linear-gradient(90deg, #0a4ddf, #16a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.register-left-text { max-width: 520px; font-size: 1.25rem; line-height: 1.5; color: #2d4778; }
.register-benefits { margin-top: 28px; display: grid; gap: 10px; max-width: 500px; }
.register-benefit { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.register-benefit span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #dff3ff, #ccecff); font-size: 1.12rem; }
.register-benefit strong {
  display: block;
  font-size: 0.88rem;
  color: #07245c;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(255,255,255,0.95),
    0 0 8px rgba(255,255,255,0.8);
}
.register-benefit p {
  margin: 2px 0 0;
  color: #18345f;
  line-height: 1.18;
  font-size: 0.78rem;
  font-weight: 600;
  text-shadow:
    0 1px 2px rgba(255,255,255,0.95),
    0 0 8px rgba(255,255,255,0.85),
    0 0 14px rgba(255,255,255,0.7);
}
.register-right { padding: 28px 0px 40px; display: flex; flex-direction: column; align-items: stretch; }
.register-login-row { align-self: flex-end; margin-bottom: 14px; display: flex; align-items: center; gap: 14px; color: #526991; font-weight: 700; }
.register-login-row a { text-decoration: none; color: #0f63d9; border: 1px solid rgba(40, 119, 230, 0.28); border-radius: 999px; padding: 9px 22px; background: rgba(255,255,255,0.75); }
.register-card { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,252,255,0.94)); border: 1px solid rgba(122, 166, 224, 0.25); border-radius: 28px; padding: 26px 30px 28px; box-shadow: 0 28px 80px rgba(36, 88, 150, 0.18), inset 0 1px 0 rgba(255,255,255,0.9); backdrop-filter: blur(12px); }
.register-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(122, 166, 224, 0.18); }
.register-avatar { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #e4f4ff, #caebff); font-size: 2rem; }
.register-card h2 { margin: 0; font-size: clamp(1.8rem, 2.4vw, 2.6rem); color: #071f58; }
.register-card-header p { margin: 6px 0 0; color: #4d638c; font-weight: 700; }
.register-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.register-form-grid label { display: grid; gap: 7px; font-weight: 900; color: #102858; letter-spacing: -0.01em; }
.register-form-grid input, .register-form-grid select { width: 100%; height: 54px; border: 1px solid rgba(80, 116, 168, 0.22); border-radius: 16px; padding: 11px 15px; font-family: "Nunito", sans-serif; font-size: 0.98rem; font-weight: 800; color: #25375d; background: linear-gradient(180deg, #ffffff, #fbfdff); outline: none; box-shadow: 0 10px 24px rgba(38, 91, 150, 0.06); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.register-form-grid input:focus, .register-form-grid select:focus { border-color: #2a8cff; box-shadow: 0 0 0 4px rgba(42, 140, 255, 0.12), 0 12px 28px rgba(42, 140, 255, 0.12); transform: translateY(-1px); }
.whatsapp-field { align-content: start; }
.whatsapp-label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.whatsapp-trust-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; border-radius: 999px; padding: 3px 8px; background: rgba(37, 211, 102, 0.12); color: #137d42; font-size: 0.68rem; font-weight: 900; line-height: 1.2; }
.whatsapp-trust-badge::before { content: "✓"; }
.whatsapp-input-wrap { position: relative; display: block; }
.whatsapp-input-wrap input { padding-left: 44px; }
.whatsapp-input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 12px rgba(37, 211, 102, 0.18); pointer-events: none; }
.whatsapp-input-icon svg { width: 16px; height: 16px; fill: currentColor; }
.whatsapp-input-wrap:focus-within input { border-color: #25d366; box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14); }
.field-helper { margin-top: 6px; color: #64748B; font-size: 12px; font-weight: 600; line-height: 1.4; }
.whatsapp-family-note { color: #137d42; font-size: 11.5px; font-weight: 800; line-height: 1.35; }
.register-privacy-box { margin-top: 16px; margin-bottom: 4px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #eef7ff, #f8fcff); border: 1px solid rgba(85, 154, 233, 0.18); color: #1c3b73; }
.register-privacy-box p { margin: 6px 0 0; color: #526991; }
.register-check { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; color: #334e7d; font-weight: 700; }
.register-check a { color: #0e63dc; text-decoration: none; }
.register-submit { width: 100%; height: 56px; margin-top: 14px; border: 0; border-radius: 999px; padding: 0 18px; font-family: "Nunito", sans-serif; font-size: 1.02rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #0c55df, #2c99ff); box-shadow: 0 14px 28px rgba(18, 104, 229, 0.26); cursor: pointer; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.register-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(18, 104, 229, 0.34); }
@media (max-width: 1100px) {
  .register-page { grid-template-columns: 1fr; }
  .register-left { padding: 28px 28px 0; text-align: center; }
  .register-left-text, .register-benefits { margin-left: auto; margin-right: auto; }
  .register-right { padding: 28px 20px 40px; }
}
@media (max-width: 640px) {
  .register-page { min-height: auto; }
  .register-left { padding: 18px 16px 0; }
  .register-left h1 { margin-top: 20px; font-size: 2.35rem; }
  .register-left-text { font-size: 1rem; }
  .register-benefits { display: none; }
  .register-login-row { justify-content: center; align-self: center; flex-wrap: wrap; }
  .register-card { padding: 22px 16px; border-radius: 22px; }
  .register-card-header { align-items: flex-start; }
  .register-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
  .register-form-grid { grid-template-columns: 1fr; gap: 14px; }
}

.register-hero-img {
  position: absolute !important;
  left: 74% !important;
  bottom: 450px !important;
  transform: translateX(-50%) !important;
  width: min(125%, 900px) !important;
  max-height: 85vh !important;
  object-fit: contain !important;
  z-index: 1 !important;
  opacity: 0.96 !important;
  filter: drop-shadow(0 24px 42px rgba(20, 88, 180, 0.18)) !important;
}

.register-left h1,
.register-left-text,
.register-benefits {
  position: relative;
  z-index: 2;
}

.register-left {
  position: relative;
  overflow: hidden;
}

/* New and Popular Lessons section */
.new-popular-lessons {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 12% 12%, rgba(69, 140, 255, 0.28), transparent 62%),
    radial-gradient(760px 380px at 86% 8%, rgba(150, 91, 255, 0.22), transparent 64%),
    linear-gradient(180deg, #07142f 0%, #0b1d49 48%, #081736 100%);
  padding: 28px 20px 40px;
  isolation: isolate;
}

.new-popular-lessons::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(177, 215, 255, 0.24) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.new-popular-lessons-inner {
  width: min(1360px, 100%);
  margin: 0 auto;
}

.new-popular-lessons-heading {
  text-align: center;
  margin: 0 auto 18px;
  max-width: 760px;
}

.new-popular-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #c7f8ff;
  background: rgba(84, 165, 255, 0.13);
  border: 1px solid rgba(151, 219, 255, 0.32);
  box-shadow: 0 0 26px rgba(66, 153, 255, 0.22);
  font-family: "Baloo 2", "Noto Sans Sinhala", "Nunito", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.new-popular-lessons-heading h1 {
  margin: 0;
  font-family: "Nunito", "Noto Sans Sinhala", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 12px 34px rgba(3, 8, 27, 0.5);
}

.new-popular-lessons-heading p {
  margin: 0;
  color: #c9dcff;
  font-family: "Noto Sans Sinhala", "Nunito", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

/* Lesson cards use compact, fixed-width course-card sizing. */
.home-lessons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.home-lessons-column {
  position: relative;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(125, 205, 255, 0.7), rgba(155, 95, 255, 0.58), rgba(79, 255, 172, 0.45));
  box-shadow: 0 24px 70px rgba(3, 9, 32, 0.4), 0 0 42px rgba(49, 139, 255, 0.2);
}

.home-lessons-column::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  background: linear-gradient(180deg, rgba(16, 45, 105, 0.94), rgba(7, 22, 55, 0.96));
  z-index: 0;
}

.home-lessons-column > * {
  position: relative;
  z-index: 1;
}

.home-lessons-column h2 {
  margin: 0;
  padding: 22px 22px 14px;
  color: #ffffff;
  font-family: "Baloo 2", "Noto Sans Sinhala", "Nunito", sans-serif;
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(126, 191, 255, 0.38);
}

.home-lessons-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 320px));
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  padding: 0 18px 22px;
}

.home-lesson-card {
  display: flex;
  flex-direction: column;
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.05)
    );
  border: 1px solid rgba(174, 218, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(4, 12, 35, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-lesson-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #0b1f4d;
}

.home-lesson-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0b1f4d;
  object-position: center;
  border-radius: 14px 14px 0 0;
}

.home-lesson-content {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.home-lesson-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.home-lesson-badges span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(134, 210, 255, 0.13);
  border: 1px solid rgba(159, 225, 255, 0.2);
  color: #bfeeff;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.home-lesson-title-wrap {
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.home-lesson-content h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Noto Sans Sinhala", "Nunito", sans-serif;
  font-size: 0.98rem;
  line-height: 1.18;
  font-weight: 900;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.home-lesson-content p {
  margin: 0;
  color: #bdd0f7;
  font-family: "Noto Sans Sinhala", "Nunito", sans-serif;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 700;
}

.home-lesson-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.home-lesson-action {
  align-self: flex-start;
  margin-top: auto;
}

.home-lesson-start {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
  background: linear-gradient(135deg, #28e39a 0%, #5b7cff 48%, #a653ff 100%);
  box-shadow: 0 10px 24px rgba(61, 133, 255, 0.32), 0 0 18px rgba(43, 232, 157, 0.18);
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.home-lesson-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(61, 133, 255, 0.42), 0 0 24px rgba(43, 232, 157, 0.26);
}

.home-lessons-empty {
  min-height: 142px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 18px;
  border-radius: 24px;
  color: #dceaff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(181, 224, 255, 0.3);
  font-family: "Noto Sans Sinhala", "Nunito", sans-serif;
}

.home-lessons-empty strong {
  font-size: 1.05rem;
}

.home-lessons-empty span {
  color: #bdd0f7;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .home-lessons-list {
    grid-template-columns: repeat(2, minmax(0, 320px));
  }
}

@media (max-width: 640px) {
  .home-lesson-card {
    min-height: 0 !important;
  }

  .home-lesson-image-wrap {
    aspect-ratio: 16 / 9;
    height: auto !important;
  }

  .home-lesson-image {
    object-fit: contain !important;
  }

  .home-lesson-content {
    padding: 12px 16px 16px !important;
    gap: 6px !important;
    min-height: 0 !important;
  }

  .home-lesson-title-wrap {
    height: 38px;
    min-height: 38px;
  }

  .home-lesson-content h3 {
    margin: 0 !important;
    font-size: 0.94rem;
    line-height: 1.15;
  }

  .home-lesson-content p {
    margin: 0 !important;
    line-height: 1.2;
  }

  .home-lesson-start {
    margin-top: 6px !important;
  }
}

@media (max-width: 540px) {
  .popular-section,
  .lesson-section,
  .category-card,
  .new-popular-lessons {
    width: 100%;
    max-width: 100%;
    padding: 28px 14px 40px;
    overflow: hidden;
  }

  .new-popular-lessons-inner,
  .home-lessons-grid,
  .home-lessons-column {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-lessons-list,
  .lesson-grid,
  .lesson-carousel {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    width: 100%;
    max-width: 100%;
    padding: 0 4px 10px 4px;
    scrollbar-width: none;
  }

  .home-lessons-list::-webkit-scrollbar,
  .lesson-grid::-webkit-scrollbar,
  .lesson-carousel::-webkit-scrollbar {
    display: none;
  }

  .home-lesson-card,
  .lesson-card {
    border-radius: 18px;
    flex: 0 0 86%;
    width: 86%;
    max-width: 86%;
    min-width: 86%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-lessons-column h2 {
    padding: 20px 18px 12px;
  }
}


/* Public legal and footer surfaces */
.public-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  padding: 24px 18px;
  color: #516184;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

.public-footer a {
  color: #1757bb;
  text-decoration: none;
}

.public-footer a:hover {
  text-decoration: underline;
}

.legal-page-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(41, 140, 255, 0.18), transparent 32rem),
    linear-gradient(135deg, #eef7ff 0%, #f7fbff 45%, #edf3ff 100%);
  color: #17233f;
  font-family: "Nunito", "Segoe UI", sans-serif;
}

.legal-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #14387f;
  text-decoration: none;
  font-weight: 900;
}

.legal-logo {
  width: 74px;
  height: auto;
  display: block;
}

.legal-header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.legal-header-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #1757bb;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(45, 112, 220, 0.14);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 900;
}

.legal-main {
  width: min(980px, calc(100% - 32px));
  margin: 18px auto 34px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid rgba(45, 112, 220, 0.12);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(31, 80, 160, 0.16);
  padding: clamp(28px, 5vw, 56px);
}

.legal-eyebrow {
  margin: 0 0 8px;
  color: #1e66f5;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0 0 8px;
  color: #0b2c70;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 0.95;
}

.legal-effective-date {
  margin: 0 0 30px;
  color: #5a6f98;
  font-size: 1rem;
}

.legal-card section {
  padding: 22px 0;
  border-top: 1px solid #e8eef8;
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #14387f;
  font-size: 1.24rem;
}

.legal-card p,
.legal-card li {
  color: #374867;
  font-size: 1.04rem;
  line-height: 1.75;
}

.legal-card p {
  margin: 0 0 8px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.legal-card a {
  color: #1757bb;
  font-weight: 900;
}

.legal-contact-card {
  margin-top: 10px;
  padding: 24px !important;
  border: 1px solid rgba(45, 112, 220, 0.14) !important;
  border-radius: 24px;
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
}

.legal-footer {
  border-top: 1px solid rgba(45, 112, 220, 0.12);
}

.register-terms-notice {
  margin: 12px 0 0;
  color: #4f6288;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.register-terms-notice a {
  color: #0f63d9;
}

@media (max-width: 720px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header-nav {
    justify-content: flex-start;
  }

  .legal-card {
    border-radius: 24px;
  }
}

/* Premium SLIS public footer for homepage and registration */
.premium-public-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(220px, 1.45fr) minmax(180px, .9fr);
  gap: 20px;
  align-items: start;
  justify-content: initial;
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 26px 24px;
  border: 1px solid rgba(45, 112, 220, 0.14);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, rgba(4, 24, 66, 0.94), rgba(9, 55, 128, 0.9));
  box-shadow: 0 -18px 54px rgba(22, 79, 160, 0.16);
  color: #eaf4ff;
  text-align: left;
  font-size: .94rem;
  font-weight: 700;
}

.premium-public-footer .public-footer-brand strong,
.premium-public-footer .public-footer-support strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
  margin-bottom: 4px;
}

.premium-public-footer .public-footer-brand span,
.premium-public-footer .public-footer-brand em {
  display: block;
  color: #c8ddff;
  font-style: normal;
  line-height: 1.45;
}

.premium-public-footer nav,
.premium-public-footer .public-footer-support {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.premium-public-footer .public-footer-support {
  flex-direction: column;
  gap: 5px;
}

.premium-public-footer a {
  color: #f5fbff;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 850;
}

.premium-public-footer a:hover {
  color: #9edcff;
  text-decoration: underline;
}

.premium-public-footer .public-footer-copy {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8ccef;
  font-size: .86rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .premium-public-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100% - 22px, 1120px);
    padding: 22px 18px;
  }
}
