:root {
  --teal-deep: #043d3b;
  --teal-dark: #0a4f4c;
  --teal: #0f766e;
  --teal-mid: #14b8a6;
  --teal-soft: #e6f7f5;
  --teal-muted: #c5e8e4;
  --text: #143533;
  --text-muted: #5b7371;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(4, 61, 59, 0.12);
  --radius: 18px;
  --font: "Vazirmatn", "Tahoma", sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ts-home {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--teal-deep);
  font-weight: 800;
}

.section-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-ornament {
  width: 56px;
  height: 3px;
  background: var(--teal-mid);
  margin: 0 auto 14px;
  border-radius: 99px;
  position: relative;
}

.section-ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--teal);
  border-radius: 2px;
}

/* Header — شفاف روی بنر */
.ts-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ts-header.is-scrolled {
  position: fixed;
  background: rgba(4, 61, 59, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(2, 30, 28, 0.35);
  backdrop-filter: blur(10px);
}

.ts-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.ts-header__start {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex: 1;
}

.ts-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ts-logo img {
  height: 48px;
  width: auto;
}

.ts-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.ts-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}

.ts-nav a:hover,
.ts-nav a.is-active {
  color: #fff;
}

.ts-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -2px;
  height: 2px;
  background: var(--teal-mid);
  border-radius: 99px;
}

.ts-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-login {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  background: var(--white);
  color: var(--teal-deep);
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 13px 28px;
  font-size: 0.98rem;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.28);
}

.btn-teal:hover {
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.36);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.btn-menu span::before,
.btn-menu span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.btn-menu span::before { top: -6px; }
.btn-menu span::after { top: 6px; }

/* منوی حساب کاربری در هدر */
.ts-user-menu {
  position: relative;
}

.ts-user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 4px 6px 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.ts-user-menu__toggle:hover,
.ts-user-menu.is-open .ts-user-menu__toggle {
  background: rgba(255, 255, 255, 0.2);
}

.ts-user-menu__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.ts-user-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-user-menu__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ts-user-menu__chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.ts-user-menu.is-open .ts-user-menu__chevron {
  transform: rotate(180deg);
}

.ts-user-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 120;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--teal-muted);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(4, 61, 59, 0.22);
}

.ts-user-menu__panel[hidden] {
  display: none;
}

.ts-user-menu__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--teal-soft);
}

.ts-user-menu__head strong {
  color: var(--teal-deep);
  font-size: 0.92rem;
}

.ts-user-menu__head small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
  text-overflow: ellipsis;
}

.ts-user-menu__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.ts-user-menu__panel a svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.ts-user-menu__panel a:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.ts-user-menu__panel a.is-danger,
.ts-user-menu__panel a.is-danger svg {
  color: #b42318;
}

.ts-user-menu__panel a.is-danger:hover {
  background: #fef3f2;
}

@media (max-width: 768px) {
  .ts-user-menu__name {
    display: none;
  }

  .ts-user-menu__toggle {
    padding: 4px;
  }
}

/* Hero — متن راست، تصویر چپ (در RTL: اول محتوا، بعد تصویر) */
.ts-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 15% 80%, rgba(20, 184, 166, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(45, 212, 191, 0.18), transparent 50%),
    linear-gradient(145deg, #032e2c 0%, var(--teal-deep) 40%, var(--teal-dark) 70%, #0c5c58 100%);
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 80px;
}

.ts-hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 15%, transparent 78%);
  opacity: 0.7;
}

.ts-hero__fx::before,
.ts-hero__fx::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.ts-hero__fx::before {
  top: -80px;
  left: -120px;
}

.ts-hero__fx::after {
  bottom: -140px;
  right: -100px;
  opacity: 0.75;
}

.ts-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

.ts-hero__content {
  flex: 1 1 52%;
  text-align: right;
}

.ts-hero__visual {
  flex: 1 1 48%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ts-hero__stage {
  position: relative;
  width: min(100%, 560px);
  container-type: inline-size;
  transform: scale(1.08);
  transform-origin: center center;
}

.ts-hero__art {
  display: block;
  width: 100%;
  height: auto;
  background: transparent !important;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.32));
}

