/* ═══════════════════════════════════════════════════════════════
   دموی ۹: دو نیمه — هماهنگ با تم اصلی (سرمه‌ای + فیروزه‌ای + طلایی)
   ═══════════════════════════════════════════════════════════════ */

/* ═══ متغیرهای رنگی (همگام با base.css) ══ */
:root {
  --primary: #0b2447;
  --primary-2: #19376d;
  --teal: #2ec4b6;
  --teal-deep: #0d9487;
  --teal-bright: #5eead4;
  --gold: #f2b84b;
  --gold-soft: #ffe09a;
}

/* ═══ دکمه‌ها و آیکون‌ها ═══ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 30px rgba(11, 36, 71, .28);
}

html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #052925;
}

.card-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 10px 24px rgba(46, 196, 182, .3);
}

/* ═══════════════════════════════════════════════════════════════
   ۱. Hero Section (پنل تیره دو نیمه)
   ═══════════════════════════════════════════════════════════════ */
.ds-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 600px;
}

.ds-panel {
  background: linear-gradient(160deg, #0b2447, #19376d 60%, #0f3a4a);
  color: #fff;
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ds-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(46, 196, 182, .15);
  filter: blur(60px);
}

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

.ds-badge {
  width: fit-content;
  background: rgba(46, 196, 182, .15);
  border: 1px solid rgba(46, 196, 182, .35);
  color: var(--teal-bright);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 800;
}

.ds-panel h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.5;
}

.ds-panel h1 .hl {
  color: var(--gold-soft);
}

.ds-panel .lead {
  margin-top: 18px;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 2.1;
  color: rgba(255, 255, 255, .8);
}

.ds-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ds-stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ds-stats > div {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 14px 18px;
}

.ds-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}

.ds-stats span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
}

.ds-photo {
  position: relative;
}

.ds-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(11, 36, 71, .4), transparent 45%);
}

/* ═══════════════════════════════════════════════════════════════
   ۲. Alternating Rows (تصویر-متن)
   ═══════════════════════════════════════════════════════════════ */
.ds-alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ds-alt-row.flip .ds-alt-img {
  order: 2;
}

.ds-alt-img {
  position: relative;
}

.ds-alt-img img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.ds-alt-img::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 26px;
  background: rgba(46, 196, 182, .12);
  z-index: -1;
}

.ds-alt-txt i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  font-style: normal;
  box-shadow: 0 12px 28px rgba(46, 196, 182, .3);
}

.ds-alt-txt h3 {
  margin-top: 18px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.7;
  color: var(--ink);
}

.ds-alt-txt p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--muted);
}

.ds-alt-txt ul {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ds-alt-txt ul li {
  background: rgba(46, 196, 182, .1);
  color: var(--teal-deep);
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
}

html[data-theme="dark"] .ds-alt-txt ul li {
  background: rgba(94, 234, 212, .1);
  color: var(--teal-bright);
}

/* ═══════════════════════════════════════════════════════════════
   ۳. Pathways (چهار دروازه — نسخه بهبودیافته)
   ═══════════════════════════════════════════════════════════════ */
.ds-pathways-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.ds-pathways-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ds-pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pathway-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(11, 36, 71, 0.06);
  display: flex;
  flex-direction: column;
}

.pathway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.pathway-card:nth-child(2)::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.pathway-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--gold), #e8930c);
}

.pathway-card:nth-child(4)::before {
  background: linear-gradient(90deg, #f472b6, #e11d48);
}

.pathway-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(11, 36, 71, 0.12);
  border-color: transparent;
}

.pathway-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.pathway-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(46, 196, 182, 0.05));
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.pathway-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: inherit;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

html[data-theme="dark"] .pathway-icon {
  background: rgba(94, 234, 212, .1);
  color: var(--teal-bright);
}

.pathway-card:hover .pathway-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 12px 28px rgba(46, 196, 182, 0.3);
}

.pathway-card:hover .pathway-icon::after {
  opacity: 0.6;
}

.pathway-card h4 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}

