/* تصميم احترافي حديث لصفحات المجالات والأهداف */

/* Hero Section - محسّن */
.section-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, var(--section-color-1, rgba(78, 115, 223, 0.4)) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--section-color-2, rgba(28, 200, 138, 0.4)) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--section-color-1, rgba(78, 115, 223, 0.3)) 0%, transparent 60%),
    linear-gradient(135deg, 
      var(--section-color-1, rgba(78, 115, 223, 0.7)) 0%, 
      var(--section-color-2, rgba(28, 200, 138, 0.75)) 50%, 
      var(--section-color-1, rgba(78, 115, 223, 0.7)) 100%);
  background-size: 400px 400px, 500px 500px, 600px 600px, 400% 400%;
  animation: heroBackgroundFlow 15s ease-in-out infinite;
  z-index: 1;
  transition: background 0.6s ease;
}

.section-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

@keyframes heroBackgroundFlow {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%;
  }
  25% {
    background-position: 20% 30%, 80% 70%, 60% 40%, 25% 50%;
  }
  50% {
    background-position: 50% 50%, 50% 50%, 30% 70%, 50% 50%;
  }
  75% {
    background-position: 80% 20%, 20% 80%, 70% 30%, 75% 50%;
  }
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 100% 50%;
  }
}

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

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

.section-hero-content h3 {
  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;
  color: #fff !important;
}

.section-hero-content p {
  font-size: 1.25rem;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.8;
  max-width: 900px;
  color: #fff !important;
}

@media (max-width: 768px) {
  .section-hero {
    min-height: 400px;
  }
  
  .section-hero-content h3 {
    font-size: 2rem;
  }
  
  .section-hero-content p {
    font-size: 1rem;
  }
}

/* Content Section - محسّن */
.section-content-area {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f7fb 0%, #e9f1ff 100%);
  overflow: hidden;
}

.section-content-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--section-color-1, rgba(78, 115, 223, 0.15)) 0%, 
    transparent 30%,
    transparent 70%,
    var(--section-color-2, rgba(28, 200, 138, 0.15)) 100%);
  background-size: 300% 300%;
  clip-path: none;
  border-radius: 0;
  animation: subtleGradientFlow 12s ease-in-out infinite;
  z-index: 0;
  transition: background 0.6s ease;
  opacity: 1;
}

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

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

.section-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ============================================
   قسم 1: العنوان الرئيسي والنص الرئيسي
   ============================================ */
.section-main-title-section {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================
   قسم 2: الهدف الرئيسي
   ============================================ */
.section-main-goal-section {
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 2.5rem 2.5rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-main-goal-section .goal-image-title {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-main-goal-section .goal-image-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
}

.section-main-goal-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-main-goal-section img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   قسم 3: الأهداف الثانوية
   ============================================ */
.section-secondary-goals-section {
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem 2.5rem;
  /* خلفية بيضاء صافية مثل بطاقة الهدف الرئيسي */
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

.section-secondary-goals-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* إزالة التدرج اللوني حتى تبقى البطاقة بيضاء صافية مثل البطاقة الرئيسية */
  background: transparent;
  background-size: auto;
  animation: none;
  z-index: 0;
  pointer-events: none;
}

.section-secondary-goals-section > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-main-goal-section {
    padding: 1.5rem 1.5rem 2rem;
    margin: 0 auto;
  }
  
  .section-secondary-goals-section {
    padding: 1.5rem 1.5rem 2rem;
  }
}

/* Main Goal Label Section - عنوان الهدف الرئيسي فوق الممارسات */
.main-goal-label-section {
  padding: 4rem 0 2rem;
  background: #ffffff;
  position: relative;
  text-align: center;
  z-index: 10;
}

.main-goal-section-label {
  display: inline-block;
}

.label-box {
  display: inline-block;
  border-radius: 50px;
  padding: 0.875rem 2.5rem;
  /* الألوان تطبق ديناميكياً من JavaScript - section-color-extractor.js */
}

.label-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: transparent;
  margin: 0;
  line-height: 1.5;
  /* الألوان تطبق ديناميكياً من JavaScript - section-color-extractor.js */
}

.section-title-modern {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 1rem;
  transition: background 0.6s ease;
}

