/*
Theme Name: Yassin-Theme
Theme URI: https://yassinelnoshokey.me
Author: Yassin Elnoshokey
Author URI: https://yassinelnoshokey.me
Description: قالب احترافي لعرض خدمات مطور باك اند وووردبريس ومعلم حاسب آلي
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: craftedtheme
Tags: portfolio, professional, developer, teacher, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ======= متغيرات CSS ======= */
:root {
  --color-primary: #8952F5;     /* البنفسجي الأساسي من الصورة */
  --color-secondary: #5D76CB;   /* الأزرق المتوسط */
  --color-accent: #00C2FF;      /* الأزرق الفاتح للأيقونات */
  --color-dark: #272640;        /* الخلفية الداكنة من الصورة */
  --color-text: #ffffff;        /* النص الأبيض على الخلفية الداكنة */
  --color-text-dark: #272640;   /* النص الداكن على الخلفية الفاتحة */
  --color-text-light: #b8b8d4;  /* رمادي فاتح للنصوص الثانوية */
  --color-bg: #272640;          /* خلفية داكنة بنفس لون الصورة */
  --color-bg-light: #ffffff;    /* خلفية فاتحة للبطاقات */
  --color-border: #3a3960;      /* لون الحدود */
  --color-yellow: #FFD966;      /* اللون الأصفر المستخدم في المؤشرات */
  --color-project: #9747FF;     /* لون خلفية المشاريع البنفسجي */
  --font-main: 'Cairo', sans-serif;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

/* ======= إعادة ضبط عامة ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}

li {
  list-style: none;
}
/* ======= الهيكل الأساسي ======= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ======= الهيدر ======= */
.site-header {
  background-color: var(--color-dark);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-accent);
}

.site-title span {
  color: var(--color-primary);
}

.site-description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-light);
}

/* ======= قسم المشاريع ======= */
.projects-section {
  margin-bottom: 80px;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--color-project);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.project-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.btn-view-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.btn-view-project::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 30px;
}

.btn-view-project:hover::after {
  width: 100%;
}

.btn-view-project:hover {
  color: #fff;
  transform: unset !important;
  box-shadow: 0 5px 15px rgba(137, 82, 245, 0.3);
}

.btn-view-project i {
  transition: transform 0.3s ease;
}

.btn-view-project:hover i {
  transform: translateX(-5px);
}

.projects-cta {
  text-align: center;
  margin-top: 20px;
}

.btn-see-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 20px rgba(137, 82, 245, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-see-all-projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-see-all-projects:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(137, 82, 245, 0.4);
  color: #fff;
}

.btn-see-all-projects:hover::before {
  opacity: 1;
}

.btn-see-all-projects i {
  transition: transform 0.3s ease;
}

.btn-see-all-projects:hover i {
  transform: translateX(-5px);
}

.no-projects-found {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 50px;
  text-align: center;
  border-radius: 15px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-projects-found p {
  color: #aaa;
  font-size: 1.1rem;
  margin: 0;
}

/* ======= صفحة المشروع الفردية ======= */
.project-single {
  padding: 40px 0;
}

.project-header {
  margin-bottom: 30px;
  text-align: center;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.project-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.project-type {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.type-badge {
  background-color: var(--color-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
}

.project-date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.project-featured-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.project-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

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

.project-main-content {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--color-border);
}

.project-description {
  margin-bottom: 30px;
}

.project-challenges {
  margin-top: 40px;
  margin-bottom: 40px;
}

.project-challenges h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.project-gallery {
  margin-top: 40px;
}

.project-gallery h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: 5px;
  overflow: hidden;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.project-testimonial {
  margin-top: 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  position: relative;
}

.project-testimonial h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.project-testimonial blockquote {
  font-style: italic;
  position: relative;
  padding: 20px;
}

.project-testimonial blockquote::before,
.project-testimonial blockquote::after {
  content: '"';
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  line-height: 1;
}

.project-testimonial blockquote::before {
  top: -10px;
  left: -10px;
}

.project-testimonial blockquote::after {
  bottom: -30px;
  right: -10px;
}

.project-testimonial cite {
  display: block;
  text-align: right;
  margin-top: 15px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-accent);
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-details-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--color-border);
}

.project-details-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.project-details-list {
  list-style: none;
  margin-bottom: 25px;
}

.project-details-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-details-list li:last-child {
  border-bottom: none;
}

.project-details-list strong {
  color: var(--color-text);
}

.project-technologies,
.project-languages {
  margin-top: 25px;
}

.project-technologies h4,
.project-languages h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--color-accent);
}

.tech-list,
.lang-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-badge {
  background-color: var(--color-accent);
  color: var(--color-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
}

.lang-badge {
  background-color: var(--color-secondary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
}

.project-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-share {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--color-border);
}

.project-share h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-primary);
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-buttons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.share-facebook {
  background-color: #1877f2;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-whatsapp {
  background-color: #25d366;
}

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.related-projects {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.related-projects h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--color-primary);
  text-align: center;
}