/* Area between the illustration and its ground shadow (viewBox y≈414–478 of 560) */
.ts-hero__typing {
  position: absolute;
  top: 74%;
  right: 20%;
  left: 20%;
  height: 11.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15em;
  direction: rtl;
  text-align: center;
  font-size: clamp(9px, 2.25cqw, 13px);
  line-height: 1.45;
  font-weight: 600;
  color: rgba(153, 246, 228, 0.78);
  letter-spacing: 0.01em;
  pointer-events: none;
  white-space: nowrap;
}

.ts-typing__line {
  display: block;
  min-height: 1.45em;
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.35);
}

.ts-typing__line:last-child {
  color: #5eead4;
  font-weight: 800;
}

.ts-typing__line.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 2px;
  vertical-align: -0.12em;
  background: #5eead4;
  animation: ts-caret 0.8s steps(1) infinite;
}

@keyframes ts-caret {
  50% { opacity: 0; }
}

.ts-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 900;
  line-height: 1.35;
}

.ts-hero .lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  line-height: 1.85;
}

.ts-hero__content h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.5;
}

.ts-hero .lead__sub {
  display: block;
  margin-top: 6px;
  color: #99f6e4;
  font-weight: 600;
}

.ts-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 32px;
}

.ts-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
}

.ts-hero__badge i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.85rem;
}

.ts-why__item .ico svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ثبت درخواست آنلاین */
.ts-requests {
  padding: 88px 0;
  background: linear-gradient(180deg, #f3faf9 0%, var(--white) 100%);
  border-top: 1px solid var(--teal-soft);
}

.ts-requests__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.ts-request-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 22px 22px;
  border: 1px solid var(--teal-muted);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ts-request-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal));
  opacity: 0;
  transition: opacity 0.2s;
}

.ts-request-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-mid);
  box-shadow: 0 18px 42px rgba(4, 61, 59, 0.18);
}

.ts-request-card:hover::before {
  opacity: 1;
}

.ts-request-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.3);
}

.ts-request-card__icon svg {
  width: 26px;
  height: 26px;
}

.ts-request-card h3 {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-size: 1.08rem;
  font-weight: 800;
}

.ts-request-card p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.ts-request-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.ts-request-card__tags em {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.ts-request-card__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}

.ts-request-card:hover .ts-request-card__go {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
}

.ts-requests__flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.ts-requests__flow li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.ts-requests__flow li + li::before {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--teal-mid);
  opacity: 0.6;
}

.ts-requests__flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
}

.ts-requests__note {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 980px) {
  .ts-requests__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ts-requests {
    padding: 64px 0;
  }

  .ts-requests__grid {
    grid-template-columns: 1fr;
  }

  .ts-requests__flow {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-inline: auto;
  }

  .ts-requests__flow li + li::before {
    display: none;
  }
}

/* Why */
.ts-why {
  padding: 88px 0;
  background: var(--teal-soft);
  position: relative;
  overflow: hidden;
}

.ts-why::before,
.ts-why::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
}

.ts-why::before { top: 40px; right: -80px; }
.ts-why::after { bottom: 20px; left: -60px; }

.ts-why__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.ts-why__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.ts-why__item .ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
}

.ts-why__item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--teal-deep);
}

.ts-why__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Process */
.ts-process {
  padding: 88px 0;
  background: var(--white);
}

.ts-process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ts-process__steps::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(
    to left,
    var(--teal-mid) 0 10px,
    transparent 10px 18px
  );
  opacity: 0.55;
}

.ts-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.ts-step__num {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px var(--white),
    0 0 0 7px var(--teal-muted),
    0 10px 24px rgba(4, 61, 59, 0.25);
}

.ts-step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--teal-deep);
  font-weight: 800;
}

.ts-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Privacy commitment */
.ts-privacy {
  padding: 72px 0;
  background: var(--teal-soft);
}

