﻿/* =========================================================
   NABD — Marketing surfaces: landing, catalogue, checkout.
   Builds on the tokens in theme.css.
   ========================================================= */

.ostazy-site {
  overflow-x: hidden;
}

/* ---------- Top bar ---------- */

.ostazy-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  /* The frosted bar over the hero. Tied to the surface colour so it frosts the dark
     background in the dark rather than staying a white strip across the top. */
  background: color-mix(in srgb, var(--ostazy-surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ostazy-line);
}

.ostazy-topbar .nav-link {
  font-weight: 600;
  color: var(--ostazy-primary);
  padding-inline: 0.85rem;
}

.ostazy-topbar .nav-link:hover {
  color: var(--ostazy-secondary);
}

.ostazy-topbar .btn {
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-weight: 700;
}

/* ---------- Hero ---------- */

.ostazy-hero {
  position: relative;
  background: var(--ostazy-gradient-deep);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 8rem);
  border-radius: 0 0 var(--ostazy-radius-xl) var(--ostazy-radius-xl);
  overflow: hidden;
}

.ostazy-hero h1,
.ostazy-hero h2 {
  color: #fff;
}

.ostazy-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  pointer-events: none;
}

.ostazy-hero__blob--teal {
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle at 30% 30%, #6366F1, transparent 70%);
  inset-inline-start: -8rem;
  top: -6rem;
}

.ostazy-hero__blob--amber {
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle at 70% 70%, #FF6B4A, transparent 70%);
  inset-inline-end: -5rem;
  bottom: -7rem;
}

.ostazy-hero__title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.25;
  font-weight: 800;
}

.ostazy-hero__title .accent {
  background: var(--ostazy-gradient-amber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The SEO headline (the page's H1) as a short line over the slogan, when one is set. */
.ostazy-hero__kicker {
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.ostazy-hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  line-height: 2;
}

/* How it works, as a path: a coral number per step, a dashed line joining them, the key
   words in white and the rest a step back. Each line rises in after the one before it. */
.ostazy-hero__steps {
  list-style: none;
  counter-reset: hero-step;
  margin: 0;
  padding: 0;
  max-width: 34rem;
  display: grid;
  gap: 0.85rem;
}
.ostazy-hero__steps li {
  counter-increment: hero-step;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.9rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: rgba(255, 255, 255, 0.78);
  animation: ostazy-step-in 0.55s ease-out both;
}
.ostazy-hero__steps li::before {
  content: counter(hero-step);
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ostazy-gradient-amber);
  color: var(--ostazy-ink);
  font-family: var(--ostazy-font-display);
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(var(--ostazy-accent-rgb), 0.22), 0 6px 16px -6px rgba(var(--ostazy-accent-rgb), 0.8);
}
/* The dashed joint from one number down to the next. */
.ostazy-hero__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(1rem + 1.05rem - 1px);
  top: calc(50% + 1.05rem);
  height: calc(0.85rem + 0.55rem * 2 - 0.2rem);
  border-inline-start: 2px dashed rgba(var(--ostazy-accent-rgb), 0.55);
}
.ostazy-hero__steps strong {
  color: #fff;
  font-weight: 700;
}
.ostazy-hero__steps li:nth-child(2) { animation-delay: 0.12s; }
.ostazy-hero__steps li:nth-child(3) { animation-delay: 0.24s; }
.ostazy-hero__steps li:nth-child(4) { animation-delay: 0.36s; }
@keyframes ostazy-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ostazy-hero__steps li { animation: none; }
}

.ostazy-hero__actions .btn {
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
  font-weight: 700;
  font-size: 1.05rem;
}

/* The one thing to press: coral, with the ink on it - white on coral is only 2.8:1. */
.btn-hero {
  background: var(--ostazy-accent);
  border: none;
  color: var(--ostazy-ink);
  font-weight: 700;
  box-shadow: 0 12px 28px -12px rgba(255, 107, 74, 0.85);
}

.btn-hero:hover,
.btn-hero:focus {
  background: var(--ostazy-accent-600);
  color: var(--ostazy-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(255, 107, 74, 0.95);
}

.btn-hero-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Floating glass card in the hero */
.ostazy-hero__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ostazy-radius-lg);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  color: #fff;
}

.ostazy-hero__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
}

.ostazy-hero__row + .ostazy-hero__row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ostazy-hero__row .icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.2rem;
}

/* ---------- Stat strip ---------- */

