/* ========== القواعد العامة ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background-color: #19405e;
  color: #f8f9fa;
}


/* ✅ إخفاء التركيز الأزرق على جميع العناصر */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}


@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/assets/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Regular.ttf') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap; /* ✅ السطر الجديد */
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/assets/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Bold.ttf') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* ✅ السطر الجديد */
}


/* ========== الشريط الجانبي العلوي ========== */
.top-bar {
  position: fixed;
  top: 20%;
  left: -200px;
  transform: translateY(-50%);
  z-index: 1000;
  transition: left 0.3s ease;
}

.top-bar:hover {
  left: 0;
}

.top-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 12px;
}

.phone-box {
  background-color: #2d8446;
  color: white;
  padding: 10px 20px;
  border-top-left-radius: 18px;
  border-bottom-right-radius: 18px;
  font-weight: bold;
  font-size: 15px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  transition: 0.3s;
}

.icon-box:hover {
  background-color: #2d8446;
  color: #fff;
}


/* ========== شريط التنقل ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  padding: 20px 70px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

/* عند السكرول */
.navbar.scrolled {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* الشعار */
.logo {
  height: 65px;
  filter: brightness(0) invert(1); /* أبيض */
  transition: 0.3s;
}

.navbar.scrolled .logo {
  filter: none;
}

/* الروابط */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  position: relative;
  transition: color 0.3s;
}

/* لون الروابط بعد التمرير */
.navbar.scrolled .nav-links a {
  color: #1e3d59;
}

/* خط تحت الرابط */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  background: #2d8446; /* ✅ أخضر دائمًا */
  bottom: -6px;
  left: 0;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ✅ زر البرجر */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001; /* فوق القائمة */
}

.burger span {
  width: 28px;
  height: 3px;
  background: white;
  transition: 0.4s;
}

.navbar.scrolled .burger span {
  background: #1e3d59; /* أزرق داكن */
}

/* ✅ حالة X عند الفتح */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ✅ استايل القائمة بالجوال */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background: white;
    padding: 40px 0;
    display: none;
    border-bottom: 3px solid #2d8446;
  }

  .nav-links a {
    color: #1e3d59 !important;
    font-size: 22px;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.4s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* ========== السلايدر ========== */
.swiper {
  width: 100%;
  height: 100vh;
}

.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
}

.overlay {
  background: rgba(0, 0, 0, 0.65);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  padding: 70px;
}

.slide-content {
  max-width: 600px;
  margin-left: auto;
}

