@charset "UTF-8";
/* Cairo font will be loaded from layout */
:root {
  --black-color: #14171a;
  --orange-color: rgb(255, 107, 53);
  --grey-color: #f7f7f7;
  --green: #1450a3;
  --boday-font: "Cairo", sans-serif;
  --biggest-font: 1.75rem;
  --bigger-font: 1.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --font-regular: 500;
  --font-medium: 600;
  --font-semi-bold: 700;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* منع scroll أفقي */
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--boday-font);
  background-color: #fff;
  color: #212529;
  line-height: 1.6;
  overflow-x: hidden; /* منع scroll أفقي */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Container class للتوافق */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden; /* منع scroll غير مبرر */
}

/* Row and Column system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col,
.col-lg-5,
.col-lg-7,
.col-md-6 {
  padding: 0 15px;
  flex: 1;
}

.col-lg-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-lg-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col,
  .col-lg-5,
  .col-lg-7,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .container {
    padding: 0 15px;
  }
}
/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* تحسينات إضافية للصور */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* منع Layout Shift */
section {
  min-height: 0;
  overflow: hidden;
}

/* تحسين الأداء */
* {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* تحسينات إضافية لمنع scroll غير مبرر */
.product-intro,
.product-types,
.product-gallery,
.product-faq,
.product-cta,
.related-articles {
  overflow: hidden;
  width: 100%;
}

/* تحسينات إضافية للصور */
.intro-image,
.product-image,
.article-image {
  overflow: hidden;
  position: relative;
}

.intro-image img,
.product-image img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

/* تحسينات إضافية لمنع Layout Shift */
.product-intro-content,
.product-types-content,
.product-gallery-content,
.product-faq-content,
.product-cta-content,
.related-articles-content {
  overflow: hidden;
  width: 100%;
}

/* تحسينات إضافية للصور */
.intro-image picture,
.product-image picture,
.article-image picture {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.intro-image picture img,
.product-image picture img,
.article-image picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

/* تحسينات إضافية لمنع Layout Shift */
.product-intro,
.product-types,
.product-gallery,
.product-faq,
.product-cta,
.related-articles {
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

/* تحسينات إضافية للصور */
.intro-image,
.product-image,
.article-image {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.intro-image img,
.product-image img,
.article-image img {
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

/* تحسينات إضافية لمنع Layout Shift */
.product-intro,
.product-types,
.product-gallery,
.product-faq,
.product-cta,
.related-articles {
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

/* تحسينات إضافية للصور */
.intro-image,
.product-image,
.article-image {
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.intro-image img,
.product-image img,
.article-image img {
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* تحسينات إضافية لمنع Layout Shift */
.product-intro,
.product-types,
.product-gallery,
.product-faq,
.product-cta,
.related-articles {
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
}

/* تحسينات إضافية للصور */
.intro-image,
.product-image,
.article-image {
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.intro-image img,
.product-image img,
.article-image img {
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 100% !important;
  max-height: 100% !important;
  position: relative !important;
}

/* تحسينات إضافية لمنع Layout Shift */
.product-intro,
.product-types,
.product-gallery,
.product-faq,
.product-cta,
.related-articles {
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
  display: block !important;
}

/* تحسينات إضافية للصور */
.intro-image,
.product-image,
.article-image {
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

.intro-image img,
.product-image img,
.article-image img {
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 100% !important;
  max-height: 100% !important;
  position: relative !important;
  display: block !important;
}

/* تحسينات إضافية لمنع Layout Shift */
.product-intro,
.product-types,
.product-gallery,
.product-faq,
.product-cta,
.related-articles {
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* تحسينات إضافية للصور */
.intro-image,
.product-image,
.article-image {
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.intro-image img,
.product-image img,
.article-image img {
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 100% !important;
  max-height: 100% !important;
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* التحسينات الأساسية للشاشات المتوسطة */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .content {
    padding: 20px 15px;
  }
  /* منع scroll غير مبرر */
  .container {
    overflow: hidden;
  }
  /* تحسين الصور للشاشات المتوسطة */
  .intro-image {
    max-width: 100% !important;
    height: 300px !important;
  }
  /* تحسين التخطيط للشاشات المتوسطة */
  .product-intro-content {
    gap: 30px !important;
  }
  /* منع Layout Shift للشاشات المتوسطة */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  /* تحسين الصور للشاشات المتوسطة */
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  /* تحسينات إضافية للشاشات المتوسطة */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
  }
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
  }
  /* تحسينات إضافية للشاشات المتوسطة */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
  }
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
    display: block !important;
  }
}
/* التحسينات الشاملة للهواتف */
@media (max-width: 768px) {
  /* التحسينات العامة */
  .content {
    padding: 15px 10px;
  }
  body {
    padding-bottom: 80px; /* مساحة للقائمة السفلية */
    overflow-x: hidden;
  }
  /* منع scroll غير مبرر */
  .container {
    overflow: hidden;
    padding: 0 10px;
  }
  /* تحسين الصور للهواتف */
  .intro-image {
    max-width: 100% !important;
    height: 250px !important;
  }
  .product-image {
    height: 180px !important;
  }
  .article-image {
    height: 160px !important;
  }
  /* تحسين التخطيط للهواتف */
  .product-intro-content {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .product-intro {
    padding: 30px 0 !important;
  }
  /* منع Layout Shift للهواتف */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  /* تحسين الصور للهواتف */
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  /* تحسينات إضافية للهواتف */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
  }
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
  }
  /* تحسينات إضافية للهواتف */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
  }
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
    display: block !important;
  }
  /* Top Bar للهواتف */
  .top-bar {
    padding: 8px 15px;
    font-size: 11px;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  .top-bar-right {
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
  }
  /* Header للهواتف */
  .main-header {
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  /* Logo للهواتف */
  .logo img {
    height: 45px;
  }
  .company-name {
    display: none; /* إخفاء النص في الهواتف لتوفير مساحة */
  }
  /* Search Box للهواتف */
  .search-box {
    display: none; /* إخفاء البحث في الهواتف أو جعله منفصل */
  }
  /* Navigation للهواتف */
  .main-nav {
    display: none; /* إخفاء التنقل الرئيسي في الهواتف */
  }
  /* Hero Banner للهواتف */
  .hero-banner {
    height: 280px !important;
    margin-bottom: 20px;
  }
  .hero-banner h1 {
    font-size: 22px !important;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .hero-banner p {
    font-size: 14px !important;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .hero-content {
    padding: 0 15px;
  }
  .hero-cta {
    padding: 8px 16px;
    font-size: 14px;
  }
  /* About Section للهواتف */
  .about-us-section {
    padding: 30px 0 !important;
    margin: 20px 0 !important;
  }
  .about-us-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }
  .about-us-section p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .about-us-section > div > div {
    padding: 0 10px !important;
  }
  /* Products Section للهواتف */
  .products-section {
    padding: 30px 0;
  }
  .products-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .product-card {
    margin-bottom: 15px;
  }
  .product-info h3 {
    font-size: 16px;
  }
  .product-info p {
    font-size: 13px;
    line-height: 1.4;
  }
  /* Features Section للهواتف */
  .features-section {
    padding: 30px 0;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .feature-card {
    padding: 20px 15px;
    text-align: center;
  }
  .feature-card h3 {
    font-size: 16px;
  }
  .feature-card p {
    font-size: 13px;
  }
  /* Projects Section للهواتف */
  .projects-section {
    padding: 30px 0;
  }
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  /* Contact Section للهواتف */
  .contact-section {
    flex-direction: column;
    padding: 30px 0;
  }
  .contact-info,
  .contact-form {
    width: 100%;
    margin-bottom: 20px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* منع التكبير التلقائي في iOS */
  }
  /* Footer للهواتف */
  .footer {
    padding: 20px 15px;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  /* Articles Section للهواتف */
  .articles-section {
    padding: 30px 0;
  }
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .article-card {
    margin-bottom: 15px;
  }
  /* Menu Toggle للهواتف */
  .menu-toggle {
    display: block !important;
    font-size: 24px;
    padding: 8px;
    color: #205781;
  }
  /* تحسين Testimonials للهواتف */
  .testimonials-section {
    padding: 40px 0 !important;
  }
  .testimonials-section h2 {
    font-size: 1.8rem !important;
  }
  .testimonials-section > div > div {
    padding: 0 10px !important;
  }
  /* تحسين Call to Action للهواتف */
  .call-to-action-section {
    padding: 40px 0 !important;
  }
  .call-to-action-section h2 {
    font-size: 1.6rem !important;
  }
}
/* التحسينات للشاشات الصغيرة جداً */
@media (max-width: 576px) {
  .container {
    padding: 0 8px;
  }
  .content {
    padding: 10px 8px;
  }
  /* تحسين الصور للشاشات الصغيرة */
  .intro-image {
    max-width: 100% !important;
    height: 200px !important;
  }
  .product-image {
    height: 150px !important;
  }
  .article-image {
    height: 120px !important;
  }
  /* تحسين النصوص */
  .intro-text h1,
  .intro-text h2 {
    font-size: 20px !important;
    line-height: 1.3;
  }
  .intro-text p {
    font-size: 14px !important;
    line-height: 1.6;
  }
  /* تحسين المسافات */
  .product-intro {
    padding: 20px 0 !important;
  }
  .product-intro-content {
    gap: 15px !important;
  }
  /* تحسين التخطيط للشاشات الصغيرة */
  .product-intro-content {
    flex-direction: column !important;
    gap: 15px !important;
  }
  /* تحسين النصوص للشاشات الصغيرة */
  .intro-text h1,
  .intro-text h2 {
    font-size: 18px !important;
    line-height: 1.3;
    margin-bottom: 15px !important;
  }
  .intro-text p {
    font-size: 13px !important;
    line-height: 1.5;
    margin-bottom: 10px !important;
  }
  /* منع Layout Shift للشاشات الصغيرة */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  /* تحسين الصور للشاشات الصغيرة */
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  /* تحسينات إضافية للشاشات الصغيرة */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
  }
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
  }
  /* تحسينات إضافية للشاشات الصغيرة */
  .product-intro,
  .product-types,
  .product-gallery,
  .product-faq,
  .product-cta,
  .related-articles {
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
  }
  .intro-image,
  .product-image,
  .article-image {
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
  }
  .intro-image img,
  .product-image img,
  .article-image img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
    display: block !important;
  }
}
/* Side Menu للهواتف */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 300px;
  height: 100vh;
  background-color: #fff;
  z-index: 9999 !important; /* أعلى z-index للتأكد من الظهور */
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  display: block !important; /* تأكد من العرض */
  visibility: visible !important; /* تأكد من الرؤية */
}

.side-menu.active {
  right: 0 !important;
  transform: translateX(0) !important;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  border-bottom: 1px solid #eee;
  background-color: #205781;
  color: white;
}

.menu-header span {
  font-weight: 600;
  font-size: 16px;
}

.menu-close {
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 5px;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.side-menu a {
  display: block;
  padding: 15px 20px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.side-menu a:hover {
  background-color: #f8f9fa;
  color: #205781;
  padding-right: 25px;
}

.side-menu a.active {
  color: #205781;
  border-right: 4px solid #205781;
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Overlay للقائمة الجانبية */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998 !important; /* أقل من side menu */
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block !important;
  opacity: 1 !important;
}

/* Bottom Navigation للهواتف */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #eee;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #777;
  text-decoration: none;
  padding: 5px 10px;
  min-width: 60px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: #205781;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

.nav-item.active {
  color: #205781;
  font-weight: 600;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}
/* تحسينات إضافية للـ Swiper في الهواتف */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important; /* إخفاء الأسهم في الهواتف */
  }
  .swiper-pagination {
    bottom: 10px !important;
  }
  .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    margin: 0 3px !important;
  }
}
/* تحسينات خاصة بالنصوص العربية */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  /* تحسين المسافات للنصوص العربية */
  p {
    margin-bottom: 12px;
  }
  /* تحسين الأزرار للهواتف */
  .btn, .hero-cta, .product-cta {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px; /* iOS accessibility */
    border-radius: 6px;
  }
  /* تحسين الإدخالات للهواتف */
  input, textarea, select {
    font-size: 16px !important; /* منع التكبير في iOS */
    padding: 12px 15px;
    border-radius: 6px;
  }
}
/* تحسينات للشاشات الطويلة (iPhone X وما شابه) */
@media (max-width: 768px) and (min-height: 800px) {
  .hero-banner {
    height: 320px !important;
  }
  .content {
    padding: 20px 15px;
  }
}
/* تحسين الصور للهواتف */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  .product-image,
  .project-card img,
  .article-image img {
    border-radius: 8px;
  }
}
/* تحسينات للـ Landscape في الهواتف */
@media (max-width: 926px) and (orientation: landscape) {
  .hero-banner {
    height: 200px !important;
  }
  .hero-banner h1 {
    font-size: 18px !important;
  }
  .hero-banner p {
    font-size: 12px !important;
  }
  body {
    padding-bottom: 60px;
  }
  .bottom-nav {
    padding: 5px 0;
  }
  .nav-item {
    font-size: 10px;
    padding: 3px 8px;
  }
  .nav-item i {
    font-size: 16px;
    margin-bottom: 2px;
  }
}
/* Logo styling */
.logo {
  position: relative;
}

.logo a {
  text-decoration: none;
  color: #333;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

.company-name {
  display: flex;
  flex-direction: column;
}

.company-name h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #205781;
}

.company-name span {
  font-size: 12px;
  color: #666;
}

/* Top Bar */
.top-bar {
  background-color: #000;
  color: #fff;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
}

.top-bar-right {
  display: flex;
  gap: 20px;
}

.top-bar-left {
  display: flex;
  gap: 15px;
}

.top-bar-left a {
  color: #fff;
}

/* Main Header */
.main-header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.search-box {
  position: relative;
  width: 40%;
}

.search-box input {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f8f8f8;
}

.search-box .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icons a {
  color: #333;
  font-size: 18px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 3px;
}

.lang-selector img {
  height: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
  .logo-container {
    gap: 5px;
  }
  .company-name h6 {
    font-size: 15px;
  }
  .company-name span {
    font-size: 12px;
  }
  .menu-toggle {
    display: block;
  }
}
/* Main Navigation */
.main-nav {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 20px;
  overflow-x: hidden;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  list-style-type: none;
  padding: 10px 0;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  color: #205781;
}

.main-nav a.active {
  color: #205781;
  font-weight: 700;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  transition: right 0.3s;
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.menu-close {
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.side-menu ul {
  list-style: none;
}

.side-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.side-menu a {
  display: block;
  padding: 12px 15px;
  color: #333;
  font-size: 14px;
}

.side-menu a.active {
  color: #205781;
  border-right: 3px solid #205781;
  background-color: #f9f9f9;
}

/* Bottom Navigation for Mobile */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #eee;
  z-index: 100;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #777;
}

.nav-item a {
  color: #777;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item i {
  font-size: 16px;
  margin-bottom: 3px;
}

.nav-item.active {
  color: #205781;
}

.nav-item.active a {
  color: #046a38;
}

.social-links a {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  font-size: 24px;
}

.swiper-pagination-bullet {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin: 0 8px !important;
  padding: 6px !important;
  display: inline-block;
  cursor: pointer;
}

/* Hero Banner with Swiper */
.hero-banner {
  width: 100%;
  height: 400px;
  position: relative;
  color: #fff;
  margin-bottom: 30px;
  border-radius: 5px;
  overflow: hidden;
}

/* Swiper Container */
.hero-swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* تحسين عرض الصور في السلايدر */
.hero-background-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.hero-background-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  min-height: 200px; /* منع Layout Shift */
}

.hero-banner h1 {
  font-size: 36px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  min-height: 60px; /* منع Layout Shift */
  margin: 0;
  padding: 20px 0;
  line-height: 1.2;
}

.hero-banner p {
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  min-height: 80px; /* منع Layout Shift */
  margin: 0;
  padding: 10px 0;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background-color: #205781;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  min-height: 44px; /* منع Layout Shift */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-cta:hover {
  background-color: rgba(0, 102, 255, 0.2823529412);
  transform: translateY(-3px);
}

/* Swiper Pagination */
.swiper-pagination {
  position: absolute;
  bottom: 20px;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  background-color: #fff;
  margin: 0 5px;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #205781;
}

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.3) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  z-index: 21 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.1) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
}

