/* ========== إعادة ضبط وتأسيس ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --white: #ffffff;
  --black: #000000;
  
  --primary: var(--teal-600);
  --primary-dark: var(--teal-700);
  --primary-light: var(--teal-100);
  --accent: var(--amber-500);
  --accent-light: var(--amber-100);
  
  --text-main: var(--slate-700);
  --text-muted: var(--slate-500);
  --text-heading: var(--slate-900);
  --bg-body: var(--slate-50);
  --bg-white: var(--white);
  --border: var(--slate-200);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(13, 148, 136, 0.25);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.2);
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== شريط علوي ========== */
.top-bar {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  color: var(--white);
  padding: 10px 0;
  font-size: 0.875rem;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-badge {
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-weight: 500;
}

.top-bar-link:hover {
  color: var(--amber-300);
}

.top-bar-whatsapp {
  background: #25D366;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.top-bar-whatsapp:hover {
  background: #20bd5a;
  color: var(--white);
  transform: translateY(-2px);
}

/* ========== القائمة الرئيسية ========== */
.main-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--teal-200);
  box-shadow: 0 0 0 4px var(--teal-50);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal-800);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-600);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-700);
  background: var(--teal-50);
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white) !important;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--slate-700);
  border-radius: 5px;
  transition: var(--transition);
}

/* ========== القسم الرئيسي ========== */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--white) 40%, var(--bg-body) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border: 1px solid var(--teal-200);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.9;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal-600);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--teal-700);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--teal-200);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--teal-700);
  border: 2px solid var(--teal-100);
}

.hero-floating-card i {
  font-size: 1.8rem;
  color: var(--teal-500);
}

/* ========== رأس الأقسام ========== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--teal-200);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.4;
}

.text-teal {
  color: var(--teal-600);
}


/* ========== قسم المواد الدراسية - تصميم شامل ========== */
.subjects {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.subjects::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.02) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== رأس القسم ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--teal-200);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.4;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--slate-500);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== قسم الرياضيات والمحاسبة (مميز) ===== */
.subject-section-highlight {
  background: white;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--teal-100);
  margin-bottom: 40px;
  position: relative;
}

.subject-section-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600), var(--amber-400));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.highlight-header {
  text-align: center;
  margin-bottom: 40px;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.highlight-header h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.highlight-header p {
  color: var(--slate-500);
  font-size: 1rem;
}

/* ===== كتلة المادة ===== */
.subject-block {
  margin-bottom: 36px;
}

.subject-block:last-child {
  margin-bottom: 0;
}

.subject-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--slate-100);
}

.subject-block-header i {
  font-size: 1.5rem;
  color: var(--teal-600);
  background: var(--teal-50);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-block-header h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--slate-800);
}

/* ===== شبكة عناصر المادة ===== */
.subject-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.subject-item {
  background: var(--slate-50);
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.subject-item:hover {
  background: white;
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.subject-item-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--teal-700);
  margin-bottom: 12px;
  transition: var(--transition);
}

.subject-item:hover .subject-item-icon {
  background: var(--teal-600);
  color: white;
}

.subject-item h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.subject-item p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}

/* ===== قسم المواد الأخرى ===== */
.subject-section-other {
  margin-bottom: 50px;
}

.other-header {
  text-align: center;
  margin-bottom: 30px;
}

.other-badge {
  display: inline-block;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.other-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.other-header p {
  color: var(--slate-500);
  font-size: 0.95rem;
}

.other-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.other-subject-card {
  background: white;
  padding: 18px 14px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--slate-100);
  transition: var(--transition);
  cursor: default;
}

.other-subject-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.other-subject-card i {
  font-size: 1.5rem;
  color: var(--teal-600);
  margin-bottom: 8px;
  display: block;
}

.other-subject-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
}

/* ===== قسم التحويل ===== */
.subjects-cta {
  background: var(--teal-600);
  padding: 32px 36px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}

