:root {
  --ink: #10162b;
  --muted: #697287;
  --line: #ebeef5;
  --purple: #5a34f4;
  --blue: #334eff;
  --soft: #f8f8ff;
  --shadow: 0 12px 34px rgba(25, 26, 72, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
}
.container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 240, 0.8);
}
.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #252b3d;
  position: relative;
  padding: 28px 0;
}
.main-nav a.active,
.main-nav a:hover {
  color: #5a34f4;
}
.main-nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #5a34f4;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.search-btn {
  border: 0;
  background: transparent;
  color: #11182f;
  padding: 6px;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 800;
  transition: 0.2s ease;
}
.btn-primary {
  background: linear-gradient(100deg, #4b38ef, #6341ff);
  color: #fff;
  box-shadow: 0 11px 22px rgba(91, 56, 245, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid #bfc5d5;
  color: #11182f;
  background: #fff;
}
.btn-dark {
  background: #22337e;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: #32218e;
}
.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #11182f;
  margin: 4px 0;
}
.hero {
  position: relative;
  overflow: visible;
  background: linear-gradient(90deg, #fbfbff 0%, #f4f2ff 52%, #fff 100%);
  padding: 0 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 480px;
}
.hero-copy {
  padding: 25px 20px 40px 0;
  position: relative;
  z-index: 2;
}
.kicker,
.section-head > div > span,
.why-copy > span {
  font-size: 17px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #2b00ff;
}
.hero-copy h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 50px;
  line-height: 1.07;
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
}
.hero-copy h1 span {
  color: #0015ff;
}
.hero-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: #17136c;
  max-width: 640px;
  margin: 0 0 22px;
}
.hero-actions {
  display: flex;
  gap: 10px;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.hero-features > div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #efeaff;
  color: #5d40ff;
  display: grid;
  place-items: center;
  flex: none;
}
.hero-features b,
.hero-features small {
  display: block;
}
.hero-features b {
  font-size: 14px;
  margin-bottom: 2px;
}
.hero-features small {
  font-size: 12.5px;
  color: #757d90;
  line-height: 1.45;
}
.hero-photo {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    opacity 0.55s ease,
    transform 6s ease;
}
.hero-photo img.is-changing {
  opacity: 0.05;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(246, 245, 255, 0.88) 0%,
      rgba(246, 245, 255, 0.32) 18%,
      rgba(246, 245, 255, 0) 42%
    ),
    linear-gradient(0deg, rgba(8, 14, 42, 0.28), rgba(8, 14, 42, 0) 45%);
  z-index: 1;
}
.hero-caption {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  background: rgba(17, 25, 60, 0.62);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 7px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.hero-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}
.hero-glow {
  position: absolute;
  inset: auto auto -70px -80px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(90, 52, 244, 0.13);
  filter: blur(18px);
  z-index: 2;
}
.stats-card {
  position: relative;
  z-index: 6;
  transform: translateY(-30px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(100deg, #27206f, #22205b);
  border-radius: 16px;
  box-shadow: 0 20px 35px rgba(34, 31, 97, 0.18);
  overflow: hidden;
  color: #fff;
}
.stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}
.stat:last-child {
  border-right: 0;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(129, 108, 255, 0.22);
  display: grid;
  place-items: center;
  color: #7d6cff;
}
.stat b,
.stat small {
  display: block;
}
.stat b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  line-height: 1;
}
.stat small {
  font-size: 13.5px;
  color: #d9dcf1;
  margin-top: 3px;
}
.resource-strip {
  padding: 10px 0 28px;
}
.section-head h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  line-height: 1.15;
  margin: 5px 0 0;
  letter-spacing: -0.03em;
}
.inline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.compact-head {
  align-items: end;
}
.text-link {
  font-size: 14px;
  font-weight: 800;
  color: #5a34f4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
}
.resource-card {
  min-height: 150px;
  border: 1px solid #e9ebf3;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: 0.2s;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(37, 31, 100, 0.11);
}
.resource-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0edff;
  display: grid;
  place-items: center;
  color: #5a34f4;
  margin-bottom: 3px;
}
.resource-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
}
.resource-tag {
  font-size: 13.5px;
  color: #737b8e;
  line-height: 1.3;
}
.resource-open {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  color: #5a34f4;
  display: flex;
  align-items: center;
  gap: 4px;
}
.resource-card.blue .resource-icon {
  color: #2c5eff;
  background: #eef1ff;
}
.resource-card.cyan .resource-icon {
  color: #11a9dd;
  background: #e8f9ff;
}
.resource-card.violet .resource-icon {
  color: #8740ff;
  background: #f2ebff;
}
.section {
  padding: 48px 0;
}
.services {
  padding-top: 38px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 15px;
  display: flex;
  gap: 11px;
  min-height: 156px;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0edff;
  color: #5a34f4;
  display: grid;
  place-items: center;
  flex: none;
}
.service-card h3 {
  font-size: 12px;
  margin: 0 0 5px;
}
.service-card p {
  font-size: 9px;
  line-height: 1.55;
  color: #70788a;
  margin: 0 0 8px;
}
.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5a34f4;
  font-size: 9px;
  font-weight: 800;
}
.showcase {
  padding-top: 12px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 2.05fr 1fr;
  gap: 22px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 9px 22px rgba(20, 25, 72, 0.05);
}
.project-card img {
  display: block;
  width: 100%;
  height: 98px;
  object-fit: cover;
}
.project-body {
  padding: 11px;
}
.project-body h3 {
  font-size: 10px;
  margin: 0 0 4px;
}
.project-body p {
  font-size: 11px;
  line-height: 1.45;
  color: #70788b;
  min-height: 38px;
  margin: 0 0 7px;
}
.project-body a {
  font-size: 9px;
  font-weight: 800;
  color: #5a34f4;
}
.news-panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  background: #fff;
}
.news-list {
  display: grid;
  gap: 16px;
}
.news-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
}
.news-item img {
  width: 104px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}
