/* ═══════════════════════════════════════════════════════════
   عروض اليوم الوطني السعودي 95
   ألوان: أخضر #165C1E، أبيض، ذهبي #C9A227
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.nd-hero {
  position: relative;
  min-height: 500px;
  background: #0d3d14; /* fallback */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px 60px;
}

.nd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.nd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

.nd-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.nd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.5);
  color: #f0d060;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.nd-badge-flag { font-size: 1.2rem; }

.nd-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.nd-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin: 0 0 30px;
}

.nd-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nd-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #f0d060;
  line-height: 1;
}

.nd-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.nd-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── أزرار ──────────────────────────────────────────── */
.nd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.nd-btn-primary:hover {
  background: #1aad53;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.nd-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nd-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── Coming Soon ─────────────────────────────────────── */
.nd-coming-soon {
  padding: 80px 20px;
  background: #f9f9f9;
}

.nd-coming-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 2px solid #e8f5e9;
}

.nd-coming-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.nd-coming-box h2 {
  color: #165C1E;
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.nd-coming-box p {
  color: #555;
  margin: 0 0 8px;
}

.nd-coming-sub {
  font-size: 0.9rem;
  color: #888 !important;
  margin-bottom: 24px !important;
}

/* ── Tabs ──────────────────────────────────────────── */
.nd-categories-section {
  padding: 60px 20px 80px;
  background: #f5f9f5;
}

.nd-tabs-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* ضمان أن الـ wrapper لا يتجاوز عرض الـ container */
  width: 100%;
  box-sizing: border-box;
}
.nd-tabs-wrapper::-webkit-scrollbar { display: none; }

.nd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  width: 100%;
  box-sizing: border-box;
}

.nd-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #555;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.nd-tab:hover {
  background: #e8f5e9;
  color: #165C1E;
}

.nd-tab.active {
  background: #165C1E;
  color: #fff;
}

.nd-tab-count {
  background: rgba(255,255,255,0.25);
  color: inherit;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

.nd-tab.active .nd-tab-count {
  background: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════════════
   بطاقات العروض — تصميم محسّن
   ══════════════════════════════════════════════ */
.nd-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

/* البطاقة الرئيسية — 4/3 أعمق من 16/9 */
.nd-offer-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.10),
    0 6px 24px rgba(0,0,0,0.12);
}
.nd-offer-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.14),
    0 20px 48px rgba(0,0,0,0.18);
}

/* ── صورة الخلفية ── */
.nd-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;   /* يُظهر الوجه في الجزء العلوي */
  transition: transform 0.55s ease;
}
.nd-offer-card:hover .nd-card-bg {
  transform: scale(1.06);
}

/* ── Overlay ثلاثي الطبقات ──
   شفاف في الأعلى (يظهر الوجه)
   متوسط في المنتصف
   معتم جداً في القاع (يضمن قراءة النص) */
.nd-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 35%,
    rgba(0, 0, 0, 0.18) 62%,
    rgba(0, 0, 0, 0.00) 100%
  );
}

/* ── شريط المحتوى السفلي ── */
.nd-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;               /* padding صفر — نتحكم من .nd-card-info */
  z-index: 2;
}

/* صندوق المعلومات المنفصل في القاع */
.nd-card-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Badge الخصم — مركز أعلى البطاقة ── */
.nd-card-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  /* أخضر داكن متدرج متناسق مع هوية اليوم الوطني */
  background: linear-gradient(135deg, #0d3d14 0%, #165C1E 50%, #1a6e2e 100%);
  color: #f5d050;            /* نص ذهبي يبرز على الأخضر الداكن */
  font-size: 0.82rem;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(245,208,80,0.45);
  box-shadow:
    0 2px 12px rgba(0,0,0,0.40),
    0 0 0 1px rgba(245,208,80,0.15);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}
.nd-card-badge::before {
  content: '✦';
  font-size: 0.6rem;
  color: #f5d050;
  opacity: 0.8;
}

/* ── اسم الخدمة ── */
.nd-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  /* قطع النص الطويل على سطر واحد */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── الأسعار ── */
.nd-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* السعر الجديد — كبير وذهبي */
.nd-price-offer {
  font-size: 1.25rem;
  font-weight: 900;
  color: #f5d050;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1;
}

/* السعر القديم — صغير وبجانب السعر الجديد */
.nd-price-original {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.4);
  line-height: 1;
}

/* ── زر الحجز ── */
.nd-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* أخضر داكن متناسق مع هوية اليوم الوطني */
  background: linear-gradient(135deg, #1a6e2e 0%, #165C1E 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
}
.nd-card-btn:hover {
  background: linear-gradient(135deg, #25d366 0%, #1aad53 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  border-color: rgba(255,255,255,0.25);
}

/* ── Bottom CTA ──────────────────────────────────────── */
.nd-bottom-cta {
  text-align: center;
  background: linear-gradient(135deg, #165C1E, #0d3d14);
  border-radius: 24px;
  padding: 50px 30px;
  color: #fff;
}

.nd-bottom-cta h3 {
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: #f0d060;
}

.nd-bottom-cta p {
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
  font-size: 1rem;
}

.nd-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .nd-tabs { flex-wrap: wrap; border-radius: 14px; }
  .nd-tab  { font-size: 0.82rem; padding: 8px 14px; }
  .nd-offers-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}

@media (max-width: 768px) {
  /* Hero */
  .nd-hero         { min-height: 380px; padding: 70px 16px 50px; }
  .nd-hero-title   { font-size: 2rem; }
  .nd-hero-stats   { gap: 24px; }
  .nd-stat-num     { font-size: 1.6rem; }

  /* Grid */
  .nd-offers-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* البطاقة */
  .nd-offer-card   { aspect-ratio: 4/3; border-radius: 14px; }
  .nd-card-info    { padding: 10px 12px 12px; gap: 6px; }
  .nd-card-name    { font-size: 0.82rem; }
  .nd-price-offer  { font-size: 1.05rem; }
  .nd-price-original { font-size: 0.72rem; }
  .nd-card-btn     { font-size: 0.76rem; padding: 6px 12px; }
  .nd-card-badge   { font-size: 0.72rem; padding: 4px 9px; top: 9px; right: 9px; }

  /* Tabs */
  .nd-tabs { flex-wrap: wrap; border-radius: 12px; gap: 6px; padding: 6px; }
  .nd-tab  { font-size: 0.78rem; padding: 7px 12px; }

  /* Bottom CTA */
  .nd-bottom-cta   { padding: 36px 20px; }
  .nd-bottom-cta h3{ font-size: 1.5rem; }
}

@media (max-width: 480px) {
  /* شاشات الجوال الصغيرة: عمود واحد */
  .nd-offers-grid  { grid-template-columns: 1fr; gap: 10px; }
  .nd-offer-card   { aspect-ratio: 4/3; }
  .nd-card-name    { font-size: 0.88rem; }
  .nd-price-offer  { font-size: 1.1rem; }
  .nd-tab          { font-size: 0.75rem; padding: 6px 10px; }
}