.cta-content i {
  font-size: 2.2rem;
  opacity: 0.8;
}

.cta-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cta-content span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.subjects-cta .btn-primary {
  background: white;
  color: var(--teal-700);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.subjects-cta .btn-primary:hover {
  background: var(--slate-50);
  color: var(--teal-800);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== تجاوب ===== */
@media (max-width: 992px) {
  .subject-section-highlight {
    padding: 36px 24px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .subject-items-grid {
    grid-template-columns: 1fr;
  }
  
  .other-subjects-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  
  .subjects-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .subjects-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .highlight-header h3 {
    font-size: 1.4rem;
  }
}

/* ========== قسم "عن المعهد" - تصميم جديد ========== */
.about {
  padding: 80px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13,148,136,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== المحتوى النصي ===== */
.about-content .section-tag {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--teal-200);
}

.about-content .section-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.4;
  margin-bottom: 16px;
}

.about-main-desc {
  font-size: 1.15rem;
  color: var(--slate-500);
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ===== نقاط الرؤية والرسالة ===== */
.about-key-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.key-point {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border-right: 3px solid var(--teal-500);
  transition: var(--transition);
}

.key-point:hover {
  background: var(--teal-50);
  border-right-color: var(--teal-700);
  transform: translateX(-4px);
}

.key-point i {
  font-size: 1.3rem;
  color: var(--teal-600);
  margin-top: 2px;
  flex-shrink: 0;
}

.key-point strong {
  display: block;
  font-size: 1rem;
  color: var(--slate-800);
  margin-bottom: 4px;
}

.key-point p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}

/* ===== نقاط القوة ===== */
.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-600);
  background: var(--slate-50);
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.about-feature:hover {
  background: var(--teal-50);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.about-feature i {
  color: var(--teal-500);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== الجزء البصري ===== */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-main-image {
  position: relative;
  z-index: 1;
}

.about-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.about-img-border {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--teal-200);
  border-radius: var(--radius-xl);
  z-index: 1;
}

/* ===== بطاقة إحصائية عائمة ===== */
.about-stats-card {
  position: absolute;
  bottom: -20px;
  left: -10px;
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 20px;
  z-index: 3;
  border: 1px solid var(--slate-100);
}

.about-stat {
  text-align: center;
}

.about-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--teal-700);
  line-height: 1.2;
}

.about-stat-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ===== نقاط زخرفية ===== */
.about-dots {
  position: absolute;
  top: 20px;
  left: -10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 0;
  opacity: 0.25;
}

.about-dots span {
  width: 5px;
  height: 5px;
  background: var(--teal-400);
  border-radius: 50%;
}

/* ===== تجاوب ===== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .about-stats-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: -30px;
    justify-content: center;
  }
  
  .about-content .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .about-content .section-title {
    font-size: 1.6rem;
  }
}

/* ========== قسم الخدمات ========== */
.services {
  padding: 80px 0;
  background: var(--bg-body);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  transform: scaleX(0);
  transition: var(--transition-slow);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--teal-600);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