/* ======= صفحة أرشيف المشاريع ======= */
.projects-archive {
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.page-description {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
}

.projects-filter {
  margin: 30px 0;
}

.filter-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-item {
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-light);
  transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.advanced-filters {
  max-width: 600px;
  margin: 0 auto;
}

.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-dropdown {
  padding: 8px 15px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  min-width: 200px;
}

.filter-submit {
  padding: 8px 20px;
  border-radius: 5px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-submit:hover {
  background-color: var(--color-accent);
}

.project-card-image {
  position: relative;
  overflow: hidden;
}

.project-techs {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tech-badge.small {
  font-size: 0.75rem;
  padding: 3px 8px;
}

.tech-badge.more {
  background-color: rgba(0, 0, 0, 0.7);
}

.project-card-content {
  padding: 20px;
}

.project-card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-card-title a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.project-card-title a:hover {
  color: var(--color-accent);
}

.project-card-excerpt {
  margin-bottom: 15px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.project-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.no-projects {
  text-align: center;
  padding: 50px 0;
}

.no-projects-icon {
  font-size: 3rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.no-projects h2 {
  margin-bottom: 15px;
  color: var(--color-primary);
}

.no-projects p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
}

.seo-content {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.seo-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.seo-description {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-light);
}

.seo-description p {
  margin-bottom: 15px;
}

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.page-numbers.current {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.page-numbers:hover {
  background-color: var(--color-accent);
  color: white;
}

.page-numbers.next,
.page-numbers.prev {
  width: auto;
  padding: 0 15px;
}

/* ======= الريسبونسف لصفحات المشاريع ======= */
@media screen and (max-width: 992px) {
  .project-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .project-main-content {
    order: 2;
  }
  
  .project-sidebar {
    order: 1;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .project-title {
    font-size: 2rem;
  }
  
  .project-meta {
    flex-direction: column;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-categories {
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
  }
  
  .filter-form {
    flex-direction: column;
  }
  
  .filter-dropdown,
  .filter-submit {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .project-testimonial blockquote {
    padding: 10px;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}

/* ======= وسوم المشاريع ======= */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.tag-badge {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* ======= تعديلات حقول المشروع ======= */
.project-links-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--color-border);
}

.project-links-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    color: white;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.btn-view-all {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* ======= تعديلات صفحة تفاصيل المشروع ======= */
.project-image-link {
    display: block;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image:hover {
    transform: scale(1.1);
}

/* ======= توافقية الأيقونات ======= */
.fas, .fab {
    display: inline-block;
    margin-left: 5px;
}

/* ======= صفحة أرشيف المشاريع ======= */
.projects-archive-header {
  padding: 60px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(137, 82, 245, 0.05);
}

.projects-archive-header .page-title {
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 2.5rem;
}

.taxonomy-description {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
}

.projects-filter {
  margin: 30px 0;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.filter-by-category h3,
.filter-by-tag h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.project-categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.project-categories-filter li a {
  display: block;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.project-categories-filter li a:hover,
.project-categories-filter li.active a {
  background-color: var(--color-primary);
  color: white;
}

.project-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.project-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-tag:hover,
.project-tag.active {
  background-color: var(--color-secondary);
  color: white;
}

.projects-archive-content {
  padding: 60px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.no-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: var(--color-project);
}

.placeholder-thumbnail {
  text-align: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

.project-content {
  padding: 20px;
}

.project-header {
  margin-bottom: 15px;
}

.project-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.project-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--color-primary);
}

.project-type-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.project-excerpt {
  color: var(--color-text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.project-meta {
  margin-bottom: 15px;
}

.project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category {
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--color-text-light);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.project-category:hover {
  background-color: var(--color-secondary);
  color: white;
}

.btn-view-project {
  display: block;
  text-align: center;
  background-color: var(--color-primary);
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-view-project:hover {
  background-color: var(--color-secondary);
  color: white;
}

.projects-pagination {
  text-align: center;
}

.projects-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.projects-pagination .page-numbers.current {
  background-color: var(--color-primary);
  color: white;
}

.projects-pagination .page-numbers:hover {
  background-color: var(--color-accent);
  color: white;
}

.projects-pagination .prev,
.projects-pagination .next {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

.projects-pagination .prev.page-numbers:hover,
.projects-pagination .next.page-numbers:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.projects-pagination .dots {
  display: none;
}

.no-projects-found {
  text-align: center;
  padding: 50px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.no-projects-found h2 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* ======= صفحة المشروع الفردية ======= */
.single-project {
  padding: 60px 0;
}

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

.single-project .project-title {
  font-size: 2.5rem;
  margin: 20px 0;
  color: var(--color-primary);
}

.single-project .project-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.single-project .project-type,
.single-project .project-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  color: var(--color-text-light);
  font-weight: 600;
}

.single-project .project-featured-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.project-main-content {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--color-border);
}

.project-description {
  margin-bottom: 30px;
}

.project-technologies {
  margin-bottom: 30px;
}

.project-technologies h3,
.project-tags h3 {
  margin-bottom: 15px;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.technologies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.technology-badge {
  display: inline-block;
  padding: 8px 15px;
  background-color: rgba(0, 194, 255, 0.2);
  border-radius: 20px;
  color: var(--color-accent);
  font-size: 0.9rem;
}

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

.project-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-tag:hover {
  background-color: var(--color-secondary);
  color: white;
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-actions {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid var(--color-border);
}

.btn-project-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-project-action.github {
  background-color: #333;
  color: white;
}

.btn-project-action.preview {
  background-color: var(--color-primary);
  color: white;
}

.btn-project-action.back {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.btn-project-action:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.related-projects {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--color-border);
}

.related-projects h3 {
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.related-projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-project {
  display: flex;
  align-items: center;
  gap: 15px;
}

.related-project-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-project-title {
  margin: 0 0 5px;
  font-size: 1rem;
}

.related-project-title a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.related-project-title a:hover {
  color: var(--color-primary);
}

/* ======= ميديا كويري للتجاوب ======= */
@media (max-width: 992px) {
  .single-project .project-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .project-sidebar {
    order: -1;
    margin-bottom: 30px;
  }
  
  .project-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .btn-project-action {
    flex: 1;
    min-width: 200px;
  }
  
  .related-projects-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .related-project {
    flex: 1;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .single-project .project-header {
    padding: 0 20px;
  }
  
  .single-project .project-title {
    font-size:20px !important;
  }
	.project-description h1 {
		font-size: 18px;
    font-weight: bold;
    line-height: 1.9rem;
	}
	.single-project .container,main.site-main.single-post-content .container {
		    width: 100% !important;
/* 			padding:0px !important; */
	}
  .single-project .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
	.archive-content, .single-post-content {
		padding: 50px 0 !important;
	}
	.single-post-container {
		padding-left: 5px !important;
    	padding-right: 9px !important;
	}
	.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
		    line-height: 1.9 !important;
	}
	.single-post-meta-item {
		font-size: 13px ;
	}
}

/* ====== رسائل المشرف في لوحة التحكم ===== */
.project-meta-box-row {
  margin-bottom: 20px;
}

.project-meta-box-row .description {
  display: block;
  margin-top: 5px;
  font-style: italic;
  color: #777;
}

.single-project .project-type a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.single-project .project-type a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.project-type-badge a {
  display: inline-block;
  margin-right: 5px;
  text-decoration: none;
}

.project-type-badge a span {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.project-type-badge a:hover span {
  background-color: var(--color-secondary);
}

/* ======= صفحة أرشيف شهادات العملاء ======= */
.testimonials-archive-header {
  background-color: rgba(93, 118, 203, 0.05);
  padding: 60px 0 30px;
  text-align: center;
  border-bottom: 1px solid rgba(93, 118, 203, 0.1);
}

.testimonials-archive-header .page-title {
  margin-bottom: 20px;
  color: var(--color-secondary);
  font-size: 2.5rem;
}

.testimonials-archive-header .page-description {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.testimonials-archive-content {
  padding: 60px 0;
}

.testimonials-filters {
  margin-bottom: 40px;
  text-align: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-button {
  background-color: rgba(93, 118, 203, 0.1);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-button:hover {
  background-color: var(--color-secondary);
  color: white;
}

.filter-button.active {
  background-color: var(--color-secondary);
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(93, 118, 203, 0.1);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-secondary);
}

.testimonial-card-inner {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-rating {
  margin-bottom: 15px;
}

.stars-rating {
  display: inline-flex;
  align-items: center;
}

.star {
  color: #ccc;
  margin-right: 3px;
  font-size: 1.1rem;
}

.star.filled {
  color: #FFD966;
}

.star i {
  display: inline-block;
}

.testimonial-content {
  flex-grow: 1;
  margin-bottom: 20px;
  position: relative;
}

.quote-icon {
  color: rgba(93, 118, 203, 0.1);
  font-size: 2rem;
  position: absolute;
  top: -10px;
  right: 0;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.client-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 15px;
  border: 2px solid var(--color-secondary);
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-image.no-image {
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.client-info {
  flex-grow: 1;
}

.client-name {
  font-size: 1.1rem;
  margin: 0 0 5px;
  color: var(--color-text);
}

.client-type {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.testimonial-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.no-testimonials-found {
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(93, 118, 203, 0.1);
}

.no-testimonials-icon {
  font-size: 4rem;
  color: rgba(93, 118, 203, 0.3);
  margin-bottom: 20px;
}

.no-testimonials-found h2 {
  color: var(--color-secondary);
  margin-bottom: 15px;
}

/* ======= صفحة تفاصيل الشهادة ======= */
.single-testimonial {
  padding: 60px 0;
}

.testimonial-header {
  margin-bottom: 40px;
}

.back-to-testimonials {
  margin-bottom: 20px;
}

.back-to-testimonials a {
  display: inline-flex;
  align-items: center;
  color: var(--color-secondary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-to-testimonials a:hover {
  color: var(--color-primary);
}

.back-to-testimonials i {
  margin-left: 8px;
}

.testimonial-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--color-secondary);
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.client-type, .client-rating, .testimonial-date {
  display: flex;
  align-items: center;
}

.meta-label {
  font-weight: 600;
  margin-left: 8px;
  color: var(--color-text-light);
}

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

.testimonial-main-content {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(93, 118, 203, 0.1);
}

.client-profile {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(93, 118, 203, 0.1);
}

.client-image-wrapper {
  margin-left: 20px;
}

.client-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-secondary);
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-image.default-image {
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.client-details {
  flex-grow: 1;
}

.client-name {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--color-text);
}

.client-type-badge {
  display: inline-block;
  background-color: var(--color-secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: white;
  margin-top: 5px;
}

.testimonial-full-content {
  position: relative;
}

.testimonial-full-content .quote-icon {
  font-size: 2.5rem;
  color: rgba(93, 118, 203, 0.1);
  position: absolute;
  top: -20px;
  right: 0;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--color-text);
}

.testimonial-additional-content {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(93, 118, 203, 0.1);
}

.testimonial-additional-content h3 {
  margin-bottom: 15px;
  color: var(--color-secondary);
  font-size: 1.3rem;
}

.testimonial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial-share-box, .related-testimonials, .cta-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid rgba(93, 118, 203, 0.1);
}

.testimonial-share-box h3, .related-testimonials h3, .cta-box h3 {
  margin-bottom: 20px;
  color: var(--color-secondary);
  font-size: 1.2rem;
}

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

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.whatsapp {
  background-color: #25d366;
}

.related-testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-testimonial {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(93, 118, 203, 0.1);
}

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

.related-testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.related-testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-testimonial-name {
  margin: 0 0 5px;
  font-size: 1rem;
}

.related-testimonial-name a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.related-testimonial-name a:hover {
  color: var(--color-secondary);
}

.related-testimonial-title {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.cta-box {
  text-align: center;
}

.cta-box p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.btn-contact {
  display: inline-block;
  background-color: var(--color-secondary);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  color: white;
}

/* ======= الاستجابة للأجهزة المختلفة ======= */
@media (max-width: 992px) {
  .testimonial-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .testimonial-sidebar {
    grid-row: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .client-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .client-image-wrapper {
    margin-left: 0;
    margin-bottom: 20px;
  }
}

.client-rating .meta-value {
  display: flex;
  align-items: center;
}

.testimonial-main-content .star {
  font-size: 1.4rem;
  margin-right: 5px;
}

.testimonial-main-content .star.filled {
  color: #ffc107;
  text-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* Bootstrap Navbar Modifications */
.navbar-dark {
    background-color: #1e2133 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #6e4bff !important;
}


.navbar .btn-primary {
    background-color: #6e4bff;
    border-color: #6e4bff;
    font-weight: 600;
    padding: 0.4rem 1.5rem;
    border-radius: 4px;
}

.navbar .btn-primary:hover {
    background-color: #5e3de8;
    border-color: #5e3de8;
}


/* Footer Styles */
.site-footer {
    background-color: var(--color-dark);
    padding: 1.5rem 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-secondary));
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.palestine-flag img {
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.palestine-flag img:hover {
    transform: scale(1.1);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.footer-logo .site-title {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links .social-link:hover::before {
    opacity: 1;
}

.social-links .social-link:hover {
    transform: translateY(-5px);
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.social-links .social-link i {
    font-size: 1.2rem;
}

.copyright-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.copyright-text .site-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.copyright-text .site-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.copyright-text .site-link:hover {
    color: var(--color-primary);
}

.copyright-text .site-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-right {
        margin-bottom: 1rem;
    }
    
    .social-links {
        margin: 0.5rem 0;
    }
    
    .copyright-text {
        margin-top: 0.5rem;
    }
}

html[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .copyright-text .site-link::after {
    right: 0;
    left: auto;
}

html[dir="rtl"] .footer-right {
    flex-direction: row-reverse;
}

/* ======= ??????? ?????? ?????????? ======= */
.site-footer {
    background-color: var(--color-dark);
    padding: 1.5rem 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-secondary));
}
.social-links a .fab {
	font-size: 25px !important;
    margin: 0 !important;
    text-align: center !important;
}
.palestine-flag img {
    width: 55px !important;
}
.footer-logo img {
    width: 66px !important;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.palestine-flag img {
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.palestine-flag img:hover {
    transform: scale(1.1);
}
/* Logo Customization */
.custom-logo {
    max-width: 100px;
    height: auto;
}

.footer-logo-container {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .footer-logo-container {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .list-unstyled {
        padding-right: 0;
    }
    
    address {
        text-align: center;
    }
}

html[dir="rtl"] .footer-logo-container {
    justify-content: flex-end;
}

html[dir="rtl"] .mb-3 {
    margin-right: 0;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* Bootstrap Dropdown Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu > .dropdown-item::after {
    display: inline-block;
    margin-left: 0.5em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

.dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

/* RTL Support for Dropdown Submenu */
html[dir="rtl"] .dropdown-submenu > .dropdown-item::after {
    transform: rotate(180deg);
}

html[dir="rtl"] .dropdown-submenu > .dropdown-menu {
    right: 100% !important;
    left: auto !important;
}

@media (max-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        left: 0 !important;
        top: 100% !important;
        padding-left: 1.5rem;
    }
    
    html[dir="rtl"] .dropdown-submenu > .dropdown-menu {
        right: 0 !important;
        padding-right: 1.5rem;
        padding-left: 0;
    }
    
    .dropdown-submenu > .dropdown-item::after {
        transform: rotate(90deg);
    }
    
    html[dir="rtl"] .dropdown-submenu > .dropdown-item::after {
        transform: rotate(-90deg);
    }
}

.footer-logo-container .custom-logo {
    max-width: 120px;
}

.footer-logo-container {
    display: flex;
    justify-content: flex-start;
}

/* ======= قسم Hero الرئيسي ======= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-color: var(--color-dark);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    animation: fadeInUp 1s ease-out;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    box-shadow: 0 0 25px rgba(137, 82, 245, 0.5);
    animation: pulse 2s infinite;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    animation: spin 10s linear infinite;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-job-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--color-accent);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bio {
    margin-bottom: 35px;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1.2s ease-out;
}

.hero-cta {
    margin-bottom: 50px;
    animation: fadeInUp 1.4s ease-out;
}

.btn-download-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(137, 82, 245, 0.3);
}

.btn-download-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-download-cv:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(137, 82, 245, 0.4);
    color: white;
}

.btn-download-cv:hover::before {
    left: 100%;
}

.btn-text {
    margin-right: 10px;
}

.hero-scroll-indicator {
    margin-top: 50px;
    animation: fadeIn 1.8s ease-out, bounce 2s ease infinite;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: var(--color-accent);
    transform: translateY(5px);
}

.scroll-text {
    margin-bottom: 8px;
}

.scroll-icon {
    animation: bounce 2s infinite;
}

/* Hero Shapes Animation */
.hero-shapes .shape {
    position: absolute;
    z-index: 1;
    opacity: 0.4;
    border-radius: 50%;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(var(--color-primary), transparent 70%);
    top: 20%;
    right: -50px;
    animation: floatAnimation 10s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(var(--color-secondary), transparent 70%);
    bottom: 10%;
    left: 10%;
    animation: floatAnimation 14s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(var(--color-accent), transparent 70%);
    top: 10%;
    left: 5%;
    animation: floatAnimation 12s ease-in-out infinite 1s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(var(--color-yellow), transparent 70%);
    bottom: 20%;
    right: 15%;
    animation: floatAnimation 16s ease-in-out infinite 2s;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(137, 82, 245, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(137, 82, 245, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(137, 82, 245, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, 20px) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Responsive Styles for Hero Section */
@media (max-width: 992px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-job-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .profile-image {
        width: 130px;
        height: 130px;
    }
    
    .btn-download-cv {
        padding: 12px 30px;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 1.8rem;
    }
    
    .hero-job-title {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: 110px;
        height: 110px;
    }
    
    .hero-bio {
        font-size: 0.9rem;
    }
}

.wrap {
    display: inline-block;
    position: relative;
}

.cursor {
    display: inline-block;
    position: relative;
    margin-left: 3px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-job-title .wrap {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
}

/* Animation for scroll elements */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.scroll-animation.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* ======= قسم Professional Journey ======= */
.professional-journey-section {
    padding: 100px 0;
    background-color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.professional-journey-section .section-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.professional-journey-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

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

.journey-card {
    border-radius: 10px;
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 1;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(39, 38, 64, 0.9) 0%, rgba(39, 38, 64, 0.7) 100%);
    z-index: -1;
    transition: all 0.4s ease;
}

.journey-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
}

.technical-skills-card::after {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.education-card::after {
    background-image: linear-gradient(135deg, #6e4bff 0%, #9747FF 100%);
}

.experience-card::after {
    background-image: linear-gradient(135deg, #ff4b8b 0%, #ff6b6b 100%);
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.journey-card:hover::before {
    background: linear-gradient(135deg, rgba(39, 38, 64, 0.8) 0%, rgba(39, 38, 64, 0.6) 100%);
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    color: #fff;
    padding-bottom: 15px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 1.5px;
}

.technical-skills-card .card-title::after {
    background: linear-gradient(to right, var(--color-accent), var(--color-primary));
}

.education-card .card-title::after {
    background: linear-gradient(to right, #6e4bff, #9747FF);
}

.experience-card .card-title::after {
    background: linear-gradient(to right, #ff4b8b, #ff6b6b);
}

/* Skills List Styles */
.skills-list {
    width: 100%;
}

.skill-item {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.skill-icon {
    font-size: 1.5rem;
    margin-right: 15px;
	margin-left:5px !important;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.technical-skills-card .skill-icon {
    color: var(--color-accent);
}

.skill-progress-container {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.technical-skills-card .skill-progress {
    background: linear-gradient(to right, var(--color-accent), var(--color-primary));
}

.skill-tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.skill-progress:hover .skill-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -30px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #6e4bff;
    position: relative;
    z-index: 1;
}

.marker-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
}

.marker-dot.pink {
    background-color: #ff4b8b;
}

.timeline-content {
    padding-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Animations */
@keyframes skillProgress {
    from {
        width: 0;
    }
    to {
        width: var(--percent);
    }
}

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

.journey-card.in-view .skill-progress {
    animation: skillProgress 1.5s forwards ease;
}

.journey-card.in-view .timeline-item {
    animation: fadeRightIn 0.5s forwards ease;
    opacity: 0;
}

.journey-card.in-view .timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.journey-card.in-view .timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.journey-card.in-view .timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .technical-skills-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .journey-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-skills-card {
        grid-column: span 1;
    }
    
    .professional-journey-section {
        padding: 60px 0;
    }
    
    .professional-journey-section .section-title {
        font-size: 2.2rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

/* AOS animations fallback for when AOS is not loaded */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ======= قسم Essential Tools ======= */
.essential-tools-section {
    padding: 100px 0;
    background-color: #1a1c2a;
    position: relative;
    overflow: hidden;
}
.tool-s-card {
	margin-top:25px !important;
}
.essential-tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(110, 75, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.essential-tools-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 80%, rgba(255, 75, 139, 0.05) 0%, transparent 70%);
    z-index: 1;
}

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

.essential-tools-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #fff;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.essential-tools-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6e4bff, #ff4b8b);
    border-radius: 2px;
}

.tools-grid {
    margin-top: 40px;
}

.tools-row {
    justify-content: center;
    margin-bottom: 30px;
}

.tool-card {
	margin-top:25px !important;
    background-color: #212335;
    border-radius: 15px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    min-height: 190px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 35, 53, 0.8), rgba(33, 35, 53, 0.9));
    z-index: 1;
    transition: all 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(110, 75, 255, 0.2);
}

.tool-card:hover::before {
    opacity: 0.7;
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.tool-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tool-info {
    position: relative;
    z-index: 2;
}

.tool-name {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-name {
    color: #6e4bff;
}

.tool-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Tool Card Colors */
.tool-card:nth-child(1) {
    border-bottom: 2px solid #6e4bff;
}

.tool-card:nth-child(2) {
    border-bottom: 2px solid #4b8bff;
}

.tool-card:nth-child(3) {
    border-bottom: 2px solid #00c7b7;
}

.tool-card:nth-child(4) {
    border-bottom: 2px solid #ff6b6b;
}

.tool-card:nth-child(5) {
    border-bottom: 2px solid #ff4b8b;
}

/* Animation Styles */
@keyframes toolCardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 75, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(110, 75, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 75, 255, 0);
    }
}

.tool-card.animate-pulse {
    animation: toolCardPulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .tool-card {
        min-height: 180px;
    }
}

@media (max-width: 992px) {
    .tool-icon {
        width: 50px;
        height: 50px;
    }
    
    .tool-name {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .essential-tools-section {
        padding: 70px 0;
    }
    
    .essential-tools-section .section-title {
        font-size: 2rem;
    }
    
    .tools-row {
        margin-bottom: 15px;
    }
    
    .tool-card {
        margin-bottom: 20px;
        min-height: 170px;
    }
}

@media (max-width: 576px) {
    .tool-card {
        min-height: 160px;
        padding: 15px 10px;
    }
    
    .tool-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .tool-name {
        font-size: 0.9rem;
    }
    
    .tool-category {
        font-size: 0.75rem;
    }
}

/* تحسينات صفحة المشاريع */
.project-excerpt {
    max-height: 4.5em;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-excerpt p {
    margin-bottom: 0;
}

/* تحسينات ترقيم الصفحات */
.projects-pagination {
    margin: 3rem 0;
    text-align: center;
}

.projects-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-pagination .page-numbers.current {
    background-color: var(--primary-color, #6c63ff);
    color: #fff;
}

.projects-pagination .page-numbers:hover:not(.current) {
    background-color: #e0e0e0;
}

.projects-pagination .prev,
.projects-pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

@media (max-width: 576px) {
    .projects-pagination .page-numbers {
        width: 35px;
        height: 35px;
        margin: 0 0.15rem;
    }
    
    .projects-pagination .prev,
    .projects-pagination .next {
        padding: 0 10px;
    }
}

/**
 * أنماط صفحة أرشيف المقالات
 */
.archive-content {
    padding: 60px 0;
    background-color: var(--color-bg);
    min-height: 80vh;
}

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

.archive-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.archive-header .page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 2px;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0 auto 40px;
    max-width: 800px;
    text-align: center;
}

/* فلاتر التصنيفات */
.articles-filter {
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.filter-by-category h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text);
    text-align: center;
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-filter li {
    margin: 0;
}

.categories-filter li a {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.categories-filter li a:hover {
    background-color: rgba(137, 82, 245, 0.15);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.categories-filter li.active a {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(137, 82, 245, 0.3);
}

/* بطاقات المقالات */
.article-card-wrapper {
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.article-card-wrapper.animated {
    animation: fadeInUp 0.5s ease forwards;
}

.article-card {
    background-color: rgba(39, 38, 64, 0.9);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    position: relative;
    margin: 0;
}


.article-card.card-hovered {
    transform: translateY(-7px);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

.article-thumbnail img.zoomed {
    transform: scale(1.1);
}

.no-thumbnail .placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    font-size: 2.5rem;
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.read-more-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 3;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-card:hover .read-more-icon {
    bottom: 20px;
    opacity: 1;
}

.read-more-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 20px rgba(137, 82, 245, 0.4);
}

.article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-title a:hover {
    color: var(--color-primary);
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--color-primary);
}

.article-meta a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-meta a:hover {
    color: var(--color-primary);
}

.article-footer {
    margin-top: 20px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: var(--color-secondary);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

.article-card.featured {
    position: relative;
}

.article-card.featured:before {
    content: attr(data-featured);
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ====== Media Queries for Responsive Design ====== */
@media (max-width: 992px) {
    .archive-header .page-title {
        font-size: 2.2rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .article-meta {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .archive-content,
    .article-card-wrapper {
        margin-bottom: 20px;
    }
    
    .archive-header .page-title {
        font-size: 1.8rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-thumbnail {
        height: 200px;
    }
    
    .article-author {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .article-thumbnail {
        height: 180px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
    
    .article-meta {
        gap: 10px;
    }
}

/* ===== إضافات RTL لدعم اللغة العربية ===== */
html[dir="rtl"] .article-category {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .btn-read-more i {
    transform: rotate(180deg);
}

html[dir="rtl"] .btn-read-more:hover i {
    transform: rotate(180deg) translateX(5px);
}

html[dir="rtl"] .meta-item {
    margin-right: 0;
    margin-left: 15px;
}

/* ===== تعريف التحريك ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== تحسينات إضافية لبطاقات المقالات ===== */
.articles-grid {
    margin-bottom: 30px;
}

.blog-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100%;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(137, 82, 245, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/**
 * أنماط صفحة المقالة الواحدة
 */
 .single-post-content {
    padding: 80px 0;
}

.single-article {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: #1e2133;
    color: #fff;
}

.article-header {
    text-align: center;
    padding: 30px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

.article-featured-image {
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.single-article .article-meta {
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid var(--blog-border-color);
    border-bottom: 1px solid var(--blog-border-color);
    margin: 0 30px 30px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #fff;
}

.article-content p {
    margin-bottom: 20px;
    color: #fff;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 25px 0 15px;
    font-weight: 700;
    color: #fff;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-right: 4px solid var(--blog-primary-color);
    padding: 15px 20px;
    margin: 1.5rem 0;
    background-color: var(--blog-light-color);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.article-categories,
.article-tags {
    padding: 30px;
    border-top: 1px solid var(--blog-border-color);
    margin-top: 30px;
    text-align: center;
}

.article-categories h3,
.article-tags h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

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

.categories-list a,
.tags-list a {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--blog-light-color);
    color: var(--blog-text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.categories-list a:hover,
.tags-list a:hover {
    background-color: var(--blog-primary-color);
    color: #fff;
}

.article-author {
    padding: 30px;
    border-top: 1px solid var(--blog-border-color);
}

.article-author h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.author-box {
    display: flex;
    gap: 20px;
    background-color: var(--blog-light-color);
    padding: 20px;
    border-radius: 8px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #161616;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
}

.author-links {
    margin-top: 15px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
}

.post-navigation {
    padding: 30px;
    border-top: 1px solid var(--blog-border-color);
}

.post-navigation a {
    display: block;
    padding: 15px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.post-navigation a:hover {
    background-color: var(--blog-hover-color);
}

.post-navigation .nav-previous {
    text-align: right;
}

.post-navigation .nav-next {
    text-align: left;
}

.post-navigation i {
    margin: 0 5px;
}

/* تصميم متجاوب للشاشات الصغيرة */
@media (max-width: 992px) {
    .archive-header .page-title {
        font-size: 2rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 0 20px 20px;
        font-size: 1rem;
    }

    .article-categories, 
    .article-tags,
    .article-author,
    .post-navigation {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .archive-content,
    .single-post-content {
        padding: 50px 0;
    }

    .archive-header .page-title {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-author {
        flex-direction: column;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .archive-header .page-title {
        font-size: 1.5rem;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

    .blog-pagination .page-numbers {
        width: 35px;
        height: 35px;
        margin: 0 0.15rem;
    }
    
    .blog-pagination .prev,
    .blog-pagination .next {
        padding: 0 10px;
    }
}

/* تحسينات للـ SEO والوصول */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Schema markup styles */
.article-meta time,
.article-author .author-name {
    font-weight: 500;
}

/* أنماط إضافية للمقالات تتناسب مع معايير الـ SEO */
.article-content h2 {
    font-size: 1.6rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content h4 {
    font-size: 1.2rem;
}

.article-content a {
    color: var(--blog-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.article-content a.btn-read-more{
    color: white;
}
.article-card .author-name span{
  color: white !important;
}
.article-card .article-excerpt p {
  color: white !important;
}
.article-card .article-title a {
    font-size: 18px !important;
}
.article-content a:hover {
    color: white !;
    text-decoration: underline;
}

/* تأثيرات التحميل الديناميكي للمقالات */
.blog-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--blog-primary-color);
    animation: spin 1s linear infinite;
}

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

/* تأثيرات حركية إضافية للمقالات */
.article-card-wrapper {
    opacity: 0;
    transform: translateY(20px);
}

.article-card-wrapper.animated {
    animation: fadeInUp 0.5s ease forwards;
}

.article-card.card-hovered {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-thumbnail img.zoomed {
    transform: scale(1.1);
}

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

/* تأثيرات المشاركة الاجتماعية */
.social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .linkedin {
    background-color: #0077b5;
}

.social-share .whatsapp {
    background-color: #25d366;
}
.post-navigation {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: rgba(137, 82, 245, 0.15);
    transform: translateY(-3px);
}

.nav-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-primary);
}

.related-posts {
    margin: 50px 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-posts-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.related-posts-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-card {
    background-color: rgba(39, 38, 64, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.related-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--color-primary);
}

.related-post-date {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-post-date i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.related-post-excerpt {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.related-post-link {
    align-self: flex-start;
    padding: 6px 15px;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-link:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}
.single-post-title {
    text-align: center;
}
/* ===== تجاوب مع أحجام الشاشات المختلفة ===== */
@media (max-width: 992px) {
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-author-box {
        padding: 25px;
        gap: 20px;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .single-post-header {
        padding: 30px 0 0;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .author-links {
        justify-content: center;
    }
    
    .post-navigation-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous, 
    .nav-next {
        max-width: 100%;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .single-post-title {
        font-size: 1.3rem;
    }
    
    .categories-list,
    .tags-list {
        justify-content: center;
    }
    
    .comment {
        padding: 20px 15px;
    }
}

/* ===== RTL Support ===== */
html[dir="rtl"] .single-post-content-inner ul,
html[dir="rtl"] .single-post-content-inner ol {
    padding-right: 20px;
    padding-left: 0;
}

html[dir="rtl"] .single-post-content-inner blockquote {
    border-right: 4px solid var(--color-primary);
    border-left: none;
    padding-right: 30px;
    padding-left: 20px;
}

html[dir="rtl"] .single-post-content-inner blockquote::before {
    right: 10px;
    left: auto;
}

html[dir="rtl"] .comments-title:after {
    right: 0;
    left: auto;
}

html[dir="rtl"] .meta-item {
    margin-right: 0;
    margin-left: 10px;
}

/* ===== تخصيص إضافي للتشابه مع الصورة المرفقة ===== */
.single-post-container {
    background-color: #1e1e2d;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    padding-top: 20px;
}

.single-post-image {
    text-align: center;
    margin-bottom: 20px;
}

.single-post-image img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.single-post-content {
    padding: 0 30px 30px;
}

.single-post-meta-line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.85rem;
}

.single-post-meta-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.single-post-meta-item i {
    margin-left: 5px;
    color: var(--color-primary);
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 30px 0;
}

.post-section {
    margin-bottom: 30px;
}

.post-section-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    border-right: 3px solid var(--color-primary);
    padding-right: 10px;
}

.post-section-content {
    line-height: 1.8;
    color: #e0e0e0;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.tags-title {
    font-weight: 600;
    color: #fff;
    margin-left: 5px;
}

.tag-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.category-title {
    font-weight: 600;
    color: #fff;
    margin-left: 5px;
}

.category-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: 10px;
}

.category-link:hover {
    text-decoration: underline;
}

.post-info-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

/* ===== قسم المشاريع الحديثة في الصفحة الرئيسية ===== */
.recent-projects-section {
    position: relative;
    padding: 90px 0;
    background-color: #1e1e2d;
    overflow: hidden;
    z-index: 1;
}

.recent-projects-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(137, 82, 245, 0.05) 0%, rgba(137, 82, 245, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.recent-projects-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 118, 203, 0.05) 0%, rgba(93, 118, 203, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.recent-projects-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
    position: relative;
    display: inline-block;
}

.recent-projects-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 4px;
}

.recent-projects-section .section-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 60px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.recent-projects-section .section-header {
    margin-bottom: 50px;
    text-align: center;
}

.projects-showcase {
    padding: 0 15px;
}

.projects-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-card-home {
    position: relative;
    background-color: rgba(39, 38, 64, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    width: 100%;
    min-height: 450px;
}

.project-card-home:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.project-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.project-card-home:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    height: 230px;
    width: 100%;
}

.project-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 45, 0) 0%, rgba(30, 30, 45, 0.8) 100%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card-home:hover .project-thumbnail::after {
    opacity: 0.7;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card-home:hover .project-image {
    transform: scale(1.1);
}

.project-types {
    position: absolute;
    top: -15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.project-type-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(137, 82, 245, 0.2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(137, 82, 245, 0.3);
}

.project-type-badge:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(137, 82, 245, 0.3);
}

.project-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

.project-card-home:hover .project-title {
    transform: translateY(-5px);
}

.project-title a {
    color: #fff;
	font-size:15px !important;
    text-decoration: none;
    transition: color 0.3s ease;
    background-image: linear-gradient(transparent calc(100% - 2px), var(--color-primary) 2px);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    display: inline;
    padding-bottom: 2px;
    transition: background-size 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	font-size:15px !important;
}

.project-title a:hover {
	font-size:15px !important;
    color: var(--color-primary);
    background-size: 100% 100%;
}

.project-excerpt {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-excerpt p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* تعديل للتجاوب مع الشاشات المختلفة */
@media (max-width: 1200px) {
    .projects-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .projects-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .recent-projects-section {
        padding: 70px 0;
    }
    
    .recent-projects-section .section-title {
        font-size: 2.2rem;
    }
    
    .project-excerpt {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .btn-view-project {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .projects-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .recent-projects-section {
        padding: 60px 0;
    }
    
    .recent-projects-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .btn-see-all-projects {
        padding: 10px 25px;
    }
    
    .project-thumbnail {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .projects-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recent-projects-section {
        padding: 50px 0;
    }
    
    .recent-projects-section .section-title {
        font-size: 1.8rem;
    }
    
    .recent-projects-section .section-subtitle {
        margin-bottom: 30px;
    }
    
    .project-card-home {
        max-width: 100%;
        min-height: 400px;
    }
    
    .project-thumbnail {
        height: 180px;
    }
}

/* RTL Support */
html[dir="rtl"] .project-types {
    right: auto;
    left: 25%;
}

html[dir="rtl"] .btn-view-project i {
    transform: rotate(180deg);
}

html[dir="rtl"] .btn-view-project:hover i {
    transform: translateX(5px) rotate(180deg);
}

html[dir="rtl"] .btn-see-all-projects i {
    transform: rotate(180deg);
}

html[dir="rtl"] .btn-see-all-projects:hover i {
    transform: translateX(5px) rotate(180deg);
}
/* أنماط breadcrumb المقالة */
.article-breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.article-breadcrumb .breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.article-breadcrumb .breadcrumb-inner a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb .breadcrumb-inner a:hover {
    color: var(--color-primary);
}

.article-breadcrumb .breadcrumb-inner .separator {
    color: var(--color-text-light);
    opacity: 0.5;
}

.article-breadcrumb .breadcrumb-inner .current {
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 576px) {
    .article-breadcrumb .breadcrumb-inner {
        font-size: 0.8rem;
    }
    
    .article-breadcrumb .breadcrumb-inner .separator {
        margin: 0 5px;
    }
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.article-breadcrumb {
    padding-top: 20px;
}
.article-author {
    padding: 30px;
    border-top: 1px solid var(--blog-border-color);
}

.article-author h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.author-box {
    display: flex;
    width: 100%;
    gap: 20px;
    background-color: var(--blog-light-color);
    padding: 20px;
    border-radius: 8px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #161616;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
}

.author-links {
    margin-top: 15px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
}
.article-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}



.article-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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


.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.article-category:hover {
    background-color: var(--secondary-color);
}

.article-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.article-date, .article-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-date i, .article-author i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* بطاقات المقالات */
.article-card-wrapper {
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.article-card-wrapper.animated {
    animation: fadeInUp 0.5s ease forwards;
}

.article-card {
    background-color: rgba(39, 38, 64, 0.95);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(137, 82, 245, 0.2);
    position: relative;
    margin: 0;
    backdrop-filter: blur(10px);
}


.article-card.card-hovered {
    transform: translateY(-10px);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.article-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(39, 38, 64, 1), transparent);
    z-index: 1;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.article-thumbnail img.zoomed {
    transform: scale(1.15);
}

.no-thumbnail .placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    font-size: 2.5rem;
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.article-category:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.read-more-icon {
    position: absolute;
    bottom: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
}

.article-card:hover .read-more-icon {
    bottom: 25px;
    opacity: 1;
}

.read-more-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(137, 82, 245, 0.5);
}

.article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.4;
}

.article-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.article-title a:hover {
    color: var(--color-primary);
    text-shadow: 0 1px 5px rgba(137, 82, 245, 0.3);
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.article-meta span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.3s ease;
}

.article-meta span:hover {
    transform: translateY(-2px);
}

.article-meta i {
    color: var(--color-primary);
}

.article-meta a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.article-meta a:hover {
    color: var(--color-primary);
}

.article-footer {
    margin-top: 25px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: var(--color-secondary);
}

.btn-read-more:hover i {
    transform: translateX(8px);
}

.article-card.featured {
    position: relative;
}

.article-card.featured:before {
    content: attr(data-featured);
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: #ffffff;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

/* ======= قسم الشهادات ======= */
.testimonials-section {
    position: relative;
    background: linear-gradient(45deg, var(--color-dark), var(--color-bg));
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(137, 82, 245, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.testimonials-section .section-title {
    color: var(--color-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.testimonials-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

.testimonials-section .section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.testimonials-slider-container {
    position: relative;
    margin-bottom: 40px;
}

.testimonials-slider {
    overflow: visible;
    padding-bottom: 60px;
}

.testimonial-card {
    background-color: rgba(61, 59, 92, 0.3);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(95, 94, 136, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-inner {
    padding: 25px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.stars-rating {
    display: flex;
    gap: 5px;
}

.star {
    color: #ccc;
    font-size: 14px;
}

.star.filled {
    color: var(--color-yellow);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-text);
    flex-grow: 1;
    position: relative;
    padding: 0 10px;
}

.quote-icon-start, .quote-icon-end {
    position: absolute;
    font-size: 14px;
    color: var(--color-primary);
    opacity: 0.5;
}

.quote-icon-start {
    top: -5px;
    right: -5px;
}

.quote-icon-end {
    bottom: -5px;
    left: -5px;
}

.testimonial-client {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.client-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 15px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

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

.default-client-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    color: var(--color-bg-light);
    font-size: 20px;
}

.client-info {
    flex: 1;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--color-text);
}

.client-position-company {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.testimonial-link {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-text);
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.testimonial-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.testimonial-card.no-testimonials {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 25px;
    text-align: center;
    color: var(--color-text-light);
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--color-border);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary);
    opacity: 1;
}

.swiper-navigation {
    position: absolute;
    width: 100%;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.7;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.swiper-button-prev {
    margin-right: -20px;
}

.swiper-button-next {
    margin-left: -20px;
}

.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background-color: var(--color-primary);
    color: var(--color-text);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: 2px solid var(--color-primary);
}

.btn-see-all:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-5px);
}

.btn-see-all i {
    transition: transform 0.3s ease;
}

.btn-see-all:hover i {
    transform: translateX(-5px);
}

/* ======= قسم المدونة ======= */
.blogs-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--color-bg);
    overflow: hidden;
    z-index: 1;
}

.blogs-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(137, 82, 245, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.blogs-section .section-title {
    color: var(--color-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.blogs-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

.blogs-section .section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.blogs-showcase {
    margin-bottom: 40px;
}

.blogs-grid {
    row-gap: 30px;
}

.blog-card {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.blog-card-inner {
    background-color: rgba(61, 59, 92, 0.3);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(95, 94, 136, 0.1);
    display: flex;
    flex-direction: column;
}

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

.blog-thumbnail {
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    height: 0;
    padding-top: 65%; /* Proporción de aspecto */
}

.blog-image-link {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.no-thumbnail {
    background-color: var(--color-dark);
}

.placeholder-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--color-text-light);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: var(--color-text);
    border-radius: 8px;
    padding: 5px 10px;
    text-align: center;
    font-weight: 600;
    z-index: 2;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.date-day {
    font-size: 1.1rem;
    font-weight: 700;
}

.date-month {
    font-size: 0.8rem;
    opacity: 0.9;
}

.blog-content {
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(137, 82, 245, 0.15);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--color-text);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-title a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.meta-author, .meta-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: var(--color-accent);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* المقال المميز */
.featured-article .blog-title {
    font-size: 1.5rem;
}

.featured-article .blog-excerpt {
    font-size: 1rem;
}

.no-blogs-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(61, 59, 92, 0.3);
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    border: 1px solid rgba(95, 94, 136, 0.1);
}

.no-blogs-icon {
    font-size: 3rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-blogs-found h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.no-blogs-found p {
    color: var(--color-text-light);
}

/* تصميم متجاوب */
@media (max-width: 1200px) {
    .blog-title {
        font-size: 1.1rem;
    }
    
    .featured-article .blog-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .testimonial-card {
        margin-bottom: 15px;
    }
    
    .blogs-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .featured-article .blog-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .swiper-navigation {
        display: none;
    }
    
    .testimonial-inner {
        padding: 20px;
    }
    
    .blogs-grid {
        row-gap: 20px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title,
    .featured-article .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt,
    .featured-article .blog-excerpt {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .blog-thumbnail {
        padding-top: 60%;
    }
}

@media (max-width: 576px) {
    .testimonials-section .section-title,
    .blogs-section .section-title {
        font-size: 1.5rem;
    }
    
    .testimonials-section .section-subtitle,
    .blogs-section .section-subtitle {
        font-size: 0.9rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    .client-name {
        font-size: 0.9rem;
    }
    
    .client-position-company {
        font-size: 0.75rem;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-date {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
    }
    
    .date-day {
        font-size: 1rem;
    }
    
    .date-month {
        font-size: 0.7rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* توافق اتجاه RTL */
html[dir="rtl"] .blog-date {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .client-image {
    margin-left: 15px;
    margin-right: 0;
}

html[dir="rtl"] .read-more:hover i,
html[dir="rtl"] .btn-see-all:hover i {
    transform: translateX(-5px);
}

html[dir="rtl"] .swiper-button-next {
    margin-left: -20px;
    margin-right: auto;
}

html[dir="rtl"] .swiper-button-prev {
    margin-right: -20px;
    margin-left: auto;
}

/* ===== تخصيص قسم المدونة للصفحة الرئيسية ===== */
/* تعديل بطاقات المقالات لعرض 4 في صف واحد */
.blogs-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.blogs-grid .blog-card {
    height: 100%;
    margin-bottom: 0;
}

.blogs-grid .blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blogs-grid .blog-thumbnail {
    height: 180px;
    padding-top: 0;
    position: relative;
}

.blogs-grid .blog-image-link {
    position: relative;
    height: 100%;
}

.blogs-grid .blog-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.blogs-grid .blog-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blogs-grid .blog-excerpt {
    height: 4.5em;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.blogs-grid .blog-meta {
    margin-top: auto;
    flex-wrap: wrap;
}

/* تحسين المظهر المتجاوب لأحجام الشاشات المختلفة */
@media (max-width: 1200px) {
    .blogs-grid .blog-thumbnail {
        height: 160px;
    }
}

@media (max-width: 992px) {
    .blogs-grid .blog-thumbnail {
        height: 150px;
    }
    
    .blogs-grid .blog-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .blogs-grid .blog-thumbnail {
        height: 140px;
    }
    
    .blogs-grid .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .blogs-grid .blog-thumbnail {
        height: 180px;
    }
    
    .blogs-grid .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* ===== تنسيق موحد للترقيم ===== */
.unified-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    direction: rtl;
}

.unified-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: rgba(61, 59, 92, 0.2);
    color: var(--color-text);
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.unified-pagination .page-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.unified-pagination .page-numbers:hover::before {
    width: 100%;
}

.unified-pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-text);
    box-shadow: 0 5px 15px rgba(137, 82, 245, 0.3);
}

.unified-pagination .page-numbers:hover {
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(137, 82, 245, 0.3);
}

.unified-pagination .prev,
.unified-pagination .next {
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.unified-pagination .prev i,
.unified-pagination .next i {
    transition: transform 0.3s ease;
}

.unified-pagination .prev:hover i {
    transform: translateX(-5px);
}

.unified-pagination .next:hover i {
    transform: translateX(5px);
}

.unified-pagination .dots {
    background: transparent;
    border: none;
    box-shadow: none;
}

.unified-pagination .dots:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.unified-pagination .dots::before {
    display: none;
}

/* تطبيق التنسيق على ترقيم المشاريع */
.projects-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-pagination li {
    margin: 0 5px;
}

/* تطبيق التنسيق على ترقيم المقالات */
.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination li {
    margin: 0 5px;
}

/* التصميم المتجاوب للترقيم */
@media (max-width: 768px) {
    .unified-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 5px 8px;
        margin: 0 3px;
        font-size: 0.9rem;
    }
    
    .unified-pagination .prev,
    .unified-pagination .next {
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .unified-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 5px 7px;
        margin: 0 2px;
        font-size: 0.85rem;
    }
    
    .unified-pagination .prev,
    .unified-pagination .next {
        padding: 5px 8px;
    }
    
    .unified-pagination .prev span,
    .unified-pagination .next span {
        display: none;
    }
}

/* ======= قسم الأسئلة الشائعة ======= */
.faq-section {
    padding: 80px 0;
    background-color: var(--color-bg);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(137, 82, 245, 0.1) 0%, rgba(0, 194, 255, 0.1) 100%);
    z-index: 0;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section .section-title {
    color: var(--color-text);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.faq-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 3px;
}

.faq-section .section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background-color: transparent;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem;
    border: none;
    text-align: right;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: white !important;
    background-color: rgba(137, 82, 245, 0.1);
}

.accordion-button::after {
    display: none !important;
}

.faq-chevron {
    color: #fff;
    margin-left: 10px;
    font-size: 1.1em;
    transition: transform 0.3s;
}
.accordion-button.collapsed .faq-chevron {
    transform: rotate(0deg);
}
.accordion-button:not(.collapsed) .faq-chevron {
    transform: rotate(180deg);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-border);
}

.accordion-body {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--color-text-light);
    padding: 1.25rem;
    line-height: 1.7;
}

/* تنسيقات RTL */
html[dir="rtl"] .accordion-button::after {
    margin-right: 0;
    margin-left: auto;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-section .section-title {
        font-size: 2rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .accordion-body {
        padding: 1rem;
    }
}
