 * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", Arial, sans-serif;
  background: conic-gradient(from 125deg at 51.09% 50%, #fef7ff 107deg, #fff8ec 227deg);
  color: #4e005c;
  min-height: 100vh;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 8px 40px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 20px;
}

.logo {
  width: auto;
  max-width: 180px;
  height: auto;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(237, 224, 245, 0.5);
  border-radius: 999px;
  padding: 6px;
}

.nav-link {
  text-decoration: none;
  color: #4e005c;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(12px, 1.2vw, 14px);
}

.nav-link.active {
  background: #ffffff;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-weight: 700;
  font-size: 18px;
}

.user-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(138deg, #dcc8ea 0%, #ede0f5 85%);
}

/* Main content */
.content {
  max-width: 963px;
  margin: 0 auto;
  direction: rtl;
  text-align: right;
  padding-bottom: 56px;
}

.breadcrumb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pill-btn {
  background: #c0a8d8;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.crumb.current {
  color: #917acc;
}

.crumb-arrow {
  color: #c0a8d8;
  font-weight: bold;
}

.tabs {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  border: none;
  background: #ede0f5;
  color: #4e005c;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, #c0a8d8 0%, #917acc 100%);
  box-shadow: 0 4px 12px rgba(145, 122, 204, 0.3);
}

.lesson-grid {
  display: flex;
  
  gap: 7px;
  justify-content: center;
  margin-bottom: 6px;
  margin-top: 10px;
}

.lesson-card {
  background: var(--clr-white);
  border: 2px solid var(--clr-primary-lighter);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(78, 0, 92, 0.10);
  width: 78%;
  max-width: 720px;
  margin: 6px auto;
}
lesson-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
  
}
.lesson-card p {
  font-size: 12px;
  line-height: 1.4;
}

.lesson-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6efff;
  color: #4e005c;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}

.lesson-step {
  color: #917acc;
  font-size: 13px;
  font-weight: 700;
}

.practice-card {
  background: linear-gradient(180deg, #fff9ff 0%, #f7f0ff 100%);
  border: 1px solid rgba(145, 122, 204, 0.18);
  border-radius: 30px;
  padding: 22px 18px;
  margin-top: -25px;
  box-shadow: 0 24px 50px rgba(145, 122, 204, 0.12);
}

.practice-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  margin-bottom: 24px;
}

.practice-subtitle {
  color: #6d4e8d;
  font-size: 30px;
  line-height: 1.7;
}

.abacus-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.practice-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.hint-pill {
  background: #ede0f5;
  color: #4e005c;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}

.lesson-card h1 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

.lesson-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.lesson-illustration {
  display: flex;
  justify-content: center;
  margin: 6px 0 8px;
}

.lesson-illustration-image {
  width: 170px;
  height: auto;
  display: block;
}

.notes-box {
  background: var(--clr-white);
  border: 2px solid var(--clr-primary-lighter);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 8px;
}

.notes-box h2 {
  color: #917acc;
  font-size: 14px;
  margin-bottom: 16px;
}

.notes-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notes-box li {
  position: relative;
  padding-right: 34px;
  line-height: 1.6;
  font-size: 14px;
}

.notes-box li::before {
  content: counter(list-item);
  position: absolute;
  right: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #c0a8d8;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Practice */
.practice-box {
  text-align: center;
  padding: 16px 0;
}

.practice-title {
  color: #917acc;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.abacus {
  width: 216px;
  height: 170px;
  margin: 0 auto 10px;
  position: relative;
}

.bar {
  position: absolute;
  left: 4px;
  width: 208px;
  height: 7px;
  background: #4e005c;
}

.bar.top {
  top: 0;
}

.bar.middle {
  top: 34px;
}

.bar.bottom {
  top: 144px;
}

.rod {
  position: absolute;
  top: 3px;
  width: 11px;
  height: 149px;
  background: #4e005c;
}

.bead {
  width: 52px;
  height: 20px;
  position: absolute;
  left: -20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5d09b 0%, #d4a055 100%);
}

.bead.active {
  background: linear-gradient(180deg, #f5d09b 0%, #ecc47d 34%, #d4a055 100%);
}

.upper {
  top: 0;
}

.lower:nth-of-type(2) {
  top: 62px;
}

.lower:nth-of-type(3) {
  top: 83px;
}

.lower:nth-of-type(4) {
  top: 104px;
}

.lower:nth-of-type(5) {
  top: 125px;
}

.abacus-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

/* Footer */
.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 980px;
  margin: 8px auto 20px;
  padding: 18px 24px;
  background: rgba(237, 224, 245, 0.6);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(145, 122, 204, 0.12);
  position: static;
}

.nav-btn {
  border: none;
  border-radius: 60px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
}

.nav-btn.next {
  background: #917acc;
}

.nav-btn.prev {
  background: #c0a8d8;
  opacity: 0.3;
  cursor: not-allowed;
}

.dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #dcc8ea;
  border-radius: 50%;
  display: inline-block;
}

.dots span.active {
  width: 13px;
  height: 13px;
  background: #917acc;
}

/* Responsive */
@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
    align-items: center;
  }

  .breadcrumb-row,
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .tabs {
    justify-content: center;
  }

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

  .practice-card {
    padding: 22px 18px;
  }

  .nav-btn {
    width: 100%;
  }

  .dots {
    justify-content: center;
  }

  .lesson-card {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .lesson-card h1 {
    font-size: 18px;
  }

  .lesson-text {
    font-size: 14px;
  }

  .abacus {
    width: 100%;
    max-width: 216px;
  }
}