/* ===== صفحة المقالات ===== */
.articles-hero{background:linear-gradient(135deg,var(--teal-700),var(--teal-600));color:white;padding:60px 0;text-align:center;position:relative;overflow:hidden}
.articles-hero::before{content:'';position:absolute;top:-100px;right:-100px;width:300px;height:300px;background:rgba(255,255,255,0.04);border-radius:50%}
.articles-hero-content{position:relative;z-index:1}
.articles-hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.15);padding:8px 20px;border-radius:var(--radius-full);font-weight:600;font-size:.9rem;margin-bottom:20px}
.articles-hero-title{font-size:2.8rem;font-weight:900;margin-bottom:16px;line-height:1.4}
.articles-hero-title span{color:var(--amber-300)}
.articles-hero-desc{font-size:1.15rem;opacity:.9;max-width:700px;margin:0 auto 20px;line-height:1.9}
.articles-hero-stats{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.articles-hero-stats span{background:rgba(255,255,255,0.1);padding:10px 18px;border-radius:var(--radius-full);font-weight:500;font-size:.9rem;display:flex;align-items:center;gap:6px}

/* ===== تخطيط المقالات ===== */
.articles-main{padding:60px 0;background:var(--bg-body)}
.articles-layout{display:grid;grid-template-columns:280px 1fr;gap:40px;align-items:start}

/* ===== فهرس جانبي ===== */
.articles-sidebar{position:relative}
.sidebar-sticky{position:sticky;top:100px;background:white;border-radius:var(--radius-xl);padding:28px 24px;box-shadow:var(--shadow-md);border:1px solid var(--slate-100)}
.sidebar-sticky h3{font-size:1.15rem;font-weight:800;color:var(--slate-900);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.sidebar-list{list-style:none;display:flex;flex-direction:column;gap:4px;margin-bottom:24px}
.sidebar-list a{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--radius);font-size:.85rem;font-weight:600;color:var(--slate-600);transition:var(--transition)}
.sidebar-list a:hover,.sidebar-list a:focus{background:var(--teal-50);color:var(--teal-700)}
.sidebar-cta .btn-full{width:100%;justify-content:center;padding:14px;font-size:.95rem}

/* ===== المقالات ===== */
.articles-content{display:flex;flex-direction:column;gap:40px}
.full-article{background:white;border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-sm);transition:var(--transition);border:1px solid var(--slate-100)}
.full-article:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.article-img-wrap{position:relative;overflow:hidden;height:320px}
.article-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.full-article:hover .article-img-wrap img{transform:scale(1.05)}
.article-category{position:absolute;top:16px;right:16px;background:var(--teal-600);color:white;padding:6px 14px;border-radius:var(--radius-full);font-weight:700;font-size:.8rem;z-index:1}
.full-article-body{padding:32px}
.article-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:.85rem;color:var(--slate-500);margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid var(--slate-100)}
.article-meta span{display:flex;align-items:center;gap:6px}
.full-article-body h2{font-size:1.6rem;font-weight:900;color:var(--slate-900);line-height:1.5;margin-bottom:16px}
.article-lead{font-size:1.1rem;color:var(--slate-500);line-height:2;margin-bottom:24px}
.full-article-body h3{font-size:1.25rem;font-weight:800;color:var(--slate-800);margin:24px 0 12px}
.full-article-body h4{font-size:1.1rem;font-weight:700;color:var(--slate-700);margin:16px 0 8px}
.full-article-body p{color:var(--slate-600);line-height:2;margin-bottom:16px;font-size:1rem}
.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid var(--slate-100)}
.article-tags span{background:var(--teal-50);color:var(--teal-700);padding:6px 12px;border-radius:var(--radius-full);font-size:.8rem;font-weight:600}

/* ===== CTA نهائي ===== */
.articles-final-cta{text-align:center;margin-top:60px;padding:50px;background:linear-gradient(135deg,var(--teal-700),var(--teal-600));color:white;border-radius:var(--radius-xl);box-shadow:var(--shadow-lg)}
.articles-final-cta h3{font-size:1.8rem;font-weight:900;margin-bottom:12px}
.articles-final-cta p{font-size:1.1rem;opacity:.9;margin-bottom:24px}
.articles-final-cta .whatsapp-btn-large{display:inline-flex;align-items:center;gap:10px;background:#25D366;color:white;padding:18px 36px;border-radius:var(--radius-full);font-weight:700;font-size:1.15rem;transition:var(--transition)}
.articles-final-cta .whatsapp-btn-large:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(37,211,102,.4)}

/* ===== تجاوب ===== */
@media(max-width:992px){
.articles-layout{grid-template-columns:1fr}
.articles-sidebar{display:none}
.articles-hero-title{font-size:2rem}
.full-article-body h2{font-size:1.3rem}
}
@media(max-width:600px){
.article-img-wrap{height:200px}
.full-article-body{padding:20px}
.articles-hero-title{font-size:1.6rem}
}

