/* ==========================================================================
   الحقيبة الإلكترونية لمقرر ريادة أعمال الكهرباء التطبيقية (رياد 226)
   هوية بصرية مشتركة — الألوان مقتبسة من غلاف المقرر (كحلي داكن + فيروزي)
   ========================================================================== */

:root {
  --navy-950: #071a20;
  --navy-900: #0b232c;
  --navy-800: #0f2e37;
  --teal-700: #0d6b6f;
  --teal-600: #128a86;
  --teal-500: #17a398;
  --teal-400: #35c2b0;
  --teal-100: #e3f4f1;
  --bg-soft: #f4f9f8;
  --ink: #0b232c;
  --muted: #56706b;
  --white: #ffffff;
  --border: #e1ede9;
  --shadow: 0 10px 30px rgba(7, 26, 32, 0.08);
  --radius: 16px;
  --font-main: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------- شريط التنقل ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--teal-400);
  margin-top: 2px;
}

.brand .badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
}

/* ------------------------- الهيرو ------------------------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--teal-700) 55%, var(--teal-500) 120%);
  color: var(--white);
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 36px;
}

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

/* ------------------------- الأزرار ------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--teal-700);
}

.btn-primary:hover {
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-solid {
  background: var(--teal-500);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--teal-600);
  box-shadow: var(--shadow);
}

/* ------------------------- الأقسام العامة ------------------------- */

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head .kicker {
  color: var(--teal-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ------------------------- بطاقات التطبيقات ------------------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.app-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--teal-400);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.app-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.app-card .try-link {
  font-weight: 700;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.app-card .try-link:hover {
  color: var(--teal-700);
}

/* ------------------------- إحصاءات ------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 16px;
}

.stat-box .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal-600);
  margin-bottom: 6px;
}

.stat-box .label {
  color: var(--muted);
  font-weight: 500;
}

/* ------------------------- صور الشواهد ------------------------- */

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.evidence-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.evidence-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.evidence-card .caption {
  padding: 20px;
}

.evidence-card .caption h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.evidence-card .caption p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------- صفحة عن المدرب ------------------------- */

.about-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.about-hero img {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 700px) {
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-hero img {
    max-width: 220px;
    margin: 0 auto;
  }
}

.info-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.info-list li {
  display: flex;
  gap: 8px;
  font-size: 0.98rem;
}

.info-list li strong {
  color: var(--teal-700);
  min-width: 110px;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}

.content-block h2 {
  color: var(--teal-700);
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block ul {
  padding-inline-start: 20px;
  display: grid;
  gap: 10px;
}

.content-block p + p {
  margin-top: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ------------------------- صفحة الاتصال ------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

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

.contact-info {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-item .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 3px;
}

.contact-item .value {
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background: var(--bg-soft);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-500);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ------------------------- تذييل ------------------------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--white);
}

/* ------------------------- عناصر عامة ------------------------- */

.badge-pill {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
}
