html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

@font-face {
  font-family: 'DINNextLTArabic';
  src: url('../assets/fonts/DINNextLTArabic-Regular-3.ttf') format('truetype');
}

:root {
  --color-primary: #540E8A;
  --color-secondary: #9D4FEB;
  --color-text: #7B7B7B;
}

body {
  background-color: #F7F6F9;
  font-family: 'DINNextLTArabic', sans-serif;
  direction: rtl;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f5f5f5d6;
  padding: 16px;
}

.navbar .nav-link {
  color: var(--color-primary);
  font-size: 16px;
}

#langSelector {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #B892DF;
  margin-right: 16px;
}

.lang-wrapper {
  border-right: 2px solid #b5804f6c;
  height: 32px;
  margin-right: 16px;
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero-section {
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
  box-sizing: border-box; 
}


.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .container p {
  color: #B7B7B7;
  font-size: 20px;
}

.hero-section .container h1 {
  color: var(--color-secondary);
  font-size: 80px;
  font-weight: bold;
}

.hero-section .container h2 {
  color: #EAD6FF;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 50px;
}

/* تعديل: لف العناصر داخل wrapper */
.hero-links-wrapper {
  display: flex;
  gap: 20px; /* مسافة بينهم */
  flex-wrap: wrap; /* يخليهم ينزلون إذا ما فيه مساحة */
}

/* الروابط */
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background-color: #F7F6F9;
  padding: 25px 40px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 20px;
  color: var(--color-primary);
  transition: all 0.3s ease;
  margin-left: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--color-secondary);
  
  /* تعديل: نفس الحجم */
  flex: 1 1 200px; /* أقل عرض 200px */
  max-width: 300px;
  text-align: center;
}

.hero-link:hover {
  transform: translateY(-8px);
}

.hero-link img {
  height: 40px;
}

/* إذا الشاشة صغيرة (مثلاً أقل من 767px) */
@media (max-width: 767px) {
  .hero-links-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .hero-link {
    max-width: 100%; /* ياخذ عرض كامل */
  }
}


/* Content */
.main-content {
  margin: 50px 130px;
}

/* إذا الشاشة صغيرة (جوال مثلاً) قللي المارجن */
@media (max-width: 767px) {
  .main-content {
    margin: 30px 20px;
  }
}

/* تنسيق الأعمدة للشاشات المتوسطة وفوق */
@media (min-width: 768px) {
  .main-content {
    grid-template-columns: repeat(2, 1fr);
  }
}


.about h1,
.content-box h1 {
  color: var(--color-primary);
  font-size: 64px;
  font-weight: bold;
  margin-top: 20px;
}

.about h2,
.content-box h2 {
  color: var(--color-secondary);
  font-size: 32px;
  font-weight: bold;
  margin-top: 20px;
}

.about p,
.content-box p {
  color: var(--color-text);
  font-size: 24px;
  margin-top: 20px;
}

.row {
  margin-top: 100px;
}

.row > .col-md-6 {
  padding: 0 20px;
}

.content-box {
  padding: 0 20px;
}

.img-fluid {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 100px auto;
  padding: 40px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 64px;
  font-weight: bold;
  color: var(--color-primary);
}

.form-label {
  font-weight: bold;
  color: var(--color-text);
}

.form-control {
  border-radius: 10px;
  padding: 14px;
}

.form-control::placeholder {
  color: #D0D0D0;
  opacity: 1;
}

.btn {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 18px;
}

.btn:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

/* Footer */
.site-footer {
  background-color: #E7E7E9;
  color: #1C1C1C;
  padding: 80px 50px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo-desc {
  max-width: 300px;
}

.footer-logo-desc a img {
  width: 24px;
  margin-left: 20px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-description {
  line-height: 1.6;
  color: #1C1C1C;
}

.footer-links-wrapper {
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
}

.footer-links-group h4 {
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.footer-links-group ul li {
  margin-bottom: 30px;
}

.footer-links-group ul li a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links-group ul li a img {
  width: 20px;
  margin-left: 10px;
}

.footer-links-group ul li a:hover {
  color: var(--color-primary);
}

/* لما الشاشة تصغر */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo-desc {
    max-width: 100%;
    margin-bottom: 40px;
    text-align: center; /* توسيط النص والأيقونات */
  }

  .footer-logo-desc a img {
    margin: 0 10px; /* توزيع الأيقونات */
  }

  .footer-links-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .footer-links-group ul li {
    margin-bottom: 15px;
  }
}