/* ========== قسم المعهد ========== */
.institute {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%);
}

.institute-card {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--teal-100);
  max-width: 800px;
  margin: 0 auto;
}

.institute-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-main);
  margin-bottom: 24px;
}

.institute-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.institute-features span {
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.institute-contact {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.institute-contact p {
  font-weight: 500;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.institute-contact i {
  color: var(--teal-600);
  width: 24px;
}
/* ========== قسم التواصل - تصميم جديد ========== */
.contact {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== رأس القسم ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--teal-200);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.4;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--slate-500);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== غلاف التواصل ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}

/* ===== العمود الأيمن: التفاصيل ===== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== بطاقة الواتساب الرئيسية ===== */
.contact-whatsapp-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 28px;
  border: 2px solid #25D366;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.contact-whatsapp-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(37,211,102,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.contact-whatsapp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(37,211,102,0.15);
}

.whatsapp-icon-large {
  width: 80px;
  height: 80px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
}

.whatsapp-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.whatsapp-info p {
  color: var(--slate-500);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.whatsapp-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
  position: relative;
  z-index: 1;
}

.whatsapp-main-btn:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
  color: white;
}

/* ===== معلومات إضافية ===== */
.contact-extra {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--teal-600);
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
}

.info-text p {
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-text a {
  color: var(--teal-600);
  font-weight: 600;
  transition: var(--transition);
}

.info-text a:hover {
  color: var(--teal-800);
  text-decoration: underline;
}

.divider {
  color: var(--slate-300);
  margin: 0 8px;
}

.address-detail {
  color: var(--slate-400) !important;
  font-size: 0.8rem !important;
  margin-top: 2px;
}

.day-badge {
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  margin-left: 8px;
}

.closed-day {
  color: var(--slate-400) !important;
  font-size: 0.8rem !important;
  font-style: italic;
}

/* ===== العمود الأيسر: بطاقة المعهد ===== */
.contact-promo {
  position: relative;
}

.promo-card {
  background: linear-gradient(145deg, var(--teal-800), var(--teal-600));
  color: white;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.promo-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.promo-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255,255,255,0.2);
}

.promo-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.promo-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.promo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  text-align: right;
}

.promo-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.promo-features i {
  color: var(--amber-400);
  font-size: 1rem;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.promo-badge i {
  color: var(--amber-400);
}

/* ===== نقاط زخرفية ===== */
.promo-dots {
  position: absolute;
  bottom: -15px;
  right: -15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 0;
  opacity: 0.3;
}

.promo-dots span {
  width: 6px;
  height: 6px;
  background: var(--teal-400);
  border-radius: 50%;
}

/* ===== شريط ثقة سفلي ===== */
.contact-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.trust-item i {
  color: var(--teal-500);
  font-size: 1.2rem;
}

/* ===== تجاوب ===== */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-whatsapp-card {
    flex-direction: column;
    text-align: center;
  }
  
  .whatsapp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .contact-whatsapp-card {
    padding: 28px 20px;
  }
  
  .whatsapp-icon-large {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }
  
  .promo-card {
    padding: 28px 20px;
  }
  
  .contact-trust {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
  }
}

/* ========== تذييل الصفحة - تصميم احترافي ========== */
.footer {
  background: linear-gradient(180deg, var(--slate-900) 0%, #0c1a1f 100%);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

/* دوائر زخرفية في الخلفية */
.footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== الصف العلوي ===== */
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--teal-500);
  border-radius: 3px;
}

/* ===== العمود الأول: عن المعهد ===== */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo i {
  font-size: 2rem;
  color: var(--teal-400);
  background: rgba(13,148,136,0.15);
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo h4 {
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  margin: 0;
  padding: 0;
}

.footer-logo h4::after { display: none; }

.footer-logo span {
  font-size: 0.8rem;
  color: var(--teal-300);
  font-weight: 500;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-badges i {
  color: var(--teal-400);
}

/* ===== العمود الثاني: روابط سريعة ===== */
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--teal-400);
  transition: var(--transition);
}