.ts-privacy__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 52px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 80% at 10% 50%, rgba(20, 184, 166, 0.3), transparent 60%),
    linear-gradient(135deg, #022826 0%, var(--teal-deep) 50%, #0b635e 100%);
  box-shadow: 0 24px 60px rgba(4, 61, 59, 0.28);
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.ts-privacy__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 90% at 15% 50%, #000 20%, transparent 75%);
}

.ts-privacy__text {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.ts-privacy__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: #99f6e4;
  font-size: 0.82rem;
  font-weight: 700;
}

.ts-privacy__text h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 900;
}

.ts-privacy__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 2;
  text-align: justify;
}

.ts-privacy__emblem {
  position: relative;
  z-index: 1;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-privacy__emblem::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 68%);
}

.ts-privacy__emblem svg {
  position: relative;
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

/* Stats */
.ts-stats {
  padding: 72px 0;
  background: var(--white);
}

.ts-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.ts-stat {
  padding: 24px 12px;
}

.ts-stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--teal);
  font-weight: 900;
  margin-bottom: 6px;
}

.ts-stat span {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* News & articles */
.ts-news {
  padding: 88px 0;
  background: var(--teal-soft);
}

.ts-news--archive {
  padding: 56px 0 88px;
  background: #f6fbfa;
}

.ts-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ts-post {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 8px 24px rgba(4, 61, 59, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ts-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ts-post__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #032e2c 0%, var(--teal-deep) 50%, var(--teal) 100%);
}

.ts-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ts-post:hover .ts-post__media img {
  transform: scale(1.05);
}

.ts-post__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(153, 246, 228, 0.55);
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ts-post__placeholder svg {
  width: 56px;
  height: 56px;
}

.ts-post__cat {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(4, 61, 59, 0.82);
  backdrop-filter: blur(6px);
  color: #ccfbf1;
  font-size: 0.78rem;
  font-weight: 700;
}

.ts-post__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}

.ts-post__date {
  color: var(--teal-mid);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ts-post__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.65;
  color: var(--teal-deep);
}

.ts-post__title a:hover {
  color: var(--teal);
}

.ts-post__excerpt {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.85;
  flex: 1 1 auto;
}

.ts-post__more {
  align-self: flex-start;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.ts-post__more:hover {
  color: var(--teal-deep);
}

.ts-news__more {
  margin-top: 40px;
  text-align: center;
}

/* Articles page */
.ts-page-hero {
  padding: calc(var(--header-h) + 48px) 0 56px;
  text-align: center;
}

.ts-page-hero__inner {
  position: relative;
  z-index: 1;
}

.ts-page-hero h1 {
  margin-bottom: 12px;
}

.ts-page-hero .lead {
  margin: 0 auto;
}

.ts-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: #99f6e4;
  font-size: 0.82rem;
}

.ts-breadcrumb a:hover {
  color: #fff;
}

.ts-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.ts-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--teal-muted);
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ts-filter__chip:hover {
  border-color: var(--teal-mid);
  color: var(--teal);
}

.ts-filter__chip.is-active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.ts-filter__count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}

.ts-filter__chip.is-active .ts-filter__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ts-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.ts-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--teal-muted);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.ts-pagination a.page-numbers:hover {
  border-color: var(--teal-mid);
  color: var(--teal);
}

.ts-pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.ts-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

.ts-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.ts-empty p {
  margin: 0 0 20px;
  font-size: 1.05rem;
}