.news-item .date {
  font-size: 12.5px;
  color: #8a92a3;
}
.news-item h3 {
  font-size: 15.5px;
  line-height: 1.3;
  margin: 2px 0 2px;
}
.news-item p {
  font-size: 13.5px;
  line-height: 1.4;
  color: #737b8d;
  margin: 0;
}
.about {
  background: #fafaff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  max-width: 520px;
  height: 390px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  padding: 11px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.about-badge strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  display: block;
}
.about-badge span {
  font-size: 12.5px;
  color: #737b8e;
}
.about-copy > p {
  font-size: 16px;
  line-height: 1.8;
  color: #697186;
  margin: 13px 0;
}
.about-feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  margin-top: 20px;
}
.round-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f0edff;
  color: #603dff;
}
.about-feature h3 {
  font-size: 17px;
  margin: 0 0 4px;
}
.about-feature p {
  font-size: 14.5px;
  line-height: 1.5;
  color: #70788a;
  margin: 0 0 5px;
}
.about-feature a {
  font-size: 13.5px;
  font-weight: 800;
  color: #5a34f4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.why {
  padding: 0;
  background: linear-gradient(100deg, #1c2f78, #3165ff);
  color: #fff;
}
.why-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.why-copy {
  padding: 60px 0;
}
.why-copy > span {
  color: #d7ddff;
}
.why-copy h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 8px 0 13px;
}
.why-copy p {
  font-size: 16px;
  line-height: 1.85;
  color: #dce3ff;
  max-width: 650px;
  margin: 0 0 20px;
}
.discover-card {
  background: #fff;
  color: #10162b;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(18, 32, 102, 0.2);
}
.discover-title {
  background: #eef2fb;
  padding: 10px 13px;
  font-size: 9px;
  font-weight: 800;
}
.discover-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 13px;
  font-size: 9px;
  border-top: 1px solid #eceef5;
}
.discover-card b {
  font-size: 16px;
  color: #838ca1;
}
.cta {
  padding: 22px 0 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 13px;
  background: linear-gradient(100deg, #4d35e5, #5747ff);
  color: #fff;
  border-radius: 14px;
  padding: 18px 24px;
}
.cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #5a34f4;
}
.cta-inner strong {
  font-size: 17px;
}
.cta-inner p {
  font-size: 13.5px;
  color: #e0ddff;
  margin: 3px 0 0;
}
.feature-bar {
  padding: 20px 0 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.feature-grid > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.feature-grid > div:last-child {
  border-right: 0;
}
.feature-grid > div > span {
  grid-row: 1/3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f1ff;
  color: #5a34f4;
  display: grid;
  place-items: center;
}
.feature-grid b {
  font-size: 14px;
}
.feature-grid small {
  font-size: 12.5px;
  color: #7b8293;
}
.social-block {
  display: block !important;
}
.social-block > b {
  display: block;
  margin-bottom: 7px;
}
.social-block > div {
  display: flex;
  gap: 7px;
}
.social-block a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6f7686;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.footer {
  background: #0f215b;
  color: #c8d0e5;
  padding: 46px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 290px;
}
.footer-brand-link .brand-copy strong {
  color: #fff;
}
.footer-brand-link .brand-copy small {
  color: #aeb7cf;
}
.footer h3 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 12px;
}
.footer-grid > div > a:not(.brand) {
  display: block;
  font-size: 14.5px;
  margin: 8px 0;
  color: #c8d0e5;
}
.footer-grid p {
  font-size: 14px;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 25px;
  padding-top: 14px;
  font-size: 13px;
  color: #96a3c2;
}
.footer-bottom span {
  margin-left: 6px;
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 13.5px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .resource-grid,
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }
}
@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 700px);
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 18px 25px rgba(15, 24, 56, 0.07);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 0;
    font-size: 15px;
  }
  .main-nav a.active:after {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 8px 0 2px;
  }
  .hero-photo {
    min-height: 330px;
  }
  .hero-photo img {
    height: 330px;
    position: absolute;
  }
  .hero-photo:after {
    background: linear-gradient(
      180deg,
      rgba(246, 245, 255, 0) 55%,
      rgba(246, 245, 255, 0.38) 100%
    );
  }
  .stats-card {
    transform: translateY(-17px);
  }
  .resource-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid,
  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .why-copy {
    padding: 50px 0 8px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 520px);
  }
  .header-actions .btn,
  .search-btn {
    display: none;
  }
  .brand-logo {
    width: 150px;
    max-height: 42px;
  }
  .hero-caption {
    font-size: 8px;
    right: 12px;
    top: 12px;
  }
  .hero-dots {
    right: 12px;
    bottom: 12px;
  }
  .hero-copy h1 {
    font-size: 33px;
  }
  .hero-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  /* .hero-actions {
     flex-direction: column;
    align-items: flex-start;
  } */ 
   .joinchannel{
    display: none;
   }
  .hero-features {
    display: none;
    grid-template-columns: 1fr;
  }
  .stats-card {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 14px;
  }
  .stat b {
    font-size: 18px;
  }
  .stat small {
    font-size: 8px;
  }
  .resource-grid,
  /* .service-grid {
    grid-template-columns: 1fr;
  } */
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inline-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .about-image img {
    height: 300px;
  }
  .why-copy h2 {
    font-size: 30px;
  }
  .cta-inner {
    grid-template-columns: 42px 1fr;
  }
  .cta-inner .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .footer-bottom span {
    display: block;
    margin: 5px 0 0;
  }
}