.footer-links a:hover {
  background: rgba(255,255,255,0.05);
  color: white;
  border-color: rgba(255,255,255,0.1);
  padding-right: 18px;
}

.footer-links a:hover i {
  color: var(--teal-300);
}

/* ===== العمود الثالث: تواصل ===== */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-list i {
  color: var(--teal-400);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list strong {
  display: block;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-contact-list span,
.footer-contact-list a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact-list a {
  transition: var(--transition);
}

.footer-contact-list a:hover {
  color: var(--teal-300);
}

/* ===== فاصل ===== */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 36px 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== الصف السفلي ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
}

.footer-copyright p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin: 0;
}

.footer-copyright strong {
  color: rgba(255,255,255,0.8);
}

.footer-address {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.35) !important;
  margin-top: 2px !important;
}

/* ===== وكالة صوفيا ===== */
.footer-credits {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-credits > p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  white-space: nowrap;
}

.sophia-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}

.sophia-credit:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.sophia-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.sophia-text {
  display: flex;
  flex-direction: column;
}

.sophia-text strong {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.sophia-text small {
  color: var(--teal-300);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.sophia-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.sophia-phone i {
  color: var(--teal-400);
  font-size: 0.9rem;
}

.sophia-phone:hover {
  color: white;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* ===== تجاوب ===== */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-credits {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-col h4 {
    font-size: 1.05rem;
  }
  
  .footer-logo i {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .footer-logo h4 {
    font-size: 1.15rem;
  }
  
  .footer-bottom {
    gap: 14px;
  }
  
  .footer-credits {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-credits > p {
    display: none;
  }
  
  .sophia-credit {
    width: 100%;
    justify-content: center;
  }
}


/* ========== تصميم شريط التمرير (Scrollbar) ========== */

/* العرض والارتفاع الأساسي */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* المسار (الخلفية) */
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

/* المسار في الوضع الداكن */
::-webkit-scrollbar-track:hover {
  background: #e2e8f0;
}

/* المقبض (الجزء المتحرك) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0d9488, #14b8a6);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  transition: all 0.3s ease;
}

/* المقبض عند التحويم */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0f766e, #0d9488);
  border: 2px solid #e2e8f0;
}

/* المقبض عند الضغط */
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #115e59, #0f766e);
}

/* الزوايا */
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ========== دعم Firefox ========== */
html {
  scrollbar-color: #0d9488 #f1f5f9;
  scrollbar-width: thin;
}

/* ========== سكرول بار مخصص للعناصر داخل الصفحة ========== */

/* للعناصر اللي جواها سكرول (زي الشات أو القوائم الطويلة) */
.custom-scroll,
.sidebar-sticky,
.articles-content {
  scrollbar-width: thin;
  scrollbar-color: #0d9488 #f1f5f9;
}

.custom-scroll::-webkit-scrollbar,
.sidebar-sticky::-webkit-scrollbar,
.articles-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track,
.sidebar-sticky::-webkit-scrollbar-track,
.articles-content::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb,
.sidebar-sticky::-webkit-scrollbar-thumb,
.articles-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #14b8a6, #0d9488);
  border-radius: 6px;
  border: 1.5px solid #f8fafc;
}

.custom-scroll::-webkit-scrollbar-thumb:hover,
.sidebar-sticky::-webkit-scrollbar-thumb:hover,
.articles-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0f766e, #0d9488);
}


/* ========== اللوجو - تصميم احترافي ========== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  border: 2px solid var(--teal-200);
  transition: var(--transition);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--teal-50);
}

.logo-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px var(--teal-100);
  border-color: var(--teal-400);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* أيقونة احتياطية في حالة عدم وجود الصورة */
.logo-fallback-icon {
  display: none;
  font-size: 1.6rem;
  color: var(--teal-700);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* عند فشل تحميل الصورة */
.logo-icon.logo-fallback .logo-img {
  display: none;
}

.logo-icon.logo-fallback .logo-fallback-icon {
  display: block;
}

/* تأثير لمعان على اللوجو */
.logo-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.6s;
  z-index: 2;
  pointer-events: none;
}

.logo-icon:hover::after {
  left: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--teal-800);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== تجاوب ===== */
@media (max-width: 600px) {
  .logo-icon {
    width: 44px;
    height: 44px;
  }
  
  .logo-name {
    font-size: 1.15rem;
  }
  
  .logo-sub {
    font-size: 0.7rem;
  }
  
  .logo-fallback-icon {
    font-size: 1.3rem;
  }
}

/* ========== أزرار عائمة ========== */
.float-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.float-scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--teal-700);
  color: #ffffff;
  border: 2px solid var(--teal-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.float-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.float-scroll-top:hover {
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
  transform: translateY(-3px);
}

/* ========== تجاوب مع الجوال ========== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-img {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .about-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 100px 30px 30px;
    transition: var(--transition-slow);
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 6px !important;
    align-items: stretch !important;
  }
  
  .nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-stats-row {
    gap: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-outline {
    justify-content: center;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  
  .services-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  
  .institute-card {
    padding: 30px 24px;
  }
  
  .contact-card,
  .contact-form {
    padding: 28px 20px;
  }
  
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .float-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  
  .float-scroll-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== إضافات الصفحة الرئيسية ===== */
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-600);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* قسم المواد */
.subjects { padding: 80px 0; background: var(--bg-body); }
.subject-category { margin-bottom: 50px; }
.category-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-title i { color: var(--teal-600); }
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.subject-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.subject-img { width: 100%; height: 200px; object-fit: cover; }
.subject-body { padding: 20px; }
.subject-body h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.subject-body p { color: var(--text-muted); font-size: 0.9rem; }