/* تحسينات إضافية لضمان ظهور الصور */
.swiper-wrapper {
  height: 100% !important;
  width: 100% !important;
}

.swiper-slide {
  opacity: 1 !important;
  visibility: visible !important;
}

/* إصلاح مشكلة عدم ظهور الصور في تأثير slide */
.swiper-slide-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 28px;
  }
  .hero-banner p {
    font-size: 16px;
  }
}
@media (max-width: 576px) {
  .hero-banner {
    height: 350px;
  }
  .hero-banner h1 {
    font-size: 24px;
  }
  .hero-banner p {
    font-size: 14px;
  }
}
/* Products Section */
.products-heading {
  text-align: center;
  margin-bottom: 30px;
}

.products-heading h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.products-heading p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-height: 300px; /* منع Layout Shift */
  width: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  overflow: hidden;
  aspect-ratio: 16/9; /* منع Layout Shift */
  background: #f8f9fa;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  aspect-ratio: 16/9; /* منع Layout Shift */
  background: #f8f9fa;
  max-width: 100%;
  max-height: 100%;
}

/* تم تعطيل transform scale لتحسين الأداء */
/* .product-card:hover .product-image img {
  transform: scale(1.05);
} */
.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  min-height: 40px; /* منع Layout Shift */
  margin: 10px 0;
  line-height: 1.3;
}

