/* 
  =========================================
  EcoMaterials Platform Design System
  =========================================
  العربية - اتجاه القراءة من اليمين لليسار (RTL)
  المطور: Antigravity AI
  2026 © EcoMaterials B2B
*/

/* استيراد خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* المتغيرات الأساسية للتصميم */
:root {
  --primary-color: #1B7A4D;       /* أخضر عميق - استدامة */
  --primary-hover: #135c39;
  --primary-light: #e8f5e9;
  --secondary-color: #0f172a;     /* أزرق/رمادي داكن - نصوص وخلفيات */
  --secondary-light: #1e293b;
  --accent-color: #d97706;        /* ذهبي/كهرماني دافئ - شهادات و CTA */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* التنسيقات العامة */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* روابط وتأثيرات حركية عامة */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

/* تأثير التمرير والظهور التدريجي (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.95);
}

.reveal.show {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* شريط التنقل المخصص (Sticky Navbar) */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  transition: var(--transition-base);
  z-index: 1050;
  padding: 15px 0;
}

.navbar-custom.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.navbar-brand-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-logo i {
  animation: rotateLeaf 10s linear infinite;
  display: inline-block;
}

@keyframes rotateLeaf {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

.nav-link-custom {
  font-weight: 600;
  color: var(--secondary-light) !important;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 16px !important;
  transition: var(--transition-base);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link-custom:hover {
  color: var(--primary-color) !important;
}

/* الأزرار المخصصة */
.btn-custom {
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  border: 1px solid var(--primary-color);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 122, 77, 0.2);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
}

.btn-outline-custom:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent-custom {
  background-color: var(--accent-color);
  color: var(--text-light) !important;
  border: 1px solid var(--accent-color);
}

.btn-accent-custom:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

/* قسم البطل (Hero Section) والفيديو */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-light);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(27, 122, 77, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 35px;
  line-height: 1.8;
  max-width: 800px;
}

/* أشكال عائمة بالخلفية */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 150px;
  height: 150px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: 5%;
  animation-delay: 4s;
  background: rgba(27, 122, 77, 0.1);
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 40%;
  animation-delay: 8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
}

/* شريط الإحصائيات (Counter Bar) */
.stats-bar-container {
  position: relative;
  z-index: 4;
  margin-top: -60px;
}

.stats-bar-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.stat-item {
  border-left: 1px solid var(--border-color);
  padding: 10px 20px;
}

.stat-item:last-child {
  border-left: none;
}

@media (max-width: 767.98px) {
  .stats-bar-container {
    margin-top: -30px;
  }
  .stat-item {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* تصميم الأقسام (Sections) */
.section-padding {
  padding: 100px 0;
}

.section-bg-dark {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-white {
  background-color: #ffffff;
}

.section-title-tag {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.section-bg-dark .section-subtitle {
  color: rgba(248, 250, 252, 0.7);
}

/* قسم المشكلة والحل */
.problem-card, .solution-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 40px;
  height: 100%;
  border-top: 5px solid;
  transition: var(--transition-base);
}

.problem-card {
  border-top-color: #ef4444; /* أحمر للتعبير عن المشكلة */
}

.solution-card {
  border-top-color: var(--primary-color); /* أخضر للحل */
}

.problem-card:hover, .solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.problem-card .card-icon-wrapper {
  background-color: #fee2e2;
  color: #ef4444;
}

.solution-card .card-icon-wrapper {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.section-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 100%;
  min-height: 350px;
}

.section-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.section-image-wrapper:hover img {
  transform: scale(1.05);
}

/* قسم تصنيفات المواد المتداولة */
.category-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: var(--transition-base);
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 122, 77, 0.3);
}

.category-image {
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.category-card:hover .category-image img {
  transform: scale(1.08);
}

.table-custom-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 40px;
}

.table-custom {
  margin-bottom: 0;
  vertical-align: middle;
}

.table-custom th {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 700;
  padding: 18px 24px;
  border: none;
}

.table-custom td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tbody tr:hover {
  background-color: var(--primary-light);
}

.badge-source {
  background-color: rgba(15, 23, 42, 0.08);
  color: var(--secondary-color);
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

.badge-destination {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

/* قسم كيف تعمل المنصة (Timeline Stepper) */
.timeline-container {
  position: relative;
  margin-top: 60px;
}

/* خط التوصيل للأجهزة المكتبية */
.timeline-line {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-line-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(to left, var(--primary-color), var(--accent-color));
  transition: width 1.5s ease-in-out;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.timeline-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.timeline-step:hover .timeline-number,
.timeline-step.active .timeline-number {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px var(--primary-light);
}

.timeline-step.active-accent .timeline-number {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: var(--text-light);
  box-shadow: 0 0 0 8px var(--accent-light);
}

.timeline-icon-box {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  transition: var(--transition-base);
}

.timeline-step:hover .timeline-icon-box {
  transform: translateY(-5px);
}

.timeline-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* تخصيص التايملاين للموبايل */
@media (max-width: 991.98px) {
  .timeline-line {
    display: none;
  }
  .timeline-step {
    text-align: right;
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
  }
  .timeline-step:last-child {
    margin-bottom: 0;
  }
  .timeline-number {
    margin: 0;
    flex-shrink: 0;
  }
  .timeline-content-wrapper {
    padding-top: 10px;
  }
  .timeline-desc {
    margin: 0;
    max-width: 100%;
  }
}

/* قسم القيمة المضافة */
.value-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid var(--border-color);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 122, 77, 0.2);
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 25px auto;
  transition: var(--transition-base);
}

.value-card:hover .value-icon {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: rotateY(180deg);
}

/* قسم السرية والأمان (Blind Trading) */
.security-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-base);
  height: 100%;
}

