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

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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-hero-art {
  width: 100%;
  padding: 24px 20px 10px;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(74, 151, 255, 0.16), transparent 65%),
    linear-gradient(180deg, #e8f5ff 0%, #f6fbff 100%);
}

.join-hero-art-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(24, 74, 140, 0.18),
    0 0 45px rgba(70, 160, 255, 0.16);
  border: 1px solid rgba(105, 170, 255, 0.25);
  background: #ffffff;
}

.join-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.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-page {
  min-height: auto;
  padding: 28px 20px 52px;
}

.join-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-top: 0 !important;
}

.join-back {
  display: inline-block;
  color: #2659a8;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 14px;
}

.join-title {
  text-align: center;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: #0f2f66;
}

.join-title::after {
  content: "";
  display: block;
  width: 78px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #19a7ff, #0c47cf);
}

.join-subtitle {
  text-align: center;
  margin: 14px auto 34px;
  max-width: 760px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #35507f;
}

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

.join-card {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbff 100%);
  border-radius: 26px;
  border: 1px solid rgba(87, 142, 220, 0.18);
  box-shadow:
    0 18px 42px rgba(26, 76, 146, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  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: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #d7eeff, #c8f8ff);
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.join-card h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #15356a;
}

.join-card p {
  margin: 11px 0 20px;
  color: #4f6388;
  line-height: 1.5;
}

.join-card-btn {
  margin-top: auto;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #0d56d9, #2f86ff);
  color: #fff;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  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: 1100px) {
  .join-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .join-hero-art {
    padding: 12px 10px 4px;
  }

  .join-hero-art-inner {
    border-radius: 18px;
  }

  .join-page {
    padding: 20px 14px 40px;
  }

  .join-title {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .join-subtitle {
    margin-bottom: 22px;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }
}


/* 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;
  }
}
