/* تحسينات الصفحة الرئيسية - هوية بصرية حديثة */

/* Header - تحسينات */
.header-bar {
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.header-top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-info {
  flex: 0 0 auto;
}

.header-nav-links {
  flex: 1 1 auto;
  text-align: center;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.header-menu li {
  margin: 0;
}

.header-menu li a {
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  opacity: 0.95;
}

.header-menu li a:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: translateY(-2px);
}

.lang-switcher {
  margin-left: 0.5rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .header-top-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-info,
  .header-nav-links,
  .header-actions {
    width: 100%;
    justify-content: center;
  }
  
  .header-menu {
    justify-content: center;
    gap: 1rem;
  }
  
  .header-menu li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .header-bar {
    padding: 0.75rem 0 !important;
  }
  
  .header-menu {
    gap: 0.5rem;
  }
  
  .header-menu li a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .menu_top_bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.header-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Footer contact info (email + date) */
.footer-contact-info {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: #f9fafb;
}

.footer-contact-info .footer-email,
.footer-contact-info .footer-date {
  margin: 0 0.5rem;
}

.footer-contact-info i {
  margin: 0 0.25rem;
}

.footer-separator {
  opacity: 0.6;
}

/* محاذاة أفضل للهيدر في اللغة الإنجليزية */
html[dir='ltr'] .header-area .mein_menu_list {
  justify-content: center !important;
  gap: 3rem;
}

.header-bar .menu_top_bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-bar .menu_top_bar li {
  color: #fff !important;
  opacity: 0.95;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-bar .menu_top_bar li i {
  font-size: 1rem;
  opacity: 0.9;
}

.header-bar .menu_top_bar li:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-bar .social_links ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

.header-bar .social_links li a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  color: #fff !important;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.header-bar .social_links li a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Main Header - تحسينات */
.main-header-area {
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: relative;
}

.main-header-area.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* زر تحويل اللغة في القائمة الرئيسية */
.lang-switcher-nav-item {
  margin: 0 0 0 1rem !important;
  padding: 0 !important;
}

.lang-switcher-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 45px !important;
  height: 45px !important;
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.15) 0%, rgba(28, 200, 138, 0.15) 100%) !important;
  color: #4e73df !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  border: 2px solid rgba(78, 115, 223, 0.2) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(78, 115, 223, 0.1) !important;
}

.lang-switcher-nav-link:hover {
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.25) 0%, rgba(28, 200, 138, 0.25) 100%) !important;
  border-color: rgba(78, 115, 223, 0.4) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(78, 115, 223, 0.2) !important;
  color: #4e73df !important;
}

/* شعار الجهة في القائمة الرئيسية */
.site-name-nav-item {
  margin: 0 1.5rem !important;
  padding: 0 !important;
}

.site-name-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.site-logo-nav-img {
  display: block;
  width: 160px !important;
  height: auto !important;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .lang-switcher-nav-item {
    margin: 0 0.75rem 0 0 !important;
  }
  
  .lang-switcher-nav-link {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }
  
  .site-name-nav-item {
    margin: 0 1rem !important;
  }
}

@media (max-width: 991px) {
  .lang-switcher-nav-item {
    display: none !important;
  }
  
  .site-name-nav-item {
    display: none !important;
  }
}

/* إخفاء البطاقة المركزية للشعار */
.logo-section,
.logo-card,
.logo-card-inner,
.logo-container {
  display: none !important;
}

/* إخفاء الشعار من القائمة الجانبية */
.logo-nav-item,
.mein_menu_list .logo-nav-item,
.mein_menu_list li.logo-nav-item,
.logo-img:not(.logo-img-small),
.logo-text,
.logo-title-en,
.logo-title-ar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* إخفاء الشعار من القائمة الرئيسية */
.main-menu .logo-img,
.main-menu .logo-text,
.main-menu .logo-nav-item {
  display: none !important;
}

/* التأكد من إخفاء أي شعار في القائمة */
#navigation .logo-nav-item,
.mein_menu_list li.logo-nav-item {
  display: none !important;
}

.logo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 50%, #4e73df 100%);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.logo-card {
  max-width: 900px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
  animation: fadeInUp 0.8s ease-out;
}

