

.tabbar-root {
  --tab-primary: #2f3a91;          /* سرمه‌ای اصلی سایت */
  --tab-primary-light: #4b5ac4;
  --tab-primary-soft: #f1f3ff;
  --tab-secondary: #20264f;        /* سرمه‌ای تیره‌تر برای متن و هدینگ */
  --tab-secondary-light: #5a639b;
  --tab-secondary-soft: #eef0f7;
  --tab-accent: #f5dd90;           /* زرد گرم Gooybr */
  --tab-accent-light: #f9e8aa;
  
  --tab-light: #ffffff;
  --tab-light-gray: #f7f8fc;
  --tab-gray: #9aa1b8;
  --tab-dark-gray: #5d6480;
  --tab-dark: #111827;
  
  --tab-gradient: linear-gradient(135deg, var(--tab-primary) 0%, var(--tab-secondary) 100%);
  --tab-gradient-light: linear-gradient(135deg, #f7f4e8 0%, #f1f3ff 100%);
  
  --tab-shadow: 0 8px 18px rgba(12, 16, 38, 0.12);
  --tab-shadow-hover: 0 16px 32px rgba(12, 16, 38, 0.18);
  --tab-shadow-card: 0 10px 24px rgba(15, 19, 36, 0.12);
}

/* استایل اصلی سکشن */
.tabs-section {
  width: 100%;
  color: var(--tab-dark);
  font-family: 'Yekan Bakh';
  background: transparent;
  padding-top:50px;
}

.tabs-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.tabs-main-title {
  font-size: 2.8rem;
  color: #111827;
  margin-bottom: 15px;
  font-family: 'Yekan Bakh';
  font-weight: 600;
}

.tabs-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.tabs-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.tab-captions {
  margin-top: 10px;
  margin-bottom: 24px;
  min-height: 28px;
	margin-right: 10px;
}

.tab-caption {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  display: none;
	margin-left: 30px;
  margin-right: 30px;
}

.tab-caption.is-active {
  display: block;
}

/* تب‌بار */
.tabs-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: nowrap;
  position: relative;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 4px;
	margin-left: 30px;
  margin-right: 30px;
}

.tab-highlight {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--tab-primary);
  box-shadow: var(--tab-shadow-hover);
  transform: translateX(0);
  transition: transform 0.25s ease, width 0.25s ease;
  z-index: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #111827;
  font-family: 'Yekan Bakh';
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  min-width: 200px;
  flex: 0 0 auto;
  justify-content: center;
  position: relative;
  z-index: 1;
	width: calc(25% - 8px);
}

.tab-btn:focus-visible {
  outline: 2px solid rgba(245, 221, 144, 0.9);
  outline-offset: 2px;
}

.tab-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--tab-primary);
}

.tab-btn:hover {
/*  transform: translateY(-3px);*/
  box-shadow: var(--tab-shadow);
  border-color: rgba(47, 58, 145, 0.24);
  color: #111827;
  background: #f9fafb;
}
.tab-btn-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease;
}

.tab-btn:hover .tab-btn-content {
    transform: translateY(-3px);
}


.tab-btn:hover i {
  transform: scale(1.1);
}

.tab-btn::after {
  content: "";
  position: absolute;
  inset-inline: 22px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.18);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.tab-btn.active {
  background: transparent;
  color: #ffffff;
  border-color: transparent;
/*  transform: translateY(-4px);*/
  box-shadow: var(--tab-shadow-hover);
  position: relative;
}

.tab-btn.active i {
  color: #ffffff;
}

/* Tabs content */
.tabs-content {
  position: relative;
  min-height: 500px;
  padding-bottom:50px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes floatGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(40px, 30px, 0);
  }
}

@keyframes floatBlobs {
  0% {
    transform: translate3d(-10px, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(10px, -10px, 0) scale(1.05);
  }
}

/* slider style */
.slider-container {
  position: relative;
  overflow: hidden;
  transition: height 0.35s ease;
  padding-bottom: 30px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  direction: ltr;
}

.slide {
  min-width: 100%;
  padding: 20px 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  direction: rtl; 
  padding-bottom: 40px;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  /* فضای افقی داخلی برای جلوگیری از قطع شدن سایه کارت‌ها در لبه‌ها */
  padding-inline: 32px;
}

/* double cards */
.cards-grid.two-cards {
  grid-template-columns: repeat(2, minmax(300px, 400px));
  justify-content: center;
}

/* single card */
.cards-grid.one-card {
  grid-template-columns: minmax(300px, 500px);
  justify-content: center;
}

/* service card */
.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(15, 19, 36, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.32);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* begooy card */
.magazine-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.cards-grid.few-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
}

.mag-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 19, 36, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mag-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 19, 36, 0.16);
  border-color: rgba(47, 58, 145, 0.7);
}