.slide-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.slide-content .cta-button {
  background: transparent;
  color: #f8f9fa;
  border: 0.4px solid #f8f9fa;
  padding: 14px 26px;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.slide-content .cta-button:hover {
  background-color: #f8f9fa;
  color: #19405e;
}

.swiper-pagination-bullet {
  width: 30px;
  height: 30px;
  background: #aaa;
  opacity: 1;
  border-radius: 0;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
  background: #2d8446;
}

/* ✅ تأثير زوم إن ناعم */
.zoom-slide {
  animation: zoomInBackground 20s ease-in-out infinite;
  background-size: 110%; /* أكبر من 100% لتعطي تأثير الزوم */
  background-repeat: no-repeat;
  background-position: center;
}

@keyframes zoomInBackground {
  0% {
    background-size: 100%;
  }
  50% {
    background-size: 110%;
  }
  100% {
    background-size: 100%;
  }
}

@media (max-width: 768px) {
  .zoom-slide {
    animation: none !important;
    background-size: cover !important;
  }
}

/* ========== سكشن الخدمات ========== */
.plant-services-section {
  direction: rtl;
  padding: 80px 70px;
  background-color: #f9f9f9;
}

.section-title-wrapper {
  text-align: right;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0c2e52;
  margin-bottom: 40px;
  text-align: right;
  padding-right: 12px;
}

.plant-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.plant-card {
  flex: 1 1 300px;
  background: white;
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.plant-card:hover {
  transform: translateY(-4px);
}

.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background-color: #2d8446;
  color: white;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 4px 12px;
  font-size: 14px;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0c2e52;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}


/* ========== سكشن أخضر جديد (مقترح) ========== */
.about-company-section {
  background: linear-gradient(90deg, #5dbb65, #3aa858);
  padding: 80px 260px;
  color: white;
  direction: rtl;
  position: relative; /* ضروري لوضع الباترن داخل السكشن */
  overflow: hidden;   /* إخفاء أي تجاوز */
  padding-bottom: 200px;
}

.background-pattern {
  position: absolute;
  padding: 20px 70px;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  opacity: 0.08; /* شفافية خفيفة */
  z-index: 0;
  pointer-events: none;
}

/* ترتيب الصورة لتظهر على اليسار */
.about-company-section .company-image {
  order: 2;
}

/* ترتيب النص ليظهر على اليمين */
.about-company-section .company-content {
  order: 1;
}

.about-company-section .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.company-image {
  width: 340px;
  height: 370px;
  position: relative;
  flex: none; /* لمنع المرونة */
}
.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* يضمن ملء الصورة للمساحة بدون تشويه */
  position: relative;
  z-index: 1;
  border-top-left-radius: 90px;
  border-bottom-right-radius: 90px;
  display: block;
}

.company-image::before {
  content: "";
  position: absolute;
  top: -20px;      /* أعلى يسار */
  left: -20px;
  width: 100%;
  height: 100%;
  border-top-left-radius: 90px;
  border-bottom-right-radius: 90px;
  border: 8px solid #007a35; /* الستروك الأخضر */
  z-index: 0;
  box-sizing: border-box;
}

.company-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.company-text {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 30px;
  color: #fff;
}

.learn-more-button {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 24px;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.learn-more-button:hover {
  background: #fff;
  color: #2d8446;
}

/*سكشن العداد*/

.stats-section {
  background-color: #ffffff;
  padding: 80px 100px;
  direction: rtl;
}

.stats-card {
  position: relative;  
  z-index: 50;
  margin-top: -180px; /* ✅ تخترق السكشن الذي فوقها */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* ❌ لا نريد التفاف */
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow-x: auto; /* ✅ يضمن التمرير إن ضاق المكان */
  gap: 16px;
  flex: 1 1 300px;
  background: white;

  padding: 40px;
  transition: 0.3s;
}

.stat-item {
  flex: 0 0 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item i {
  font-size: 80px;
  color: #2d8446;
  margin-bottom: 12px;
}

.stat-item h3 {
  font-size: 30px;
  font-weight: 800;
  color: #2d8446;
  margin: 0;
}

.stat-item p {
  margin-top: 6px;
  font-size: 15px;
  color: #333;
}



/* الاستشارات */
.consulting-section {
  background: #fff;
  padding: 0px 100px;
  direction: rtl;
  text-align: center;
  position: relative;
  padding-bottom: 80px;
}

.consulting-section .section-title {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #1e3d59;
  text-align: right;
}


.consulting-section .section-more-link {
  float: left;
}

/* صف واحد للصور */
.consulting-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.consulting-card {
  position: relative;
  width: 300px;
  height: 340px;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.consulting-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* التظليل والنص */
.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 89, 48, 0.3);
  color: white;
  overflow: hidden;
}

/* العنوان */
.card-overlay h3 {
  position: absolute;
  bottom: 20px; /* ✅ بدل 0 لإضافة هامش صغير */
  right: 20px;  /* ✅ بدل 20 لتقريبها أكثر من الزاوية */
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  transition: transform 0.4s ease;
  transform: translateY(0);
  z-index: 2;
}

/* الوصف */
.card-overlay p {
  position: absolute;
  bottom: -55px; /* يبدأ مخفي تحت */
  right: 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
  opacity: 0;
  text-align: right;
  transition: all 0.5s ease;
  z-index: 1;
}

/* الهوفر */
.consulting-card:hover .card-overlay {
  background: linear-gradient(
    to top left,
    rgba(30, 61, 89, 0.95) 0%,
    rgba(30, 61, 89, 0.7) 60%,
    rgba(30, 61, 89, 0.3) 80%,
    rgba(30, 61, 89, 0.1) 100%
  );
}

.consulting-card:hover .card-overlay h3 {
  transform: translateY(-70px); /* نفس التأثير السابق */
}

.consulting-card:hover .card-overlay p {
  opacity: 1;
  bottom: 20px; /* ✅ يظهر بهامش مريح فوق الحافة */
}



/* سكشن الرؤية والرسالة */
.vision-mission-section {
  background: linear-gradient(to left, #154c85, #2f70ad);
  color: #fff;
  padding: 80px 200px;
  direction: rtl;
  text-align: right;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}


.pattern-strip-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.pattern-strip-top img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.07; /* تحكم في شفافية البترن */
}

.vision-mission-section .container {
  display: flex;
  z-index: 1;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.vision-mission-column {
  flex: 1 1 40%;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 500px;
}

.icon {
  font-size: 36px;
  margin-top: 5px;
  color: #fff;
  min-width: 40px;
  text-align: center;
}

.text-content h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 12px;
}

.text-content p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}


/* تخصيص سكشن فريقنا بدون التأثير على الاستشارات */
.team-section {
  padding-top: 80px;
  padding-bottom: 100px;
}


.articles-section {
  background: linear-gradient(180deg, #5dbb65 0%, #3aa858 50%, #fff 50%, #fff 100%);
  padding: 100px;
  direction: rtl;
  text-align: right;
  color: #f8f9fa;
}


.articles-section .section-title {
  font-size: 32px;
  font-weight: bold;
  color: #f8f9fa;
  margin-bottom: 60px;
  text-align: right;
}

.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.article-card {
  position: relative;
  width: calc(25% - 24px);
  height: 340px;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.article-card:hover img {
  transform: scale(1.02);
}

/* التظليل فوق الصورة */
/* لضمان أن التاج يثبت فوق الصورة والتظليل */
.article-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 40px 20px 20px; /* ✅ مساحة إضافية لأن التاج الآن فوقها جزئياً */
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.4s ease;
  z-index: 2;
}

.article-card:hover .article-content {
  background-color: #2d8446; /* عند الهوفر يصبح لون صلب */
}

.article-date {
  position: absolute;
  top: -15px;            /* يرفعه للأعلى */
  right: 20px;           /* محاذاة يمين */
  background-color: #2d8446;
  color: white;
  padding: 6px 16px;
  font-size: 14px;
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: inline-block;
  font-weight: bold;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}


.article-title {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}


.visit-blog-section {
  background: linear-gradient(to left, #154c85, #2f70ad);
  color: white;
  padding: 100px 260px;
  direction: rtl;
  overflow: hidden;
}

.visit-blog-section .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.blog-image {
  width: 340px;
  height: 370px;
  position: relative;
  flex: none;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 90px;
  border-bottom-right-radius: 90px;
  position: relative;
  z-index: 1;
}

.blog-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border-top-left-radius: 90px;
  border-bottom-right-radius: 90px;
  border: 8px solid #00c6ff;
  z-index: 0;
  box-sizing: border-box;
}

.blog-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.blog-text {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 30px;
  color: #fff;
}

.visit-button {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 24px;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.visit-button:hover {
  background: #fff;
  color: #154c85;
}



/*اتصل بنا*/
.contact-section {
  background-color: #ffffff;
  padding: 100px 200px;
  direction: rtl;
  text-align: right;
}

.contact-container {
  max-width: 900px;
  margin: auto;
}

.contact-section .section-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e3d59;
  margin-bottom: 40px;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  color: #1e3d59;
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2d8446;
  box-shadow: 0 0 5px rgba(45, 132, 70, 0.3);
}

.submit-button {
  background-color: transparent;
  color: #2d8446;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 26px;
  border: 1px solid #2d8446;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: #2d8446;
  color: white;
}


/*زر عرض المزيد*/
/* زر عرض المزيد يسار والعنوان يمين */
.section-title,
.section-more-link {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 30px;
}

.plant-services-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* ضروري للموبايل */
  margin-bottom: 30px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 18px;
  color: #1e3d59;
  text-decoration: none;
  transition: color 0.3s ease;
}

.more-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.more-link:hover {
  color: #2d8446;
}

.more-link:hover i {
  transform: translateX(-4px);
}


/* ========= أنيميشن الدخول ========== */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* الوضع المبدئي قبل الظهور */
.animate-right,
.animate-left {
  opacity: 0;
}

/* عند التفعيل */
.animate-right.show {
  animation: fadeInRight 1s ease forwards;
}

.animate-left.show {
  animation: fadeInLeft 1s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up,
.animate-down {
  opacity: 0;
}

.animate-up.show {
  animation: fadeInUp 1s ease forwards;
}

.animate-down.show {
  animation: fadeInDown 1s ease forwards;
}


/* ========== ريسبونسف الهيدر والنافبار ========== */
@media (max-width: 991px) {
  .navbar {
    padding: 16px 30px;
  }

  .navbar .container {
    flex-direction: row;
  }

  .logo {
    height: 30px;
  }
}


/* ========== ريسبونسف السلايدر ========== */
@media (max-width: 768px) {
  .overlay {
    padding: 20px;
    justify-content: center;
    text-align: center;
  }

  .slide-content h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .slide-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
  }

  .slide-content .cta-button {
    font-size: 14px;
    padding: 10px 16px;
    margin-top: 15px;
  }
}



/* ========== ريسبونسف سكشن الخدمات ========== */
@media (max-width: 768px) {
  .plant-services-section {
    padding: 60px 30px;
    text-align: right; /* ✅ محاذاة النصوص لليمين */
  }

  .plant-cards {
    justify-content: flex-end; /* ✅ جعل البطاقات تصطف لليمين */
    flex-direction: column;
    align-items: flex-end; /* ✅ محاذاة المحتوى لليمين */
  }

  .plant-card {
    flex: 1 1 100%;
  }
}


/* ========== ريسبونسف سكشن about-company ========== */
@media (max-width: 991px) {
  .about-company-section {
    padding: 60px 40px 120px;
  }
  .about-company-section .container {
    flex-direction: column;
    text-align: center;
  }
  .company-image {
    width: 100%;
    height: auto;
  }
  .company-content {
    flex: 1 1 100%;
  }
  .company-text {
    font-size: 16px;
  }
}


/* ========== ريسبونسف سكشن العداد ========== */
@media (max-width: 768px) {
  .stats-section {
    padding: 100px 30px 60px; /* ✅ بادينج توب أكبر */
    text-align: center;
  }

  .stats-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .stat-item {
    flex: 1 1 45%;
  }

  .stat-item h3 {
    font-size: 28px; /* ✅ تصغير الرقم */
  }

  .stat-item p {
    font-size: 16px; /* ✅ تصغير النص */
  }
}


/* ========== ريسبونسف سكشن الاستشارات ========== */
@media (max-width: 768px) {
  .consulting-section {
    padding: 40px 30px;
  }

  .consulting-row {
    flex-direction: column; /* ✅ عرض عمودي */
    gap: 20px;
    align-items: center; /* لتوسيط البطاقات */
  }

  .consulting-card {
    width: 100%;   /* ✅ عرض كامل */
    height: auto;  /* اختياري: اجعل الارتفاع تلقائي أو ثبّته حسب المحتوى */
    max-width: 100%;
  }

  .card-overlay h3 {
    font-size: 20px;
  }

  .card-overlay p {
    font-size: 13px;
  }
}



/* ========== ريسبونسف سكشن الرؤية والرسالة ========== */
@media (max-width: 991px) {
  .vision-mission-section {
    padding: 60px 40px;
  }
  .vision-mission-section .container {
    flex-direction: column;
    gap: 40px;
  }
}


/* ========== ريسبونسف سكشن المقالات ========== */
@media (max-width: 991px) {
  .articles-section {
    padding: 60px 30px;
  }
  .articles-grid {
    justify-content: center;
  }
  .article-card {
    width: 100%;
  }
}


/* ========== ريسبونسف visit-blog-section ========== */
@media (max-width: 991px) {
  .visit-blog-section {
    padding: 60px 30px;
  }
  .visit-blog-section .container {
    flex-direction: column;
    text-align: center;
  }
  .blog-image {
    width: 100%;
    height: auto;
  }
  .blog-text {
    font-size: 16px;
  }
}


/* ========== ريسبونسف contact-section ========== */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 30px;
  }
  .contact-section .section-title {
    font-size: 26px;
  }
}