.pathway-card p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.pathway-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
}

html[data-theme="dark"] .pathway-link {
  color: var(--teal-bright);
}

.pathway-link:hover {
  gap: 12px;
  color: var(--teal-deep);
}

/* ═══════════════════════════════════════════════════════════════
   ۴. Process Steps (تایم‌لاین افقی — نسخه بهبودیافته)
   ═══════════════════════════════════════════════════════════════ */
.ds-process-section {
  position: relative;
  overflow: hidden;
}

.ds-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 48px;
}

.ds-process-steps::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 8%;
  left: 8%;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(46, 196, 182, 0.2) 0%,
      var(--teal) 50%,
      rgba(46, 196, 182, 0.2) 100%);
  border-radius: 99px;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(11, 36, 71, 0.1);
  border-color: rgba(46, 196, 182, 0.3);
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card), var(--bg-soft));
  border: 3px solid var(--teal);
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-number::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

html[data-theme="dark"] .step-number {
  color: var(--teal-bright);
  border-color: var(--teal-bright);
}

.process-step:hover .step-number {
  transform: scale(1.15) rotate(-6deg);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 16px 40px rgba(46, 196, 182, 0.4);
}

.process-step:hover .step-number::before {
  opacity: 0.2;
}

.process-step h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}

.process-step p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   ۵. Testimonials (نظرات — نسخه بهبودیافته)
   ═══════════════════════════════════════════════════════════════ */
.ds-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(11, 36, 71, 0.06);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 120px;
  font-family: serif;
  color: var(--teal);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 36, 71, 0.12);
  border-color: rgba(46, 196, 182, 0.3);
}

.quote-icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  opacity: 0.3;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-card p {
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--muted);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.3);
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.testimonial-author span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   ۶. Destinations (مقاصد — مطابق عکس)
   ═══════════════════════════════════════════════════════════════ */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dest-card-modern {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(11, 36, 71, 0.06);
}

.dest-card-modern:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(11, 36, 71, 0.15);
  border-color: rgba(46, 196, 182, 0.3);
}

.dest-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.dest-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dest-card-modern:hover .dest-img-wrap img {
  transform: scale(1.15);
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 22, 50, 0.7) 0%, transparent 60%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.dest-card-modern:hover .dest-overlay {
  opacity: 0.4;
}

.dest-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.dest-content {
  position: absolute;
  bottom: 20px;
  right: 20px;
  left: 20px;
  z-index: 2;
  color: #fff;
}

.dest-content h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dest-content p {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.dest-body-modern {
  padding: 24px 20px;
}

.dest-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.dest-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.dest-features .icon {
  color: var(--teal);
  width: 18px;
  height: 18px;
}

.dest-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.dest-success {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  background: rgba(46, 196, 182, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════
   ۷. FAQ Section
   ═══════════════════════════════════════════════════════════════ */
.ds-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: var(--teal);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: -8px;
  padding-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   ۸. CTA Banner (هماهنگ با تم سرمه‌ای-فیروزه‌ای)
   ═══════════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(to top left, var(--primary), var(--primary-2) 55%, #0a2a33) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .cta-banner {
  background: linear-gradient(to top left, #071426, #0c2340 55%, #07231f) !important;
}

.cta-banner h2 {
  color: #ffffff !important;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ══════════════════════════════════════════════════════════════
   ۹. Responsive (ادغام‌شده)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .ds-pathways-grid,
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .ds-process-steps::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .ds-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ds-photo {
    min-height: 300px;
    position: relative;
  }

  .ds-photo img {
    position: relative;
  }

  .ds-panel {
    padding: 48px 28px;
  }

  .ds-alt-row,
  .ds-alt-row.flip .ds-alt-img {
    grid-template-columns: 1fr;
    order: 0;
    gap: 30px;
  }

  .ds-pathways-grid,
  .destinations-grid,
  .ds-process-steps,
  .ds-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .ds-process-steps {
    gap: 40px;
  }

  .dest-img-wrap {
    height: 200px;
  }
}