.footer .footer-logo {
  width: 185px;
  max-height: 54px;
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .footer .footer-logo {
    width: 165px;
    max-height: 48px;
  }
}

/* ===== Mobile app-style home (phones only; desktop untouched) =====
   Sizes are in vw, scaled from the 1040px-wide reference design (1 ref px = 0.0962vw). */
.m-tag,
.m-only,
.m-chips,
.m-quick,
.m-bottom,
.brand-text,
.m-ic {
  display: none;
}
.hero-copy h1 .w {
  font-style: normal;
}

@media (max-width: 560px) {
  body {
    background: linear-gradient(180deg, #eef2f9, #e9eef7);
  }
  .d-only,
  .hero-copy h1 .dot {
    display: none;
  }
  .m-only {
    display: block;
  }

  /* ---- app bar ---- */
  .site-header {
    background: linear-gradient(180deg, #14479e, #0f3d8f);
    backdrop-filter: none;
    border-bottom: 0;
  }
  .nav-wrap {
    height: 15vw;
    width: 100%;
    padding: 0 5.8vw 0 4.5vw;
    gap: 6.8vw;
  }
  .site-header .brand {
    order: 1;
    background: #fff;
    border-radius: 2.4vw;
    height: 10vw;
    padding: 0 2.2vw 0 1.2vw;
    gap: 0.8vw;
    margin-right: auto;
  }
  .site-header .brand-logo {
    width: 7.4vw;
    height: 7.4vw;
    max-height: none;
    object-position: center;
  }
  .brand-text {
    display: block;
    line-height: 1;
  }
  .brand-text b {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 3.9vw;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #1561c9;
  }
  .brand-text small {
    display: block;
    font-size: 1.55vw;
    font-weight: 600;
    color: #3c4f78;
    margin-top: 0.5vw;
    white-space: nowrap;
  }
  .header-actions {
    order: 2;
    gap: 6.8vw;
  }
  .m-ic {
    display: grid;
    place-items: center;
    color: #fff;
  }
  .m-ic svg {
    width: 5vw;
    height: 5vw;
    fill: currentColor;
  }
  .mobile-toggle {
    order: 3;
    padding: 0;
    width: 5.5vw;
  }
  .mobile-toggle span {
    width: 5.5vw;
    height: 0.65vw;
    min-height: 2px;
    border-radius: 1vw;
    background: #fff;
    margin: 1.55vw 0;
  }
  .main-nav {
    top: 100%;
  }

  /* ---- hero stack ---- */
  .hero {
    background: transparent;
  }
  .hero .hero-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-photo {
    order: 0;
    min-height: 0;
    height: 37vw;
  }
  .hero-photo img {
    height: 100%;
    object-position: center 22%;
  }
  .hero-overlay,
  .hero-glow,
  .hero-caption,
  .hero-dots {
    display: none;
  }

  .m-quick {
    order: 1;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 1.8vw 0;
    margin: -1.1vw 8.2vw 0;
    padding: 3.4vw 2vw 1.5vw;
    background: #fff;
    border-radius: 4.4vw;
    box-shadow: 0 2.4vw 5vw rgba(18, 40, 100, 0.13);
  }
  .m-quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    text-align: center;
  }
  .m-quick span {
    width: 12.7vw;
    height: 12.7vw;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #2a79e6, #1a62d3);
  }
  .m-quick span svg {
    width: 6vw;
    height: 6vw;
  }
  .m-quick b {
    font-size: max(2.4vw, 11px);
    font-weight: 400;
    line-height: 1.05;
    color: #1b2438;
    min-height: 2.1em;
  }

  .hero-copy {
    order: 2;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 5.3vw;
    margin: -7.7vw 4.6vw 0;
    padding: 10.1vw 6.3vw 5.8vw;
    box-shadow: 0 2.4vw 7vw rgba(18, 40, 100, 0.1);
  }
  .m-tag {
    display: inline-flex;
    align-items: center;
    gap: 1.2vw;
    height: 4.5vw;
    min-height: 17px;
    background: #f39a22;
    color: #fff;
    font-size: max(2.3vw, 9px);
    font-weight: 700;
    padding: 0 2.4vw 0 1.8vw;
    border-radius: 999px;
  }
  .m-tag svg {
    width: 1.8vw;
    min-width: 8px;
    height: auto;
  }
  .hero-copy h1 {
    margin: 1.2vw 0 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #0a1f5c;
    font-size: 5.8vw;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .hero-copy h1 span {
    color: #0a1f5c;
  }
  .hero-copy h1 .w {
    position: relative;
    display: inline-block;
    font-size: 9.9vw;
    line-height: 1.12;
    letter-spacing: -0.045em;
    margin-right: 0.4vw;
  }
  .hero-copy h1 .w::after {
    content: "";
    position: absolute;
    left: 1vw;
    bottom: -0.2vw;
    width: 27vw;
    height: 0.9vw;
    border-radius: 50%;
    background: linear-gradient(90deg, #f39a22, rgba(243, 154, 34, 0.15));
  }
  .hero-copy p.m-only {
    font-size: max(2.8vw, 11px);
    line-height: 4.85vw;
    color: #131b30;
    margin: 3.6vw 0 4.3vw;
  }
  .m-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw 1.7vw;
  }
  .m-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.8vw;
    height: 5.5vw;
    min-height: 22px;
    white-space: nowrap;
    background: #eceff3;
    color: #2a3350;
    font-size: max(2.3vw, 9px);
    padding: 0 1.9vw 0 1.5vw;
    border-radius: 999px;
  }
  .m-chips svg {
    width: 2.4vw;
    min-width: 9px;
    height: auto;
  }
  .hero-actions {
    justify-content: center;
    margin-top: 5.8vw;
  }
  .hero-actions .btn-primary {
    background: linear-gradient(180deg, #2f7be4, #1b5fcf);
    border-radius: 999px;
    height: 11.3vw;
    min-height: 44px;
    width: 36.3vw;
    min-width: 150px;
    font-size: max(3.6vw, 14px);
    font-weight: 700;
    padding: 0;
    gap: 1.2vw;
    box-shadow: 0 2.4vw 4vw rgba(26, 95, 208, 0.22);
  }
  .hero-actions .btn-primary svg {
    width: 3.6vw;
    height: 3.6vw;
    stroke-width: 2.4;
  }
  .hero-actions .btn-primary.joinchannel {
    display: inline-flex;
  }
  .stats-card {
    display: none;
  }

  /* ---- bottom tab bar + footer line ---- */
  .m-bottom {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    transition: transform 0.3s ease;
  }
  .m-bottom.is-hidden {
    transform: translateY(105%);
  }
  .m-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    height: 17vw;
    background: #10265c;
    border-radius: 6.8vw 6.8vw 0 0;
    padding-top: 0.5vw;
  }
  .m-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6vw;
    color: #fff;
    font-size: max(2.7vw, 11px);
    font-weight: 700;
  }
  .m-tabs a.on {
    color: #4fcb4f;
  }
  .m-tabs svg {
    width: 6.4vw;
    height: 6.4vw;
    fill: currentColor;
    fill-opacity: 0.15;
  }
  .m-copy {
    background: #223a73;
    color: #c0c9de;
    text-align: center;
    font-size: max(2.2vw, 9.5px);
    line-height: 5.3vw;
    height: calc(5.3vw + env(safe-area-inset-bottom));
  }
}