/* عنوان قسم البطاقات (المعرض / البيانات / المعلومات) - تنسيق مميز */
.action-cards-section h3.section-title-modern {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  /* خلفية ملوّنة منسجمة مع ألوان المسار، مع نص أبيض */
  background: linear-gradient(135deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%) !important;
  background-image: linear-gradient(135deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* محاذاة عنوان قسم البطاقات للمنتصف داخل القسم */
.action-cards-section .action-cards-wrapper {
  text-align: center;
}

.action-cards-section h3.section-title-modern::after {
  /* إلغاء خط التدرج أسفل العنوان داخل قسم البطاقات فقط */
  background: transparent !important;
}

.section-title-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%);
  border-radius: 2px;
  transition: background 0.6s ease;
}

.section-text-modern {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Goal Image Section - بطاقة صورة الهدف الرئيسي (للتوافق مع الكود القديم) */
.goal-image-section {
  text-align: center;
  padding: 2rem 2.5rem 2.5rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 3rem auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* قسم الهدف الرئيسي - الجديد */
.section-main-goal-section .goal-image-title {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.goal-image-title {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.goal-image-title .label-box {
  display: inline-block;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  transition: all 0.3s ease;
  /* الألوان تطبق ديناميكياً من JavaScript - section-color-extractor.js */
}

.goal-image-title .label-box:hover {
  /* التأثيرات تطبق ديناميكياً من JavaScript */
}

.goal-image-title .label-text {
  font-size: 1.1rem;
  font-weight: 600;
  /* color: #dc2626; - تم إزالة اللون الثابت ليتم تطبيقه ديناميكياً من JavaScript */
  margin: 0;
  line-height: 1.5;
}

.goal-image-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
}

.goal-image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-image-section img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .goal-image-section {
    padding: 1.5rem 1.5rem 2rem;
    margin: 2rem auto;
  }
  
  .goal-image-title .label-text {
    font-size: 1rem;
  }
  
  .goal-image-title .label-box {
    padding: 0.75rem 1.5rem;
  }
}

.goal-image-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
  transition: background 0.6s ease;
}

.goal-image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.goal-image-section img:hover {
  transform: scale(1.05);
}

/* Goals Grid - محسّن */
.goals-grid-section {
  padding: 2rem 2.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 50%, rgba(241, 245, 249, 0.95) 100%);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 3rem auto;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.goals-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--section-color-1, rgba(78, 115, 223, 0.08)) 0%, var(--section-color-2, rgba(28, 200, 138, 0.08)) 50%, var(--section-color-1, rgba(78, 115, 223, 0.08)) 100%);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  z-index: 0;
  pointer-events: none;
}

.goals-grid-section > * {
  position: relative;
  z-index: 1;
}

.goals-grid-title {
  width: 100%;
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}

.goals-grid-title .label-box {
  display: inline-block;
  border-radius: 12px;
  padding: 1.25rem 2.5rem;
  transition: all 0.3s ease;
  width: auto;
  max-width: 90%;
  /* خلفية شفافة كافتراضي - JavaScript سيستبدلها باللون الصحيح */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.goals-grid-title .label-box:hover {
  /* التأثيرات تطبق ديناميكياً من JavaScript */
}

.goals-grid-title .label-text {
  font-size: 1.2rem;
  font-weight: 600;
  /* color: #be185d; - تم إزالة اللون الثابت ليتم تطبيقه ديناميكياً من JavaScript */
  color: transparent !important; /* منع وراثة اللون الأحمر من .label-text العام */
  margin: 0;
  line-height: 1.6;
  text-align: center;
  display: block;
  /* الألوان تطبق ديناميكياً من JavaScript - section-color-extractor.js */
}

.goals-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 0;
  max-width: 500px;
  margin: 0 auto;
}

.goals-grid-modern .col {
  position: relative;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  transition: none;
  box-shadow: none;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.goals-grid-modern .col:hover {
  box-shadow: none;
  border-color: transparent;
}

.goals-grid-modern .col img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: none !important;
  -webkit-filter: none !important;
}

.goals-grid-modern .col:hover img {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Action Cards Section - محسّن */
.action-cards-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f7fb 0%, #e9f1ff 100%);
  position: relative;
  overflow: hidden;
}

/* ============================================
   خلفية 1: الخلفية المتحركة الأولى (::before)
   ============================================ */
.action-cards-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, var(--section-color-1, rgba(78, 115, 223, 0.25)) 0%, var(--section-color-2, rgba(28, 200, 138, 0.25)) 50%, transparent 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  animation: rotate 20s linear infinite;
  z-index: 0;
  transition: background 0.6s ease;
}

/* ============================================
   خلفية 2: الخلفية المتحركة الثانية (::after)
   ============================================ */