/* Single article */
.ts-article-hero h1 {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.ts-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.ts-article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ts-article__meta svg {
  width: 17px;
  height: 17px;
  color: #5eead4;
}

.ts-article {
  padding: 48px 0 80px;
  background: #f6fbfa;
}

.ts-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.ts-article__main {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 10px 30px rgba(4, 61, 59, 0.07);
  padding: 32px 36px 28px;
  min-width: 0;
}

.ts-article__cover {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
}

.ts-article__cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.ts-article__content {
  font-size: 1.02rem;
  line-height: 2.05;
  color: var(--text);
  overflow-wrap: break-word;
}

.ts-article__content > *:first-child {
  margin-top: 0;
}

.ts-article__content p {
  margin: 0 0 1.3em;
  text-align: justify;
}

.ts-article__content h2,
.ts-article__content h3,
.ts-article__content h4 {
  color: var(--teal-deep);
  font-weight: 800;
  line-height: 1.6;
  margin: 1.8em 0 0.7em;
}

.ts-article__content h2 {
  font-size: 1.45rem;
  padding-right: 14px;
  border-right: 4px solid var(--teal-mid);
}

.ts-article__content h3 {
  font-size: 1.22rem;
}

.ts-article__content h4 {
  font-size: 1.08rem;
}

.ts-article__content a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(20, 184, 166, 0.4);
  text-underline-offset: 4px;
}

.ts-article__content a:hover {
  color: var(--teal-deep);
}

.ts-article__content ul,
.ts-article__content ol {
  margin: 0 0 1.3em;
  padding-right: 1.4em;
}

.ts-article__content ul {
  list-style: disc;
}

.ts-article__content ol {
  list-style: decimal;
}

.ts-article__content li {
  margin-bottom: 0.4em;
}

.ts-article__content li::marker {
  color: var(--teal-mid);
}

.ts-article__content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-radius: 14px;
  border-right: 4px solid var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 500;
}

.ts-article__content blockquote p:last-child {
  margin-bottom: 0;
}

.ts-article__content img {
  border-radius: 12px;
  height: auto;
}

.ts-article__content figure {
  margin: 1.6em 0;
}

.ts-article__content figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ts-article__content .aligncenter {
  margin-inline: auto;
}

.ts-article__content .alignright {
  float: right;
  margin: 0.4em 0 1em 1.4em;
}

.ts-article__content .alignleft {
  float: left;
  margin: 0.4em 1.4em 1em 0;
}

.ts-article__content table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 0.93rem;
  display: block;
  overflow-x: auto;
}

.ts-article__content th,
.ts-article__content td {
  padding: 10px 14px;
  border: 1px solid var(--teal-muted);
  text-align: right;
}

.ts-article__content th {
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 700;
}

.ts-article__content pre,
.ts-article__content code {
  direction: ltr;
  font-family: Consolas, monospace;
  background: #f1f7f6;
  border-radius: 8px;
}

.ts-article__content code {
  padding: 2px 6px;
  font-size: 0.88em;
}

.ts-article__content pre {
  padding: 16px;
  overflow-x: auto;
  text-align: left;
}

.ts-article__content hr {
  border: 0;
  height: 1px;
  margin: 2em 0;
  background: var(--teal-muted);
}

.ts-article__content iframe,
.ts-article__content video {
  max-width: 100%;
  border-radius: 12px;
}

.ts-article__content::after {
  content: "";
  display: block;
  clear: both;
}

.ts-article__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--teal-muted);
}

.ts-article__tags,
.ts-article__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ts-article__label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 4px;
}

.ts-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
}

.ts-article__share a,
.ts-copy-link {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--teal-muted);
  background: var(--white);
  color: var(--teal-deep);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ts-article__share a:hover,
.ts-copy-link:hover,
.ts-copy-link.is-done {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.ts-article__aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ts-aside-cta {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 15% 90%, rgba(20, 184, 166, 0.35), transparent 60%),
    linear-gradient(145deg, #032e2c 0%, var(--teal-deep) 55%, var(--teal) 100%);
  box-shadow: 0 16px 36px rgba(4, 61, 59, 0.25);
}

.ts-aside-cta__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.ts-aside-cta h3,
.ts-aside-cta p,
.ts-aside-cta .btn {
  position: relative;
}

.ts-aside-cta h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
}

.ts-aside-cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.9;
}

.ts-aside-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.92rem;
}

.ts-aside-box {
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 8px 24px rgba(4, 61, 59, 0.06);
}

.ts-aside-box h3 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--teal-soft);
  color: var(--teal-deep);
  font-size: 1.02rem;
  font-weight: 800;
}