/* ========== الفوتر - الكمبيوتر ========== */
/* ========== FOOTER MAIN ========== */
.main-footer {
  background-color: #1e1e1e;
  color: #f8f9fa;
  padding: 80px 60px 30px;
  font-size: 15px;
  direction: rtl;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 280px;
  min-width: 240px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-description {
  line-height: 1.9;
  color: #ccc;
}

/* ==== عناوين الأعمدة ==== */
.footer-title {
  font-size: 18px;
  font-weight: bold;
  color: #00c6ff;
  margin-bottom: 16px;
}

/* ==== روابط ==== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2d8446;
}

/* ==== معلومات التواصل ==== */
.footer-column p i {
  margin-left: 8px;
  color: #2d8446;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  color: #f8f9fa;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #2d8446;
}

/* ==== شريط سفلي ==== */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #444;
  margin-top: 40px;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .footer-container {
    align-items: center;       /* ✅ توسيط العمود */
    text-align: center;        /* ✅ توسيط النصوص */
  }

  .footer-column {
    margin: 0 10px;            /* ✅ مسافة بسيطة بين الأعمدة */
  }

  .footer-social {
    justify-content: center;   /* ✅ توسيط الأيقونات */
  }
}


.footer-column a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

.footer-column a[href^="tel"]:hover {
  color: #2d8446;
}

.footer-bottom a {
  outline: none !important;
  box-shadow: none !important;
  color: #00c6ff;
  text-decoration: none;
}

.footer-bottom a:focus {
  outline: none !important;
  box-shadow: none !important;
}






/* تصنيفات الهيدر*/

/* Dropdown container */
.nav-links .dropdown {
  position: relative;
}

/* Toggle link (المدونة) */
.nav-links .dropdown-toggle {
  cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  padding: 10px 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 6px;
}

/* Individual links */
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f2f2f2;
}

/* المستويات الفرعية */
.dropdown-menu a.subcat {
  padding-right: 40px;
  font-weight: normal;
}
.dropdown-menu a.subsubcat {
  padding-right: 60px;
  font-weight: normal;
  font-style: italic;
}

/* عرض القائمة عند المرور */
.dropdown:hover .dropdown-menu {
  display: flex;
}

.footer-bottom {
  direction: ltr !important;
  text-align: center !important;
}

.footer-bottom p {
  margin: 0 auto;
  direction: rtl; /* ← فقط على النص العربي داخل p */
  text-align: center;
  width: fit-content;
}

.footer-column a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
}

.footer-column a[href^="mailto"]:hover {
  color: #2d8446;
}

.footer-column a[href^="mailto"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