.product-info p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 60px; /* منع Layout Shift */
  margin: 10px 0;
}

.product-cta {
  display: inline-block;
  background-color: #205781;
  color: #fff;
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.product-cta:hover {
  background-color: rgba(0, 102, 255, 0.2823529412);
}

/* ===== قسم المقالات في الصفحة الرئيسية ===== */
.featured-articles {
  padding: 80px 0;
  background-color: #f9f9f9;
}

/* تحسين أحجام الصور للأداء */
.article-preview-image img,
.article-image img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* منع Layout Shift للصور */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* تحسينات إضافية للصور */
.intro-image picture,
.product-image picture,
.article-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.intro-image picture img,
.product-image picture img,
.article-image picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

/* تحسينات إضافية لمنع scroll غير مبرر */
.product-card,
.article-card {
  overflow: hidden;
  position: relative;
}

.product-image,
.article-image {
  overflow: hidden;
  position: relative;
}

/* تحسينات إضافية للتصميم المتجاوب */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-image {
    height: 180px;
  }
  .article-image {
    height: 160px;
  }
}
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .product-image {
    height: 150px;
  }
  .article-image {
    height: 120px;
  }
}
/* Features Section */
.features-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  margin-bottom: 40px;
  border-radius: 5px;
}

.features-heading {
  text-align: center;
  margin-bottom: 30px;
}