.ts-aside-list li + li {
  margin-top: 12px;
}

.ts-aside-list a {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ts-aside-list__thumb {
  flex: 0 0 58px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--teal-deep), var(--teal)) center / cover no-repeat;
}

.ts-aside-list__text strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
}

.ts-aside-list a:hover strong {
  color: var(--teal);
}

.ts-aside-list__text time {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* CTA band */
.ts-cta {
  padding: 64px 0;
  background:
    radial-gradient(circle at 85% 50%, rgba(20, 184, 166, 0.35), transparent 45%),
    linear-gradient(115deg, #022826 0%, var(--teal-deep) 45%, #0b635e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ts-cta__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px);
  background-size: 36px 36px, 52px 52px;
  opacity: 0.7;
}

.ts-cta__fx::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -40px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.ts-cta__fx::after {
  content: "% ٪ + − =";
  position: absolute;
  left: 8%;
  top: 28%;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: rgba(94, 234, 212, 0.08);
  white-space: nowrap;
  transform: rotate(-12deg);
  user-select: none;
}

.ts-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.ts-cta__text h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
}

.ts-cta__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36em;
}

/* Footer */
.ts-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(13, 148, 136, 0.18), transparent 50%),
    linear-gradient(180deg, #033533 0%, var(--teal-deep) 40%, #021f1e 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.ts-footer__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.ts-footer > .container {
  position: relative;
  z-index: 1;
}

.ts-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.ts-footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.ts-footer__brand p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28em;
}

.ts-social {
  display: flex;
  gap: 10px;
}

.ts-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.ts-social a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ts-footer h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1rem;
}

.ts-footer ul li {
  margin-bottom: 10px;
}

.ts-footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.ts-footer ul a:hover {
  color: #fff;
}

.ts-footer__contact li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.ts-footer__contact a {
  color: #99f6e4;
  font-weight: 700;
  text-decoration: none;
}

.ts-footer__contact a:hover {
  color: #fff;
}

.ts-enamad {
  display: inline-flex;
  align-items: flex-start;
  padding: 10px;
  background: linear-gradient(160deg, #e8f8f5 0%, #d5f0eb 55%, #c8eae3 100%);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ts-enamad img {
  display: block;
  max-width: 125px;
  height: auto;
  border-radius: 6px;
}

.ts-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.ts-footer__bottom nav {
  display: flex;
  gap: 18px;
}

.ts-footer__bottom a:hover {
  color: #fff;
}

.ts-footer__grid {
  grid-template-columns: 1.9fr 1fr 0.8fr 1.5fr;
}

.ts-footer .ts-footer__brand-title {
  margin: 0 0 10px;
  color: #99f6e4;
  font-size: 0.95rem;
}

.ts-footer__about {
  margin-bottom: 18px;
}

.ts-footer__about p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.95;
  text-align: justify;
}

.ts-footer__contact li.ts-footer__phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.ts-footer__contact strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .ts-footer__grid {
    grid-template-columns: 1fr 0.8fr 1.4fr;
  }

  .ts-footer__grid > .ts-footer__brand {
    grid-column: 1 / -1;
  }

  .ts-footer__about {
    columns: 2;
    column-gap: 32px;
  }
}

/* درباره ما */
.ts-about {
  padding: 88px 0;
  background: var(--white);
}

.ts-about__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}

.ts-about__story p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 2.1;
  text-align: justify;
}

.ts-about__story .ts-about__lead {
  margin-bottom: 10px;
  color: var(--teal-deep);
  font-weight: 800;
}

.ts-about__quote {
  position: relative;
  margin: 0 0 22px;
  padding: 18px 22px 18px 18px;
  border-right: 4px solid var(--teal-mid);
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.9;
}

.ts-about__story .ts-about__born {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-weight: 800;
}

