/* IBM Plex Sans Arabic — Arabic subset */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+FEFF, U+FFFD;
}

/* ─── Variables ─── */
:root {
  --accent:      #C49A6C;
  --accent-dark: #7B4F2A;
  --accent-glow: rgba(196, 154, 108, 0.18);
  --bg:          #0a0a0a;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(196, 154, 108, 0.08);
  --border:      rgba(196, 154, 108, 0.22);
  --text:        #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.65);
  --radius:      12px;
  --radius-lg:   20px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html,
body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl;
  background: linear-gradient(160deg, #0a0a0a 0%, #131313 40%, #0e0c0b 70%, #0a0908 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section spacing ─── */
section { padding: 72px 0; }
section + section { border-top: 1px solid rgba(255,255,255,0.05); }

/* ─── Typography ─── */
h1, h2, h3 { color: var(--accent); font-weight: 700; line-height: 1.3; }

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 10px;
}

p { color: var(--text); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--text-muted); }

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-logo {
  width: 160px;
  margin: 0 auto 32px;
}

.hero-avatar-wrap {
  margin: 36px auto 24px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.hero-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 16px auto 0;
  font-weight: 400;
}

.hero-trainer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-credentials {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.hero-cta {
  margin-top: 40px;
}

/* ─── Button ─── */
.btn {
  display: inline-block;
  padding: 15px 42px;
  border-radius: 50px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(196, 154, 108, 0.35);
}

.btn-primary:hover {
  background: #d4aa7c;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 154, 108, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ─── Sponsor bar ─── */
.sponsor-bar {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 18px 0 0;
}

.sponsor-bar strong { color: var(--accent); }

/* ─── Benefits ─── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.benefit-card h3 { color: var(--accent); }
.benefit-card p  { color: var(--text-muted); font-size: 0.93rem; }

/* ─── Course Overview ─── */
.overview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 40px;
  justify-content: center;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.93rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-chip strong { color: var(--accent); }

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .skills-list {
    grid-template-columns: 1fr;
  }
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.skill-item::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-color: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── Trainer ─── */
.trainer-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}

.trainer-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}

.trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.trainer-text p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── Agency block ─── */
.agency-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
}

.agency-block p { color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* ─── Guarantee ─── */
.guarantee-block {
  background: linear-gradient(135deg, rgba(196,154,108,0.12) 0%, rgba(123,79,42,0.08) 100%);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
}

.guarantee-block h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.guarantee-block p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ─── Registration / Tabs ─── */
.register-section {
  background: rgba(255,255,255,0.02);
}

.register-section > .container > h2 {
  text-align: center;
  margin-bottom: 8px;
}

.register-section > .container > .section-label {
  text-align: center;
}

.tabs-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 36px auto 0;
  max-width: 480px;
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  padding: 5px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
  background: var(--accent);
  color: #0a0a0a;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Form ─── */
.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.95rem;
  direction: rtl;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(196,154,108,0.06);
}

.form-group select option {
  background: #1a1a1a;
  color: var(--text);
}

.form-group input::placeholder { color: rgba(255,255,255,0.35); }

.form-submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  font-size: 1.1rem;
}

/* ─── Thank-you message ─── */
.thankyou-msg {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.thankyou-msg h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.thankyou-msg p { color: var(--text-muted); }

/* ─── Footer ─── */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer strong { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  section { padding: 52px 0; }

  .trainer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trainer-photo {
    margin: 0 auto;
  }

  .form-wrap { padding: 28px 20px; }

  .agency-block,
  .guarantee-block { padding: 28px 20px; }

  .overview-stats { gap: 10px; }

  .stat-chip { font-size: 0.85rem; padding: 8px 16px; }

  .tabs-bar { max-width: 100%; }
}
