
* {
  box-sizing: border-box;
}


body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fffff7;
  font-family: 'Poppins', sans-serif;
  position: relative;
}
body a {
  text-decoration: none !important;
}


/* ======================
   HEADER
====================== */

.logo {
  width: 250px;
}

.back-btn {
  width: 79px;
  cursor: pointer;
  transition: .25s;
}
.home-btn {
  width: 56px;
  cursor: pointer;
  transition: .25s;
  margin-top: -40px;
}
.back-btn:hover, .home-btn:hover {
  transform: scale(1.08);
}

/* ======================
   LOGIN CARD
====================== */

.login-card {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, .05);
}

.login-title {
  color: #6a1b1a;
  font-weight: 700;
  font-size: 54px;
  margin-bottom: 8px;
}

.welcome-text {
  color: #11182c;
  font-size: 20px;
  margin-bottom: 35px;
}

/* ======================
   INPUT
====================== */

.input-group-custom {
  background: #efefef;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.input-group-custom i {
  color: #7c7c7c;
  font-size: 22px;
}

.form-control-custom {
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  width: 100%;
  font-size: 20px;
  margin-left: 14px;
}

.form-control-custom::placeholder {
  color: #6f6f6f;
}

.toggle-password {
  cursor: pointer;
}

/* ======================
   BUTTON
====================== */

.signin-btn {
  width: 100%;
  border: none;
  background: #0d4d87;
  color: white;
  border-radius: 16px;
  padding: 16px;
  font-size: 28px;
  font-weight: 600;
  transition: .25s;
}

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

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

.footer-wave {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  z-index: -1;
}

.footer-wave span {
  width: 120px;
  height: 60px;
  background: #bf6a2f;
  border-radius: 120px 120px 0 0;
  flex-shrink: 0;
}
.input-group-custom .form-item__label {
  display: none;
}
.input-group-custom .form-item {
  margin: 0;
  max-width: 90%;
}

.input-group-custom .form-element {
  border: 0px;
  background: none;
}
.input-group-custom .form-element:hover {
  border: 0px;
  background: none;
  box-shadow: none;
}
.input-group-custom .form-element:focus {
  border: 0px;
  background: none;
  box-shadow: none;
}
.input-group-custom .form-element:hover:focus {
  border: 0px;
  background: none;
  box-shadow: none;
}
.login-wrapper .form-submit {
  width: 100%;
  border: none;
  background: #6a1b1a;
  color: white;
  border-radius: 16px;
  padding: 16px;
  font-size: 28px;
  font-weight: 600;
  transition: .25s;
}
.login-wrapper .form-actions {
  display: block;
}

.back-btn {
  cursor: pointer;
}

.register-card {
  background: #f8f8f8;
  border-radius: 24px;
  padding: 36px;
  max-width: 920px;
  margin: auto;
  box-shadow: 0 6px 25px rgba(0, 0, 0, .05);
}

.title {
  color: rgb(178, 13, 47);
  font-size: 52px;
  font-weight: 700;
}
.path-frontpage .hero {
  height: 600px;
}

.subtitle {
  color: #777;
  margin-bottom: 24px;
}

/* tabs */
.tab-wrapper {
  background: #ececec;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
}

.tab-btn {
  border: none;
  width: 100%;
  background: transparent;
  padding: 16px;
  font-weight: 600;
  color: #666;
  transition: .2s;
}

.tab-btn.active {
  background: #0d4f88;
  color: #fff;
}

/* form */
.input-box {
  background: #efefef;
  border-radius: 14px;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 16px;
}

.text-huge {
  font-size: 72px;
}

.input-box i {
  color: #777;
  font-size: 20px;
}

.custom-input,
.custom-select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  margin-left: 12px;
  box-shadow: none;
}

.custom-input::placeholder {
  color: #666;
}

.password-toggle {
  cursor: pointer;
}

.signup-btn input {
  width: 100%;
  border: none;
  background: #0d4f88;
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  font-size: 28px;
  font-weight: 600;
  margin-top: 12px;
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}
.form-item__description {
  display: none;
}

.image-card {
  max-width: 520px;
  margin: auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .4);
  padding: 10px;
}

.browser-top {
  height: 28px;
  background: #d85a2c;
  border: 2px solid #2f3740;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.triangle {
  color: white;
  font-size: 12px;
}

