:root {
  --brand-primary: #28A8E0;
  --brand-primary-dark: #0070B8;
  --brand-accent: #00D4E8;
  --brand-navy: #0B1C2C;
  --brand-ink: #05080C;
  --brand-silver: #6E93AE;
  --brand-surface: #E8F6FC;
  --brand-white: #ffffff;
  --font-display: "Cairo", sans-serif;
  --font-body: "Cairo", sans-serif;
}

* { box-sizing: border-box; }

body.site-body {
  margin: 0;
  font-family: var(--font-body);
  color: #123;
  background: #F5FBFE;
}

a { color: var(--brand-primary-dark); text-decoration: none; }
a:hover { color: var(--brand-primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 28, 44, 0.06);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--brand-navy);
}

.brand-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-inline-end: 0.35rem;
}

.lang-switch a {
  color: #5d84a0;
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--brand-primary-dark);
  border-color: rgba(40, 168, 224, 0.35);
  background: rgba(40, 168, 224, 0.06);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  border: none;
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.75rem 1.45rem;
  font-weight: 700;
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  filter: brightness(1.06);
}

.btn-brand-outline {
  border: 1px solid rgba(11, 28, 44, 0.14);
  color: var(--brand-navy);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.btn-brand-outline:hover {
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary);
  background: rgba(40, 168, 224, 0.06);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: var(--brand-navy);
  padding: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 88px);
  min-height: calc(100vh - 88px);
}

.hero-math-floaters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.math-item {
  position: absolute;
  color: #005a96;
  opacity: 0.2;
  font-family: "Cairo", Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  will-change: transform;
}

.math-item.m1 {
  top: 14%;
  inset-inline-start: 8%;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  animation: mathDriftA 9s ease-in-out infinite;
}

.math-item.m2 {
  top: 22%;
  inset-inline-end: 10%;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  animation: mathDriftB 11s ease-in-out infinite;
}

.math-item.m3 {
  top: 58%;
  inset-inline-start: 4%;
  font-size: clamp(2.3rem, 3.8vw, 3.3rem);
  animation: mathDriftC 10s ease-in-out infinite;
}

.math-item.m4 {
  top: 68%;
  inset-inline-end: 18%;
  font-size: clamp(3rem, 4.8vw, 4.2rem);
  animation: mathDriftA 12s ease-in-out infinite reverse;
}

.math-item.m5 {
  top: 38%;
  inset-inline-start: 42%;
  font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  animation: mathDriftB 8.5s ease-in-out infinite;
}

.math-item.m6 {
  top: 12%;
  inset-inline-start: 55%;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  animation: mathDriftC 13s ease-in-out infinite reverse;
}

@keyframes mathDriftA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -14px) rotate(6deg); }
}

@keyframes mathDriftB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, 10px) rotate(-5deg); }
}

@keyframes mathDriftC {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(8px, 12px) rotate(4deg); }
}

