/* تحسين الموبايل — صفحات المعلمين (جهاد / فضل) */
@media (max-width: 900px) {
  .hero h1 {
    max-width: none;
    line-height: 1.18;
  }
}

@media (max-width: 768px) {
  .hero-glyphs,
  .hero-glow,
  .hero::before,
  .hero-bottom,
  .arabic-card,
  .stats-bar {
    display: none !important;
  }

  .hero {
    min-height: auto !important;
    padding-bottom: 0;
    border-bottom: 10px solid var(--cream, #f7f4ef);
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: calc(var(--nav-h) + 0.65rem) 0 1.35rem;
  }

  .hero-visual {
    order: -1;
    align-self: center;
    width: min(100%, 300px);
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-photo-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    aspect-ratio: 5 / 4;
    max-height: 260px;
    cursor: default;
  }

  .hero-visual img,
  .hero-photo-wrap img {
    width: 100%;
    height: 100%;
    max-height: none !important;
    object-fit: cover;
    object-position: center 15%;
    filter: none !important;
  }

  .photo-placeholder {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    aspect-ratio: 5 / 4;
    border-radius: 20px;
  }

  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-teacher {
    display: none;
  }

  .hero-kicker {
    font-size: 0.68rem;
    line-height: 1.45;
    padding: 0.38rem 0.72rem;
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.2rem);
    margin: 0.45rem 0 0.65rem;
    max-width: 18ch;
  }

  .hero h1 span {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.92em;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.78);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    max-width: 360px;
    margin-top: 1.1rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.72rem 1rem;
    font-size: 0.86rem;
    border-radius: 14px;
  }

  .hero-actions .btn.glass[href*="admin"] {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    min-height: 42px;
    font-size: 0.78rem;
    opacity: 0.92;
  }

  .hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    width: 100%;
    max-width: 360px;
  }

  .hero-proof span {
    border: none !important;
    border-inline-start: none !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.66rem;
    line-height: 1.35;
    text-align: center;
  }

  .nav.scrolled,
  .nav-links.open,
  .dock {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .logo {
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.15;
    max-width: calc(100% - 52px);
  }

  .logo small {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }

  section {
    padding: 2.25rem 0;
  }

  .section-head h2,
  .section-copy h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .pillars,
  .method-grid,
  .timeline {
    gap: 0.75rem;
  }

  .pillar,
  .method-card,
  .timeline article {
    padding: 1rem;
  }

  .method-card.featured {
    transform: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }

  .cta-card {
    display: grid;
    text-align: center;
    padding: 1.35rem;
    border-radius: 20px;
  }

  .cta-buttons {
    display: grid;
    gap: 0.5rem;
    justify-content: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .story,
  .method,
  .centers,
  .gallery,
  .faq,
  .final-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 60px;
  }

  .container {
    width: min(92%, 1160px);
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .hero-grid {
    padding-top: calc(var(--nav-h) + 0.45rem);
  }

  .hero-visual {
    width: min(100%, 280px);
  }

  .hero-photo-wrap {
    max-height: 230px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    max-width: 16ch;
  }

  .hero-lead {
    font-size: 0.84rem;
    max-width: 32ch;
  }

  footer {
    display: none;
  }

  .dock {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 120;
    bottom: 0;
    inset-inline: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--plum, var(--navy, #0c2340));
    border-top: 2px solid var(--gold, #d4a857);
  }

  .dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.66rem;
    font-weight: 900;
    border-radius: 10px;
  }

  .dock i {
    font-size: 0.95rem;
    color: var(--gold, #d4a857);
  }
}