.action-cards-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 150%;
  height: 150%;
  background: linear-gradient(45deg, transparent 0%, var(--section-color-2, rgba(28, 200, 138, 0.25)) 30%, var(--section-color-1, rgba(78, 115, 223, 0.25)) 70%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 80%);
  animation: rotate 25s linear infinite reverse;
  z-index: 0;
  transition: background 0.6s ease;
}

.action-cards-wrapper {
  position: relative;
  z-index: 1;
}

.action-card-modern {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.action-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%);
  z-index: 1;
  transition: background 0.6s ease;
}

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

.action-card-image {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, var(--section-color-1, #4e73df) 0%, var(--section-color-2, #1cc88a) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.6s ease;
}

.action-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.9) 0%, rgba(28, 200, 138, 0.9) 100%);
  z-index: 1;
}

.action-card-image h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.action-card-content {
  padding: 2rem;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-card-content a {
  color: var(--section-color-1, #4e73df);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--section-color-1, rgba(78, 115, 223, 0.1))1a 0%, var(--section-color-2, rgba(28, 200, 138, 0.1))1a 100%);
  border-radius: 10px;
  border: 2px solid transparent;
}

.action-card-content a:hover {
  color: var(--section-color-2, #1cc88a);
  background: linear-gradient(135deg, var(--section-color-1, rgba(78, 115, 223, 0.2))33 0%, var(--section-color-2, rgba(28, 200, 138, 0.2))33 100%);
  border-color: var(--section-color-1, #4e73df);
  transform: translateX(5px);
}

.action-card-content a::after {
  content: '→';
  transition: transform 0.3s ease;
}

html[dir='rtl'] .action-card-content a::after {
  content: '←';
}

.action-card-content a:hover::after {
  transform: translateX(5px);
}

html[dir='rtl'] .action-card-content a:hover::after {
  transform: translateX(-5px);
}

/* Item Page Specific Styles - تصميم مميز للأهداف */
.item-hero {
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, var(--goal-color-1, #667eea) 0%, var(--goal-color-2, #764ba2) 50%, var(--goal-color-3, #f093fb) 100%);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
  overflow: hidden;
  transition: background 0.5s ease;
}

.item-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

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

.item-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 2;
}

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

.item-hero-content h3 {
  font-size: 3rem;
  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;
}

.item-hero-content p {
  font-size: 1.2rem;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.8;
  max-width: 800px;
}

.item-content-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f7fb 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.item-content-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, var(--goal-color-1, rgba(102, 126, 234, 0.25)) 0%, var(--goal-color-2, rgba(118, 75, 162, 0.25)) 50%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 80%);
  animation: rotate 25s linear infinite;
  z-index: 0;
}

.item-content-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 150%;
  height: 150%;
  background: linear-gradient(45deg, transparent 0%, var(--goal-color-2, rgba(118, 75, 162, 0.25)) 30%, var(--goal-color-1, rgba(102, 126, 234, 0.25)) 70%, transparent 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  animation: rotate 20s linear infinite reverse;
  z-index: 0;
}

.item-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  background: #fff;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.item-text {
  flex: 1;
}

.item-text .section-title-modern {
  background: linear-gradient(135deg, var(--goal-color-1, #667eea) 0%, var(--goal-color-2, #764ba2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
  transition: background 0.5s ease;
}

html[dir='ltr'] .item-text .section-title-modern {
  text-align: left;
}

.item-text .section-title-modern::after {
  background: linear-gradient(90deg, var(--goal-color-1, #667eea) 0%, var(--goal-color-2, #764ba2) 100%);
  right: 0;
  left: auto;
  transform: none;
  transition: background 0.5s ease;
}

html[dir='ltr'] .item-text .section-title-modern::after {
  left: 0;
  right: auto;
}

.item-text .section-text-modern {
  color: #4a5568;
  font-size: 1.15rem;
  line-height: 1.9;
}

.item-image {
  flex: 0 0 350px;
  text-align: center;
  position: relative;
}

.item-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--goal-color-1, #667eea) 0%, var(--goal-color-2, #764ba2) 100%);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.2;
  transition: background 0.5s ease;
}

.item-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  transition: all 0.4s ease;
  border: 4px solid #fff;
  position: relative;
  z-index: 1;
}

.item-image img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.item-action-card {
  background: linear-gradient(135deg, var(--goal-color-1, #667eea) 0%, var(--goal-color-2, #764ba2) 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  transition: all 0.4s ease;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.item-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--goal-color-1, #667eea) 0%, var(--goal-color-2, #764ba2) 100%);
  z-index: 1;
}

.item-action-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
}

.item-action-card-image {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, var(--goal-color-1, #667eea)dd 0%, var(--goal-color-2, #764ba2)dd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.5s ease;
}

.item-action-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
  z-index: 1;
}

.item-action-card-image h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 0 2rem;
  line-height: 1.4;
}

.item-action-card-content {
  padding: 2.5rem;
  text-align: center;
  background: #fff;
}

.item-action-card-content a {
  color: var(--goal-color-1, #667eea);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--goal-color-1, #667eea)1a 0%, var(--goal-color-2, #764ba2)1a 100%);
  border-radius: 12px;
  border: 2px solid transparent;
}

.item-action-card-content a:hover {
  color: var(--goal-color-2, #764ba2);
  background: linear-gradient(135deg, var(--goal-color-1, #667eea)33 0%, var(--goal-color-2, #764ba2)33 100%);
  border-color: var(--goal-color-1, #667eea);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--goal-color-1, #667eea)33;
}

.item-action-card-content a::after {
  content: '→';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

html[dir='rtl'] .item-action-card-content a::after {
  content: '←';
}

.item-action-card-content a:hover::after {
  transform: translateX(8px);
}

html[dir='rtl'] .item-action-card-content a:hover::after {
  transform: translateX(-8px);
}

/* Footer - تصميم أبيض لصفحة الممارسات */
/* عندما تكون صفحة الممارسات موجودة (تحتوي على .section-hero) */
body:has(.section-hero) .footer_area {
  background: #ffffff !important;
  background-size: 200% 100% !important;
  animation: none !important;
}

body:has(.section-hero) .footer_area::before {
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%) !important;
}

/* ألوان النصوص في الفوتر - أسود فاتح لصفحة الممارسات */
body:has(.section-hero) .footer_area .footer-text,
body:has(.section-hero) .footer_area .footer-copyright-center .footer-text,
body:has(.section-hero) .footer_area .go-to-top-btn,
body:has(.section-hero) .footer_area .go-to-top-btn span,
body:has(.section-hero) .footer_area .footer-action-btn,
body:has(.section-hero) .footer_area .footer-action-btn span,
body:has(.section-hero) .footer_area .footer-action-btn i,
body:has(.section-hero) .footer_area .my-date,
body:has(.section-hero) .footer_area .my-date-gregorian-ar,
body:has(.section-hero) .footer_area .my-date-en-hijri,
body:has(.section-hero) .footer_area .my-date-gregorian-en,
body:has(.section-hero) .footer_area .x-icon,
body:has(.section-hero) .footer_area .x-label {
  color: #4a5568 !important;
}

body:has(.section-hero) .footer_area .go-to-top-btn,
body:has(.section-hero) .footer_area .footer-action-btn {
  background: rgba(74, 85, 104, 0.1) !important;
  border-color: rgba(74, 85, 104, 0.2) !important;
}

body:has(.section-hero) .footer_area .go-to-top-btn:hover,
body:has(.section-hero) .footer_area .footer-action-btn:hover {
  background: rgba(74, 85, 104, 0.15) !important;
  border-color: rgba(74, 85, 104, 0.3) !important;
  color: #2d3748 !important;
}

@media (max-width: 768px) {
  .item-hero {
    min-height: 300px;
  }
  
  .item-hero-content h3 {
    font-size: 2rem;
  }
  
  .item-content-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }
  
  .item-image {
    flex: 1;
  }
  
  .item-text .section-title-modern {
    text-align: center;
  }
  
  .item-text .section-title-modern::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Scroll Indicator */
.scroll-indicator-section {
  text-align: center;
  padding: 2rem 0;
}

.scroll-indicator-section a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.15) 0%, rgba(28, 200, 138, 0.15) 100%);
  color: #4e73df;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scroll-indicator-section a:hover {
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(78, 115, 223, 0.3);
}

/* Swiper Navigation - محسّن */
.action-cards-section .swiper-navBtn {
  color: #4e73df !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(78, 115, 223, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-cards-section .swiper-navBtn:hover {
  background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%) !important;
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(78, 115, 223, 0.3);
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
  .goals-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .section-content-area {
    padding: 3rem 0;
  }
  
  .section-title-modern {
    font-size: 2rem;
  }
  
  .goals-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    max-width: 500px;
  }
  
  .action-card-image {
    height: 200px;
  }
  
  .action-card-image h2 {
    font-size: 1.5rem;
  }
}