/* ===== Student comments ===== */
.count-pill {
  font-size: 13px;
  font-weight: 800;
  color: #5a34f4;
  background: #f0edff;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.comment-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  background: linear-gradient(135deg, #f7f5ff, #eef3ff);
  border: 1px solid #e3e6f7;
  border-radius: 20px;
  padding: 22px;
}
.cf-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cf-head b {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
}
.cf-head small {
  font-size: 13.5px;
  color: #697287;
}
.cf-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #5a34f4;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}
.comment-form label,
.rate legend {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #252b3d;
  padding: 0;
}
.rate {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.rate legend {
  display: block;
  margin-bottom: 4px;
}
.rate em {
  font-style: normal;
  font-weight: 400;
  color: #8a92a3;
}
.stars {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 6px;
}
.stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.comment-form .stars label {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #cfd4e3;
  cursor: pointer;
  transition: color 0.12s, transform 0.12s;
}
.comment-form .stars label:hover,
.comment-form .stars label:hover ~ label,
.comment-form .stars input:checked ~ label {
  color: #f5a524;
}
.comment-form .stars label:hover {
  transform: scale(1.12);
}
.stars input:focus + label {
  outline: 2px solid #5a34f4;
  border-radius: 4px;
}
.comment-form input[type="text"],
.comment-form textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.4;
  margin: 0;
  font: inherit;
  font-size: 15.5px;
  font-weight: 400;
  padding: 13px 14px;
  border: 1px solid #d9deea;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  width: 100%;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: 3px solid rgba(90, 52, 244, 0.18);
  border-color: #5a34f4;
}
.cf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.char-count {
  font-size: 13px;
  color: #8a92a3;
}
.char-count.warn {
  color: #c0392b;
  font-weight: 700;
}
.comment-form .btn {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
}
.comment-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.comment-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.comment-note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
}
.comment-note[hidden] {
  display: none;
}
.comment-note {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.comment-note.fade {
  opacity: 0;
  transform: translateY(-4px);
}
.comment-note.ok {
  background: #e3f7ea;
  color: #1c6b3a;
}
.comment-note.bad {
  background: #fdecec;
  color: #a12828;
}
.comment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin-top: 18px;
}
.tcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: cardIn 0.35s ease;
}
.tcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 31, 100, 0.11);
}
.tcard::after {
  content: "\201C";
  position: absolute;
  right: 14px;
  bottom: -16px;
  font-family: Georgia, serif;
  font-size: 86px;
  line-height: 1;
  color: var(--q, #efeafe);
  pointer-events: none;
}
.tcard.extra {
  display: none;
}
.comment-grid.all .tcard.extra {
  display: block;
}
.tcard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tavatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #6b4df0;
}
.tmeta {
  min-width: 0;
  flex: 1;
}
.tmeta b {
  display: block;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tmeta small {
  font-size: 12.5px;
  color: #8a92a3;
}
.tstars {
  font-size: 15px;
  letter-spacing: 1px;
  color: #f5a524;
  white-space: nowrap;
}
.tstars i {
  font-style: normal;
  color: #dde1ec;
}
.tcard p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #3b4357;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}
.comment-empty-card {
  margin-top: 18px;
  text-align: center;
  padding: 34px 20px;
  border: 2px dashed #d9deea;
  border-radius: 18px;
  color: #697287;
}
.comment-empty-card[hidden],
.more-btn[hidden] {
  display: none;
}
.comment-empty-card span {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f0edff;
  color: #5a34f4;
  display: grid;
  place-items: center;
}
.comment-empty-card b {
  display: block;
  font-size: 17px;
  color: var(--ink);
}
.comment-empty-card p {
  margin: 4px 0 0;
  font-size: 14.5px;
}
.more-btn {
  display: block;
  margin: 18px auto 0;
  border: 1px solid #cfd4ea;
  background: #fff;
  color: #5a34f4;
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
}
.more-btn:hover {
  background: #f0edff;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 820px) {
  .comment-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .comment-form {
    padding: 16px;
    border-radius: 18px;
  }
  .cf-row {
    grid-template-columns: 1fr;
  }
  .cf-foot .btn {
    padding: 13px 22px;
  }
  .count-pill {
    align-self: flex-start;
  }
  .showcase-grid > div:first-child {
    scroll-margin-top: 16vw;
  }
}

/* ===== News from the blog database ===== */
a.news-item {
  color: inherit;
}
a.news-item:hover h3 {
  color: #5a34f4;
}
.news-cat {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0edff;
  color: #5a34f4;
  font-weight: 800;
  font-size: 11px;
}