.security-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
}

.security-icon {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* قسم الشهادات الخضراء (ESG & Sustainability Certificate) */
.cert-mockup-wrapper {
  position: relative;
  perspective: 1000px;
}

.cert-mockup {
  background-color: #fbfbf9;
  border: 12px double #b45309;
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-image: radial-gradient(#d97706 0.5px, transparent 0.5px), radial-gradient(#d97706 0.5px, #fbfbf9 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-opacity: 0.05;
  transition: var(--transition-base);
  transform-style: preserve-3d;
}

.cert-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg);
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  font-size: 15rem;
  color: var(--primary-color);
  pointer-events: none;
  z-index: 1;
}

.cert-header {
  border-bottom: 2px solid #b45309;
  padding-bottom: 15px;
  margin-bottom: 25px;
  text-align: center;
}

.cert-title-primary {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.cert-title-secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 5px;
}

.cert-body {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cert-sub-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cert-recipient {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary-color);
  border-bottom: 1px dashed var(--border-color);
  display: inline-block;
  padding: 0 30px 5px 30px;
  margin-bottom: 20px;
}

.cert-achievement {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--secondary-light);
  margin-bottom: 25px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.cert-metrics {
  background-color: rgba(27, 122, 77, 0.06);
  border: 1px solid rgba(27, 122, 77, 0.15);
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 30px;
}

.cert-metric-item {
  border-left: 1px solid rgba(27, 122, 77, 0.15);
}

.cert-metric-item:last-child {
  border-left: none;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
}

.cert-signature {
  text-align: center;
  max-width: 140px;
}

.signature-line {
  border-top: 1px solid var(--text-muted);
  margin-top: 10px;
  padding-top: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: bold;
}

.signature-img {
  font-family: 'Cairo', cursive;
  font-size: 1rem;
  color: #1b7a4d;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* شارة ذهبية براقة للشهادة */
.cert-gold-badge {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #fcd34d 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  position: relative;
  border: 2px solid #ffffff;
}

.cert-gold-badge::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px dashed #d97706;
  border-radius: 50%;
  animation: rotateBadge 20s linear infinite;
}

@keyframes rotateBadge {
  100% { transform: rotate(360deg); }
}

.cert-gold-badge i {
  color: #ffffff;
  font-size: 2rem;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* قسم نموذج الإيرادات */
.revenue-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  height: 100%;
}

.revenue-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.revenue-badge {
  background-color: var(--primary-light);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.revenue-card:hover .revenue-badge {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* قسم شرائح العملاء */
.customer-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 35px 25px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  height: 100%;
}

.customer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.customer-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px auto;
  transition: var(--transition-base);
}

.customer-card:hover .customer-icon {
  background-color: var(--accent-color);
  color: var(--text-light);
  transform: scale(1.05);
}

/* قسم تواصل معنا والـ Form */
.contact-info-box {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow-md);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.contact-info-title {
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 15px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 1.4rem;
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h6 {
  margin-bottom: 5px;
  font-weight: 700;
}

.contact-info-text p {
  margin-bottom: 0;
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.95rem;
}

.contact-form-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  height: 100%;
}

.form-control-custom {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition-base);
  text-align: right;
}

.form-control-custom:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
  outline: none;
}

/* تنسيق الـ Dropdown للنوع */
select.form-control-custom {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231B7A4D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 16px 12px;
  padding-left: 2.5rem; /* مسافة للأيقونة على اليسار */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* زر العودة لأعلى (Back to Top) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px; /* بما أن الاتجاه RTL، يفضل وضعه يساراً لعدم إعاقة القراءة */
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
}

/* التذييل (Footer) */
.footer-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--primary-color);
  font-size: 0.95rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  color: rgba(248, 250, 252, 0.7);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(248, 250, 252, 0.7);
  display: inline-block;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(-5px);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(255,255,255,0.05);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  margin-top: 50px;
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.85rem;
}