.ts-about__path {
  position: relative;
  margin: 0;
  padding: 28px 26px;
  list-style: none;
  border: 1px solid var(--teal-muted);
  border-radius: 22px;
  background: linear-gradient(180deg, #f3faf9, #fff);
  box-shadow: var(--shadow);
}

.ts-about__path li {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}

.ts-about__path li:last-child {
  padding-bottom: 0;
}

.ts-about__path li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 4px;
  right: 17px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--teal-mid) 0 6px, transparent 6px 11px);
  opacity: 0.6;
}

.ts-about__dot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 5px var(--teal-soft);
}

.ts-about__path li:last-child .ts-about__dot {
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-deep));
}

.ts-about__path strong {
  display: block;
  margin-top: 6px;
  color: var(--teal-deep);
  font-size: 1rem;
}

.ts-about__path p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ماموریت ما */
.ts-mission {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(135deg, #022826 0%, var(--teal-deep) 55%, #0b635e 100%);
}

.ts-mission__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
}

.ts-mission > .container {
  position: relative;
  z-index: 1;
}

.section-head--light h2 {
  color: #fff;
}

.section-head--light p {
  color: rgba(255, 255, 255, 0.75);
}

.ts-mission__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.ts-mission__card {
  padding: 30px 28px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.ts-mission__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(94, 234, 212, 0.14);
  color: #99f6e4;
}

.ts-mission__icon svg {
  width: 26px;
  height: 26px;
}

.ts-mission__card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.ts-mission__card p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  line-height: 2;
  text-align: justify;
}

.ts-mission__card p:last-child {
  margin-bottom: 0;
}

.ts-mission__card .ts-mission__hope {
  padding-top: 12px;
  border-top: 1px dashed rgba(94, 234, 212, 0.25);
  color: #99f6e4;
  font-weight: 700;
}

/* لینک‌های کاربردی */
.ts-links {
  padding: 88px 0;
  background: var(--white);
}

.ts-links__groups {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 24px;
  align-items: start;
}

.ts-links__group {
  padding: 26px 24px;
  border: 1px solid var(--teal-muted);
  border-radius: 22px;
  background: linear-gradient(180deg, #f3faf9, #fff);
  box-shadow: var(--shadow);
}

.ts-links__head h3 {
  margin: 0 0 4px;
  color: var(--teal-deep);
  font-size: 1.1rem;
  font-weight: 800;
}

.ts-links__head p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.ts-links__list {
  display: grid;
  gap: 8px;
}

.ts-links__group + .ts-links__group .ts-links__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ts-links__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  padding: 11px 14px;
  border: 1px solid var(--teal-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.ts-links__list a svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--teal-mid);
}

.ts-links__list a:hover {
  transform: translateY(-2px);
  border-color: var(--teal-mid);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

/* قوانین و مقررات */
.ts-rules {
  padding: 64px 0 88px;
  background: var(--white);
}

.ts-rules__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.ts-rules__toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  border: 1px solid var(--teal-muted);
  border-radius: 18px;
  background: linear-gradient(180deg, #f3faf9, #fff);
}

.ts-rules__toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-deep);
}

.ts-rules__toc ol {
  margin: 0;
  padding: 0 18px 0 0;
}

.ts-rules__toc li {
  margin-bottom: 6px;
  color: var(--teal);
}

.ts-rules__toc a {
  color: var(--text);
  font-size: 0.9rem;
}

.ts-rules__toc a:hover {
  color: var(--teal);
}

.ts-rules__section {
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid var(--teal-muted);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px -18px rgba(4, 61, 59, 0.35);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.ts-rules__section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-size: 1.15rem;
  font-weight: 800;
}

.ts-rules__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-size: 0.95rem;
}

.ts-rules__section ul {
  display: grid;
  gap: 10px;
}

.ts-rules__section li {
  position: relative;
  padding-right: 18px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 2;
  text-align: justify;
}

.ts-rules__section li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-mid);
}

.ts-rules__section li strong {
  color: var(--teal-deep);
}

.ts-rules__contact {
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--teal-soft);
}

.ts-rules__contact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-deep);
  font-size: 1.05rem;
}

.ts-rules__contact p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.9;
}

