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

:root {
  --gold: #c9a84c;
  --gold-light: #f5ecd4;
  --gold-hover: #b8923e;
  --wa: #25d366;
  --wa-dark: #128c5e;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  direction: rtl;
}

/* ===== HEADER ===== */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.header-title {
  font-size: 19px;
  font-weight: 700;
}
.header-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px;
}
.back-link {
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.back-link:hover {
  color: var(--gold-hover);
}

/* ===== MAIN ===== */
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* Hero Section Styling */
/* ══ HERO ══ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 28px 80px;

  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #eef2ff 100%);
}
.hero-content {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: "Cairo", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.7s forwards;
}
.hero-title .line:nth-child(1) {
  animation-delay: 0.2s;
}
.hero-title .line:nth-child(2) {
  animation-delay: 0.35s;
  color: var(--gold);
}
.hero-title .line:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
  margin-bottom: 72px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, #a07828 100%);
  color: #0a0a0f;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Tajawal", sans-serif;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(201, 168, 76, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Tajawal", sans-serif;
}
.btn-outline:hover {
  background: var(--surface2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ── Hero stats row ── */
.hero-stats {
  display: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.7s 1s forwards;
  max-width: 680px;
  margin: 0 auto;
}
.hstat {
  background: var(--surface);
  padding: 24px 16px;
  text-align: center;
  transition: background 0.2s;
}
.hstat:hover {
  background: var(--surface2);
}
.hstat-num {
  font-family: "Cairo", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.hstat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-content {
  max-width: 600px;
  text-align: right; /* النص يمين */
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffd700; /* دهبي */
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #ffd700;
  color: #000;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.cta-btn:hover {
  background-color: #fff;
  color: #000;
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px;

  background: url("../../images/طاقم التدريس.webp");
  background-size: cover;
  background-position: center;
}

/* طبقة فوق الصورة */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

/* الكونتينر */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;
  gap: 40px;
}

/* النص */
.hero-text {
  color: white;
  text-align: right;
}

/* badge */
.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* العنوان */
.hero-title {
  font-size: 3rem;
  font-weight: 900;
  font-family: "Cairo", sans-serif;
  margin-bottom: 20px;

  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);

  background: linear-gradient(90deg, #c9a84c, #e8c96d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* النص */
.hero-desc {
  color: #e5e7eb;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* الأزرار */
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

/* stats */
.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats .num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}

.hero-stats .label {
  display: block;
  font-size: 0.8rem;
  color: #d1d5db;
}

/* الصورة */
.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* موبايل */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 100px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.42);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--gray-800);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== GRID ===== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--gold);
}

/* ---- BIG RECTANGULAR PHOTO ---- */
.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* placeholder emoji shown when no photo */
.card-no-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--gold-light) 0%, #fffbef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

/* ---- BODY ---- */
.card-body {
  padding: 20px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-name {
  font-size: 17px;
  font-weight: 800;
}
.teacher-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-hover);
  margin-top: -6px;
}

.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.subject {
  background: var(--gold-light);
  color: var(--gold-hover);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
}

.bio {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.75;
}

.stats {
  display: flex;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  margin-top: auto;
}
.stat {
  flex: 1;
  text-align: center;
  border-left: 1px solid var(--gray-200);
  padding: 0 6px;
}
.stat:last-child {
  border-left: none;
}
.stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
}
.stat-lbl {
  font-size: 10.5px;
  color: var(--gray-400);
  margin-top: 1px;
}

/* ---- WHATSAPP BUTTON ---- */
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 18px 18px;
  padding: 13px 0;
  background: var(--wa);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition:
    background 0.2s,
    transform 0.2s;
}
.wa-btn:hover {
  background: var(--wa-dark);
  transform: translateY(-1px);
}
.wa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  main {
    padding: 28px 14px 70px;
  }
  .page-header {
    padding: 14px 16px;
  }
  .teachers-grid {
    grid-template-columns: 1fr;
  }
}
.logo-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}