/* قسم المميزات */
.features { padding: 80px 0; background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}
.feature-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--teal-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--teal-600);
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--teal-600); color: white; box-shadow: var(--shadow-glow); }
.feature-card h3 { font-weight: 700; color: var(--text-heading); margin-bottom: 10px; }

/* قسم المدونة */
.blog { padding: 80px 0; background: var(--bg-body); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-img { width: 100%; height: 200px; object-fit: cover; }
.blog-body { padding: 24px; }
.blog-date { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.blog-body h3 { font-weight: 700; color: var(--text-heading); margin-bottom: 10px; font-size: 1.15rem; }
.blog-body p { color: var(--text-muted); margin-bottom: 16px; }
.blog-link { font-weight: 700; color: var(--teal-600); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.blog-link:hover { gap: 12px; }
.blog-cta { text-align: center; }

/* قسم التواصل */
.contact { padding: 80px 0; background: white; }
.contact-card { max-width: 700px; margin: 0 auto; background: var(--bg-body); padding: 48px; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item i { font-size: 1.5rem; color: var(--teal-600); margin-top: 4px; }
.contact-item h4 { font-weight: 700; color: var(--text-heading); margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.whatsapp-btn-large {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white; padding: 16px 32px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 1.1rem;
  transition: var(--transition); box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.whatsapp-btn-large:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37,211,102,0.4); }
.instagram-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366);
  color: white; padding: 16px 32px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1.1rem; transition: var(--transition);
}
.instagram-btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* تذييل */
.footer { background: var(--teal-900); color: rgba(255,255,255,0.8); padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-about h4 { color: white; font-weight: 700; margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--teal-300); }
.footer-copy { text-align: left; }
.footer-address { font-size: 0.85rem; color: var(--teal-300); }

/* ===== صفحة المقالات ===== */
.articles-hero {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white; padding: 60px 0; text-align: center;
}
.articles-hero-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.articles-hero-desc { font-size: 1.15rem; opacity: 0.9; }
.articles-list { padding: 60px 0; background: var(--bg-body); }
.articles-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.full-article {
  background: white; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.full-article:hover { box-shadow: var(--shadow-md); }
.full-article-img { width: 100%; height: 350px; object-fit: cover; }
.full-article-body { padding: 32px; }
.article-meta { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.full-article-body h2 { font-size: 1.6rem; font-weight: 800; color: var(--text-heading); margin-bottom: 16px; line-height: 1.4; }
.full-article-body p { color: var(--text-main); margin-bottom: 16px; line-height: 1.9; }
.full-article-body ul, .full-article-body ol { margin-bottom: 16px; padding-right: 24px; }
.full-article-body li { margin-bottom: 10px; color: var(--text-main); line-height: 1.8; }
.articles-cta {
  text-align: center; margin-top: 60px; padding: 48px;
  background: linear-gradient(135deg, var(--teal-50), white);
  border-radius: var(--radius-xl); border: 1px solid var(--teal-200);
}
.articles-cta h3 { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); margin-bottom: 8px; }
.articles-cta p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== تجاوب ===== */
@media (max-width: 768px) {
  .contact-info { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .articles-hero-title { font-size: 1.8rem; }
  .full-article-img { height: 220px; }
  .full-article-body { padding: 20px; }
  .full-article-body h2 { font-size: 1.3rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
}


/* ========== Hero Section - تصميم جديد ========== */
.hero {
  padding: 40px 0 80px;
  background: linear-gradient(175deg, #f0fdfa 0%, #ffffff 30%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

/* دوائر زخرفية في الخلفية */
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13,148,136,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== الشارات ===== */
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(13,148,136,0.2);
}

.hero-badge-outline {
  background: white;
  color: var(--teal-700);
  border: 2px solid var(--teal-200);
  box-shadow: none;
}

/* ===== العنوان ===== */
.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal-200);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--slate-500);
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 540px;
}

/* ===== الإحصائيات ===== */
.hero-stats-row {
  display: flex;
  gap: 30px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: var(--transition);
}

.hero-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}

.hero-stat-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--teal-600);
  flex-shrink: 0;
}