.features-heading h2 {
  font-size: 28px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 36px;
  color: #205781;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.feature-card p {
  color: #666;
  font-size: 14px;
}

/* Projects Section */
.projects-section {
  margin-bottom: 40px;
}

.projects-heading {
  text-align: center;
  margin-bottom: 30px;
}

.projects-heading h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.projects-heading p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  height: 250px;
  border-radius: 5px;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.project-overlay h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.project-overlay p {
  font-size: 14px;
  opacity: 0.8;
}

/* Contact Section Wrapper */
.contact-section-wrapper {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.contact-section-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(32, 87, 129, 0.02) 0%, rgba(37, 211, 102, 0.02) 100%);
  pointer-events: none;
}

/* Contact Section - Bootstrap-like Classes */
.contact-section {
  display: flex;
  gap: 40px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

.contact-info {
  flex: 1;
  padding: 50px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(32, 87, 129, 0.05) 0%, rgba(37, 211, 102, 0.05) 100%);
  pointer-events: none;
}

.contact-heading {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.contact-heading h2 {
  font-size: 32px;
  color: #205781;
  margin-bottom: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-heading p {
  color: #6c757d;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.contact-details {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid #f8f9fa;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(32, 87, 129, 0.15);
  border-color: #205781;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #205781 0%, #25d366 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 25px;
  color: white;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(32, 87, 129, 0.3);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(32, 87, 129, 0.4);
}

.contact-text h3 {
  font-size: 18px;
  color: #205781;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-text p {
  color: #495057;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  flex: 1;
  padding: 50px 40px;
  background: white;
  position: relative;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #205781 0%, #25d366 100%);
}

.modern-form {
  width: 100%;
}

.form-header {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.form-header h3 {
  font-size: 28px;
  color: #205781;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.form-header p {
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* Bootstrap-like Form Classes */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-row {
  display: flex;
  gap: 25px;
}

.form-row .form-group {
  flex: 1;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: #205781;
  font-weight: 700;
  font-size: 15px;
  position: relative;
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
  font-weight: 800;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  color: #495057;
  font-weight: 500;
  position: relative;
  line-height: 1.5;
}

.form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.form-control:focus {
  outline: none;
  border-color: #205781;
  background: white;
  box-shadow: 0 0 0 4px rgba(32, 87, 129, 0.1);
  transform: translateY(-2px);
}

.form-control:hover {
  border-color: #205781;
  background: white;
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

/* Select Control */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 50px;
}

/* Textarea Control */
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Character Count */
.form-text {
  display: block;
  text-align: left;
  font-size: 13px;
  color: #6c757d;
  margin-top: 8px;
  font-weight: 500;
}

.form-text.text-muted {
  color: #6c757d;
}

.form-text.text-danger {
  color: #dc3545;
  font-weight: 600;
}

.form-text.text-success {
  color: #28a745;
  font-weight: 600;
}

/* Invalid Feedback */
.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}

.valid-feedback {
  display: block;
  color: #28a745;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}

/* Form Actions */
.form-actions {
  margin-top: 40px;
}

/* Button Classes */
.btn {
  display: inline-block;
  padding: 18px 32px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(32, 87, 129, 0.1);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #205781 0%, #25d366 100%);
  color: white;
}

.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 10px 30px rgba(32, 87, 129, 0.4);
  background: linear-gradient(135deg, #25d366 0%, #205781 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 20px 36px;
  font-size: 20px;
}

.btn-sm {
  padding: 12px 20px;
  font-size: 14px;
}

/* Loading State */
.btn.loading {
  pointer-events: none;
}

.btn.loading .btn-text {
  opacity: 0;
}

.btn.loading .btn-loading {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Alert Classes */
.alert {
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-color: #28a745;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-color: #dc3545;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-color: #ffc107;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-color: #17a2b8;
  box-shadow: 0 4px 16px rgba(23, 162, 184, 0.2);
}

/* Utility Classes */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-primary {
  color: #205781 !important;
}

.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

/* Display utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

/* Flexbox utilities */
.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

/* Width utilities */
.w-100 {
  width: 100% !important;
}

.w-75 {
  width: 75% !important;
}

.w-50 {
  width: 50% !important;
}

.w-25 {
  width: 25% !important;
}

/* Font weight utilities */
.fw-bold {
  font-weight: bold !important;
}

.fw-normal {
  font-weight: normal !important;
}

.fw-light {
  font-weight: 300 !important;
}

/* List utilities */
.list-unstyled {
  list-style: none !important;
  padding-right: 0 !important;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section-wrapper {
    padding: 40px 0;
  }
  .contact-section {
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    margin: 20px 10px;
  }
  .contact-info,
  .contact-form {
    padding: 30px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-heading h2 {
    font-size: 24px;
  }
  .contact-heading p {
    font-size: 14px;
  }
  .contact-item {
    padding: 15px;
    margin-bottom: 20px;
  }
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin-left: 15px;
  }
  .contact-text h3 {
    font-size: 16px;
  }
  .contact-text p {
    font-size: 14px;
  }
  .form-header h3 {
    font-size: 20px;
  }
  .form-header p {
    font-size: 14px;
  }
  .form-control {
    padding: 14px 16px;
    font-size: 16px; /* منع التكبير في iOS */
  }
  .btn {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 44px; /* iOS accessibility */
  }
  .btn-lg {
    padding: 18px 28px;
    font-size: 18px;
    min-height: 48px;
  }
}
@media (max-width: 480px) {
  .contact-section-wrapper {
    padding: 30px 0;
  }
  .contact-section {
    margin: 15px 8px;
    border-radius: 8px;
  }
  .contact-info,
  .contact-form {
    padding: 25px 15px;
  }
  .contact-heading h2 {
    font-size: 20px;
  }
  .contact-heading p {
    font-size: 13px;
  }
  .contact-item {
    padding: 12px;
    margin-bottom: 15px;
    flex-direction: column;
    text-align: center;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin: 0 auto 10px auto;
  }
  .contact-text h3 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  .contact-text p {
    font-size: 13px;
  }
  .form-header h3 {
    font-size: 18px;
  }
  .form-header p {
    font-size: 13px;
  }
  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* ثابت لمنع التكبير */
    border-radius: 8px;
  }
  .btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 44px;
    border-radius: 8px;
  }
  .btn-lg {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 48px;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-label {
    font-size: 14px;
    margin-bottom: 8px;
  }
}
/* Footer */
.footer {
  background-color: #fff;
  padding: 40px 20px 20px;
  border-top: 1px solid #f0f0f0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #495057;
  font-size: 14px;
  transition: color 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover {
  color: #205781;
}

/* Social Media Icons */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #205781;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-links a:hover {
  background-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-links .icon-facebook:hover {
  background-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-links .icon-twitter:hover {
  background-color: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.social-links .icon-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

/* Contact Icons in Footer */
.footer-col .icon-phone,
.footer-col .icon-envelope,
.footer-col .icon-location-dot {
  font-size: 16px;
  color: #205781;
  margin-left: 8px;
}

.footer-bottom {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(1fr);
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #495057;
}

/* Developer Info */
.developer-info {
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
}

.developer-info a {
  color: #046a38;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:focus {
  outline: 2px solid #205781;
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background-color: #205781;
  color: #ffffff;
  border-color: #205781;
}

.btn-primary:hover {
  background-color: #1a4a6b;
  border-color: #1a4a6b;
  color: #ffffff;
}

/* Secondary Button */
.btn-secondary {
  background-color: #f8f9fa;
  color: #495057;
  border-color: #dee2e6;
}

.btn-secondary:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

/* Outline Button - Improved Contrast */
.btn-outline {
  background-color: transparent;
  color: #205781;
  border-color: #205781;
}

.btn-outline:hover {
  background-color: #205781;
  color: #ffffff;
  border-color: #205781;
}

/* Success Button */
.btn-success {
  background-color: #28a745;
  color: #ffffff;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  color: #ffffff;
}

/* Danger Button */
.btn-danger {
  background-color: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: #ffffff;
}

/* Warning Button */
.btn-warning {
  background-color: #ffc107;
  color: #212529;
  border-color: #ffc107;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

/* Info Button */
.btn-info {
  background-color: #17a2b8;
  color: #ffffff;
  border-color: #17a2b8;
}

.btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
  color: #ffffff;
}

/* Light Button */
.btn-light {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #f8f9fa;
}

.btn-light:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
  color: #212529;
}

/* Dark Button */
.btn-dark {
  background-color: #343a40;
  color: #ffffff;
  border-color: #343a40;
}

.btn-dark:hover {
  background-color: #23272b;
  border-color: #1d2124;
  color: #ffffff;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: 8px;
}

.btn-group .btn {
  border-radius: 6px;
}

.btn-group .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-group .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .btn-lg {
    padding: 14px 28px;
    font-size: 16px;
  }
  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }
}
/* whatsapp - تصميم محسن */
#whatsapp a {
  text-decoration: none;
}

#whatsapp .wtsapp {
  position: fixed;
  transition: all 0.5s ease;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 35px;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

/* phone - تصميم محسن */
#phone a {
  text-decoration: none;
}

#phone .phone-btn {
  position: fixed;
  transition: all 0.5s ease;
  background-color: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 35px;
  bottom: 100px;
  left: 25px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

/* تأثير النبض للواتساب */
#whatsapp .wtsapp::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 70px;
  height: 70px;
  background-color: #25d366;
  border-radius: 50%;
  /* animation: pulse-border 1500ms ease-out infinite; تم إزالتها لتحسين الأداء */
}

/* تأثير النبض للهاتف */
#phone .phone-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 70px;
  height: 70px;
  background-color: #007bff;
  border-radius: 50%;
  /* animation: pulse-border 1500ms ease-out infinite; تم إزالتها لتحسين الأداء */
}

