:root {
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --coral: #B14F2C;
  --coral-deep: #8F3D23;
  --cream: #EAE3D2;
  --sand: #DED4BC;
  --sand-dark: #C9BEAD;
  --muted: #666666;
  --line: rgba(10, 10, 10, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  font-weight: 400;
}

body.ar {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl;
}

body.ar .serif { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.italic { font-style: italic; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(234, 227, 210, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ar .logo { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  background: var(--ink);
}

.logo-mark::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  transform: translateX(-50%);
}

.logo-mark::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1.5px;
  transform: translateY(-50%);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.5; }

.lang-toggle {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
}

.lang-toggle:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-apply {
  background: var(--coral);
  color: var(--cream);
  border: none;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.3s;
  display: inline-block;
}

.btn-apply:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 160px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--muted);
}

body.ar .eyebrow { text-transform: none; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(54px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 40px;
}

body.ar .hero h1 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.15;
}

.hero h1 .italic {
  font-style: italic;
  color: var(--coral);
}

.hero-sub {
  font-size: 18px;
  max-width: 460px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 36px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

body.ar .btn-primary .arrow { transform: scaleX(-1); }

.btn-primary:hover .arrow { transform: translateX(4px); }
body.ar .btn-primary:hover .arrow { transform: scaleX(-1) translateX(4px); }

.hero-meta {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  max-width: 220px;
}

body.ar .hero-meta {
  text-align: left;
  border-left: none;
  border-right: 1px solid var(--line);
  padding-left: 0;
  padding-right: 28px;
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-size: 40px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-meta-block + .hero-meta-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-circle {
  position: absolute;
  top: 140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(177, 79, 44, 0.18), rgba(177, 79, 44, 0.02) 60%);
  z-index: 0;
  filter: blur(40px);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { text-align: left; border: none; padding: 24px 0 0; border-top: 1px solid var(--line); max-width: none; }
  body.ar .hero-meta { text-align: right; padding: 24px 0 0; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

body.ar .marquee-track { font-family: 'IBM Plex Sans Arabic', sans-serif; animation: scroll-rtl 40s linear infinite; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee-track span::after {
  content: '\2726';
  color: var(--coral);
  font-size: 28px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ============ SECTION BASE ============ */
section.content {
  padding: 140px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: start;
}

.section-num {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--coral);
  max-width: 180px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

body.ar .section-title { font-family: 'IBM Plex Sans Arabic', sans-serif; line-height: 1.2; }

.section-title .italic { font-style: italic; color: var(--coral); }

@media (max-width: 880px) {
  section.content { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 50px; }
}

/* ============ DISCIPLINES ============ */
.disciplines {
  background: var(--cream);
}

.track-list {
  border-top: 1px solid var(--ink);
}

.track {
  border-bottom: 1px solid var(--ink);
  padding: 48px 0;
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 160px;
  gap: 40px;
  align-items: start;
  cursor: pointer;
  transition: padding 0.4s ease, background 0.4s ease;
  position: relative;
}

.track:hover {
  padding-left: 24px;
  padding-right: 24px;
  background: var(--sand);
}

body.ar .track:hover { padding-left: 24px; padding-right: 24px; }

.track-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--muted);
}

.track-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}

body.ar .track-title { font-family: 'IBM Plex Sans Arabic', sans-serif; line-height: 1.25; }

.track-title small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

body.ar .track-title small { font-family: 'IBM Plex Sans Arabic', sans-serif; text-transform: none; }

.track-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.track-desc .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.track-cta {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

body.ar .track-cta { text-transform: none; justify-self: start; }

.track-cta .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

body.ar .track-cta .arrow { transform: scaleX(-1); }

.track:hover .track-cta .arrow { transform: translateX(6px); }
body.ar .track:hover .track-cta .arrow { transform: scaleX(-1) translateX(6px); }

@media (max-width: 880px) {
  .track {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .track:hover { padding-left: 0; padding-right: 0; }
  .track-cta { justify-self: start; }
  body.ar .track-cta { justify-self: end; }
}

/* ============ WHY JOIN ============ */
.why {
  background: var(--ink);
  color: var(--cream);
}

.why .section-num { color: var(--sand-dark); }
.why .section-num::after { background: rgba(234, 227, 210, 0.15); }
.why .section-title .italic { color: var(--coral); }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(234, 227, 210, 0.12);
  border: 1px solid rgba(234, 227, 210, 0.12);
}

.benefit {
  background: var(--ink);
  padding: 50px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s;
}

.benefit:hover {
  background: var(--ink-soft);
}

.benefit-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  color: var(--coral);
  line-height: 1;
}

.benefit h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 14px;
}

body.ar .benefit h3 { font-family: 'IBM Plex Sans Arabic', sans-serif; line-height: 1.3; }

.benefit p {
  font-size: 14px;
  color: var(--sand-dark);
  line-height: 1.65;
}

@media (max-width: 880px) {
  .benefits { grid-template-columns: 1fr; }
}

/* ============ APPLY FORM ============ */
.apply {
  background: var(--sand);
}

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.form-side h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

body.ar .form-side h2 { font-family: 'IBM Plex Sans Arabic', sans-serif; line-height: 1.15; }

.form-side h2 .italic { font-style: italic; color: var(--coral); }

.form-side p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 380px;
}

