/* English with Nader — Teaching Hub shared branding (matches englishwithnader.pages.dev) */
:root {
  --bg: #f4ebdb;
  --card: #fffaf1;
  --line: #e2d1b2;
  --line-2: #d6c098;
  --ink: #1f2a2b;
  --ink-soft: #4d5a59;
  --mute: #7f8b88;
  --teal: #0f3b40;
  --teal-2: #16545a;
  --teal-soft: #e2efec;
  --gold: #c9a24a;
  --gold-hi: #e9c46a;
  --gold-soft: #f8ecc9;
  --green: #22a24a;
  --green-soft: #e2f5e6;
  --coral: #e2475a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='130'%3E%3Ctext x='8' y='78' transform='rotate(-18 115 65)' font-family='Arial' font-size='14' font-weight='700' fill='%230f3b40' fill-opacity='0.09'%3E%C2%A9 English with Nader%3C/text%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 33, 37, .96);
  color: #f4efe3;
  border-bottom: 2px solid var(--gold);
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.topbar .logo { line-height: 1.15; }
.topbar .logo .en { display: block; font-family: var(--serif); font-weight: 800; font-size: 17px; white-space: nowrap; }
.topbar .logo .en span { color: var(--gold-hi); }
.topbar .logo .ar { display: block; font-size: 12.5px; font-weight: 700; color: var(--gold-hi); opacity: .9; }
.topbar .sp { flex: 1; }
.topbar .tag {
  font-size: 12.5px; font-weight: 800;
  background: var(--gold-hi); color: #0a2125;
  border-radius: 999px; padding: 3px 11px;
}

/* Page body */
main { flex: 1; width: 100%; padding: 20px 0 10px; }

.card {
  background-color: var(--card);
  background-image: var(--watermark);
  border: 1.5px solid var(--line-2);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--line-2);
  padding: 18px;
}

/* Footer */
.foot {
  margin-top: 34px;
  background: linear-gradient(165deg, #16434a, #0d2b30);
  color: #f4efe3;
  padding: 22px 0 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border-top: 3px solid var(--gold);
  text-align: center;
}
.foot .keep { font-family: var(--serif); font-size: 20px; font-weight: 800; }
.foot .soc { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.foot .soc a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.foot .soc svg { width: 21px; height: 21px; }
.foot .fb { background: #1877f2; }
.foot .ig { background: linear-gradient(115deg, #f9a03f, #f2545b 35%, #d6249f 65%, #7a3cf0); }
.foot .tt { background: #0b0b0d; box-shadow: -2px 2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.foot p { font-size: 12px; font-weight: 700; opacity: .75; margin-top: 12px; line-height: 1.6; }
.foot b { color: var(--gold-hi); }