.hero-stat-info {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ===== الأزرار ===== */
.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(13,148,136,0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13,148,136,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--teal-700);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--teal-200);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== شريط الثقة ===== */
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

.trust-item i {
  color: var(--teal-500);
  font-size: 1rem;
}

/* ===== الصورة المركبة ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-complex {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-main-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13,148,136,0.15), transparent);
  pointer-events: none;
}

/* ===== كروت عائمة ===== */
.hero-float-card {
  position: absolute;
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  border: 1px solid var(--slate-100);
  animation: floatSlow 4s ease-in-out infinite;
}

.hero-float-1 {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: -20px;
  left: -30px;
  animation-delay: 2s;
}

.float-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--teal-600);
  flex-shrink: 0;
}

.float-text {
  display: flex;
  flex-direction: column;
}

.float-text strong {
  font-size: 0.85rem;
  color: var(--slate-800);
  line-height: 1.3;
}

.float-text span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== نقاط زخرفية ===== */
.hero-dots {
  position: absolute;
  bottom: 40px;
  right: -20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  z-index: 0;
  opacity: 0.3;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  background: var(--teal-400);
  border-radius: 50%;
}

/* ===== تجاوب ===== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-image-complex {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-float-1 {
    top: -15px;
    right: -15px;
  }
  
  .hero-float-2 {
    bottom: -15px;
    left: -15px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 30px 0 50px;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .hero-stats-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-stat {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-outline {
    justify-content: center;
    width: 100%;
  }
  
  .hero-float-card {
    display: none;
  }
  
  .hero-image-complex {
    max-width: 280px;
  }
  
  .hero-img {
    min-height: 300px;
  }
}