.form-side .divider {
  width: 60px;
  height: 2px;
  background: var(--coral);
  margin: 30px 0;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

body.ar label { text-transform: none; }

input, select, textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--coral);
  border-bottom-width: 2px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B1F3A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  cursor: pointer;
}

body.ar select { background-position: left 8px center; padding-right: 0; padding-left: 30px; }

textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.file-upload {
  border: 1.5px dashed var(--ink);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(234, 227, 210, 0.3);
}

.file-upload:hover {
  border-color: var(--coral);
  background: rgba(177, 79, 44, 0.05);
}

.file-upload input { display: none; }

.file-upload-label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.file-upload-label strong { color: var(--coral); text-decoration: underline; }

.file-upload-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.ar .file-upload-hint { text-transform: none; }

.privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.submit-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

body.ar .submit-btn { text-transform: none; }

.submit-btn:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

.form-success {
  grid-column: 1 / -1;
  padding: 40px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  border-radius: 12px;
  display: none;
}

.form-success.show { display: block; }

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 400;
}

body.ar .form-success h3 { font-family: 'IBM Plex Sans Arabic', sans-serif; }

.form-success p { color: var(--sand-dark); font-size: 14px; }

@media (max-width: 880px) {
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  form { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-top {
  font-family: 'Playfair Display', serif;
  font-size: clamp(50px, 8vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(234, 227, 210, 0.15);
}

body.ar .footer-top { font-family: 'IBM Plex Sans Arabic', sans-serif; line-height: 1.1; }

.footer-top .italic { color: var(--coral); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 20px;
}

body.ar .footer-col h4 { text-transform: none; }

.footer-col a, .footer-col p {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; color: var(--coral); }

.footer-col.brand p {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(234, 227, 210, 0.15);
  font-size: 12px;
  color: var(--sand-dark);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s;
  text-decoration: none;
}

body.ar .wa-float { right: auto; left: 28px; }

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ============ ENTRANCE ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow { animation: fadeUp 0.8s ease 0.1s both; }
.hero h1 { animation: fadeUp 0.9s ease 0.25s both; }
.hero-sub { animation: fadeUp 0.9s ease 0.4s both; }
.hero-cta { animation: fadeUp 0.9s ease 0.55s both; }
.hero-meta { animation: fadeUp 0.9s ease 0.7s both; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* hide/show language content */
.en-only { display: inline; }
.ar-only { display: none; }
body.ar .en-only { display: none; }
body.ar .ar-only { display: inline; }
.block.en-only { display: block; }
body.ar .block.en-only { display: none; }
.block.ar-only { display: none; }
body.ar .block.ar-only { display: block; }