.image-wrapper {
  overflow: hidden;
  border-radius: 0 0 22px 22px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
}
.menu-wrap {padding: 5vh 3vw 120px}
.menu-item {display: flex;align-items: center;justify-content: center;gap: 22px;padding: 10px;transition: .25s}
.menu-item:hover {transform: translateY(-3px)}
.menu-item img {width: 140px;height: auto;object-fit: contain}
.menu-item span {font-size: clamp(24px, 2vw, 34px);color: #004b93;font-weight: 500}

/* ==========================
    TITLE
========================== */

.hero-title {
  font-family: 'Yeseva One', serif;
  color: #df5b31;
  font-size: clamp(55px, 7vw, 90px);
  letter-spacing: 2px;
}

/* ==========================
    BUTTONS
========================== */

.custom-btn {
  border: 2px solid #111;
  border-radius: 50px;
  background: linear-gradient(to right,
  #c75427,
  #f0a321);
  color: white;
  padding: 16px 42px;
  font-size: 30px;
  min-width: 240px;
  transition: .3s ease;
}

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

/* ==========================
    LANGUAGE DROPDOWN
========================== */

.language-box {
  border: none;
  border-radius: 50px;
  background: transparent;
  color: #b91538;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.language-box:hover {
  color: #b91538;
}

.language-box i {
  font-size: 30px;
}
i.bi-globe:after {
  content: '';
}

.language-menu {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  min-width: 220px;
}

.language-item {
  font-size: 18px;
  padding: 12px 20px;
}

.language-item:hover {
  background: #f3f3f3;
}

.cta {background: rgb(178, 13, 47);color: #fff;border-radius: 999px;padding: .8rem 1.6rem;border: 0}
.link-home-center {
  margin-top: 20px;
}
.link-home-center a.cta {
  text-transform: uppercase;
}
.link-home-center a:hover {
  color: #fff;
}
.bi-play-circle-fill {
  color: #b91538;
}
.front-page .dropdown {
  top: 7px;
}
.video-play {
  cursor: pointer;
}
/* ==========================
    SOCIAL
========================== */

.social-icons i {
  color: #0b4e8a;
  font-size: 55px;
  margin-left: 28px;
  cursor: pointer;
  transition: .3s;
}

.social-icons i:hover {
  transform: scale(1.08);
}

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

.footer-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.footer-wave span {
  width: 120px;
  height: 60px;
  background: #bf6a2f;
  border-radius: 120px 120px 0 0;
  flex-shrink: 0;
}

.copyright {
  position: absolute;
  right: 30px;
  bottom: 45px;
  color: #0b4e8a;
  font-size: 22px;
}
.logedin-page .row .col-12 {
  display: flex;
}
.my-home .menu-item {
  cursor: pointer;
}
/* ==========================
    RESPONSIVE
========================== */

@media (max-width: 991px) {

  .main-section {
    text-align: center;
    padding-bottom: 150px;
  }

  .hero-title {
    margin-top: 50px;
  }

  .button-group {
    justify-content: center !important;
  }

  .social-group {
    justify-content: center !important;
  }

  .image-wrapper img {
    height: 350px;
  }
}

@media (max-width: 576px) {

  .button-group {
    flex-direction: column;
  }

  .social-group {
    flex-direction: column;
    gap: 20px;
  }

  .custom-btn {
    width: 100%;
    min-width: unset;
    font-size: 24px;
  }

  .social-icons i {
    margin: 0 14px;
  }

  .copyright {
    font-size: 16px;
    right: 15px;
  }
}


/* ======================
   RESPONSIVE
====================== */

@media (max-width: 768px) {
  .menu-item {flex-direction: column;text-align: center}
  .menu-item img {width: 120px}
  .title {
    font-size: 36px;
  }

  .register-card {
    padding: 24px;
  }
  .login-card {
    padding: 30px 24px;
  }

  .login-title {
    font-size: 40px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .signin-btn {
    font-size: 22px;
  }

  .logo {
    width: 70px;
  }

  .back-btn {
    width: 79px;
  }
  .home-btn {
    margin-top: 0px;
  }
  .logedin-page.my-home .col-12 {
    width: 50%;
  }

}

/* Calculator */

.calculator-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.calculator {
  width: 380px;
  background: #222;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}

.display {
  width: 100%;
  height: 70px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-align: right;
  padding: 15px;
  font-size: 2rem;
  margin-bottom: 20px;
}

.calc-btn {
  height: 65px;
  font-size: 1.5rem;
  border: none;
  border-radius: 12px;
}

@media (max-width: 768px) {

  .calculator {
    width: 100%;
  }

  .question-body {
    font-size: 1.5rem;
  }
}
/* Question Card */
.question-card {
  background: #eee;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}

.question-header {
  background: #e6c6ad;
  color: #6b4423;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 8px;
}

.question-body {
  min-height: 110px;
  text-align: center;
  font-size: 2rem;
  padding: 10px;
}

.answer-title {
  border-top: 1px solid #ccc;
  color: #888;
  text-align: center;
  padding: 8px;
}

.answer-input {
  margin: 10px;
  height: 50px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  width: 92%;
}
.page-learn-title {
  text-align: center;
  margin-top: 40px;
  color: #1e67c7;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.feature-item img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-top: 15px;
}

/* Title */
.main-title {
  color: #e45d35;
  font-size: 6rem;
  text-align: center;
  margin-top: 120px;
  margin-bottom: 70px;
  font-family: 'Saira Stencil One', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}
.main-title.mb-5 {
  margin-top: 10px;
}

@media (max-width: 992px) {
  .main-title {
    font-size: 4rem;
    margin-top: 100px;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 3rem;
    margin-top: 90px;
    margin-bottom: 40px;
  }

  .feature-item {
    margin-bottom: 40px;
  }

  .feature-item img {
    max-width: 140px;
  }

  .feature-title {
    font-size: 1.5rem;
  }

}

/* spacing desktop */
.feature-section {
  margin-top: 40px;
}

/* Tablet */
@media (max-width: 991px) {
  .main-title {
    margin-top: 100px;
    margin-bottom: 50px;
  }

  .feature-card {
    margin-bottom: 50px;
  }
}

/* Mobile */
@media (max-width: 576px) {

  .logo-box img {
    width: 75px;
  }

  .main-title {
    font-size: 42px;
    margin-top: 90px;
    margin-bottom: 35px;
  }

  .feature-card img {
    max-width: 180px;
  }

  .feature-title {
    font-size: 24px;
  }
}

.page-title {
  text-align: center;
  color: #e15d39;
  font-family: Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 90px);
  margin-top: 80px;
  margin-bottom: 60px;
}

.levels-container {
  max-width: 950px;
  margin: auto;
}

.level-card {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  background: #d9d9d9;
  border: 2px solid #b8b8b8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #6f6f6f;
  font-weight: 600;
  transition: .3s;
}

.level-card.unlocked {
  background: #efefef;
  border: 2px solid #e0a59a;
  color: #2d2d2d;
}

.level-card:hover {
  transform: translateY(-4px);
}

.badge-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
}

.badge-status.success {
  color: #4caf50;
}

.badge-status.lock {
  color: #666;
}

.level-link {
  text-decoration: none;
}
.page-wrapper {
  min-height: 100vh;
  position: relative;
  padding: 20px;
  padding-bottom: 120px;
}


@media (max-width: 768px) {

  .page-title {
    margin-top: 90px;
    margin-bottom: 40px;
  }

  .levels-container {
    max-width: 100%;
  }

  .level-card {
    font-size: 22px;
  }
  .pagination-box {
    width: 100%;
    overflow-x: auto;
  }

  .pagination {
    flex-wrap: nowrap;
    width: max-content;
  }

}
@media (max-width: 992px) {

  .controls {
    flex-direction: column;
    gap: 15px;
  }

  .progress-custom {
    width: 100%;
  }

  .controls-left,
  .controls-right {
    width: 100%;
    justify-content: center;
  }

}
.lesson-player {
  width: 100%;
  max-width: 1280px;
  margin: 15px auto;
  background: #d1cbc2;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lesson-title {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.close-btn {
  color: #fff;
  font-size: 34px;
  text-decoration: none;
}

/* VIDEO */

.video-frame {
  background: #fff;
  border: 4px solid #f2a9ca;
  border-radius: 12px;
  padding: 8px;
}

.video-wrapper {
  background: #000;
  overflow: hidden;
  border-radius: 8px;
}

.video-wrapper video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* CONTROLS */

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-circle {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #0058b7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-circle.dark {
  background: #666;
}

.lesson-count {
  color: #202f90;
  font-weight: 700;
}

.progress-custom {
  width: 700px;
}

.progress-custom input {
  width: 100%;
}

.time {
  color: #202f90;
  font-size: 14px;
}

/* PAGINATION */

.pagination-container {
  display: flex;
  justify-content: center;
}

.pagination-box {
  background: #fff;
  padding: 16px 22px;
  border-radius: 4px;
}

.pagination {
  margin: 0;
  gap: 8px;
}

.pagination .page-link {
  border: none;
  background: #edf1fb;
  color: #2c5ccc;
  min-width: 42px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pagination .active .page-link {
  background: #2f5ed7;
  color: #fff;
}
/* Title */

.page-title {
  text-align: center;
  color: var(--primary);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 2px;
  margin-top: 20px;
  margin-bottom: 70px;
}

/* Card */

.lesson-card {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
  height: 100px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  transition: .3s;
}

.lesson-card:hover {
  transform: translateY(-3px);
}

.thumb {
  width: 72%;
  height: 86px;
  background: #c8d1d5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5e69;
  font-size: 72px;
  font-weight: 700;
}

.lesson-info {
  width: 28%;
  padding-left: 12px;
}

.lesson-title {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.progress {
  height: 8px;
  border-radius: 20px;
  background: #ececec;
}


.lesson-percent {
  color: #777;
  font-size: 12px;
  margin-top: 4px;
}

.disabled-card {
  opacity: .45;
}

.content-wrap {
  max-width: 720px;
  margin: auto;
}

/* Mobile */

@media (max-width: 768px) {

  .page-title {
    margin-top: 90px;
    margin-bottom: 40px;
  }

  .lesson-card {
    height: auto;
  }

  .thumb {
    height: 80px;
    font-size: 60px;
  }

}
.main-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.row-item {
  margin-right: 50px;
}

.menu-card {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .3s;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-5px);
}

.math-icon {
  color: #d548ff;
  font-size: 90px;
  line-height: 1;
}

.menu-title {
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 700;
  color: #07356d;
  text-align: center;
}

@media (max-width: 768px) {

  .menu-card {
    width: 180px;
    height: 180px;
  }

  .math-icon {
    font-size: 70px;
  }

  .menu-title {
    font-size: 1.5rem;
  }

  .logo {
    width: 65px;
  }
}

.top-header {background: #0d6efd;color: #fff;padding: 15px 25px;border-radius: 15px;margin-top: 15px}
.app-title {font-size: 32px;font-weight: bold}


.exercise-card {
  background: #e8e3ea;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: .3s;
  cursor: pointer;
}

.exercise-card:hover {
  transform: translateY(-3px);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #63c164;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.exercise-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}

.exercise-sub {
  color: #777;
  font-size: .95rem;
}
.quiz-manual .submit-btn {
  background: #43a047;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 25px;
  font-weight: 600;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .exercise-title {
    font-size: 1.4rem;
  }

  .page-title {
    font-size: 1.8rem;
  }
}
/* TIMER */

.timer-box {
  width: 140px;
  margin: 20px auto 10px;
  background: #0d6efd;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.submit-btn {
  display: block;
  margin: 10px auto;
}

/* CARD */

.quiz-card {
  max-width: 420px;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.quiz-header {
  background: #e7c7af;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  padding: 15px;
}

.quiz-body {
  background: #fff;
  padding: 30px;
}

.number {
  text-align: center;
  font-size: 46px;
  line-height: 1.5;
}

.answer-input {
  text-align: center;
  font-size: 28px;
  height: 60px;
}

/* BUTTON */

.nav-area {
  text-align: center;
  margin-top: 20px;
}

.nav-area button {
  min-width: 120px;
  margin: 0 10px;
}

.soroban-frame {width: max-content;min-width: 1400px;margin: auto;background: linear-gradient(180deg, #4b4039, #111 25%, #444 50%, #111 75%, #4b4039);border: 6px solid #2b211c;border-radius: 28px;padding: 35px;position: relative;box-shadow: 0 10px 30px rgba(0, 0, 0, .35)}
.middle-bar {position: absolute;left: 30px;right: 30px;top: 108px;height: 14px;border-radius: 10px;background: linear-gradient(#fff, #d8ccb8, #fff)}
.columns {display: flex;gap: 12px}
.column {width: 48px;position: relative;display: flex;flex-direction: column;align-items: center}
.rod {position: absolute;width: 6px;top: 8px;bottom: 8px;background: linear-gradient(#ffce88, #d16219, #ffce88);z-index: 1}
.upper-area {height: 85px;z-index: 2}
.lower-area {margin-top: 55px;z-index: 2}
.bead {width: 38px;height: 26px;margin: 4px 0;cursor: pointer;transition: transform .12s ease;clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);background: linear-gradient(90deg, #8f4716, #db8e43 35%, #f2b05f 50%, #db8e43 65%, #8f4716);box-shadow: inset 0 0 5px rgba(255, 255, 255, .5), 0 2px 3px rgba(0, 0, 0, .3)}
.upper-bead.active {transform: translateY(48px)}
.lower-bead.active {transform: translateY(-34px)}
.locator {width: 0;height: 0;border-left: 12px solid transparent;border-right: 12px solid transparent;border-top: 22px solid #ff4d3d;position: absolute;top: -15px;left: 50%;transform: translateX(-50%);cursor: grab;touch-action: none;z-index: 20}
.value-box {background: #fff;border-radius: 20px;padding: 15px 30px;box-shadow: 0 5px 15px rgba(0, 0, 0, .1)}
.soroban-wrapper {overflow-x: auto;padding: 30px 0}
.soroban-frame {width: max-content;min-width: 864px;margin: auto;background: linear-gradient(180deg, #4b4039, #111 25%, #444 50%, #111 75%, #4b4039);border: 6px solid #2b211c;border-radius: 28px;padding: 35px;position: relative;box-shadow: 0 10px 30px rgba(0, 0, 0, .35)}
.middle-bar {position: absolute;left: 30px;right: 30px;top: 108px;height: 14px;border-radius: 10px;background: linear-gradient(#fff, #d8ccb8, #fff)}
.columns {display: flex;gap: 12px}
.column {width: 48px;position: relative;display: flex;flex-direction: column;align-items: center}
.rod {position: absolute;width: 6px;top: 8px;bottom: 8px;background: linear-gradient(#ffce88, #d16219, #ffce88);z-index: 1}
.upper-area {height: 85px;z-index: 2}
.lower-area {margin-top: 55px;z-index: 2}
.bead {width: 38px;height: 26px;margin: 4px 0;cursor: pointer;transition: transform .12s ease;clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);background: linear-gradient(90deg, #8f4716, #db8e43 35%, #f2b05f 50%, #db8e43 65%, #8f4716);box-shadow: inset 0 0 5px rgba(255, 255, 255, .5), 0 2px 3px rgba(0, 0, 0, .3)}
.upper-bead.active {transform: translateY(48px)}
.lower-bead.active {transform: translateY(-34px)}
.locator {width: 0;height: 0;border-left: 12px solid transparent;border-right: 12px solid transparent;border-top: 22px solid #ff4d3d;position: absolute;top: -15px;left: 50%;transform: translateX(-50%);cursor: grab;touch-action: none;z-index: 20}
.value-box {background: #fff;border-radius: 20px;padding: 15px 30px;box-shadow: 0 5px 15px rgba(0, 0, 0, .1)}

.soroban-box {
  position: fixed;
  bottom: -30px;
  left: 7%;
  background: #dfdfdf;
  padding: 10px 20px 0px 20px;
  border-radius: 16px;
}
.top-abacus {
  height: 40px;
}
.timer {display: inline-block;background: #0d6efd;color: #fff;padding: 10px 30px;border-radius: 18px;font-size: 42px;font-weight: 700}
.badgex {display: block;width: 140px;margin: 10px auto;background: #2fb344;color: #fff;padding: 8px;border-radius: 14px}
.main {background: #fff;border-radius: 25px;box-shadow: 0 10px 30px rgba(0, 0, 0, .12);padding: 30px}
.ribbon {background: #ff7a1a;color: #fff;font-size: 48px;font-weight: 700;padding: 15px;border-radius: 18px;display: inline-block}
.trophy {font-size: 180px}
.stat {border: 1px solid #eee;border-radius: 18px;padding: 25px;text-align: center;box-shadow: 0 4px 12px rgba(0, 0, 0, .08)}
.stat i {font-size: 48px}
.btnx {padding: 16px 40px;border-radius: 18px;font-size: 24px}
table td, th {text-align: center}

.card-custom {
  background: #fff;
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  padding: 20px;
}

.card-title-custom {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-timer {
  background-color: #0d6efd;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 12px;
  padding: 4px 24px;
  display: inline-block;
}

.header-badge {
  background-color: #198754;
  color: white;
  border-radius: 20px;
  padding: 4px 18px;
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 6px;
}

/* Avatar styling */
.avatar-box {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e3f2fd;
}

.badge-role {
  background-color: #ffe6d5;
  color: #ff7a00;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
}

.badge-teacher {
  color: #ff7a00;
  font-weight: 600;
  font-size: 0.85rem;
}

.info-label {
  color: #555;
  font-weight: 500;
}

.btn-orange {
  background-color: #ff8c00;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 8px 20px;
  transition: all 0.3s;
}
.btn-orange:hover {
  background-color: #e07b00;
  color: white;
}

/* Stats Cards */
.stat-card {
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.stat-card .value {
  font-size: 1.25rem;
  font-weight: bold;
}
.stat-card .label {
  font-size: 0.75rem;
  color: #6c757d;
}

.bg-blue-light { background-color: #eef6ff; color: #0d6efd; }
.bg-green-light { background-color: #e8fadf; color: #198754; }
.bg-orange-light { background-color: #fff3e6; color: #ff8c00; }
.bg-purple-light { background-color: #f3e8ff; color: #8a2be2; }
.bg-gray-light { background-color: #f8f9fa; color: #6c757d; }

/* Schedule Table */
.table-schedule {
  font-size: 0.85rem;
}
.table-schedule th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
}

.reminder-box {
  background-color: #eef6ff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Donut chart legend */
.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
}

.btn-action {
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 24px;
}
.quiz-card {
  max-width: 500px;
  margin: 20px auto;
  background: #fff;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

#questionArea {
  margin: 30px 0;
  text-align: center;
}

.number {
  font-size: 52px;
  font-weight: bold;
  line-height: 1.1;
  font-family: monospace;
}

.line {
  width: 180px;
  margin: 8px auto 20px;
  border-top: 3px solid #000;
}

.answer {
  max-width: 220px;
  margin: auto;
  text-align: center;
  font-size: 28px;
  height: 60px;
}
.questionArea {
  display: none;
}
/* Only show the item marked as active */
.questionArea.active {
  display: block;
}
.questions-item {
  align-items: center;
  justify-content: center;
}
.btn-show {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.slide-panel {

  position: relative;
  left: 50%;
  bottom: -20px;

  transform: translate(-50%, 120%);
  opacity: 0;

  width: 95%;
  max-width: 95%;

  background: #fff;
  border-radius: 20px;

  padding: 25px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);

  transition: transform .45s cubic-bezier(.23, 1, .32, 1),
  opacity .35s;

}

.slide-panel.show {

  transform: translate(-50%, 0);
  opacity: 1;

}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
}

.overlay {

  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;

  transition: .3s;

}

.overlay.show {

  opacity: 1;
  visibility: visible;

}
.column:nth-child(2) .rod:after,
.column:nth-child(5) .rod:after,
.column:nth-child(8) .rod:after,
.column:nth-child(11) .rod:after {
  content: '';
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #333;
  border-radius: 50%;
  z-index: 10000;
}
.questionArea audio {
  width: 100%;
}
.placeholder {
  background-color: none;
}

.option-card {
  cursor: pointer;
  border: 3px solid #ddd;
  border-radius: 18px;
  overflow: hidden;
  transition: .25s;
}

.option-card:hover {
  transform: translateY(-6px);
  border-color: #0d6efd;
}

.option-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.option-title {
  padding: 12px;
  font-weight: 600;
  text-align: center;
}

input[type=radio] {
  display: none;
}

input[type=radio]:checked + .option-card {
  border-color: #28a745;
  box-shadow: 0 0 0 5px rgba(40, 167, 69, .2);
}

.question-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 35px;
}

.select-question .quiz-card {
  min-width: 700px;
}
.country-dropdown-btn {
  border: 2px solid #000 !important;
  border-radius: 50px !important;
  padding: 6px 20px !important;
  background-color: #fff !important;
  color: #000 !important;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.country-dropdown-btn:focus, .country-dropdown-btn:active {
  box-shadow: none !important;
  border-color: #000 !important;
}

/* Cards section */
.card-img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.card-text-custom {
  font-size: 1.1rem;
  line-height: 1.5;
  min-height: 100px;
}

/* Custom Buttons */
.btn-custom {
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}
.btn-watch {
  background: linear-gradient(180deg, #ff3b30 0%, #d32f2f 100%);
  color: #fff;
}
.btn-register {
  background: linear-gradient(180deg, #ff3b30 0%, #e64a19 100%);
  color: #fff;
}
.btn-custom:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

/* Flag Section */
.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.flag-item {
  width: 100%;
  height: 38px;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* Left Side Illustration */
.teacher-illustration {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Category Cards Grid */
.math-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  padding: 24px 37px 16px 16px;
}

.math-card:hover {
  transform: translateY(-5px);
}
/* Cam */

/* Card Content */
.card-main-img {
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Text Label inside the card */
.card-title-text {
  color: #000; /* Chữ màu đen */
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  position: absolute;
  bottom: 20px;
}

/* Top Right Plus Icon */
.card-add-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.main-title.blue {
  color: #063292;
  font-size: 45px;
  margin-bottom: 20px;
  margin-top: 20px;
}
.main-title.blue.page-title-lesson {
  font-size: 80px;
}
p.slogan {
  color: #e45d35;
  font-size: 32px;
  text-align: center;
  font-family: 'Saira Stencil One', sans-serif;
  font-weight: bold;
  margin: 0;
}
a.logo-wrapper {
  text-align: center;
}
.semester-card {display: flex;align-items: center;padding: 20px 10px; position: relative}
.icon {width: 180px;height: 120px;}
.text {margin-left: 30px;color: #003b9b;font-weight: 800;font-family: Georgia, serif;font-size: 2rem;line-height: 1.1;text-transform: uppercase}
@media (max-width: 768px) {
  .text {font-size: 1.5rem}
  .icon {width: 140px;height: 95px}
}
.my-home .menu-item span {
  text-transform: uppercase;
}

.modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.modal-header {
  background: #ff8a00;
  color: #fff;
  border: 0;
  padding: 18px 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.form-label {
  font-weight: 600;
  color: #39424e;
  font-size: 14px;
}

.form-control,
.form-select {
  border-radius: 9px;
  min-height: 44px;
  border-color: #d9dde3;
}

.form-control:focus,
.form-select:focus {
  border-color: #ff9b2f;
  box-shadow: 0 0 0 .2rem rgba(255, 138, 0, .15);
}

.selected-class {
  background: #fff7ed;
  border: 1px solid #ffd7ad;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
}

.required {
  color: #dc3545;
}

.success-message {
  display: none;
}

@media (max-width: 768px) {
  .profile-label {
    min-width: 135px;
  }

  .table-responsive {
    border-radius: 10px;
  }
}
.school {width: 250px}
.top-icon {width: 32px;height: 32px;object-fit: contain}
.hello {color: #851a1d;font-size: clamp(2rem, 4vw, 2.55rem);font-weight: 800}
.menu-grid {max-width: 760px;margin: 30px auto 0}
.lower {max-width: 518px;margin-left: auto;margin-right: auto}
.menu-card {height: 188px;border: 0;border-radius: 23px;background: #fff;box-shadow: 0 13px 30px #00000012;text-decoration: none;color: #111;transition: .18s}
.menu-card:hover {transform: translateY(-3px);color: #111;box-shadow: 0 16px 34px #0000001a}
.menu-icon {width: 94px;height: 94px;object-fit: contain;display: block;margin: 0 auto 10px}
.menu-title {font-size: 1.15rem;font-weight: 800;margin: 0}
@media (max-width: 767.98px) {
  .dashboard {width: calc(100% - 24px);padding: 18px 20px 32px}
  .brand {width: 145px}
  .school {width: 190px}
  .menu-card {height: 170px}
}
.course-link {display: block;text-decoration: none;border-radius: 72px;transition: .2s; text-align: center; width: 270px;}
.course-link:hover {transform: translateY(-6px);filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .14))}
.course-img {display: block;border-radius: 72px}
@media (max-width: 767.98px) {
  .page {padding: 24px 18px}
  .brand {width: 210px;max-width: 60vw}
  .back-img {width: 75px}
  .selector-wrap {margin-top: 38px;max-width: 520px}
  .course-link, .course-img {border-radius: 40px}
}

.level-title-image {
  width: min(245px, 100%);
  height: auto;
  display: block;
}

.level-grid {
  width: min(650px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.level-card {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.level-card img {
  width: min(132px, 100%);
  max-height: 165px;
  object-fit: contain;
  display: block;
  transition: transform .16s ease, filter .16s ease;
}

.level-card:hover img,
.level-card:focus-visible img {
  transform: translateY(-5px) scale(1.035);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .12));
}

.level-card:focus-visible {
  outline: 3px solid rgba(177, 11, 53, .26);
  outline-offset: 5px;
  border-radius: 14px;
}

@media (min-width: 992px) {
  .main-section {
    min-height: calc(100vh - 126px);
    display: flex;
    align-items: flex-start;
  }

  .content-row { width: 100%; }

  .title-wrap {
    padding-top: 158px;
    padding-left: 10.8%;
  }

  .level-grid {
    transform: translateX(-2px);
  }
}

@media (max-width: 991.98px) {
  .topbar {
    min-height: 105px;
    padding: 20px 24px 0;
  }

  .main-section {
    padding: 28px 24px 34px;
  }

  .title-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
  }

  .level-grid { max-width: 650px; }
}

@media (max-width: 575.98px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .back-button img { width: 58px; }

  .main-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .level-grid { row-gap: 14px !important; }

  .level-card img { width: 104px; }

  .level-title-image { width: 190px; }
}
.page-wrap {width: min(820px, calc(100% - 30px));margin: 26px auto 0}
.hero {
  position: relative;
  height: 124px;
  background: #730c0f;
  overflow: hidden;
}
.unit-title-img {position: absolute;left: 67px;top: 25px;width: 190px;height: auto;z-index: 2;object-fit: contain}
.back-btn {position: absolute;right: 39px;top: 26px;width: 76px;height: 76px;z-index: 3;border: 0;background: #fff;padding: 7px;display: flex;align-items: center;justify-content: center}
.back-btn img {width: 100%;height: 100%;object-fit: contain;display: block}
.cards-area {background: rgba(255, 255, 255, .68);padding: 22px 22px 12px}
.unit-card {position: relative;border-radius: 15px;overflow: hidden;background: #fff;box-shadow: 0 4px 10px rgba(0, 0, 0, .18);min-height: 280px;display: flex;flex-direction: column;cursor: pointer;transition: .16s}
.unit-card:hover {transform: translateY(-4px);box-shadow: 0 8px 18px rgba(0, 0, 0, .22)}
.unit-badge {position: absolute;top: 0;left: 0;z-index: 4;background: #8b1014;color: #fff;padding: 8px 18px 9px;min-width: 98px;border-bottom-right-radius: 10px;font-size: 18px;font-weight: 800;line-height: 1}
.visual {height: 200px;display: flex;align-items: center;justify-content: center;overflow: hidden;padding-top: 15px}
.visual img {max-width: 90%;max-height: 82%;object-fit: contain;display: block}
.card-footer-custom {background: #fff;flex: 1;min-height: 80px;display: flex;flex-direction: column;align-items: center;justify-content: center;padding: 11px 8px 10px}
.unit-name {margin: 0;font-size: 18px;font-weight: 800;text-align: center;line-height: 1.15}
.accent-line {width: 48px;height: 4px;border-radius: 10px;margin-top: 10px}
.u1 .visual {background: #e4394c}
.u2 .visual {background: linear-gradient(135deg, #ff762d, #ff6517)}
.u3 .visual {background: linear-gradient(135deg, #ffbf14, #ffae00)}
.u4 .visual {background: linear-gradient(135deg, #8bcf14, #78c600)}
.u5 .visual {background: linear-gradient(135deg, #29c7bf, #15ada9)}
.u6 .visual {background: linear-gradient(135deg, #24a9df, #0f8dc9)}
.u7 .visual {background: linear-gradient(135deg, #9a50dc, #8242cf)}
.u8 .visual {background: linear-gradient(135deg, #5548ad, #40359f)}
.u1 .accent-line {background: #e9334f}
.u2 .accent-line {background: #ff7024}
.u3 .accent-line {background: #ffb300}
.u4 .accent-line {background: #7fc316}
.u5 .accent-line {background: #19bebb}
.u6 .accent-line {background: #1196d0}
.u7 .accent-line {background: #8b48d0}
.u8 .accent-line {background: #40349e}
@media (max-width: 767.98px) {
  .page-wrap {width: min(100% - 18px, 720px);margin-top: 10px}
  .hero {height: 102px}
  .unit-title-img {left: 28px;top: 23px;width: 145px}
  .back-btn {right: 18px;top: 13px;width: 66px;height: 66px}
  .cards-area {padding: 16px 12px 10px}
  .unit-card {min-height: 255px}
  .visual {height: 174px}
}
@media (max-width: 575.98px) {
  .unit-badge {font-size: 15px;min-width: 82px;padding: 7px 13px}
  .visual {height: 155px}
  .unit-name {font-size: 16px}
}
.profile-hero {padding: 22px 42px 28px}
.welcome {color: #8f1f1f;font-size: clamp(32px, 4vw, 50px);font-weight: 800;margin: 0 0 8px}
.subtitle {color: #737784;margin: 0}
.content-wrap {padding: 0 42px 42px}
.profile-card, .panel {background: #fff;border-radius: 24px;border: 1px solid #f0f0f0;box-shadow: 0 10px 28px rgba(20, 20, 20, .06)}
.profile-card {padding: 28px;height: 100%}
.content-wrap .panel {padding: 26px;height: 100%; margin-block: 0px;}
.avatar {width: 116px;height: 116px;border-radius: 50%;background: linear-gradient(135deg, #a91622, #7f0d17);display: grid;place-items: center;color: #fff;font-size: 54px;margin: 0 auto 18px;box-shadow: 0 8px 18px rgba(159, 17, 31, .22)}
.teacher-name {font-size: 24px;font-weight: 800;text-align: center;margin: 0}
.teacher-role {text-align: center;color: #737784;margin: 6px 0 22px}
.badge-soft {display: inline-flex;align-items: center;gap: 6px;border-radius: 999px;padding: 8px 12px;font-size: 13px;font-weight: 700;background: #edf7ef;color: #287b42}
.quick-stat {border-radius: 18px;padding: 16px;text-align: center;background: #fafafa;border: 1px solid #f0f0f0}
.quick-stat strong {display: block;font-size: 22px;color: #9f111f}
.quick-stat span {font-size: 13px;color: #9f111f}
.btn-brand {background: #9f111f;color: #fff;border: none;border-radius: 14px;padding: 11px 18px;font-weight: 700}
.btn-brand:hover {background: #9f111f;color: #fff}
.panel-title {font-size: 22px;font-weight: 800;margin: 0 0 22px;display: flex;align-items: center;gap: 10px}
.panel-title i {color: #9f111f}
.info-row {display: flex;gap: 14px;align-items: flex-start;padding: 14px 0;border-bottom: 1px solid #f0f0f0}
.info-row:last-child {border-bottom: 0}
.info-icon {width: 38px;height: 38px;border-radius: 12px;background: #fff3f4;color: #9f111f;display: grid;place-items: center;flex: 0 0 auto;font-size: 18px}
.info-label {color: #737784;font-size: 13px;margin-bottom: 3px}
.info-value {font-size: 16px;font-weight: 700}
.schedule-item {display: flex;gap: 14px;padding: 15px 0;border-bottom: 1px solid #f1f1f1}
.schedule-item:last-child {border-bottom: 0}
.time-badge {min-width: 78px;height: 48px;border-radius: 14px;background: #fff4e5;color: #b76a00;display: flex;align-items: center;justify-content: center;font-weight: 800}
.schedule-item h6 {margin: 0 0 3px;font-weight: 800}
.schedule-item p {margin: 0;color: #737784;font-size: 14px}
.class-card {border-radius: 18px;padding: 18px;color: #fff;min-height: 130px;display: flex;flex-direction: column;justify-content: space-between}
.class-card.red {background: linear-gradient(135deg, #a91622, #7e0c16)}
.class-card.blue {background: linear-gradient(135deg, #2184c9, #17639b)}
.class-card.green {background: linear-gradient(135deg, #36a85c, #247b42)}
.class-card h5 {font-weight: 800;margin: 6px 0 0}
.class-card small {opacity: .84}
.action-card {border-radius: 20px;padding: 20px;background: #fff;border: 1px solid #eee;text-decoration: none;color: inherit;display: flex;align-items: center;gap: 15px;transition: .15s;height: 100%}
.action-card:hover {transform: translateY(-3px);box-shadow: 0 8px 20px rgba(0, 0, 0, .08);color: inherit}
.action-icon {width: 54px;height: 54px;border-radius: 50%;display: grid;place-items: center;color: #fff;font-size: 24px;flex: 0 0 auto}
.orange {background: #f6a00d}
.green {background: #2c974c}
.blue {background: #2379be}
.purple {background: #6c3fa4}
.action-card h6 {font-weight: 800;margin: 0 0 4px}
.action-card p {margin: 0;color: #737784;font-size: 13px}
@media (max-width: 991.98px) {
  .topbar, .profile-hero, .content-wrap {padding-left: 24px;padding-right: 24px}
  .school-logo {width: 190px}
}
@media (max-width: 575.98px) {
  .app-shell {width: 100%;margin: 0;border-radius: 0;border-left: 0;border-right: 0}
  .brand-logo {width: 145px}
  .school-logo {width: 155px}
  .top-icon {width: 36px;height: 36px;font-size: 18px}
  .profile-card, .panel {padding: 20px}
}
.app-shell {width: min(1180px, calc(100% - 32px));margin: 24px auto;min-height: calc(100vh - 48px);background: #fbfbfb;border: 1px solid #eee;border-radius: 34px;box-shadow: 0 2px 8px rgba(0, 0, 0, .03);overflow: hidden}
main.content-wrap {
  max-width: 100%;
}

.content-panel {
  width: min(630px, calc(100% - 32px));
  margin: 40px auto 0;
  background: var(--content-bg);
  padding: 56px 24px 58px;
  min-height: 600px;
}

.menu-item {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 18px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.menu-item img {
  width: 100%;
  max-width: 188px;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, .05);

}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item:focus-visible {
  outline: 3px solid rgba(130, 15, 30, .24);
  outline-offset: 5px;
}

@media (max-width: 767.98px) {
  .topbar {
    padding: 18px 18px 0;
  }

  .brand-logo {
    width: 190px;
  }

  .back-btn img {
    width: 60px;
  }

  .content-panel {
    margin-top: 28px;
    padding: 34px 16px 44px;
  }
}

@media (max-width: 575.98px) {
  .content-panel {
    width: calc(100% - 18px);
  }

  .menu-item img {
    max-width: 170px;
  }
}
.page-shell {
  width: min(1045px, calc(100% - 32px));
  min-height: 720px;
  margin: 22px auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(82, 66, 39, .05);
}

.sidebar {
  width: 240px;
  flex: 0 0 240px;
  min-height: 720px;
  background: rgba(255, 255, 255, .72);
  border-right: 1px solid var(--line);
  padding: 18px 18px 24px;
  position: relative;
}

.brand {
  padding: 0 0 14px;
  border-bottom: 1px solid #eee5da;
  margin-bottom: 18px;
}

.brand img {
  width: 160px;
  max-width: 100%;
  display: block;
}

.side-nav .nav-link {
  min-height: 50px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  border-radius: 13px;
  padding: 9px 12px;
  margin: 3px 0;
  position: relative;
}

.side-nav .nav-link:hover {background: #fff8ef}

.side-nav .nav-link.active {
  color: #a92e3c;
  background: var(--orange-soft);
  border: 1px solid #ffc37e;
}

.side-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: #b91e3a;
}

.nav-icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: 0 0 31px;
}

.i-profile {background: #ffe4ed;color: #ff6294}
.i-story {background: #fff0c8;color: #ff9d00}
.i-vocab {background: #dff8e9;color: #34bc7c}
.i-task {background: #eee1ff;color: #8d51ff}
.i-debate {background: #e5f0ff;color: #3c7cff}
.i-present {background: #dff9fb;color: #0eb8c9}
.i-game {background: #ffe2f3;color: #ff5bb4}

.main {
  flex: 1;
  min-width: 0;
  padding: 20px 26px 28px;
}

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

.lesson .back-btn-lesson {
  border: 0;
  border-radius: 15px;
  padding: 11px 20px;
  color: #fff;
  font-weight: 800;
  background: orange;
  box-shadow: 0 4px 0 #d98d00;
}

.lesson .back-btn-lesson:active {transform: translateY(2px);box-shadow: 0 2px 0 #d98d00}

.status-pill {
  border: 1px solid #f0e5d7;
  background: #fff;
  border-radius: 22px;
  padding: 7px 13px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .03);
}

.fire-pill {
  border: 0;
  background: #fff0d8;
  color: #e77f12;
}

.crumb {
  font-size: 11px;
  color: #575d6b;
  margin-bottom: 10px;
}

.crumb strong {color: #a22335}

.lesson .lesson-card-story {
  background: #fff;
  border: 1px solid #e8dfd5;
  border-radius: 21px;
  box-shadow: 0 5px 12px rgba(73, 56, 36, .08);
  overflow: hidden;
}

.lesson-head {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 19px;
}

.lesson-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
}

.circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe6ee;
  color: #ff6f98;
  border: 0;
  font-size: 15px;
}

.help-btn {
  background: #fff0d6;
  color: #dfa24c;
  font-weight: 800;
}

.lesson-body {
  padding: 6px 19px 18px;
}

.hero-visual {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual img {
  width: 300px;
  max-width: 85%;
  display: block;
}

.field-label {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.select-box {
  height: 40px;
  border: 2px solid var(--purple);
  border-radius: 12px;
  background: #f3e4ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #6f33df;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.selected-row {
  min-height: 58px;
  border: 2px solid var(--purple);
  border-radius: 12px;
  background: #f0ddff;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  gap: 10px;
  color: #5922cf;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 10px;
}

.video-row {
  min-height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
}

.video-row:hover {
  background: #faf7ff;
  border-color: #ead8ff;
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  font-size: 20px;
  position: relative;
}

.thumb-sunny {background: #8edaff}
.thumb-mountain {background: #dff3ff}
.thumb-city {background: #ead3ff}
.thumb-ocean {background: #a6edf1}

.check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.continue-btn {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(90deg, #b8263f, #ff5482);
  box-shadow: 0 5px 12px rgba(232, 54, 101, .18);
}

@media (max-width: 850px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  .sidebar {display: none}
  .main {padding: 16px}
}

@media (max-width: 520px) {
  .top-row {align-items: flex-start}
  .status-wrap {display: flex;gap: 6px}
  .status-pill {padding: 6px 9px}
  .lesson-head {padding: 0 12px}
  .lesson-body {padding: 5px 12px 14px}
  .hero-visual {min-height: 108px}
  .hero-visual img {width: 245px}
}

.lab-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  padding: 20px 24px 18px;
}

.lab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee9df;
}
.lab-title {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stem-badge {
  background: #d94555;
  color: #fff;
  border-radius: 14px;
  font-size: 11px;
  letter-spacing: .3px;
  padding: 6px 9px;
  font-weight: 800;
}
.progress-num {font-size: 15px;font-weight: 700;color: #5d5967;}
.progress-num strong {color: #a51f36;}

.content-grid {
  display: grid;
  grid-template-columns:410px 1fr;
  gap: 20px;
  padding-top: 13px;
  min-height: 441px;
}

.coffee-photo {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.word-panel {
  position: relative;
  padding: 0 0 0 0;
  min-width: 0;
}
.top-icons {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 42px;
  position: relative;
}

.sound-round {
  width: 37px;
  height: 37px;
  border: none;
  border-radius: 50%;
  background: #e0edff;
  color: #2588ff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

.heart {
  font-size: 22px;
  line-height: 1;
  color: #a92e3c;
  font-weight: 400;
  margin-top: -2px;
  user-select: none;
  position: absolute;
  left: 50px;
  top: 7px;
}

.word {
  font-size: 50px;
  line-height: 1;
  font-weight: 900;
  margin: 2px 0 6px;
  letter-spacing: -1.5px;
}
.phonetic {
  color: #5c5866;
  font-size: 18px;
  margin-bottom: 6px;
}
.noun-badge {
  display: inline-flex;
  align-items: center;
  background: var(--purple-bg);
  color: var(--purple);
  height: 24px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.example-card {
  min-height: 89px;
  border-radius: 17px;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  display: grid;
  grid-template-columns:36px 1fr 54px;
  gap: 12px;
  align-items: center;
  padding: 13px 17px;
}
.play-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #0dbfae;
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding-left: 2px;
}
.example-label {
  color: #00b98f;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 2px;
}
.example-main {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}
.example-main strong {color: #b51f39;}
.example-phonetic {
  font-size: 13px;
  color: #6d6975;
  margin-top: 2px;
}

.trainer {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #05c8b8;
  display: grid;
  place-items: center;
  position: relative;
}
.trainer:before {
  content: "";
  width: 20px;
  height: 25px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  position: absolute;
  top: 10px;
}
.trainer:after {
  content: "⌁";
  color: #fff;
  font-size: 27px;
  position: absolute;
  bottom: 4px;
  transform: rotate(90deg);
}

.bottom-nav {
  border-top: 1px solid #eee8dc;
  margin-top: 18px;
  padding-top: 17px;
  display: grid;
  grid-template-columns:1fr 80px 1fr;
  gap: 14px;
  align-items: center;
}
.nav-btn {
  height: 64px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 7px 14px rgba(121, 83, 12, .12);
}
.prev {
  background: linear-gradient(90deg, #ffd23c, #ff9d18);
  color: #754300;
}
.next {
  background: linear-gradient(90deg, #b51f39, #ff656b);
  color: white;
}
.btn-arrow {
  font-size: 30px;
  vertical-align: -2px;
  margin-inline: 7px;
  font-weight: 400;
}
.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 8px;height: 8px;border-radius: 50%;background: #ded8cd;
}
.dot.active {
  width: 22px;
  border-radius: 6px;
  background: #a02138;
}

@media (max-width: 992px) {
  .page-shell {margin: 10px;padding: 18px;border-radius: 20px;}
  .content-grid {grid-template-columns:1fr;min-height: auto;}
  .coffee-photo {height: auto;max-height: 440px;object-fit: cover;}
  .word {font-size: 44px;}
}

@media (max-width: 576px) {
  .page-shell {margin: 0;border-radius: 0;padding: 14px;}
  .top-row {align-items: flex-start;}
  .back-btn {min-width: 105px;height: 48px;font-size: 15px;border-radius: 14px;}
  .status-wrap {gap: 7px;}
  .pill {height: 36px;padding-inline: 11px;font-size: 13px;}
  .lab-card {padding: 16px 14px;}
  .content-grid {gap: 14px;}
  .coffee-photo {height: 310px;}
  .word {font-size: 38px;}
  .example-card {grid-template-columns:34px 1fr; padding: 12px;}
  .trainer {display: none;}
  .bottom-nav {grid-template-columns:1fr 58px 1fr;}
  .nav-btn {height: 56px;font-size: 15px;}
}
.youtube-modal .modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.youtube-modal .modal-header {
  border-bottom: 1px solid #eee6de;
  padding: 14px 18px;
}

.youtube-modal .modal-title {
  font-weight: 800;
  font-size: 17px;
}

.youtube-modal .ratio {
  background: #000;
}
.progress-num {
  font-size: 15px;
  font-weight: 700;
  color: #5d5967;
  width: 123px;
}

.progress-num strong {
  color: #a51f36;
  font-size: 18px;
}

/* Slider */
.voca-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-top: 13px;
}

.content-grid {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.vocal-item {
  min-width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns:410px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 441px;
  padding-right: 1px;
}

.example-card {
  min-height: 89px;
  border-radius: 17px;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  display: grid;
  grid-template-columns:36px 1fr 54px;
  gap: 12px;
  align-items: center;
  padding: 13px 17px;
}

.play-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #0dbfae;
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding-left: 2px;
}

.example-label {
  color: #00b98f;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 2px;
}

.example-main {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.trainer {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #05c8b8;
  place-items: center;
  position: relative;
  display: none;
}

.trainer:before {
  content: "";
  width: 20px;
  height: 25px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  position: absolute;
  top: 10px;
}

.trainer:after {
  content: "⌁";
  color: #fff;
  font-size: 27px;
  position: absolute;
  bottom: 4px;
  transform: rotate(90deg);
}

.bottom-nav {
  border-top: 1px solid #eee8dc;
  margin-top: 18px;
  padding-top: 17px;
  display: grid;
  grid-template-columns:1fr auto auto 1fr;
  gap: 14px;
  align-items: center;
}

.nav-btn {
  height: 64px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 7px 14px rgba(121, 83, 12, .12);
  transition: transform .15s ease, opacity .15s ease;
}

.nav-btn:not(:disabled):active {
  transform: translateY(2px);
}

.nav-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}

.prev {
  background: linear-gradient(90deg, #ffd23c, #ff9d18);
  color: #754300;
}

.next {
  background: linear-gradient(90deg, #b51f39, #ff656b);
  color: white;
}

.btn-arrow {
  font-size: 30px;
  vertical-align: -2px;
  margin-inline: 7px;
  font-weight: 400;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 220px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #ded8cd;
  padding: 0;
  cursor: pointer;
  transition: all .2s ease;
}

.dot.active {
  width: 22px;
  border-radius: 6px;
  background: #a02138;
}

@media (max-width: 992px) {
  .page-shell {
    margin: 10px;
    padding: 18px;
    border-radius: 20px;
  }

  .vocal-item {
    grid-template-columns:1fr;
    min-height: auto;
  }

  .coffee-photo {
    height: auto;
    max-height: 440px;
  }

  .voca-content {
    font-size: 44px;
  }
}

@media (max-width: 576px) {
  .page-shell {
    margin: 0;
    border-radius: 0;
    padding: 14px;
  }

  .top-row {
    align-items: flex-start;
  }

  .back-btn {
    min-width: 105px;
    height: 48px;
    font-size: 15px;
    border-radius: 14px;
  }

  .status-wrap {
    gap: 7px;
  }

  .pill {
    height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .lab-card {
    padding: 16px 14px;
  }

  .coffee-photo {
    height: 310px;
  }

  .voca-content {
    font-size: 38px;
  }

  .example-card {
    grid-template-columns:34px 1fr;
    padding: 12px;
  }

  .trainer {
    display: none;
  }

  .bottom-nav {
    grid-template-columns:1fr auto 1fr;
  }

  .progress-num {
    display: none;
  }

  .nav-btn {
    height: 56px;
    font-size: 15px;
  }
}
.lesson-card-story .lab-head {
  padding: 20px;
}
a.section-link {
  background: #d98d00;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 14px;
  padding: 10px 16px;
  display: inline-flex;
  margin-bottom: 10px;
}
a.section-link:hover, a.section-link.active {
  background: #d94555;
}
.main.lesson {
  border-radius: 0px 25px 25px 0px;
}

#fullscreen-btn {
  background: #a02138
}
.voca-modal-body {
  padding: 40px !important;
  font-size: 180px;
  font-weight: 800;
}
#vocaModal .modal-dialog {
  width: 95%;
  --bs-modal-width: 95%;
}

/* lesson detail */
:root {
  --primary: #680b19;
  --primary-2: #8b1022;
  --primary-soft: #fff2f4;
  --accent: #f59e0b;
  --text: #1d2340;
  --muted: #7f8499;
  --line: #ececf3;
  --panel: #fff;
  --bg: #f7f7fb;
  --success: #0fb9a8;
  --shadow: 0 16px 45px rgba(31, 35, 56, .08);
  --sidebar-w: 260px;
  --sidebar-mini: 74px;
}

.app-shell-lesson-detail {
  height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
  background: radial-gradient(circle at 80% 8%, rgba(104, 11, 25, .055), transparent 26%),
  linear-gradient(180deg, #fbfbfd 0%, #f7f7fb 100%);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 6px 0 28px rgba(32, 36, 55, .04);
  position: relative;
  z-index: 30;
  transition: width .28s ease, flex-basis .28s ease, transform .28s ease;
  overflow: hidden;
}

.sidebar-header {
  height: 94px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), #b52b43);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(104, 11, 25, .22);
  flex: 0 0 44px;
}
.brand-text {line-height: 1.1}
.brand-text strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.3px;
}
.brand-text span {
  font-size: 11px;
  color: #888c9c;
  font-weight: 500;
}

.nav-itemx {
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 26px;
  color: #31354c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 7px;
  position: relative;
  transition: .2s ease;
  white-space: nowrap;
}
.nav-itemx:hover {
  background: #faf6f7;
  color: var(--primary);
}
.nav-itemx.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(104, 11, 25, .12);
}
.nav-itemx.active:before {
  content: "";
  position: absolute;
  left: -12px;
  width: 4px;
  height: 25px;
  border-radius: 0 5px 5px 0;
  background: var(--primary);
}
.nav-icon {
  width: 31px;height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f5f5f8;
  font-size: 13px;
  flex: 0 0 31px;
}
.active .nav-icon {background: #fff;color: var(--primary)}

.sidebar-footer {
  position: absolute;
  bottom: 18px;
  left: 12px;
  right: 12px;
  padding: 14px;
  background: #faf8f9;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.avatar {
  width: 34px;height: 34px;border-radius: 50%;
  background: linear-gradient(145deg, #e8bd88, #9f5f35);
  flex: 0 0 34px;
}
.user-meta {min-width: 0;white-space: nowrap}
.user-meta strong {font-size: 12px;display: block}
.user-meta span {font-size: 10px;color: var(--muted)}

/* Collapsed desktop sidebar */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-mini);
  flex-basis: var(--sidebar-mini);
}
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-footer .user-meta {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}
body.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}
body.sidebar-collapsed .nav-itemx {
  justify-content: center;
}
body.sidebar-collapsed .nav-itemx.active:before {left: -10px}
body.sidebar-collapsed .sidebar-footer {padding: 10px;display: flex;justify-content: center}

/* Main area */
.main-lesson-detail {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 74px;
  flex: 0 0 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.topbar-left, .topbar-right {display: flex;align-items: center;gap: 12px}
.menu-toggle {
  width: 42px;height: 42px;
  border: 0;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(104, 11, 25, .18);
  transition: .2s ease;
}
.menu-toggle:hover {transform: translateY(-1px);background: var(--primary-2)}
.btn-back {
  height: 42px;
  padding: 0 17px;
  border-radius: 13px;
  border: 1px solid #eadfe1;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lesson-head {line-height: 1.15}
.lesson-head strong {display: block;font-size: 14px}
.lesson-head span {font-size: 11px;color: var(--muted)}

.pill {
  display: flex;align-items: center;gap: 7px;
  height: 38px;padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(22, 28, 45, .03);
}

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 26px;
}

.workspace {
  min-height: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.left-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lesson-nav-card,
.word-card,
.side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.lesson-nav-card {padding: 18px}
.lesson-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.lesson-nav-top h5 {margin: 0;font-weight: 800;font-size: 16px}
.lesson-nav-top small {color: var(--muted);font-size: 11px}
.step-count {
  display: flex;align-items: center;gap: 8px;
  color: var(--primary);font-weight: 800;font-size: 12px;
}
.step-badge {
  padding: 6px 10px;border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
}

.lesson-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lesson-chip {
  border: 0;
  padding: 9px 13px;
  border-radius: 11px;
  background: #f2f2f5;
  color: #5c6173;
  font-size: 11px;
  font-weight: 700;
  transition: .2s ease;
}
.lesson-chip.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 16px rgba(104, 11, 25, .16);
}
.lesson-chip.done {background: #fff3d9;color: #9a6500}
.lesson-chip:hover {transform: translateY(-1px)}

.word-card {
  flex: 1;
  min-height: 420px;
  padding: 26px;
  display: grid;
  grid-template-columns:minmax(330px, 46%) 1fr;
  gap: 34px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.word-card:after {
  content: "";
  width: 290px;height: 290px;
  position: absolute;
  right: -120px;top: -150px;
  border-radius: 50%;
  background: rgba(104, 11, 25, .04);
  pointer-events: none;
}

.visual-box {
  height: min(54vh, 520px);
  min-height: 350px;
  border: 1px solid #e9e9ef;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.visual-box img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(32, 36, 55, .08));
}
.img-placeholder {
  text-align: center;
  color: #b0b4c3;
}
.img-placeholder i {font-size: 54px;margin-bottom: 12px}

.word-info {padding: 8px 6px}
.tag-row {
  display: flex;align-items: center;gap: 8px;margin-bottom: 18px;
}
.sound-btn {
  width: 42px;height: 42px;border-radius: 13px;border: 0;
  background: #eaf8f7;color: var(--success);
  display: grid;place-items: center;
  font-size: 15px;
}
.mini-tag {
  padding: 7px 10px;border-radius: 999px;
  background: #fff1f3;color: var(--primary);
  font-size: 10px;font-weight: 800;
}
.fav {
  margin-left: auto;
  width: 42px;height: 42px;border: 1px solid var(--line);border-radius: 13px;
  display: grid;place-items: center;background: #fff;color: #c7c9d3;
}
.word-title {
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -2px;
  color: #2f337f;
  margin: 0 0 12px;
}
.phonetic {
  color: #785ad6;
  font-size: 14px;
  margin-bottom: 28px;
}
.example {
  display: flex;gap: 12px;align-items: flex-start;
  padding: 16px 17px;border-radius: 16px;
  background: #f8fafc;border: 1px solid #edf0f3;
  max-width: 520px;
}
.example .play {
  width: 34px;height: 34px;border: 0;border-radius: 50%;
  background: var(--success);color: #fff;flex: 0 0 34px;
}
.example small {color: var(--muted);font-size: 10px;font-weight: 700}
.example p {margin: 3px 0 0;font-size: 14px;font-weight: 600;color: #41465e}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 0 0;
}
.nav-btn {
  height: 52px;
  min-width: 150px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}
.nav-btn.prev {background: #f3e9eb;color: #aa8e93}
.nav-btn.next {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), #c12b42);
  color: #fff;
  box-shadow: 0 10px 22px rgba(104, 11, 25, .22);
}
.progress-wrap {
  flex: 1;
  display: flex;align-items: center;justify-content: center;gap: 10px;
}
.dots {display: flex;gap: 5px}
.dot {width: 8px;height: 8px;border-radius: 999px;background: #dedfe6}
.dot.active {width: 26px;background: var(--primary)}
.progress-text {font-size: 12px;font-weight: 800;color: var(--primary)}

/* Right sidebar */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-card {padding: 20px}
.side-title {
  display: flex;align-items: center;justify-content: space-between;
  margin-bottom: 15px;
}
.side-title h6 {margin: 0;font-size: 14px;font-weight: 800}
.side-title span {font-size: 10px;color: var(--muted)}
.stat-grid {
  display: grid;grid-template-columns:1fr 1fr;gap: 10px;
}
.stat-box {
  background: #fafafd;border: 1px solid var(--line);
  border-radius: 14px;padding: 13px;
}
.stat-box strong {display: block;font-size: 20px}
.stat-box span {font-size: 10px;color: var(--muted)}
.progress {
  height: 8px;background: #eeeef3;border-radius: 999px;
}
.progress-bar {background: var(--primary)}
.tip-card {
  background: linear-gradient(150deg, var(--primary), #9e1830);
  color: #fff;border: 0;
}
.tip-card p {font-size: 12px;line-height: 1.6;opacity: .86;margin: 0}
.tip-icon {
  width: 42px;height: 42px;border-radius: 13px;
  background: rgba(255, 255, 255, .12);
  display: grid;place-items: center;margin-bottom: 18px;
}
.quick-list {display: grid;gap: 10px}
.quick-item {
  display: flex;align-items: center;gap: 11px;
  border: 1px solid var(--line);border-radius: 13px;padding: 11px;
  background: #fff;
}
.quick-item i {
  width: 32px;height: 32px;border-radius: 10px;
  display: grid;place-items: center;
  background: #f7f0f2;color: var(--primary);
  font-size: 12px;
}
.quick-item strong {font-size: 11px;display: block}
.quick-item span {font-size: 9px;color: var(--muted)}

/* mobile */
.mobile-backdrop {
  display: none;
  position: fixed;inset: 0;
  background: rgba(18, 20, 30, .34);
  z-index: 29;
  backdrop-filter: blur(2px);
}

@media (max-width: 1180px) {
  .workspace {grid-template-columns:1fr}
  .right-col {display: none}
  .word-card {min-height: 510px}
}

@media (max-width: 850px) {
  body {overflow: auto}
  .app-shell-lesson-detail, .main-lesson-detail {height: 100dvh}
  .sidebar {
    position: fixed;
    left: 0;top: 0;
    width: min(82vw, 290px) !important;
    transform: translateX(-105%);
    box-shadow: 18px 0 45px rgba(0, 0, 0, .15);
  }
  body.mobile-menu-open .sidebar {transform: translateX(0)}
  body.mobile-menu-open .mobile-backdrop {display: block}
  body.sidebar-collapsed .brand-text,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .sidebar-footer .user-meta {
    opacity: 1;width: auto;pointer-events: auto;
  }
  body.sidebar-collapsed .sidebar-header {
    justify-content: flex-start;padding: 20px 18px;
  }
  body.sidebar-collapsed .nav-wrap {padding: 16px 12px}
  body.sidebar-collapsed .nav-itemx {justify-content: flex-start;padding: 0 13px}
  .topbar {padding: 0 16px}
  .lesson-head {display: none}
  .content {padding: 16px}
  .word-card {
    grid-template-columns:1fr;
    padding: 18px;
    gap: 22px;
  }
  .visual-box {height: 330px;min-height: 300px}
  .word-info {text-align: center}
  .tag-row {justify-content: center}
  .fav {margin-left: 0}
  .example {margin: 0 auto;text-align: left}
}

@media (max-width: 560px) {
  .topbar-right .pill:first-child {display: none}
  .btn-back span {display: none}
  .btn-back {width: 42px;padding: 0;justify-content: center}
  .lesson-nav-card {padding: 14px}
  .lesson-nav-top {align-items: flex-start}
  .lesson-nav-top small {display: none}
  .content {padding: 12px}
  .workspace {gap: 12px}
  .lesson-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .lesson-chip {white-space: nowrap}
  .word-card {border-radius: 18px}
  .visual-box {height: 290px;min-height: 260px}
  .word-title {font-size: 40px}
  .bottom-nav {gap: 8px}
  .nav-btn {min-width: 52px;width: 52px;padding: 0}
  .nav-btn span {display: none}
  .progress-wrap {gap: 7px}
  .dot {width: 6px;height: 6px}
  .dot.active {width: 20px}
}

/* Next / Previous vocabulary slider */
.word-card.slide-out-left {animation: outLeft .20s ease forwards}
.word-card.slide-in-right {animation: inRight .30s ease both}
.word-card.slide-out-right {animation: outRight .20s ease forwards}
.word-card.slide-in-left {animation: inLeft .30s ease both}
@keyframes outLeft {
  to {opacity: 0;transform: translateX(-55px)}
}
@keyframes inRight {
  from {opacity: 0;transform: translateX(55px)}
  to {opacity: 1;transform: none}
}
@keyframes outRight {
  to {opacity: 0;transform: translateX(55px)}
}
@keyframes inLeft {
  from {opacity: 0;transform: translateX(-55px)}
  to {opacity: 1;transform: none}
}
.nav-btn:disabled {opacity: .4;cursor: not-allowed;box-shadow: none}
@media (prefers-reduced-motion: reduce) {
  .word-card.slide-out-left, .word-card.slide-in-right,
  .word-card.slide-out-right, .word-card.slide-in-left {animation: none}
}
.path-lesson .page-wrapper {
  padding: 0px;
}
.path-lesson .form-item {
  margin-block: 0px;
}
.voca-item{
  display:none;
}

.voca-item.active{
  display:block;
}

.slide-left{
  animation:slideLeft .3s ease;
}

.slide-right{
  animation:slideRight .3s ease;
}

@keyframes slideLeft{
  from{
    opacity:0;
    transform:translateX(50px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes slideRight{
  from{
    opacity:0;
    transform:translateX(-50px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}
.locate {
  font-family: serif;
  text-transform: lowercase;
}
.word-title {
  font-family: emoji;
  font-weight: bold;
}