.ostazy-stats {
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.ostazy-stats__inner {
  background: var(--ostazy-surface);
  border-radius: var(--ostazy-radius-lg);
  box-shadow: var(--ostazy-shadow-lg);
  padding: 1.75rem 1rem;
}

.ostazy-stat {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.ostazy-stat__value {
  font-family: var(--ostazy-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--ostazy-primary);
  line-height: 1.1;
}

.ostazy-stat__label {
  color: var(--ostazy-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

/* ---------- Sections ---------- */

.ostazy-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.ostazy-section--tint {
  background: linear-gradient(180deg, var(--ostazy-surface-2) 0%, var(--ostazy-bg) 100%);
}

.ostazy-section__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ostazy-secondary);
  background: rgba(var(--ostazy-secondary-rgb), 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.ostazy-section__title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.ostazy-section__lead {
  color: var(--ostazy-muted);
  max-width: 42rem;
  line-height: 2;
  margin-inline: auto;
}

/* ---------- Steps ---------- */

.ostazy-step {
  position: relative;
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius);
  padding: 1.6rem 1.35rem 1.35rem;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ostazy-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--ostazy-shadow);
}

.ostazy-step__num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-family: var(--ostazy-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: var(--ostazy-gradient-deep);
  margin-bottom: 0.9rem;
}

/* Each step sits in its own grid column, so the cycle is driven from the column. */
.ostazy-steps-row > [class*="col"]:nth-child(2) .ostazy-step__num {
  background: var(--ostazy-gradient-teal);
}

.ostazy-steps-row > [class*="col"]:nth-child(3) .ostazy-step__num {
  background: var(--ostazy-gradient-amber);
}

.ostazy-steps-row > [class*="col"]:nth-child(4) .ostazy-step__num {
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 100%);
}

.ostazy-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.ostazy-step p {
  color: var(--ostazy-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.9;
}

/* ---------- Course cards ---------- */

.ostazy-course {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ostazy-course:hover {
  transform: translateY(-6px);
  box-shadow: var(--ostazy-shadow-lg);
  border-color: rgba(var(--ostazy-secondary-rgb), 0.35);
}

.ostazy-course__banner {
  position: relative;
  padding: 1.5rem 1.4rem;
  color: #fff;
  background: var(--ostazy-gradient-deep);
}

.ostazy-course:nth-child(2n) .ostazy-course__banner {
  background: var(--ostazy-gradient-teal);
}

.ostazy-course__grade {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.6rem;
}

.ostazy-course__name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
}

.ostazy-course__body {
  padding: 1.35rem 1.4rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.ostazy-course__desc {
  color: var(--ostazy-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.ostazy-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.ostazy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ostazy-surface-2);
  color: var(--ostazy-primary);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.ostazy-course__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ostazy-line);
}

.ostazy-price {
  font-family: var(--ostazy-font-display);
  font-weight: 800;
  color: var(--ostazy-primary);
  line-height: 1.2;
}

.ostazy-price__amount {
  font-size: 1.5rem;
}

.ostazy-price__cur {
  font-size: 0.9rem;
  color: var(--ostazy-muted);
  font-weight: 600;
}

.ostazy-price__from {
  display: block;
  font-size: 0.78rem;
  color: var(--ostazy-muted);
  font-weight: 600;
}

.ostazy-course .btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
}

/* ---------- Pricing / plan cards ---------- */

.ostazy-plan {
  position: relative;
  height: 100%;
  background: var(--ostazy-surface);
  border: 1.5px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  padding: 1.9rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ostazy-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--ostazy-shadow);
}

.ostazy-plan--featured {
  border-color: var(--ostazy-secondary);
  box-shadow: var(--ostazy-shadow);
}

