:root {
  --navy: #102C59;
  --gold: #DDAA16;
  --ink: #51668A;
  --paper: #FDFBF5;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Tajawal, Cairo, sans-serif;
  background: var(--paper);
  color: var(--navy);
  line-height: 1.8;
}
h1, h2, h3, h4, .brand, .chip, .tag, .btn { font-family: Cairo, Tajawal, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253,251,245,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221,170,22,.25);
}
.nav { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(221,170,22,.6); background: #fff; }
.brand em { color: var(--gold); font-style: normal; }
.brand small { display: block; font-size: 12px; color: var(--ink); font-weight: 700; }
.links { display: flex; gap: 18px; margin-inline-start: auto; font-weight: 700; }
.links a:hover { color: var(--gold); }
.menu { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.menu span { display: block; height: 2px; margin: 6px 8px; background: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; border: 0; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid rgba(16,44,89,.18); }
.btn-wa { background: #25D366; color: #fff; width: 100%; }

.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
.glow { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.glow.gold { width: 280px; height: 280px; background: rgba(221,170,22,.16); top: -80px; left: -60px; }
.glow.navy { width: 340px; height: 340px; background: rgba(16,44,89,.08); top: 80px; right: -80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.chip, .tag {
  display: inline-block; background: #fff; border: 1px solid rgba(221,170,22,.35);
  border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; color: var(--navy);
}
.tag { background: rgba(221,170,22,.12); color: var(--gold); border: 0; margin-bottom: 10px; }
.tag.gold { background: var(--gold); color: var(--navy); }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.25; margin: 16px 0; }
h1 span { color: var(--gold); }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.35; margin-bottom: 12px; }
.hero p, .about p, .courses .center p { color: var(--ink); font-size: 18px; font-weight: 500; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills span { background: #fff; border: 1px solid rgba(16,44,89,.1); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.hero-card {
  background: #fff; border-radius: 32px; padding: 28px;
  box-shadow: 0 16px 40px rgba(16,44,89,.1); text-align: center;
  border: 1px solid rgba(221,170,22,.2);
}
.hero-card img { width: 240px; height: 240px; margin: 0 auto 16px; }
.badge { background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; }

.about, .contact, .letter { padding: 72px 0; }
.about-card, .letter-wrap {
  background: #fff; border-radius: 36px; padding: 36px;
  box-shadow: 0 8px 30px rgba(16,44,89,.08); border: 1px solid rgba(221,170,22,.15);
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
}
.about-side { text-align: center; }
.about-side img { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 12px; border: 4px solid rgba(221,170,22,.4); }
.about-side p { color: var(--ink); }

.letter { background: linear-gradient(180deg, #fff, var(--paper)); }
.letter-wrap { grid-template-columns: 1fr; display: block; }
.letter-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.letter-head img { width: 72px; height: 72px; border-radius: 50%; }
.letter-head span, .letter-head em { display: block; color: var(--ink); font-size: 14px; }
.letter-head em { margin-inline-start: auto; color: var(--gold); font-style: normal; font-weight: 800; }
.letter-wrap p { margin: 10px 0; color: var(--ink); font-size: 18px; }
.letter-sign { margin-top: 24px; }
.letter-sign strong { display: block; }

.courses { padding: 72px 0; background: #fff; }
.center { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button {
  border: 1px solid rgba(16,44,89,.12); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 800; cursor: pointer; color: var(--navy);
}
.filters button.active { background: var(--navy); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid rgba(221,170,22,.18);
  border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
}
.card img { height: 180px; width: 100%; object-fit: cover; background: #eee; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { color: var(--gold); font-size: 13px; font-weight: 800; }
.card p { color: var(--ink); font-size: 14px; flex: 1; }

.why { background: var(--navy); color: #fff; padding: 72px 0; }
.center.light p { color: rgba(255,255,255,.75); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-grid article { background: rgba(255,255,255,.06); border: 1px solid rgba(221,170,22,.2); border-radius: 22px; padding: 22px; }
.why-grid p { color: rgba(255,255,255,.78); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.info { background: #fff; border-radius: 28px; padding: 24px; border: 1px solid rgba(221,170,22,.18); }
.info-item { margin-bottom: 18px; }
.info-item a, .social a { color: var(--gold); font-weight: 800; }
.social { display: flex; gap: 10px; align-items: center; }
iframe { width: 100%; min-height: 340px; border: 0; border-radius: 28px; }
.icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
}
.icon.fb { background: #1877F2; }
.icon.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.icon.wa { background: #25D366; }
.icon:hover { transform: scale(1.08); }

.footer { background: var(--navy); color: #fff; padding: 48px 0 18px; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.brand.light img { border-color: var(--gold); }
.brand.light small { color: rgba(255,255,255,.65); }
.footer a, .footer p { display: block; color: rgba(255,255,255,.78); margin-top: 6px; }
.copy { text-align: center; margin-top: 28px; font-size: 14px; font-weight: 800; }
.footer .copy p { color: #FFFF00; }
.footer a.dev-credit,
.footer a.dev-credit span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
  color: #FFFF00 !important; background: transparent; font-weight: 900; font-size: 16px;
  border: 0; padding: 0;
}
.footer a.dev-credit svg,
.footer a.dev-credit svg path { fill: #FFFF00 !important; }

.float-icons {
  position: fixed; bottom: 20px; left: 20px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
}
.float-icons .icon {
  width: 52px; height: 52px; box-shadow: 0 10px 24px rgba(16,44,89,.22);
}
.footer-social { margin-top: 10px; }
.footer-social .icon { margin-top: 0; }

@media (max-width: 900px) {
  .links, .nav .btn-gold { display: none; }
  .links.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; right: 0; left: 0;
    background: #fff; padding: 16px; border-bottom: 1px solid rgba(221,170,22,.25);
  }
  .menu { display: block; margin-inline-start: auto; }
  .hero-grid, .about-card, .grid, .why-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