/* تأثير الدوران للأيقونات */
#whatsapp .wtsapp i,
#phone .phone-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* نص الواتساب المخفي */
#whatsapp .wtsapp-text {
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background-color: #25d366;
  padding: 6px 20px;
  border-radius: 30px 0 0 30px;
  font-size: 16px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* نص الهاتف المخفي */
#phone .phone-text {
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background-color: #007bff;
  padding: 6px 20px;
  border-radius: 30px 0 0 30px;
  font-size: 16px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* تأثير التحويم للواتساب */
#whatsapp .wtsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

#whatsapp .wtsapp:hover i {
  animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* تأثير التحويم للهاتف */
#phone .phone-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

#phone .phone-btn:hover i {
  animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* عرض النص عند التحويم في الأجهزة غير المحمولة */
@media (min-width: 768px) {
  #whatsapp .wtsapp:hover .wtsapp-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  #whatsapp .wtsapp:hover {
    border-radius: 50%;
  }
  #phone .phone-btn:hover .phone-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  #phone .phone-btn:hover {
    border-radius: 50%;
  }
}
/* تحسين شكل الأزرار في الشاشات الكبيرة */
@media (min-width: 992px) {
  #whatsapp .wtsapp {
    font-size: 40px;
    width: 70px;
    height: 70px;
    left: 30px;
    bottom: 30px;
  }
  #whatsapp .wtsapp::before {
    width: 85px;
    height: 85px;
  }
  #phone .phone-btn {
    font-size: 30px;
    width: 70px;
    height: 70px;
    left: 30px;
    bottom: 110px;
  }
  #phone .phone-btn::before {
    width: 85px;
    height: 85px;
  }
}
/* تحسين شكل الأزرار في الشاشات الصغيرة */
@media (max-width: 576px) {
  #whatsapp .wtsapp {
    font-size: 30px;
    width: 55px;
    height: 55px;
    left: 17px;
    bottom: 40px;
  }
  #whatsapp .wtsapp::before {
    width: 65px;
    height: 65px;
  }
  #phone .phone-btn {
    font-size: 20px;
    width: 55px;
    height: 55px;
    left: 17px;
    bottom: 100px;
  }
  #phone .phone-btn::before {
    width: 65px;
    height: 65px;
  }
}
/* تأثير النبض */
/* تم إزالة keyframes pulse-border لتحسين الأداء */
/* تأثير الاهتزاز */
@keyframes shake {
  10%, 90% {
    transform: rotate(-10deg);
  }
  20%, 80% {
    transform: rotate(10deg);
  }
  30%, 50%, 70% {
    transform: rotate(-10deg);
  }
  40%, 60% {
    transform: rotate(10deg);
  }
}
/* Slider Fixes - إصلاحات السلايدر */
/* إصلاح مشكلة عدم ظهور الصور في السلايدر */
.hero-swiper {
  position: relative !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

.hero-swiper .swiper-wrapper {
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.hero-swiper .swiper-slide {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

/* إصلاح عرض الصور */
.hero-background-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  display: block !important;
}

.hero-background-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.3s ease !important;
}

/* إصلاح مشكلة تأثير slide */
.swiper-slide-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
}