@media (max-width: 480px) {
  .top-header {
    gap: 12px;
  }

  .user-name {
    font-size: 15px;
  }

  .pill-btn {
    padding: 8px 18px;
    font-size: 13px;
  }

  .tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .lesson-badge {
    padding: 8px 12px;
    font-size: 11px;
  }
}
/* page 2*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", Arial, sans-serif;
  background: conic-gradient(from 125deg at 51.09% 50%, #fef7ff 107deg, #fff8ec 227deg);
  color: #4e005c;
  min-height: 100vh;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 24px 40px;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.logo {
  width: auto;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(237, 224, 245, 0.5);
  padding: 6px;
  border-radius: 999px;
}

.nav-link {
  text-decoration: none;
  color: #4e005c;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: 0.3s;
}

.nav-link.active {
  background: linear-gradient(135deg, #c0a8d8 0%, #917acc 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(145, 122, 204, 0.3);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 18px;
  font-weight: 700;
}

.user-avatar {
  width: 80px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(138deg, #dcc8ea 0%, #ede0f5 85%);
}

/* Container */
.container {
  max-width: 980px;
  margin: 0 auto;
}

/* Breadcrumb row */
.breadcrumb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pill-btn {
  background: #c0a8d8;
  color: white;
  border: none;
  border-radius: 60px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.crumb.current {
  color: #917acc;
}

.crumb {
  color: #4e005c;
}

.crumb-arrow {
  color: #c0a8d8;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  position: relative;
  top:-80;
  margin-top: -35px;
  margin-bottom:20px;
  flex-wrap: wrap;
}

.tab {
  background: #ede0f5;
  color: #4e005c;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, #c0a8d8 0%, #917acc 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(145, 122, 204, 0.3);
}

/* Lesson card */
.lesson-card {
  background: var(--clr-white);
  border: 3px solid var(--clr-primary-lighter);
  border-radius: 30px;
  padding: 18px;
  position: relative important;
  top: 30px ;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(17, 6, 19, 0.18);
}

.lesson-title {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}

.lesson-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.important-box {
  background: var(--clr-white);
  border: 2px solid var(--clr-primary-lighter);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}

.important-box h2 {
  color: #917acc;
  font-size: 16px;
  margin-bottom: 16px;
}

.point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.point-number {
  width: 24px;
  height: 24px;
  background: #c0a8d8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.point p {
  font-size: 14px;
  color: #4e005c;
}

/* Abacus section */
.abacus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.abacus-item {
  min-width: 0;
  text-align: center;
}

.abacus-shape {
  height: 110px;
  border-radius: 20px;
  background: transparent;
  border: none;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.abacus-image {
  width: auto;
  height: 135px;
  max-width: 100%;
  display: block;
}

.abacus-image-10 {
  height: 110px;
}

.abacus-image-17 {
  height: 110px;
}

.abacus-image-50 {
  height: 110px;
}

.abacus-number {
  font-size: 22px;
  font-weight: 700;
  color: #c0a8d8;
}

/* Bottom nav */
.bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 10px;
}

.nav-btn {
  border: none;
  border-radius: 60px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-btn.next {
  background:var(--grad-btn);
  color: white;
}

.nav-btn.prev {
  background: #c0a8d8;
  color: white;
}

.nav-btn.disabled {
  opacity: 0.3;
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #fff8ec;
  border-radius: 50%;
}

.dots span.active {
  width: 13px;
  height: 13px;
  background: #917acc;
}

@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
  }

  .breadcrumb-row,
  .bottom-nav {
    flex-direction: column;
    gap: 16px;
  }

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

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .lesson-title {
    font-size: 20px;
  }

  .lesson-desc {
    font-size: 14px;
  }

  .nav-btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  .abacus-number {
    font-size: 16px;
  }
 
}
.content{
    transform: translateY(-60px);
  }
  .footer-nav{
    transform: translateY(0px);
  }