.ostazy-plan__badge {
  position: absolute;
  top: -0.85rem;
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  background: var(--ostazy-gradient-teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ostazy-plan__type {
  font-weight: 700;
  color: var(--ostazy-secondary);
  margin-bottom: 0.35rem;
}

.ostazy-plan__name {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.ostazy-plan__price {
  font-family: var(--ostazy-font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ostazy-primary);
  line-height: 1;
}

.ostazy-plan__period {
  color: var(--ostazy-muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.ostazy-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  color: var(--ostazy-muted);
  font-size: 0.95rem;
}

.ostazy-plan__features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.35rem 0;
}

.ostazy-plan__features li::before {
  content: "✓";
  color: var(--ostazy-success);
  font-weight: 800;
  flex: 0 0 auto;
}

.ostazy-plan .btn {
  margin-top: auto;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
}

/* ---------- Fawry payment panel ---------- */

.ostazy-pay {
  max-width: 44rem;
  margin-inline: auto;
}

.ostazy-pay__card {
  background: var(--ostazy-surface);
  border-radius: var(--ostazy-radius-lg);
  box-shadow: var(--ostazy-shadow);
  overflow: hidden;
}

.ostazy-pay__head {
  background: var(--ostazy-gradient-deep);
  color: #fff;
  padding: 1.6rem 1.5rem;
  text-align: center;
}

.ostazy-pay__head h1 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
}

.ostazy-pay__body {
  padding: 1.75rem 1.5rem;
}

.ostazy-code {
  text-align: center;
  background: var(--ostazy-surface-2);
  border: 2px dashed rgba(var(--ostazy-primary-rgb), 0.25);
  border-radius: var(--ostazy-radius);
  padding: 1.4rem 1rem;
}

.ostazy-code__label {
  color: var(--ostazy-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.ostazy-code__value {
  font-family: var(--ostazy-font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ostazy-primary);
  direction: ltr;
  unicode-bidi: isolate;
}

.ostazy-steps-inline {
  counter-reset: paystep;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.ostazy-steps-inline li {
  counter-increment: paystep;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  color: var(--ostazy-text);
  line-height: 1.9;
}

.ostazy-steps-inline li::before {
  content: counter(paystep);
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--ostazy-secondary-rgb), 0.12);
  color: var(--ostazy-secondary-600);
  font-weight: 800;
  font-size: 0.9rem;
}

.ostazy-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.ostazy-status--pending {
  background: rgba(var(--ostazy-accent-rgb), 0.14);
  color: var(--ostazy-accent-600);
}

.ostazy-status--paid {
  background: rgba(22, 163, 74, 0.12);
  color: var(--ostazy-success);
}

.ostazy-status--dead {
  background: rgba(100, 116, 139, 0.14);
  color: var(--ostazy-muted);
}

/* ---------- CTA ---------- */

.ostazy-cta {
  background: var(--ostazy-gradient-deep);
  border-radius: var(--ostazy-radius-xl);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ostazy-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.ostazy-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin-inline: auto;
}

.ostazy-cta .btn {
  border-radius: 999px;
  padding: 0.8rem 2.2rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.ostazy-site-footer {
  background: #1E1B4B;
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.ostazy-site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.ostazy-site-footer a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  padding: 0.28rem 0;
  font-size: 0.95rem;
}

.ostazy-site-footer a:hover {
  color: var(--ostazy-secondary-300);
}

.ostazy-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 575.98px) {
  .ostazy-stats {
    margin-top: -2rem;
  }

  .ostazy-hero {
    border-radius: 0 0 var(--ostazy-radius-lg) var(--ostazy-radius-lg);
  }
}

/* ---------- Browsing: year, then teacher, then subject ---------- */

.ostazy-year {
  display: block;
  height: 100%;
  padding: 1.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ostazy-year:hover {
  transform: translateY(-6px);
  box-shadow: var(--ostazy-shadow-lg);
  border-color: rgba(var(--ostazy-secondary-rgb), 0.35);
}

.ostazy-year__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: var(--ostazy-gradient-deep);
}

.ostazy-year__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ostazy-primary);
  margin-bottom: 0.9rem;
}

.ostazy-year__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.ostazy-year__go {
  font-weight: 700;
  color: var(--ostazy-secondary);
}

/* ---------- Teacher cards ---------- */

.ostazy-teacher {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  text-decoration: none;
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ostazy-teacher:hover {
  transform: translateY(-4px);
  box-shadow: var(--ostazy-shadow-lg);
  border-color: rgba(var(--ostazy-secondary-rgb), 0.35);
}

.ostazy-avatar {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ostazy-gradient-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  overflow: hidden;
}

.ostazy-avatar--lg {
  width: 7.5rem;
  height: 7.5rem;
  font-size: 2.25rem;
}

.ostazy-teacher__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ostazy-primary);
  margin-bottom: 0.15rem;
}

.ostazy-teacher__spec {
  color: var(--ostazy-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.ostazy-teacher__subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Subjects split by the language they are taught in, each group on its own line with a label,
   so "Information Technology (English)" and "تكنولوجيا المعلومات" stop reading as one run. */
.ostazy-teacher__lang {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ostazy-muted);
  margin-top: 0.15rem;
}

/* ---------- Teacher profile header ---------- */

.ostazy-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem;
  color: #fff;
  border-radius: var(--ostazy-radius-lg);
  background: var(--ostazy-gradient-deep);
}

.ostazy-profile .ostazy-avatar {
  border: 3px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}