.logo-card-inner {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 2.5rem 3rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5rem !important;
  border: 1px solid rgba(78, 115, 223, 0.1) !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
  margin-top: -60px !important;
  margin-bottom: 2rem !important;
}

.logo-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
}

.logo-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  border-color: rgba(78, 115, 223, 0.2);
}

.logo-image-wrapper {
  flex-shrink: 0;
}

.logo-image-wrapper .logo-main,
.logo-card .logo-main,
.logo-card-inner .logo-main {
  width: 140px !important;
  height: 140px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15)) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #fff !important;
  padding: 15px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  max-width: 140px !important;
  display: block !important;
}

.logo-main:hover {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
  box-shadow: 0 12px 30px rgba(78, 115, 223, 0.2);
}

.logo-text-content {
  text-align: right !important;
  flex: 1 !important;
}

html[dir='ltr'] .logo-text-content {
  text-align: left !important;
}

/* إخفاء العناصر القديمة */
.logo-section .logo-container:not(.logo-card),
.logo-section .site-name:not(.logo-text-content) {
  display: none !important;
}

/* التأكد من إظهار العناصر الجديدة */
.logo-card,
.logo-card-inner,
.logo-image-wrapper,
.logo-text-content {
  display: flex !important;
}

.logo-title-en {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #4e73df !important;
  margin: 0 0 0.75rem 0 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
}

.logo-title-ar {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.4 !important;
}

.logo-subtitle {
  font-size: 1rem !important;
  color: #6b7280 !important;
  margin: 0 !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

.logo-img img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
  .logo-card-inner {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  
  .logo-text-content {
    text-align: center;
  }
  
  html[dir='ltr'] .logo-text-content {
    text-align: center;
  }
  
  .logo-main {
    width: 120px;
    height: 120px;
  }
  
  .logo-title-en {
    font-size: 1.2rem;
  }
  
  .logo-title-ar {
    font-size: 1.4rem;
  }
  
  .logo-subtitle {
    font-size: 0.9rem;
  }
}

/* Navigation - تحسينات */
.main-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-menu ul li {
  list-style: none;
}

.main-menu ul li a {
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  display: block;
}

.main-menu ul li a:hover,
.main-menu ul li a.active {
  color: #4e73df;
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.1) 0%, rgba(28, 200, 138, 0.1) 100%);
  transform: translateY(-2px);
}

.main-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-menu ul li a:hover::after,
.main-menu ul li a.active::after {
  width: 80%;
}

/* Logo in Navigation - تحسينات */
.logo-nav-item {
  margin: 0 2rem;
  flex-shrink: 0;
}

.logo-img {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.logo-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(78, 115, 223, 0.3);
}

.logo-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-title-en {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4e73df;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-title-ar {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

@media (max-width: 1200px) {
  .logo-text {
    display: none;
  }
  
  .logo-img {
    padding: 0.5rem;
  }
}

/* Hero Section - تحسينات */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 0;
}

.single_slider-iner {
  padding-top: 3rem !important;
  margin-top: 2rem !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.88) 0%, rgba(28, 200, 138, 0.88) 50%, rgba(78, 115, 223, 0.88) 100%);
  background-size: 200% 100%;
  animation: gradientFlow 8s ease infinite;
  z-index: 1;
}

/* التأكد من أن goals-grid فوق hero-overlay */
.goals-grid {
  position: relative;
  z-index: 10 !important;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  margin-top: 4rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  margin: 0 auto 2rem auto;
  opacity: 0.95;
  line-height: 1.8;
  text-align: justify;
  text-align-last: center;
  max-width: 900px;
  padding: 0 2rem;
  word-spacing: 0.1em;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* Goals Grid - تحسينات */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1rem;
  max-width: 1600px;
  margin: 3rem auto 2rem;
  padding: 2rem 1rem;
  background: transparent;
  backdrop-filter: none;
  border-radius: 20px;
  border: none;
  position: relative;
  z-index: 10;
}

/* التأكد من أن الصف الثاني يبدأ من الهدف 10 */
.goals-grid .goal-item:nth-child(n+10) {
  grid-column: auto;
}

@media (max-width: 1400px) {
  .goals-grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 1200px) {
  .goals-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
}