body {
  overflow-x: hidden !important;
}

.page {
  min-height: 100vh !important;
  padding: 6px 40px !important;
  overflow: hidden !important;
}

.container {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

.top-header {
  margin-bottom: 6px !important;
}

.logo {
  max-width: 160px !important;
}

.user-avatar {
  width: 58px !important;
  height: 58px !important;
}

.content {
  max-width: 980px !important;
  margin: 0 auto !important;
  padding-bottom: 0 !important;
  transform: translateY(-38px) !important;
}

.tabs {
  margin-bottom: 8px !important;
  justify-content: flex-start !important;
}

.tab {
  padding: 8px 18px !important;
  font-size: 13px !important;
}

.lesson-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.lesson-card {
  width: 88% ;
  max-width: 880px ;
  min-height: auto ;
  padding: 12px 18px ;
  margin: 0 auto 8px auto ;
  border-radius: 24px ;
  border: 2px solid var(--clr-primary-lighter) ;
  box-shadow: 0 4px 12px rgba(78, 0, 92, 0.12) ;
}

.lesson-card h1,
.lesson-title {
  font-size: 22px !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.lesson-card h2,
.important-box h2,
.notes-box h2 {
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

.lesson-text,
.lesson-desc,
.lesson-card p {
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-bottom: 8px !important;
}

.notes-box,
.important-box {
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  border-radius: 14px !important;
}

.notes-box ul {
  gap: 4px !important;
}

.notes-box li,
.point p {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.point {
  margin-bottom: 4px !important;
}

.point-number,
.notes-box li::before {
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
}

.lesson-illustration {
  margin: 4px 0 2px !important;
}

.lesson-illustration-image {
  width: 145px !important;
  height: auto !important;
}

.abacus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: end !important;
}

.abacus-shape {
  height: 92px !important;
  margin-bottom: 2px !important;
  padding: 2px !important;
}

.abacus-image,
.abacus-image-10,
.abacus-image-17,
.abacus-image-50 {
  height: 92px ;
  width: auto;
  max-width: 100% ;
  display: block ;
}

.abacus-number {
  font-size: 16px ;
  line-height: 1 !important;
}

.footer-nav,
.bottom-nav {
  width: 88% ;
  max-width: 880px ;
  margin: 4px auto 0 auto ;
  padding: 10px 20px ;
  border-radius: 22px ;
  transform: translateY(-5px) ;
}

.nav-btn {
  padding: 8px 22px ;
  font-size: 13px ;
}

.dots span {
  width: 8px ;
  height: 8px ;
}

.dots span.active {
  width: 11px ;
  height: 11px ;
}