/* Force readable Persian typography for CKEditor content pages.
   Inline font styles from CKEditor are stripped at render time; these rules
   are the final authority for fragment content inside site templates. */

.content-page-body {
  direction: rtl !important;
  text-align: right;
  font-family: "IRANYekan", Tahoma, sans-serif !important;
  font-size: 16px !important;
  line-height: 2 !important;
  color: #374151;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.content-page-body,
.content-page-body *:not(svg):not(path):not(i):not(.fa):not([class*="fa-"]) {
  font-family: "IRANYekan", Tahoma, sans-serif !important;
}

.content-page-body p,
.content-page-body li,
.content-page-body td,
.content-page-body th,
.content-page-body span,
.content-page-body div,
.content-page-body section,
.content-page-body article {
  font-size: 16px !important;
  line-height: 2 !important;
}

.content-page-body > *:first-child {
  margin-top: 0 !important;
}

.content-page-body > *:last-child {
  margin-bottom: 0 !important;
}

.content-page-body h1,
.content-page-body h2,
.content-page-body h3,
.content-page-body h4,
.content-page-body h5,
.content-page-body h6 {
  color: #111827;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  margin: 1.6em 0 0.7em !important;
  font-family: "IRANYekan", Tahoma, sans-serif !important;
}

.content-page-body h1 { font-size: 1.75rem !important; }
.content-page-body h2 { font-size: 1.45rem !important; color: hsl(var(--primary-btn)); }
.content-page-body h3 { font-size: 1.2rem !important; }
.content-page-body h4 { font-size: 1.05rem !important; }

.content-page-body p {
  margin: 0 0 1.15em !important;
  text-align: justify;
  text-justify: inter-word;
}

.content-page-body strong,
.content-page-body b {
  color: #111827;
  font-weight: 700 !important;
}

.content-page-body a {
  color: hsl(var(--primary-btn));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page-body a:hover {
  color: hsl(var(--brand-primary-dark));
}

.content-page-body ul,
.content-page-body ol {
  margin: 0 0 1.3em !important;
  padding: 0 1.5em 0 0 !important;
}

.content-page-body ul { list-style: disc; }
.content-page-body ol { list-style: persian; }

.content-page-body li {
  margin: 0.4em 0 !important;
  padding-right: 0.2em;
}

.content-page-body li::marker {
  color: hsl(var(--primary-btn));
}

.content-page-body blockquote {
  margin: 1.4em 0 !important;
  padding: 0.95em 1.15em !important;
  border-right: 4px solid hsl(var(--primary-btn));
  background: hsl(var(--brand-primary-soft));
  border-radius: 0 12px 12px 0;
  color: #4b5563;
}

.content-page-body hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0 !important;
}

.content-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25em auto;
  display: block;
}

.content-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0 !important;
}

.content-page-body th,
.content-page-body td {
  border: 1px solid #e5e7eb;
  padding: 0.75em 1em !important;
  text-align: right;
}

.content-page-body th {
  background: #f9fafb;
  font-weight: 700 !important;
  color: #111827;
}

@media (max-width: 767px) {
  .content-page-body,
  .content-page-body p,
  .content-page-body li,
  .content-page-body td,
  .content-page-body th,
  .content-page-body span,
  .content-page-body div {
    font-size: 15px !important;
  }

  .content-page-body h1 { font-size: 1.5rem !important; }
  .content-page-body h2 { font-size: 1.3rem !important; }
}

/* About page hero */
.about-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4.25rem 0 4.75rem;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      155deg,
      hsl(220 88% 18%) 0%,
      hsl(220 82% 28%) 38%,
      hsl(211 90% 26%) 68%,
      hsl(218 85% 20%) 100%
    );
}

.about-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
}

.about-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, hsl(var(--brand-cyan) / 0.42) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, hsl(220 80% 52% / 0.28) 0%, transparent 38%),
    radial-gradient(circle at 50% 105%, rgba(255, 255, 255, 0.1) 0%, transparent 48%);
  pointer-events: none;
}

.about-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.about-hero__glow--left {
  top: -5rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: hsl(var(--brand-cyan) / 0.28);
}

.about-hero__glow--right {
  right: -5rem;
  bottom: -4rem;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 255, 255, 0.14);
}

.about-hero__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 58%
  );
  transform: translateX(-30%);
  animation: about-hero-shine 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes about-hero-shine {
  0%, 100% { transform: translateX(-35%); opacity: 0.6; }
  50% { transform: translateX(35%); opacity: 1; }
}

.about-hero__wheel {
  position: absolute;
  color: #fff;
  opacity: 0.07;
  pointer-events: none;
}

.about-hero__wheel--left {
  top: 50%;
  left: -2.5rem;
  width: 11rem;
  transform: translateY(-50%) rotate(-12deg);
}

.about-hero__wheel--right {
  top: 18%;
  right: -2rem;
  width: 9rem;
  transform: rotate(18deg);
}

.about-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.about-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  padding: 0.45rem 1.1rem 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.about-hero__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
}

.about-hero__title {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.about-hero__subtitle {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}

.about-hero__features {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.about-hero__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}

.about-hero__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.about-hero__wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  line-height: 0;
}

.about-hero__wave svg {
  display: block;
  width: 100%;
  height: 2.75rem;
}

@media (min-width: 768px) {
  .about-hero {
    padding: 5.75rem 0 6.25rem;
  }

  .about-hero__wheel--left {
    left: 2%;
    width: 13rem;
  }

  .about-hero__wheel--right {
    right: 3%;
    width: 10rem;
  }

  .about-hero__features {
    gap: 0.75rem 1.5rem;
    padding: 0.9rem 1.6rem;
  }

  .about-hero__feature {
    font-size: 0.875rem;
  }

  .about-hero__wave svg {
    height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__shine {
    animation: none;
    opacity: 0.5;
  }
}
