/* =====================================================================
   صفحة الباقات — التنسيقات الخاصة بالصفحة دي بس
   (الألوان والخطوط والمقاسات جاية من المتغيرات في Style.Css)
   ===================================================================== */

.pricing-path {
  padding-block: var(--section-space);
  background: var(--color-surface);
}

.pricing-path-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* تقسيم الشبكة لـ 6 أعمدة متساوية */
  gap: 24px;
  align-items: stretch;
}

/* كروت الصف الأول (تأخذ كل منها عمودين) */
.pricing-path-grid > * {
  grid-column: span 2;
}

/* الكارت الرابع يبدأ من العمود الثاني في الصف الثاني */
@media (min-width: 1025px) {
  /* لو الصف الأخير فيه باقتين بس، يتوسطوا */
  .pricing-path-grid > *:nth-child(3n + 1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
  .pricing-path-grid > *:nth-child(3n + 2):nth-last-child(1) {
    grid-column: 4 / span 2;
  }
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.card-deco {
  display: none;
}

.path-card h3 {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-ink);
  transition: color 0.35s ease;
  text-align: center;
}
.card-desc {
  margin-bottom: 22px;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  transition:
    color 0.35s ease,
    border-color 0.35s ease;
}
.card-features {
  flex: 1;
  margin-bottom: 28px;
}
.card-features li {
  position: relative;
  padding: 7px 26px 7px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  transition: color 0.35s ease;
}
.card-features li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 13px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--color-accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2323843f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-weight: 700;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

/* شارة الأكثر طلبًا */
.pkg-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-on-dark);
  background: var(--color-accent-dark);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* الباقة المميزة + الهوفر (نفس الشكل) */
.path-card.featured,
.path-card:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.path-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.path-card.featured {
  box-shadow:
    0 0 0 2px var(--color-accent),
    var(--shadow);
}
.path-card.featured h3,
.path-card:hover h3 {
  color: var(--color-on-dark);
}
.path-card.featured .card-desc,
.path-card:hover .card-desc {
  color: var(--color-on-dark-muted);
  border-color: rgba(255, 255, 255, 0.15);
}
.path-card.featured .card-features li,
.path-card:hover .card-features li {
  color: var(--color-on-dark-muted);
}
.path-card.featured .card-btn,
.path-card:hover .card-btn {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-on-dark);
}

@media (max-width: 1024px) {
  .pricing-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
  .pricing-path-grid > * {
    grid-column: auto;
  }
  .pricing-path-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}
@media (max-width: 640px) {
  .pricing-path-grid {
    grid-template-columns: 1fr;
  }
  .pricing-path-grid > :last-child:nth-child(odd) {
    width: 100%;
  }
}
