/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features-section {
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 10px
  );
  pointer-events: none;
}

.feature-card {
  border-radius: 14px;
  padding: 20px 15px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(227, 161, 39, 0.15);
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* ألوان مختلفة لكل كارت حسب ترتيبه داخل الـ row */
.row.g-4 > div:nth-child(1) .feature-card {
  background: linear-gradient(135deg, #ffd8da 0%, #ffe4f6 100%);
}

.row.g-4 > div:nth-child(2) .feature-card {
  background: linear-gradient(135deg, #c7b7ed 0%, #c2ccfb 100%);
}

.row.g-4 > div:nth-child(3) .feature-card {
  background: linear-gradient(135deg, #f8e9c8 0%, #d6f1f2 100%);
}

.row.g-4 > div:nth-child(4) .feature-card {
  background: linear-gradient(135deg, #ccebd8 0%, #c4e1ef 100%);
}

.row.g-4 > div:nth-child(5) .feature-card {
  background: linear-gradient(135deg, #f8ecc7 0%, #f5d5cc 100%);
}

.row.g-4 > div:nth-child(6) .feature-card {
  background: linear-gradient(135deg, #cffaef 0%, #f0c1fc 100%);
}


.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  opacity: 1;
  top: -30%;
  right: -30%;
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #d4941f 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(227, 161, 39, 0.35);
}

.feature-card:hover .feature-icon {
  transform: rotateY(360deg) scale(1.1);
}

.feature-icon i {
  font-size: 2rem;
  color: #fff;
  transition: all 0.3s ease;
}

.feature-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #333;
  z-index: 1;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
  background: #fff;
  transform: rotate(360deg) scale(1.05);
}

.feature-content {
  position: relative;
  z-index: 1;
}

.feature-content h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #2a2a2a;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.feature-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  opacity: 0.9;
}

.feature-divider {
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  margin: 15px auto 18px;
  border-radius: 2px;
  transition: width 0.3s ease;
}

html[dir="rtl"] .feature-divider {
  margin: auto 20px;
  background: linear-gradient(253deg, var(--accent-color), transparent);
}

.feature-card:hover .feature-divider {
  width: 100px;
}

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

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