@media (max-width: 991.98px) {
  .math-item.m5,
  .math-item.m6 {
    opacity: 0.1;
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-row {
  width: 100%;
  min-height: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 0.5rem 1rem;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--brand-primary-dark);
  background: rgba(40, 168, 224, 0.08);
  border: 1px solid rgba(40, 168, 224, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: #3f6f8f;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  max-width: 34rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-actions .btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.12rem;
}

.hero-visual {
  display: flex;
  justify-content: left;
  align-items: flex-end;
  position: relative;
  min-height: 320px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(82%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 168, 224, 0.14), rgba(0, 112, 184, 0.04) 55%, transparent 70%);
  bottom: 8%;
  z-index: 0;
  animation: pulseSoft 6s ease-in-out infinite;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  max-height: min(62vh, 560px);
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  animation: floatSoft 5.5s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hero-wave {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin-top: auto;
  line-height: 0;
  width: 100%;
  overflow: hidden;
}

.hero-wave svg {
  display: block;
  width: calc(100% + 160px);
  max-width: none;
  height: 118px;
  margin-inline-start: -80px;
}

.wave-path {
  animation: waveShift 3s ease-in-out infinite;
  will-change: transform;
  transform-box: fill-box;
  transform-origin: center;
}

.wave-back {
  fill: rgba(40, 168, 224, 0.38);
  animation-duration: 3.4s;
}

.wave-mid {
  fill: rgba(0, 180, 220, 0.22);
  animation-duration: 2.6s;
  animation-direction: reverse;
}

.wave-front {
  fill: #D7F0FA;
  animation-duration: 2.2s;
  animation-direction: reverse;
}

@keyframes waveShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-row {
    padding-top: 0.35rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-image {
    max-height: 420px;
  }

  .hero-copy {
    text-align: center;
    padding-bottom: 0.25rem;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-wave svg {
    height: 88px;
  }
}

.section-block {
  padding: 4.5rem 0;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.heading-line {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-accent));
  margin-bottom: 1.75rem;
}

.courses-section {
  background: linear-gradient(180deg, #D7F0FA 0%, var(--brand-surface) 28%, #F5FBFE 100%);
}

.empty-state {
  background: #fff;
  border: 1px dashed rgba(0, 112, 184, 0.28);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #3f6f8f;
}

.empty-state i {
  font-size: 2rem;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.about-panel {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 18px 50px rgba(11, 28, 44, 0.06);
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  background: #ffffff;
}

.about-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 28, 44, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 28, 44, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.about-layout {
  position: relative;
  z-index: 1;
}

.about-portrait {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.about-portrait-glow {
  position: absolute;
  inset: 8% 6% auto;
  height: 72%;
  border-radius: 2rem;
  background: linear-gradient(160deg, rgba(40, 168, 224, 0.35), rgba(0, 112, 184, 0.18));
  filter: blur(18px);
  z-index: 0;
  animation: pulseSoft 7s ease-in-out infinite;
}

.about-teacher-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  animation: floatSoft 6s ease-in-out infinite;
}

.about-portrait-caption {
  position: relative;
  z-index: 2;
  margin-top: -0.75rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.2rem;
  border-radius: 1rem;
  background: rgba(11, 28, 44, 0.92);
  color: #fff;
  box-shadow: 0 16px 36px rgba(11, 28, 44, 0.22);
}

.about-portrait-caption span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
}

.about-portrait-caption strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.about-copy {
  padding-block: 0.5rem;
}

.about-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--brand-primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.about-text {
  color: #355f7a;
  line-height: 2;
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
  max-width: 40rem;
  text-align: start;
}

.about-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 1.02rem;
}

.about-highlights i {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(40, 168, 224, 0.16), rgba(0, 112, 184, 0.1));
  color: var(--brand-primary-dark);
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .about-section { padding: 4rem 0; }
  .about-copy { text-align: center; }
  .about-text { margin-inline: auto; text-align: center; }
  .about-copy .heading-line { margin-inline: auto; }
  .about-highlights li { justify-content: center; }
  .about-portrait-caption { margin-inline: auto; }
}

.page-section {
  background: var(--brand-surface);
  min-height: 50vh;
}

.content-panel {
  background: #fff;
  border-radius: 1.1rem;
  padding: 2rem;
  box-shadow: 0 14px 40px rgba(11, 28, 44, 0.06);
}

.auth-panel { max-width: 560px; margin: 0 auto; }

.page-title {
  font-family: var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 1.25rem;
}

.page-body {
  line-height: 1.9;
  color: #355f7a;
}

.site-footer {
  background: var(--brand-navy);
  color: var(--brand-silver);
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.footer-desc {
  line-height: 1.9;
  max-width: 36rem;
  color: #c5d2dc;
  font-size: 1rem;
}

.footer-contacts li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.footer-contacts a,
.footer-pages a,
.social-links a {
  color: #d7dee4;
}

.footer-social-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 1.2rem;
}

.social-links a,
.social-links .social-link-disabled {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef3;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.social-links a:hover {
  background: rgba(0, 212, 232, 0.18);
  color: var(--brand-accent);
  transform: translateY(-2px);
}

.social-links .social-link-disabled {
  opacity: 0.45;
  cursor: default;
}

.social-links a:hover,
.footer-contacts a:hover,
.footer-pages a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b97a3;
  font-size: 0.92rem;
}

.footer-sep {
  margin-inline: 0.45rem;
  opacity: 0.65;
}

.footer-powered {
  color: #d7dee4;
  font-weight: 700;
  text-decoration: none;
}

.footer-powered:hover {
  color: var(--brand-accent);
}

.category-card {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(11, 28, 44, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 112, 184, 0.14);
  color: inherit;
}

.category-card-media img,
.course-card-media img,
.course-side-image,
.category-hero-thumb {
  width: 100%;
  display: block;
}

.category-card-media img {
  height: auto;
  object-fit: contain;
}
.course-card-media img,
.course-side-image,
.category-hero-thumb {
  object-fit: cover;
}
.course-card-media img { height: 180px; }
.category-hero-thumb {
  width: 110px;
  height: 80px;
  border-radius: 0.75rem;
}
.course-side-image {
  height: 180px;
  border-radius: 0.85rem;
}

.category-card-body,
.course-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.category-card-body h3,
.course-card-body h2 {
  color: var(--brand-navy);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.category-card-body p,
.course-card-desc,
.course-lead {
  color: #3f6f8f;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.category-count {
  display: inline-block;
  background: rgba(40, 168, 224, 0.1);
  color: var(--brand-primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.course-card {
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11, 28, 44, 0.06);
}

.course-price strong,
.course-side-price strong {
  color: var(--brand-primary-dark);
  font-size: 1.15rem;
}

.old-price {
  margin-inline-start: 0.45rem;
  color: #8aa4b8;
  text-decoration: line-through;
  font-size: 0.92rem;
}

.course-announcement-bar {
  background: rgba(40, 168, 224, 0.1);
  border: 1px solid rgba(40, 168, 224, 0.2);
  color: var(--brand-primary-dark);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.course-stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.course-stats-strip .stat {
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(11, 28, 44, 0.05);
}

.course-stats-strip .stat span {
  display: block;
  color: #5d84a0;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.course-stats-strip .stat strong {
  color: var(--brand-navy);
  font-size: 1.2rem;
}

.course-sidebar {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(11, 28, 44, 0.06);
  position: sticky;
  top: 100px;
}

.course-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-side-nav a {
  color: #355f7a;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
}

.course-side-nav a:hover,
.course-side-nav a.active {
  background: rgba(40, 168, 224, 0.1);
  color: var(--brand-primary-dark);
}

.course-announcement-bar[data-ticker] {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.course-ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: course-ticker 28s linear infinite;
  min-width: 100%;
}

.course-ticker-track a {
  color: var(--brand-primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.course-ticker-track a:hover {
  text-decoration: underline;
}

@keyframes course-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

html[dir="rtl"] .course-ticker-track {
  animation-name: course-ticker-rtl;
}

@keyframes course-ticker-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.course-lessons-accordion .accordion-item {
  border: 1px solid rgba(40, 168, 224, 0.18);
  border-radius: 0.85rem !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}

.course-lessons-accordion .accordion-button {
  font-weight: 700;
  color: var(--brand-navy);
  box-shadow: none;
  gap: 0.75rem;
}

.course-lessons-accordion .accordion-button:not(.collapsed) {
  background: rgba(40, 168, 224, 0.08);
  color: var(--brand-primary-dark);
}

.lesson-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(40, 168, 224, 0.15);
  color: var(--brand-primary-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.lesson-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(11, 28, 44, 0.1);
}

.lesson-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.lesson-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lesson-subsection {
  margin-bottom: 0.9rem;
}

.lesson-video-card {
  display: block;
  text-decoration: none;
  color: var(--brand-navy);
  background: #f7fbfe;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(40, 168, 224, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 28, 44, 0.08);
  color: var(--brand-primary-dark);
}

.lesson-video-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #e8f4fb;
}

.lesson-video-card span {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.lesson-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-notes-list li {
  margin-bottom: 0.4rem;
}

.lesson-notes-list a {
  text-decoration: none;
  color: #355f7a;
  font-weight: 600;
}

.lesson-notes-list a:hover {
  color: var(--brand-primary-dark);
}

.lesson-practice-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(40, 168, 224, 0.06);
  margin-bottom: 0.65rem;
}

.practice-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.practice-progress {
  text-align: end;
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 28px rgba(11, 28, 44, 0.05);
}

.practice-stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.practice-card .practice-question-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.7;
}

.practice-q-image {
  max-width: 100%;
  border-radius: 0.75rem;
}

.practice-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(40, 168, 224, 0.22);
  background: #fff;
  cursor: pointer;
  margin: 0;
}

.practice-option input {
  margin: 0;
}

.practice-option .opt-letter {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 168, 224, 0.12);
  color: var(--brand-primary-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.practice-option-tf {
  min-width: 7rem;
  justify-content: center;
}

.practice-option.is-correct {
  border-color: #198754;
  background: rgba(25, 135, 84, 0.08);
}

.practice-option.is-wrong {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.practice-feedback {
  border-top: 1px dashed rgba(11, 28, 44, 0.12);
  padding-top: 1rem;
}

.practice-explanation {
  background: rgba(40, 168, 224, 0.08);
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
}

.practice-map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.practice-map-item {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: #355f7a;
  background: #f3f8fc;
  border: 1px solid rgba(40, 168, 224, 0.18);
}

.practice-map-item.correct {
  background: rgba(25, 135, 84, 0.15);
  color: #146c43;
  border-color: rgba(25, 135, 84, 0.35);
}

.practice-map-item.wrong {
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
  border-color: rgba(220, 53, 69, 0.3);
}

.practice-map-item.current {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

.exam-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 28px rgba(11, 28, 44, 0.05);
}

.exam-timer {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  font-variant-numeric: tabular-nums;
}

.exam-timer.is-critical {
  color: #dc3545;
  animation: exam-pulse 1s ease infinite;
}

@keyframes exam-pulse {
  50% { opacity: 0.55; }
}

.exam-rules {
  padding-inline-start: 1.2rem;
  line-height: 1.9;
}

.exam-score-hero .text-brand,
.text-brand {
  color: var(--brand-primary-dark);
}

.stats-page .stat-card-lite strong.text-success {
  color: #198754 !important;
}

.stats-page .stat-card-lite strong.text-danger {
  color: #dc3545 !important;
}

.page-section .btn-brand-outline {
  color: var(--brand-navy);
  border-color: rgba(11, 28, 44, 0.14);
  background: #fff;
}

@media (max-width: 991.98px) {
  .course-stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .course-sidebar { position: static; }
}

.stat-card-lite {
  background: #fff;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 28px rgba(11, 28, 44, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-card-lite span { color: #5d84a0; font-size: 0.9rem; }
.stat-card-lite strong { color: var(--brand-navy); font-size: 1.35rem; }

/* Course posts */
a.post-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 28, 44, 0.06);
  border: 1px solid rgba(11, 28, 44, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(40, 168, 224, 0.14);
  color: inherit;
}
a.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.post-card-body { padding: 1rem 1.15rem 1.2rem; }
.post-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.85rem;
}
.post-body { line-height: 1.85; color: #30485c; }
.post-comment {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(40, 168, 224, 0.06);
  border: 1px solid rgba(40, 168, 224, 0.12);
}
.post-reactions .btn { min-width: 7rem; }

@media (max-width: 767.98px) {
  .brand-logo { width: 58px; height: 58px; }
  .about-panel, .content-panel { padding: 1.35rem; }
  .course-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.list-unstyled{padding-right: 0 !important;}