.goal-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: transparent;
  border: 3px solid transparent;
  z-index: 10;
}

.goal-item:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  z-index: 10;
  border-color: rgba(78, 115, 223, 0.5);
}

.goal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: none !important;
  -webkit-filter: none !important;
  position: relative;
  z-index: 11;
}

.goal-item:hover img {
  transform: scale(1.15);
  filter: none;
  -webkit-filter: none;
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, #f5f7fb 0%, #e9f1ff 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(78, 115, 223, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(78, 115, 223, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(78, 115, 223, 0.4);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ألوان مميزة لكل بطاقة */
.stat-card-section::before {
  background: linear-gradient(90deg, #f6c23e 0%, #dda20a 100%);
}

.stat-card-section .stat-icon {
  background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
  box-shadow: 0 8px 20px rgba(246, 194, 62, 0.3);
}

.stat-card-section:hover .stat-icon {
  box-shadow: 0 12px 30px rgba(246, 194, 62, 0.4);
}

.stat-card-section .stat-number {
  background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-section:hover {
  border-top: 3px solid #f6c23e;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.stat-card-item::before {
  background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
}

.stat-card-item .stat-icon {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  box-shadow: 0 8px 20px rgba(78, 115, 223, 0.3);
}

.stat-card-item:hover .stat-icon {
  box-shadow: 0 12px 30px rgba(78, 115, 223, 0.4);
}

.stat-card-item .stat-number {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-item:hover {
  border-top: 3px solid #4e73df;
  background: linear-gradient(135deg, #ffffff 0%, #e8f0ff 100%);
}

.stat-label {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
  border-radius: 2px;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 2rem;
}

/* Section Titles - تحسين */
.section_title {
  text-align: center;
  margin-bottom: 2rem;
}

.rt2_area .section_title {
  margin-bottom: 1.5rem;
}

.section_title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section_title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
  border-radius: 2px;
}

/* Swiper Cards - تحسينات */
.swiper-slide {
  transition: all 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

/* تقليل ارتفاع بطاقات الأهداف */
.rt2_area .card {
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.rt2_area .card-image {
  max-height: 280px;
  overflow: hidden;
}

.rt2_area .card-image .card-img {
  height: 100%;
  max-height: 280px;
  object-fit: cover;
}

.rt2_area .card-content {
  flex: 0 0 auto;
  min-height: auto;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.rt2_area .card:hover .card-content {
  background: rgba(255, 255, 255, 1) !important;
}

.rt2_area .card-content .name,
.rt2_area .card-content h2.name,
.rt2_area .card-content h2,
.rt2_area .card .card-content .name {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 2.8em; /* يضمن وجود مساحة لسطرين حتى لو كان النص قصيراً */
  height: 2.8em;
  color: #000000 !important;
  font-weight: 600;
}

/* تقليل المسافات في السلايدر */
.rt2_area .slide-container {
  padding: 20px 0 !important;
}

.rt2_area .slide-content {
  margin: 0 20px;
}

/* إبعاد الأسهم عن البطاقات في قسم الأهداف */
.rt2_area .swiper-button-next {
  left: -25px !important;
  right: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.rt2_area .swiper-button-prev {
  right: -25px !important;
  left: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[dir='rtl'] .rt2_area .swiper-button-next {
  right: -25px !important;
  left: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[dir='rtl'] .rt2_area .swiper-button-prev {
  left: -25px !important;
  right: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* تحسين مظهر الأسهم بدون خلفية */
.rt2_area .swiper-navBtn {
  color: #4e73df !important;
  background: transparent !important;
  backdrop-filter: none !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none !important;
  opacity: 0.9 !important;
}

.rt2_area .swiper-navBtn:hover {
  background: transparent !important;
  transform: scale(1.2);
  color: #1cc88a !important;
  opacity: 1 !important;
}

.rt2_area .swiper-navBtn::before,
.rt2_area .swiper-navBtn::after {
  font-size: 28px !important;
  font-weight: bold !important;
}

.card-content {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 0 0 25px 25px;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

/* تحسين بطاقات الممارسات بنفس تأثير بطاقات الإحصائيات - تطابق كامل */
.rt3_area .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rt3_area .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
}

.rt3_area .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.rt3_area .card-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.rt3_area .card:hover .card-content {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* جعل جميع عناوين الممارسات في سطرين */
.rt3_area .card-content .name,
.rt3_area .card-content h2.name,
.rt3_area .card-content h2,
.rt3_area .card .card-content .name {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 2.8em; /* يضمن وجود مساحة لسطرين حتى لو كان النص قصيراً */
  height: 2.8em;
  color: #000000 !important;
  font-weight: 600;
}

/* إبعاد الأسهم عن البطاقات في قسم الممارسات */
.rt3_area .swiper-button-next {
  left: -25px !important;
  right: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.rt3_area .swiper-button-prev {
  right: -25px !important;
  left: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[dir='rtl'] .rt3_area .swiper-button-next {
  right: -25px !important;
  left: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[dir='rtl'] .rt3_area .swiper-button-prev {
  left: -25px !important;
  right: auto !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* تحسين مظهر الأسهم بدون خلفية */
.rt3_area .swiper-navBtn {
  color: #4e73df !important;
  background: transparent !important;
  backdrop-filter: none !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
}

.rt3_area .swiper-navBtn:hover {
  background: transparent !important;
  transform: scale(1.2);
  color: #4e73df !important;
  opacity: 1 !important;
}

.rt3_area .swiper-navBtn::before,
.rt3_area .swiper-navBtn::after {
  font-size: 28px !important;
  font-weight: bold !important;
}

.swiper-slide:hover .card-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 115, 223, 0.4);
  color: #fff;
  text-decoration: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

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

.scroll-indicator i {
  font-size: 2rem;
  color: #fff;
  opacity: 0.8;
}

/* Zigzag Border - تحسين */
.zigzag_bg_2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  z-index: 5;
}

/* Section Backgrounds - تحسين */
.rt3_area {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 50%, #e0f2fe 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* خلفية متحركة أقوى لقسم الممارسات - أقوى من الإحصائيات */
.rt3_area::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(78, 115, 223, 0.25) 0%, rgba(78, 115, 223, 0.15) 25%, rgba(78, 115, 223, 0.08) 45%, transparent 70%);
  animation: rotate 15s linear infinite;
  z-index: 0;
}

.rt3_area::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(28, 200, 138, 0.18) 0%, rgba(28, 200, 138, 0.1) 30%, rgba(28, 200, 138, 0.05) 50%, transparent 70%);
  animation: rotate 12s linear infinite reverse;
  z-index: 0;
}

.rt3_area > * {
  position: relative;
  z-index: 1;
}

.rt2_area {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #1e293b 100%);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

/* خلفية متحركة لقسم الأهداف */
.rt2_area::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(78, 115, 223, 0.15) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  z-index: 0;
}

.rt2_area::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(28, 200, 138, 0.12) 0%, transparent 70%);
  animation: rotate 25s linear infinite reverse;
  z-index: 0;
}

.rt2_area > * {
  position: relative;
  z-index: 1;
}

/* تأثيرات إضافية للبطاقات في قسم الأهداف */
.rt2_area .card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.rt2_area .card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(78, 115, 223, 0.3);
  box-shadow: 0 10px 40px rgba(78, 115, 223, 0.2);
  transform: translateY(-8px);
}

/* لون العنوان في قسم الأهداف - أبيض - قاعدة قوية */
.rt2_area .section_title h2,
.rt2_area .section_title h2 *,
.rt2_area .section_title .heading,
.rt2_area .section_title,
.rt2_area h2,
.rt2_area .mb-30 h2,
div.rt2_area div.section_title h2,
div.rt2_area div.section_title.mb-30 h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* التأكد من تطبيق اللون الأبيض على جميع العناصر داخل rt2_area */
.rt2_area .section_title * {
  color: #ffffff !important;
}

.rt2_area .section_title h2::after {
  background: linear-gradient(90deg, #1cc88a 0%, #4e73df 100%);
  box-shadow: 0 2px 8px rgba(28, 200, 138, 0.5);
}

/* تحسين عنوان قسم الممارسات */
.rt3_area .section_title h2 {
  color: #1f2937 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rt3_area .section_title h2::after {
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
  box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
}

/* Footer - تحسين بخلفية متدرجة جميلة */
.footer_area {
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.95) 0%, rgba(28, 200, 138, 0.95) 50%, rgba(78, 115, 223, 0.95) 100%);
  background-size: 200% 100%;
  animation: gradientFlow 8s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer_area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
  box-shadow: 0 2px 8px rgba(78, 115, 223, 0.5);
  z-index: 1;
}

/* تأثيرات إضافية للفوتر */
.footer_area::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  z-index: 0;
}

.footer_area > * {
  position: relative;
  z-index: 2;
}

/* زر الذهاب إلى الأعلى */
.go-to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 auto;
  white-space: nowrap;
}

.go-to-top-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.go-to-top-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  color: #fff !important;
  text-decoration: none;
}

.go-to-top-btn:hover i {
  transform: translateY(-3px);
}

/* إجراءات الفوتر اليسرى */
.footer-left-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

html[dir='rtl'] .footer-left-actions {
  align-items: flex-end;
}

/* إجراءات الفوتر اليمنى */
.footer-right-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

html[dir='rtl'] .footer-right-actions {
  align-items: flex-start;
}

.footer-right-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: nowrap;
  width: 100%;
}

html[dir='rtl'] .footer-right-buttons {
  align-items: flex-start;
}

.footer-left-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}

html[dir='rtl'] .footer-left-buttons {
  align-items: flex-end;
}

.footer-right-buttons .go-to-top-btn,
.footer-left-buttons .go-to-top-btn {
  width: 100% !important;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.footer-right-buttons .social-btn,
.footer-left-buttons .social-btn {
  width: 100% !important;
  justify-content: center;
  margin-top: 0.5rem !important;
  display: flex !important;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.footer-contact-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  align-items: center;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 auto;
}

html[dir='rtl'] .footer-action-btn {
  justify-content: flex-end;
}

.footer-action-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.footer-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  color: #fff !important;
  text-decoration: none;
}

.footer-action-btn:hover i {
  transform: scale(1.1);
}

.footer-action-btn.social-btn {
  min-width: auto;
  width: 100%;
  padding: 0.6rem 1.25rem;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
}

.footer-action-btn.social-btn span {
  display: none;
}

.footer-action-btn.social-btn .x-icon {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.05em;
  margin: 0;
}

.footer-action-btn.social-btn .x-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1;
}

html[dir='rtl'] .footer-action-btn.social-btn {
  flex-direction: row-reverse;
  justify-content: center !important;
}

html[dir='ltr'] .footer-action-btn.social-btn {
  flex-direction: row;
  justify-content: center !important;
}

.footer-action-btn.date-btn {
  cursor: default;
  width: 100% !important;
  flex: 1 1 auto;
}

.footer-action-btn.date-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.footer-date-container .footer-action-btn.date-btn {
  width: 100% !important;
  flex: 1 1 auto;
}

.footer-date-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-date-container .date-btn {
  margin-bottom: 0;
}

.gregorian-date-ar,
.gregorian-date-en {
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-copyright-center {
  margin-top: 1.5rem;
}

.footer-copyright-center .footer-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .go-to-top-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .go-to-top-btn i {
    font-size: 1.25rem;
  }
  
  .footer-contact-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-action-btn {
    width: 100%;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    justify-content: flex-start;
  }
  
  html[dir='rtl'] .footer-action-btn {
    justify-content: flex-end;
  }
  
  .footer-action-btn.social-btn {
    width: auto;
    min-width: 45px;
    justify-content: center;
  }
  
  .footer-right-buttons {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  
  html[dir='rtl'] .footer-right-buttons {
    align-items: flex-end;
  }
  
  .footer-copyright-center {
    margin-top: 1rem;
  }
  
  .footer-copyright-center .footer-text {
    font-size: 0.85rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .stat-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-icon {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2.8rem;
  }
  
  .section_title h2 {
    font-size: 2rem;
  }
  
  .logo-section {
    padding: 2.5rem 0;
  }
  
  .logo-main {
    max-width: 160px;
    padding: 15px;
  }
  
  .site-name {
    font-size: 1.4rem;
  }
  
  .site-name-en {
    font-size: 1.1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}
