/* pages/school.css */

/* ── Page header band ── */
.page-head {
  padding-top: var(--space-48);
  padding-bottom: var(--space-32);
  background: var(--grad-page-head);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-divider);
}

.page-title {
  margin: 0;
  font-family: var(--font-family-ar);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1.20;
  text-shadow: var(--glow-gold-sm);
}

.page-subtitle {
  margin-top: var(--space-10);
  margin-bottom: 0;
  font-family: var(--font-family-ar);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ── About card ── */
.about-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-20);
  background: var(--grad-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-24);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-cta);
  border-radius: 0 var(--radius-20) var(--radius-20) 0;
}

.about-title {
  margin: 0;
  font-family: var(--font-family-ar);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}

.about-text {
  margin-top: var(--space-12);
  margin-bottom: 0;
  font-family: var(--font-family-ar);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: 1.85;
}

.tools-row {
  margin-top: var(--space-20);
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
  align-items: center;
}

/* ── Search ── */
.search-wrap {
  display: flex;
  gap: var(--space-10);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.search-input {
  width: 320px;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid rgba(201, 150, 58, 0.22);
  border-radius: var(--radius-12);
  padding: 11px 14px;
  background-color: rgba(11, 9, 7, 0.65);
  font-family: var(--font-family-ar);
  font-size: max(16px, var(--font-size-md));
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  outline: none;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow   var(--motion-fast) var(--ease-out);
}

.search-input::placeholder { color: var(--color-text-subtle); }

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 150, 58, 0.15);
}

.small-note {
  margin: 0;
  font-family: var(--font-family-ar);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-subtle);
}

/* ── Empty state ── */
.empty-state {
  margin-top: var(--space-16);
  border: 1px dashed rgba(201, 150, 58, 0.22);
  border-radius: var(--radius-16);
  padding: var(--space-24);
  background-color: var(--color-surface);
  font-family: var(--font-family-ar);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-align: center;
}

/* ══════════════
   MOBILE
   ══════════════ */
@media (max-width: 640px) {
  .page-head {
    padding-top: var(--space-32);
    padding-bottom: var(--space-20);
  }

  .page-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-subtitle {
    font-size: var(--font-size-md);
  }

  .about-card {
    padding: var(--space-16);
    border-radius: var(--radius-16);
  }

  .about-title {
    font-size: var(--font-size-lg);
  }

  .search-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }
}