.mag-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.mag-image img {
  width: 100%;
  height: fit-content;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mag-card:hover .mag-image img {
  transform: scale(1.05);
}

.mag-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  color: #fef9c3;
  font-size: 0.8rem;
  font-weight: 600;
}

.mag-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto; 
}

.mag-supertitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
min-height: 1.4em;

}

.mag-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #111827;
  font-weight: 600;
}

.mag-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mag-extra {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(47, 58, 145, 0.06);
  color: #374151;
}

.mag-chip.ghost {
  background: rgba(148, 163, 184, 0.16);
  color: #4b5563;
}

.mag-meta {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
}

.mag-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mag-meta-item i {
  font-size: 0.9rem;
  color: var(--tab-primary);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tab-shadow-hover);
  border-color: rgba(47, 58, 145, 0.6);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 221, 144, 0.32), transparent 55%),
    radial-gradient(circle at 110% 30%, rgba(47, 58, 145, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card-icon {
  font-size: 2.8rem;
  color: var(--tab-secondary);
  margin-bottom: 20px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tab-light-gray);
  border-radius: 18px;
}

.card-title {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 16px;
  font-family: 'Yekan Bakh';
  font-weight: 700;
  line-height: 1.4;
}

.card-desc {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  margin-right: 0;
  margin-top: auto;
}

.card-features li {
  padding: 8px 0;
  color: #6b7280;
  position: relative;
  padding-right: 24px;
  font-size: 0.95rem;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 8px;
  color: var(--tab-secondary);
  font-weight: bold;
  background: var(--tab-light-gray);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* slider controller */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.slider-controls.hidden {
  display: none;
}

.slider-prev,
.slider-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(47, 58, 145, 0.18);
  color: #111827;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--tab-shadow);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--tab-primary);
  color: #fef9c3;
  transform: scale(1.1);
  border-color: transparent;
}

.slider-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--tab-primary);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--tab-primary);
}

/* واکنش‌گرایی */
@media (max-width: 1200px) {
  .cards-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .cards-grid.two-cards {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .tabs-main-title {
      font-size: 2.4rem;
  }
  
  .tab-btn {
      min-width: 140px;
      padding: 12px 24px;
  }
}

@media (max-width: 768px) {
  .tabs-section {
      padding: 60px 15px;
  }
  
  .tabs-main-title {
      font-size: 2rem;
  }
  
  .tabs-subtitle {
      font-size: 1rem;
  }
  
  .tabs-bar {
      gap: 8px;
      margin-bottom: 40px;
  }
  
  .cards-grid {
      grid-template-columns: 1fr;
      gap: 25px;
      max-width: 500px;
      margin: 0 auto;
      padding-inline: 20px;
  }
  
  .cards-grid.two-cards,
  .cards-grid.one-card {
      grid-template-columns: 1fr;
  }
  
  .service-card {
      padding: 28px;
  }
  
  .card-title {
      font-size: 1.4rem;
  }
  
  .slider-controls {
      gap: 30px;
      margin-top: 40px;
  }

  .tab-btn {
      min-width: 0;
      flex: 1 1 0;
      padding: 10px 12px;
      font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .tabs-section {
      padding: 50px 12px;
  }
  
  .tabs-main-title {
      font-size: 1.8rem;
  }
  
  .tabs-bar {
      flex-direction: column;
      align-items: center;
      background: #00000000;
  }
  
  .tab-btn {
      width: 100%;
      max-width: 280px;
      min-width: 0;
  }

  /* در موبایل هایلایت متحرک را مخفی می‌کنیم تا روی همه تب‌ها نیفتد */
  .tab-highlight {
      display: none;
  }

  /* رنگ تب فعال در موبایل مشابه دسکتاپ (پس‌زمینه سرمه‌ای، متن سفید) */
  .tab-btn.active {
      background: var(--tab-primary);
      color: #ffffff;
      border-color: transparent;
  }

  .tab-btn.active i {
      color: #ffffff;
  }

  /* رنگ‌بندی تب‌های فعال مطابق دسکتاپ بر اساس data-tab-color */
  .tab-btn.active[data-tab-color="blue"],
  .tab-btn.active[data-tab-color="blue"] i {
      background: #2563eb;
      color: #ffffff;
  }

  .tab-btn.active[data-tab-color="teal"],
  .tab-btn.active[data-tab-color="teal"] i {
      background: #0f766e;
      color: #ffffff;
  }

  .tab-btn.active[data-tab-color="purple"],
  .tab-btn.active[data-tab-color="purple"] i {
      background: #6d28d9;
      color: #ffffff;
  }
  
  .service-card {
      padding: 24px;
  }
  
  .card-icon {
      font-size: 2.5rem;
      width: 60px;
      height: 60px;
  }
  
  .slider-controls {
      gap: 25px;
  }
  
  .slider-prev,
  .slider-next {
      width: 44px;
      height: 44px;
      font-size: 1rem;
  }
}