.swiper-slide-active .hero-background-image img {
  opacity: 1 !important;
  visibility: visible !important;
}

.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 1 !important;
}

.swiper-slide-prev .hero-background-image img,
.swiper-slide-next .hero-background-image img {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* إصلاح محتوى السلايدر */
.hero-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  text-align: center !important;
  color: white !important;
  width: 90% !important;
  max-width: 800px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
}

/* إصلاح التنقل */
.swiper-pagination {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 20 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.3) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  z-index: 21 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.1) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
}

/* إصلاح مشكلة عدم ظهور الصور في المتصفحات المختلفة */
@supports not (object-fit: cover) {
  .hero-background-image img {
    width: auto !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 100% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في الأجهزة المحمولة */
@media (max-width: 768px) {
  .hero-swiper {
    height: 350px !important;
  }
  .hero-background-image img {
    object-position: center center !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في Safari */
@supports (-webkit-appearance: none) {
  .hero-background-image img {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في Firefox */
@-moz-document url-prefix() {
  .hero-background-image img {
    image-rendering: -moz-crisp-edges !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في IE */
@media (forced-colors: active) {
  .hero-background-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: none !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في Edge */
@supports (-ms-ime-align: auto) {
  .hero-background-image img {
    object-fit: cover !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .hero-background-image img {
    image-rendering: -webkit-optimize-contrast !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في Opera */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
  .hero-background-image img {
    image-rendering: -webkit-optimize-contrast !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في المتصفحات القديمة */
.hero-background-image img {
  max-width: none !important;
  max-height: none !important;
}

/* إصلاح مشكلة عدم ظهور الصور في المتصفحات الحديثة */
@supports (object-fit: cover) {
  .hero-background-image img {
    object-fit: cover !important;
    object-position: center !important;
  }
}
/* إصلاح مشكلة عدم ظهور الصور في المتصفحات التي لا تدعم object-fit */
@supports not (object-fit: cover) {
  .hero-background-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  .hero-background-image img {
    display: none !important;
  }
}
/* أنماط صفحة ساندوتش بانل - كامل */
/* ===== العناصر العامة ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-bottom: 50px;
}

/* ===== قسم المقدمة ===== */
.product-intro {
  padding: 40px 0;
  overflow: hidden; /* منع scroll غير مبرر */
}

.product-intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.intro-text {
  flex: 1;
}

.intro-text h1,
.intro-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.intro-text h1::after,
.intro-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 3px;
  background-color: #205781;
}

.intro-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
  font-size: 16px;
}

.intro-text strong {
  color: #205781;
}

.intro-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px; /* تحديد العرض الأقصى */
  height: 350px; /* تحديد ارتفاع ثابت */
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تغطية كاملة مع الحفاظ على النسب */
  display: block;
  transition: transform 0.5s ease;
  max-width: 100%;
  max-height: 100%;
}

/* تم تعطيل transform scale لتحسين الأداء */
/* .intro-image:hover img {
  transform: scale(1.03);
} */
/* ===== قسم الأنواع ===== */
.product-types {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 3px;
  background-color: #205781;
}

.section-header p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.type-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.type-image {
  height: 200px;
  overflow: hidden;
}

.type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* تم تعطيل transform scale لتحسين الأداء */
/* .type-card:hover .type-image img {
  transform: scale(1.05);
} */
.type-info {
  padding: 20px;
}

.type-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.type-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.type-features {
  list-style: none;
  padding: 0;
}

.type-features li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.type-features li::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  margin-left: 8px;
}

/* ===== قسم المعرض ===== */
.product-gallery {
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* تم تعطيل transform scale لتحسين الأداء */
/* .gallery-item:hover img {
  transform: scale(1.05);
} */
/* ===== قسم الأسئلة الشائعة ===== */
.product-faq {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.faq-item {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: #205781;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== قسم الطلب والتواصل ===== */
.product-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, #205781 0%, #133a56 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn.primary {
  background-color: #28a745;
  color: white;
}

.cta-btn.primary:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

.cta-btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ===== مقالات ذات صلة ===== */
.related-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 180px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* تم تعطيل transform scale لتحسين الأداء */
/* .article-card:hover .article-image img {
  transform: scale(1.05);
} */
.article-info {
  padding: 20px;
}

.article-date {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.article-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #333;
}

.article-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.article-link {
  color: #205781;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.article-link i {
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.article-link:hover {
  color: #133a56;
}

.article-link:hover i {
  transform: translateX(-5px);
}

/* ===== تصميم متجاوب ===== */
@media (max-width: 992px) {
  .product-intro-content {
    flex-direction: column;
    gap: 30px;
  }
  .intro-image {
    max-width: 100%;
    height: 300px;
  }
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .product-intro {
    padding: 30px 0;
  }
  .intro-text h1,
  .intro-text h2 {
    font-size: 24px;
  }
  .intro-image {
    height: 250px;
  }
  .types-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .cta-content h2 {
    font-size: 28px;
  }
  .cta-content p {
    font-size: 16px;
  }
}
@media (max-width: 576px) {
  .intro-text h1,
  .intro-text h2 {
    font-size: 20px;
  }
  .intro-image {
    height: 200px;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .cta-content h2 {
    font-size: 24px;
  }
  .cta-content p {
    font-size: 14px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
}
/* شريط التصفح */
.breadcrumb {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: #6c757d;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .current {
  color: #6c757d;
}

/* تخطيط الصفحة */
.article-page {
  padding: 40px 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* المحتوى الرئيسي */
.article-main {
  background: #fff;
}

/* رأس المقال */
.article-header {
  margin-bottom: 30px;
}

.category {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 14px;
  margin-bottom: 15px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 20px;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #6c757d;
  padding: 15px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

/* الصورة الرئيسية */
.featured-img {
  margin: 30px 0;
}

.featured-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* محتوى المقال */
.article-body {
  font-size: 16px;
  line-height: 1.8;
}

.intro {
  font-size: 18px;
  font-weight: 500;
  color: #495057;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-right: 4px solid #007bff;
  margin-bottom: 30px;
}

/* فهرس المحتوى */
.toc {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.toc h2 {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: #007bff;
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

.toc a:hover {
  text-decoration: underline;
}

/* أقسام المحتوى */
.content-section {
  margin-bottom: 40px;
}

.content-section h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
}

.content-section h3 {
  font-size: 1.4rem;
  color: #34495e;
  margin: 25px 0 15px 0;
}

.content-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.content-section ul,
.content-section ol {
  margin: 15px 0;
  padding-right: 25px;
}

.content-section li {
  margin-bottom: 8px;
}

/* صور المحتوى */
.content-image {
  margin: 25px 0;
  text-align: center;
}

.content-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.img-caption {
  font-size: 14px;
  color: #6c757d;
  margin-top: 10px;
  font-style: italic;
}

/* صندوق التحذير */
.warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-right: 4px solid #ffc107;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

/* العلامات */
.tags {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.tags h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 16px;
}

.tags ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags a {
  background: #e9ecef;
  color: #495057;
  padding: 6px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 14px;
}

.tags a:hover {
  background: #007bff;
  color: white;
}

/* معلومات الكاتب */
.author {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.author-info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 16px;
}

.author-info p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

/* الشريط الجانبي */
.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* ودجت الشريط الجانبي */
.widget {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.widget h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007bff;
}

/* فهرس التنقل */
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-nav a {
  color: #495057;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
}

.toc-nav a:hover {
  background: #e9ecef;
  color: #007bff;
}

/* المقالات ذات الصلة */
.related {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related article {
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.related article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.related h4 {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.3;
}

.related a {
  color: #2c3e50;
  text-decoration: none;
}

.related a:hover {
  color: #007bff;
}

.related .meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #6c757d;
}

/* ودجت التواصل */
.contact {
  background: #007bff;
  color: white;
  text-align: center;
}

.contact h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact p {
  margin-bottom: 15px;
  font-size: 14px;
}

.contact-btn {
  display: inline-block;
  background: white;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contact-btn:hover {
  background: #f8f9fa;
}

/* قسم المقالات المقترحة */
.suggested {
  background: #f8f9fa;
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.section-title p {
  color: #6c757d;
  font-size: 16px;
}

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

.articles-grid article {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.articles-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.articles-grid .category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.articles-grid .content {
  padding: 20px;
}

.articles-grid h3 {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.articles-grid h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.articles-grid h3 a:hover {
  color: #007bff;
}

.articles-grid p {
  color: #6c757d;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.articles-grid .meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #6c757d;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .article-header h1 {
    font-size: 1.8rem;
  }
  .meta-info {
    flex-direction: column;
    gap: 10px;
  }
  .featured-img img {
    height: 250px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 15px;
  }
  .article-page {
    padding: 20px 0;
  }
}
@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.5rem;
  }
  .content-section h2 {
    font-size: 1.5rem;
  }
  .intro {
    font-size: 16px;
    padding: 15px;
  }
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  .related article {
    flex-direction: column;
  }
  .related img {
    width: 100%;
    height: 120px;
  }
}
/* تحسينات SEO */
img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

a {
  color: #007bff;
}

a:hover {
  color: #0056b3;
}

/* تنسيق صفحة المقالات */
/* العناصر العامة */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 3px;
  background-color: #205781;
}

.section-header p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* المقالات المميزة */
.featured-articles {
  padding: 60px 0;
  margin-bottom: 50px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.featured-article {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
}

.featured-article.large {
  grid-row: span 2;
}

.featured-article .article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.featured-article.large .article-image {
  height: 300px;
}

.featured-article .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .article-image img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #205781;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
}

.featured-article .article-content {
  padding: 20px;
}

.article-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.article-meta span {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-article h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.featured-article.large h3 {
  font-size: 24px;
}

.featured-article p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  color: #205781;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #133a56;
}

/* جميع المقالات */
.all-articles {
  padding: 60px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-info {
  padding: 20px;
}

.article-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-info p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-stats {
  display: flex;
  gap: 15px;
}

.article-stats span {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-link {
  color: #205781;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-link:hover {
  color: #133a56;
}

.article-link i {
  transition: transform 0.3s ease;
}

.article-link:hover i {
  transform: translateX(-5px);
}

/* زر تحميل المزيد */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background-color: #205781;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover {
  background-color: #133a56;
  transform: translateY(-3px);
}

/* النشرة الإخبارية */
.newsletter-section {
  background: linear-gradient(135deg, #205781 0%, #133a56 100%);
  padding: 60px 0;
  color: #fff;
  margin-top: 50px;
}

.newsletter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.newsletter-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter-text p {
  font-size: 16px;
  opacity: 0.9;
}

.newsletter-form {
  min-width: 400px;
}

.newsletter-form form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
}

.newsletter-form button {
  background-color: #fff;
  color: #205781;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* تصميم متجاوب */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-article.large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    min-width: auto;
    width: 100%;
    max-width: 400px;
  }
}
@media (max-width: 768px) {
  .page-banner {
    height: 250px;
  }
  .banner-content h1 {
    font-size: 32px;
  }
  .search-sort {
    flex-direction: column;
    gap: 15px;
  }
  .search-box {
    max-width: 100%;
    width: 300px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-article.large {
    grid-column: span 1;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form form {
    flex-direction: column;
  }
}
@media (max-width: 576px) {
  .page-banner {
    height: 200px;
  }
  .banner-content h1 {
    font-size: 28px;
  }
  .banner-content p {
    font-size: 16px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .article-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
