p {
    text-align: justify;
    line-height: 40px;
    font-size: 18px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-justify: inter-word;
}

.wrapper-landing {
    width: 94%;
    margin: 50px auto 0px auto;
    line-height: 1.5;
}

.wrapper-landing h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
}

h2 {
    font-size: 21px;
}

.wrapper-landing ul {
    margin-right: 30px;
}

.wrapper-landing li {
    line-height: 2.5;
}

.hero-section {
    background-image: url("../images/about-methods-hero.avif");
    background-repeat: no-repeat;
    position: relative;
    color: #264D6A;
    width:100% !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 60%;
    display: flex;
    align-items: center;
    padding-right: 50px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0B3D91;
    text-shadow: 0 2px 6px rgba(11, 61, 145, 0.25);
}

.hero-subtitle {
    color: #4A5A75;
    font-weight: 300;
}

.hero-text {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 25px;
}

.marquee {
  opacity: 0.7;
  overflow: hidden;
  width: 100%;
  display: flex;
  /* قفل کردن جهت روی LTR برای تضمین کارکرد صحیح translateX منفی در تمامی زبان‌ها */
  direction: ltr; 
}

.marquee-content {
  display: flex;
  width: max-content;
  /* انیمیشن روان با فریم‌ریت عالی */
  animation: scroll 20s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* فاصله بین آیتم‌ها */
  list-style: none;
  margin: 0;
  /* پدینگ در سمت راست (انتهای جریان LTR) تا فاصله بین گروه ۱ و ۲ حفظ شود */
  padding-right: 2rem; 
  padding-left: 0;
  flex-shrink: 0;
}

.marquee-group li {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* استایل‌های شخصی شما */
  padding: 10px;
  border-radius: 8px;
}

.marquee-group img {
  display: block;
  /* سایزدهی استاندارد برای جلوگیری از پرش‌های محاسباتی عکس‌ها هنگام لود شدن */
  width: auto;
  height: 50%;
}

/* متوقف شدن انیمیشن هنگام هاور */
.marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* انیمیشن روان و ریاضیاتی بدون درز */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* انتقال دقیقاً به اندازه 50% کل عرض کانتینر محتوا (که معادل یک گروه کامل است) */
    transform: translateX(-50%);
  }
}

.methodology-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px 20px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    z-index: 1;
}

.methodology-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #39617A;
    transition: all 0.3s ease;
}

.methodology-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg); /* یک افکت چرخشی جذاب */
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #222;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* المان گرافیکی پایین کارت (شبیه وایرفریم) */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-indicator .dot {
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-indicator .line {
    width: 30px;
    height: 4px;
    background: #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.methodology-card:hover .line {
    width: 50px;
    background: var(--primary-color);
}

.methodology-card:hover .dot {
    background: var(--primary-color);
    transform: scale(1.5);
}

/* افکت نوری بسیار ملایم در پشت کارت */
.hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0,0,0,0.02), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.methodology-card:hover .hover-overlay {
    opacity: 1;
}

.process-methodology {
  background: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.process-deep-dive {
  display: flex;
  background: #f5f5f5;
  border-radius: 28px;
  padding: 40px;
  flex-direction: column;
  gap: 10px; /* فاصله بین باکس‌ها */
}

.visual-diagram {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diagram-box,
.proof-box {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 24px;
  padding: 32px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
}

.section-title,
.diagram-title {
  margin-bottom: 12px;
  font-weight: 800;
  color: #111111;
}

.section-text {
  margin-bottom: 28px;
  color: #555555;
  line-height: 1.9;
}

.process-card {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.process-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  background: #4A5A71;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.process-body {
    padding-right: 20px;
}

.process-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
}

.process-body p {
  margin-bottom: 10px;
  color: #5f5f5f;
  line-height: 1.8;
}

.process-output {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0d6efd;
}

.diagram-circle {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 24px auto 0;
  border: 1px dashed #cfcfcf;
  border-radius: 50%;
}

.diagram-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #F7BE1B;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  padding: 16px;
}

.node {
  position: absolute;
  background: #f5f5f5;
  border: 1px solid #dddddd;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #222222;
}

.node-1 { top: -10px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 24%; right: -18px; }
.node-3 { bottom: 18%; right: -10px; }
.node-4 { bottom: -10px; left: 50%; transform: translateX(-50%); }
.node-5 { top: 24%; left: -18px; }

.proof-box h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.proof-box p {
  margin: 0;
  color: #555555;
  line-height: 1.9;
}

@media (max-width: 991.98px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-deep-dive,
  .diagram-box,
  .proof-box {
    padding: 24px;
  }

  .diagram-circle {
    max-width: 280px;
  }
}

/* استایل Case Study */
.case-card {
    transition: all 0.3s ease;
}

.case-image-placeholder {
    position: relative;
    background: #e9ecef; /* مطابق رنگ خاکستری وایرفریم */
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.placeholder-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-card:hover .case-image-placeholder img {
    opacity: 1;
    transform: scale(1.05);
    transition: 0.5s;
}

/* استایل Final CTA */
.cta-box {
    background-color: #f8f9fa !important; /* رنگ دقیق خاکستری وایرفریم */
    position: relative;
    overflow: hidden;
}

/* افکت دکمه CTA */
.final-cta .btn-dark {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.final-cta .btn-dark:hover {
    transform: scale(1.05);
    background-color: #333;
}

.video-slider {
  max-width: 900px;
  margin: 0 auto;
}

.video-player-box {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.main-video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* مخفی کردن کنترل‌های پیش‌فرض */
.main-video::-webkit-media-controls {
  display: none !important;
}

.main-video::-moz-media-controls {
  display: none !important;
}

.custom-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.custom-play-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-nav {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.video-item {
  width: 90px;
  height: 90px;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 10px;
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-item:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
}

.video-item.active {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

/* برای هماهنگی با وایرفریم در موبایل */
@media (max-width: 768px) {
    .cta-box {
        padding: 30px 20px !important;
    }
    .display-5 {
        font-size: 1.8rem;
    }
    .custom-play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .video-item {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }
}