@media (max-width: 980px) {
  .ts-about__layout,
  .ts-mission__grid,
  .ts-links__groups,
  .ts-rules__layout {
    grid-template-columns: 1fr;
  }

  .ts-rules__toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .ts-about,
  .ts-mission,
  .ts-links {
    padding: 64px 0;
  }

  .ts-links__group + .ts-links__group .ts-links__list {
    grid-template-columns: 1fr;
  }

  .ts-mission__card,
  .ts-rules__section {
    padding: 22px 18px;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .ts-article__layout {
    grid-template-columns: 1fr;
  }

  .ts-article__aside {
    position: static;
  }

  .ts-stats__grid,
  .ts-posts__grid,
  .ts-why__list,
  .ts-process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .ts-process__steps {
    row-gap: 40px;
  }

  .ts-process__steps::before {
    display: none;
  }

  .ts-privacy__card {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
    padding: 40px 28px;
  }

  .ts-privacy__text p {
    text-align: center;
  }

  .ts-hero__inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .ts-hero__content {
    text-align: center;
  }

  .ts-hero .lead {
    margin-inline: auto;
  }

  .ts-hero__badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .btn-menu {
    display: inline-flex;
  }

  .ts-header__start {
    gap: 12px;
  }

  .ts-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(4, 61, 59, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
    backdrop-filter: blur(10px);
  }

  .ts-nav.is-open {
    display: flex;
  }

  .ts-nav a {
    padding: 12px 8px;
  }

  .ts-header__inner {
    position: relative;
  }

  .ts-header__actions .btn-login span {
    display: none;
  }

  .ts-why__list {
    grid-template-columns: 1fr;
  }

  .ts-process__steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .ts-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 16px;
    text-align: right;
    padding: 0 0 28px;
  }

  .ts-step::before {
    content: "";
    position: absolute;
    top: 64px;
    bottom: 4px;
    right: 29px;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--teal-mid) 0 8px,
      transparent 8px 14px
    );
    opacity: 0.55;
  }

  .ts-step:last-child {
    padding-bottom: 0;
  }

  .ts-step:last-child::before {
    display: none;
  }

  .ts-step__num {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .ts-step h3 {
    align-self: end;
    margin-top: 6px;
  }

  .ts-privacy__emblem svg {
    width: 130px;
    height: 130px;
  }

  .ts-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  /* فوتر موبایل: برند کامل، خدمات|شرکت دو ستونه، نماد و تماس وسط */
  .ts-home .ts-footer__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 18px !important;
  }

  .ts-home .ts-footer__grid > .ts-footer__brand,
  .ts-home .ts-footer__grid > :nth-child(1) {
    grid-column: 1 / -1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ts-home .ts-footer__grid > .ts-footer__brand p,
  .ts-home .ts-footer__grid > :nth-child(1) p {
    max-width: 100%;
  }

  .ts-home .ts-footer__grid > .ts-footer__brand .ts-social,
  .ts-home .ts-footer__grid > :nth-child(1) .ts-social {
    justify-content: center;
  }

  .ts-home .ts-footer__grid > .ts-footer__col--links,
  .ts-home .ts-footer__grid > .ts-footer__col--enamad {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ts-home .ts-footer__grid > .ts-footer__col--contact {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ts-home .ts-footer__contact {
    width: 100%;
    max-width: 420px;
  }

  .ts-home .ts-footer__bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .ts-home .ts-footer__bottom nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .ts-stats__grid,
  .ts-posts__grid {
    grid-template-columns: 1fr;
  }

  .ts-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 0 20px 6px;
    scrollbar-width: none;
  }

  .ts-filter::-webkit-scrollbar {
    display: none;
  }

  .ts-filter__chip {
    flex-shrink: 0;
  }

  .ts-article__main {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .ts-article__content {
    font-size: 0.98rem;
  }

  .ts-article__content .alignright,
  .ts-article__content .alignleft {
    float: none;
    margin: 1em auto;
  }

  .ts-logo img {
    height: 40px;
  }
}
