/* =========================================================
   LEARNOVA — MAIN WEBSITE STYLES
   Responsive layout for desktop, tablet and mobile
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #122033;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

:focus-visible {
  outline: 3px solid #80b5ff;
  outline-offset: 3px;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* =========================================================
   HEADER AND NAVIGATION
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e7ebf1;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.logo span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: #146ef5;
  color: #fff;
  display: grid;
  place-items: center;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 700;
}

.nav nav a {
  transition: color 0.2s ease;
}

.nav nav a:hover {
  color: #146ef5;
}

.navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #146ef5;
  color: #fff;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.navbtn:hover {
  background: #0959d1;
  transform: translateY(-1px);
}

.menu {
  display: none;
  border: 0;
  background: transparent;
  color: #122033;
  font-size: 25px;
  line-height: 1;
  padding: 8px;
  border-radius: 8px;
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
  padding: 90px 0;
  background: linear-gradient(135deg, #f5f9ff, #eef5ff);
  overflow: hidden;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 70px;
  align-items: center;
}

.hero small,
.section small,
.dark small,
.cta small {
  color: #146ef5;
  font-weight: 800;
  letter-spacing: 1.6px;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}

.hero em {
  color: #146ef5;
  font-style: normal;
}

.hero p {
  font-size: 18px;
  color: #59677a;
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 27px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 800;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: #146ef5;
  color: #fff;
}

.primary:hover {
  background: #0959d1;
}

.secondary {
  background: #fff;
  border-color: #ccd7e5;
  color: #122033;
}

.secondary:hover {
  background: #f5f8fc;
}

.checks {
  color: #647286;
  font-size: 13px;
}

/* =========================================================
   HERO INFORMATION CARD
========================================================= */

.hero-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 18px 50px rgba(31, 72, 125, 0.11);
}

.live {
  color: #e5484d;
  font-size: 12px;
  font-weight: 800;
}

.hero-card h2 {
  font-size: 31px;
  line-height: 1.2;
  margin-top: 35px;
}

.hero-card p {
  color: #647286;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 40px;
  margin-top: 28px;
}

.stats b,
.stats span {
  display: block;
}

.stats span {
  font-size: 12px;
  color: #7a8797;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  padding: 90px 0;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}

.head h2,
.section h2,
.dark h2,
.cta h2 {
  font-size: clamp(29px, 4vw, 39px);
  line-height: 1.15;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.head p {
  max-width: 410px;
  color: #68768a;
}

.center {
  text-align: center;
  margin-bottom: 45px;
}

/* =========================================================
   COURSE AND FEATURE CARDS
========================================================= */

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

.cards article {
  min-width: 0;
  padding: 28px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cards article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(18, 32, 51, 0.07);
}

.cards i {
  font-size: 30px;
  font-style: normal;
}

.cards h3 {
  line-height: 1.35;
}

.cards p {
  color: #69778a;
  font-size: 14px;
}

.cards a {
  color: #146ef5;
  font-weight: 800;
  font-size: 14px;
}

.cards a:hover {
  text-decoration: underline;
}

/* =========================================================
   DARK FEATURE SECTION
========================================================= */

.dark {
  padding: 90px 0;
  background: #10213a;
  color: #fff;
}

.dark p {
  color: #c5d0df;
}

.dark li {
  margin: 10px 0;
  color: #dce5ef;
}

/* =========================================================
   DASHBOARD MOCKUPS AND TEACHER CARDS
========================================================= */

.mock,
.teacher {
  min-width: 0;
  background: #fff;
  color: #122033;
  border-radius: 20px;
  padding: 30px;
  min-height: 260px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 28px 0;
}

.bar {
  height: 10px;
  background: #e9eef5;
  border-radius: 20px;
  overflow: hidden;
}

.bar span {
  display: block;
  width: 72%;
  height: 100%;
  background: #146ef5;
  border-radius: inherit;
}

.avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: #eaf2ff;
  color: #146ef5;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.teacher .row {
  border-top: 1px solid #e5eaf0;
  padding-top: 18px;
}

.teacher strong {
  color: #146ef5;
}

/* =========================================================
   LIGHT SECTION AND STEPS
========================================================= */

.light {
  background: #f7f9fc;
}

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

.steps b {
  color: #146ef5;
}

.steps p {
  color: #69778a;
  font-size: 14px;
}

.about {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.about p {
  color: #657287;
  font-size: 17px;
}

/* =========================================================
   CALL TO ACTION
========================================================= */

.cta {
  padding: 75px 0;
  background: #146ef5;
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin: 0;
}

.cta p {
  opacity: 0.9;
}

.white {
  background: #fff;
  color: #146ef5;
}

.white:hover {
  background: #f0f5ff;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  background: #0c1728;
  color: #bdc8d6;
  padding: 55px 0 20px;
}

.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
}

.foot .logo {
  color: #fff;
}

.foot b {
  color: #fff;
}

.foot a,
.foot span {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

.foot a:hover {
  color: #fff;
}

.copy {
  border-top: 1px solid #263346;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 12px;
  color: #8996a8;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .nav nav {
    gap: 15px;
  }

  .hero-grid,
  .split {
    gap: 35px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE NAVIGATION AND LAYOUT
========================================================= */

@media (max-width: 850px) {
  .nav {
    min-height: 66px;
  }

  .nav nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero {
    padding: 65px 0;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(38px, 7vw, 48px);
  }

  .head {
    display: block;
  }

  .head p {
    max-width: 650px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .dark {
    padding: 70px 0;
  }
}

/* =========================================================
   SMALL MOBILE SCREENS
========================================================= */

@media (max-width: 520px) {
  .container {
    width: 90%;
  }

  .logo {
    font-size: 21px;
  }

  .logo span {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .hero p {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-card,
  .mock,
  .teacher {
    padding: 22px;
    border-radius: 16px;
  }

  .hero-card h2 {
    font-size: 27px;
    margin-top: 25px;
  }

  .cards,
  .steps,
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards article {
    padding: 23px;
  }

  .stats {
    gap: 20px;
  }

  .row {
    gap: 10px;
    flex-wrap: wrap;
  }

  .section,
  .dark {
    padding: 55px 0;
  }

  .cta {
    padding: 55px 0;
  }

  footer {
    padding-top: 40px;
  }
}

/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}