.ostazy-profile__name {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.ostazy-profile__spec {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.ostazy-profile__bio {
  color: rgba(255, 255, 255, 0.9);
  line-height: 2;
  margin: 0;
  max-width: 60ch;
}

.ostazy-profile .ostazy-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- Breadcrumb ---------- */

.ostazy-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ostazy-muted);
  margin-bottom: 1.5rem;
}

.ostazy-crumbs a {
  color: var(--ostazy-secondary);
  font-weight: 600;
  text-decoration: none;
}

.ostazy-crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Mobile menu toggle ----------
   Bootstrap 5.1 only draws the hamburger inside navbar-light/dark; the navbar carries
   navbar-light now, and this keeps the icon visible even if that class is dropped again. */

.ostazy-topbar .navbar-toggler {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--ostazy-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--ostazy-primary);
}

.ostazy-topbar .navbar-toggler-icon {
  width: 1.25em;
  height: 1.25em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230D9488' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ostazy-toggler-word {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Page extras (SEO الصفحات): code, terms, questions ---------- */

.ostazy-extras {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.ostazy-code {
  background: #1E1B4B;
  color: #E4E4F0;
  border-radius: var(--ostazy-radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: auto;
  text-align: left;
  margin: 0;
}

.ostazy-glossary {
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  overflow: hidden;
}

.ostazy-glossary__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--ostazy-line);
}

.ostazy-glossary__row:last-child {
  border-bottom: 0;
}

.ostazy-glossary__word {
  font-weight: 700;
  color: var(--ostazy-primary);
}

.ostazy-faq__item,
.ostazy-outline__unit {
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
}

.ostazy-faq__item summary,
.ostazy-outline__unit summary {
  cursor: pointer;
  font-weight: 700;
}

.ostazy-faq__item[open] summary {
  margin-bottom: 0.5rem;
  color: var(--ostazy-primary);
}

.ostazy-outline__unit summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ostazy-outline__counts {
  display: inline-flex;
  gap: 0.35rem;
  font-weight: 400;
}

.ostazy-outline__lessons {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.4rem;
  color: var(--ostazy-muted);
}

.ostazy-outline__lessons li {
  padding: 0.15rem 0;
}

/* ---------- Courses page filters ---------- */

.ostazy-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ostazy-filter {
  border: 1px solid var(--ostazy-line);
  background: var(--ostazy-surface);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 600;
}

.ostazy-filter[aria-pressed="true"] {
  background: var(--ostazy-primary);
  border-color: var(--ostazy-primary);
  color: #fff;
}

/* ---------- Plans banner (home) ---------- */

.ostazy-plans-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--ostazy-surface);
  border: 2px solid var(--ostazy-primary);
  border-radius: var(--ostazy-radius-lg);
  padding: 1.5rem 1.75rem;
}

.ostazy-plans-banner__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ostazy-plans-banner__price strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ostazy-primary);
}

/* ---------- Teacher page: reviews, free videos, booking ---------- */

.ostazy-stars {
  color: #FF6B4A;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ostazy-review {
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  padding: 1rem 1.1rem;
  height: 100%;
}

.ostazy-star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

.ostazy-star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ostazy-star-input label {
  font-size: 1.8rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
}

.ostazy-star-input input:checked ~ label,
.ostazy-star-input label:hover,
.ostazy-star-input label:hover ~ label {
  color: #FF6B4A;
}

.ostazy-star-input input:focus-visible + label {
  outline: 2px solid var(--ostazy-primary);
  border-radius: 4px;
}

.ostazy-free-video {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ostazy-surface);
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.ostazy-free-video:hover {
  border-color: var(--ostazy-primary);
}

.ostazy-outline__course {
  background: var(--ostazy-surface-2, var(--ostazy-surface));
  border: 1px solid var(--ostazy-line);
  border-radius: var(--ostazy-radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.ostazy-outline__course > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
}

/* On the teacher's dark profile card: the rating, the quick facts and their links stay light. */
.ostazy-profile__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-decoration: none;
}

.ostazy-profile__facts {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.ostazy-profile__facts li {
  margin-bottom: 0.25rem;
}

.ostazy-profile__facts a {
  color: #FFD2C4;
}

/* ---------- How it works: the numbered steps ---------- */
.ostazy-step {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: var(--ostazy-accent);
  color: var(--ostazy-ink);
  font-family: var(--ostazy-font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* The safety promise: set apart by its border, not by another colour. */
.ostazy-safe {
  border: 2px solid rgba(var(--ostazy-primary-rgb), 0.18);
}
