html[lang^="fa"] body {
  font-size: 16px;
  line-height: 1.9;
}

html[lang^="fa"] h1,
html[lang^="fa"] .h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

html[lang^="fa"] h2,
html[lang^="fa"] .h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem) !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

html[lang^="fa"] h3,
html[lang^="fa"] .h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

html[lang^="fa"] h4,
html[lang^="fa"] .h4 {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

html[lang^="fa"] h5,
html[lang^="fa"] .h5 {
  font-size: 1.12rem !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

html[lang^="fa"] h6,
html[lang^="fa"] .h6 {
  font-size: 1rem !important;
  line-height: 1.75 !important;
  letter-spacing: 0 !important;
}

html[lang^="fa"] p,
html[lang^="fa"] li,
html[lang^="fa"] a,
html[lang^="fa"] button,
html[lang^="fa"] input,
html[lang^="fa"] textarea {
  letter-spacing: 0;
}

/* Slider readability */
.rastak-slider-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rastak-slider-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.swiper-slider-classic .swiper-slide {
  position: relative;
}

html[lang^="fa"] .swiper-slider-classic .swiper-slide::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 20, 25, 0.30) 0%, rgba(12, 20, 25, 0.43) 48%, rgba(12, 20, 25, 0.63) 100%);
  pointer-events: none;
  z-index: 1;
}

html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption,
html[lang^="fa"] .swiper-slider-classic .swiper-pagination__module {
  position: relative;
  z-index: 2;
}

html[lang^="fa"] .swiper-slider-classic.swiper-container-vertical > .swiper-wrapper {
  flex: 0 0 100%;
  width: 100%;
}

html[lang^="fa"] .swiper-slider-classic .swiper-pagination__module {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 20px;
  width: 29px;
  height: 100%;
  transform: none;
  z-index: 3;
}

html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption .row {
  text-align: right !important;
}

html[lang^="fa"] .swiper-slider-classic h1 {
  max-width: 680px;
  font-size: clamp(1.6rem, 2.2vw, 2.05rem) !important;
  font-weight: 700;
  line-height: 1.55 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

html[lang^="fa"] .swiper-slider-classic .text-width-large {
  max-width: 660px;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem) !important;
  line-height: 2;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.64);
}

html[lang^="fa"] .swiper-slider-classic .button {
  padding: 11px 26px;
  color: #f8fbfa !important;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

html[lang^="fa"] .swiper-slider-classic .button:hover {
  color: #23342f !important;
  background: rgba(255, 255, 255, 0.94);
  border-color: #fff;
}

/* Main-page typography */
html[lang^="fa"] .section h3,
html[lang^="fa"] .section .oh-desktop h3 {
  font-weight: 700;
}

html[lang^="fa"] .box-info-title {
  font-size: 1.15rem !important;
  line-height: 1.7;
  font-weight: 700;
}

html[lang^="fa"] .AboutUsText {
  font-size: 0.9rem;
  line-height: 1.95;
  text-align: justify;
  text-align-last: right;
}

html[lang^="fa"] .AboutUsList {
  font-size: 0.88rem;
  line-height: 1.9;
  text-align: right;
}

html[lang^="fa"] .AboutUsList li + li {
  margin-top: 7px;
}

html[lang^="fa"] .team-creative-name {
  font-size: 1rem !important;
  line-height: 1.75;
}

html[lang^="fa"] .quote-creative-cite {
  font-size: 1.05rem !important;
  line-height: 1.75;
}

html[lang^="fa"] .quote-creative-text,
html[lang^="fa"] .quote-creative-text .q {
  font-size: 0.95rem;
  line-height: 1.95;
}

/* Counters */
html[lang^="fa"] .counter-modern {
  min-height: 245px;
  padding: 28px;
  text-align: center;
}

html[lang^="fa"] .counter-modern-number {
  font-size: clamp(2.2rem, 3.5vw, 2.75rem) !important;
  line-height: 0.9;
}

html[lang^="fa"] .counter-modern-title {
  font-size: clamp(0.9rem, 1.15vw, 1rem) !important;
  line-height: 1.75 !important;
  font-weight: 500;
}

html[lang^="fa"] .desktop .counter-modern::before {
  border-width: 12px;
}

html[lang^="fa"] .desktop .counter-modern-decor {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 18px;
}

/* Consistent blog cards */
html[lang^="fa"] .rastak-blog-list .post-classic {
  height: 100%;
}

html[lang^="fa"] .rastak-blog-list .post-classic-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

html[lang^="fa"] .rastak-blog-list .post-classic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

html[lang^="fa"] .rastak-blog-list .post-classic-title {
  min-height: 3.4em;
  margin-bottom: 6px;
  font-size: 1.05rem !important;
  line-height: 1.7;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[lang^="fa"] .post-aria-figure {
  aspect-ratio: 16 / 9;
}

html[lang^="fa"] .post-aria-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

html[lang^="fa"] .post-aria-title {
  font-size: 1.05rem !important;
  line-height: 1.75;
}

/* Inner content readability */
html[lang^="fa"] .rastak-content-page,
html[lang^="fa"] .rastak-content-page article,
html[lang^="fa"] .rastak-content-page .container {
  direction: rtl;
  text-align: right;
}

html[lang^="fa"] .rastak-content-page p {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  font-size: 1rem !important;
  line-height: 2.05 !important;
  text-align: justify !important;
  text-align-last: right;
}

html[lang^="fa"] .rastak-content-page h1,
html[lang^="fa"] .rastak-content-page h2,
html[lang^="fa"] .rastak-content-page h3,
html[lang^="fa"] .rastak-content-page h4,
html[lang^="fa"] .rastak-content-page h5,
html[lang^="fa"] .rastak-content-page h6 {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  text-align: right !important;
  font-weight: 700;
}

html[lang^="fa"] .rastak-content-page h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  margin-top: 38px;
  margin-bottom: 14px;
}

html[lang^="fa"] .rastak-content-page h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem) !important;
  margin-top: 30px;
  margin-bottom: 12px;
}

html[lang^="fa"] .rastak-content-page ul,
html[lang^="fa"] .rastak-content-page ol {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 0;
  text-align: right;
}

html[lang^="fa"] .rastak-content-page li {
  font-size: 0.98rem !important;
  line-height: 2;
}

html[lang^="fa"] .rastak-content-page img {
  max-width: 100%;
  height: auto;
}

html[lang^="fa"] .breadcrumbs-custom-path {
  font-size: 0.92rem;
  line-height: 1.8;
}

/* FAQ page and home FAQ */
html[lang^="fa"] .rastak-page-heading {
  padding-top: 42px;
  padding-bottom: 32px;
}

html[lang^="fa"] .rastak-page-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
}

html[lang^="fa"] .rastak-page-heading .breadcrumb {
  display: inline-flex;
  justify-content: center;
  font-size: 0.92rem;
  border-radius: 8px;
}

html[lang^="fa"] .rastak-section-intro {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

html[lang^="fa"] .rastak-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #74968c;
  font-size: 0.9rem;
  font-weight: 700;
}

html[lang^="fa"] .rastak-section-intro h2,
html[lang^="fa"] .rastak-section-intro h3 {
  margin-bottom: 12px;
}

html[lang^="fa"] .rastak-section-intro p {
  color: #666;
  font-size: 0.98rem;
  line-height: 1.95;
}

html[lang^="fa"] .rastak-faq-groups {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e7ecea;
  border-radius: 12px;
}

html[lang^="fa"] .rastak-faq-groups-title {
  color: #596762;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

html[lang^="fa"] .rastak-faq-groups .list-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

html[lang^="fa"] .rastak-faq-groups .list-group-item {
  padding: 0;
  background: transparent;
  border: 0;
}

html[lang^="fa"] .rastak-faq-groups .list-group-item a {
  display: inline-block;
  padding: 7px 14px;
  color: #4f625c;
  font-size: 0.88rem;
  background: #eef3f1;
  border-radius: 999px;
}

html[lang^="fa"] .rastak-faq-accordion .rastak-faq-item {
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e0e8e5;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(35, 58, 51, 0.06);
}

html[lang^="fa"] .rastak-faq-accordion .card-header {
  padding: 0;
  background: #fff;
  border: 0;
}

html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question {
  position: relative;
  width: 100%;
  padding: 20px 58px 20px 22px;
  color: #23342f;
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 700;
  text-align: right !important;
  text-decoration: none !important;
  white-space: normal;
}

html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question::before,
html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 22px;
  width: 16px;
  height: 2px;
  background: #74968c;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question::after {
  transform: translateY(-50%) rotate(90deg);
}

html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(0deg);
}

html[lang^="fa"] .rastak-faq-accordion .card-body {
  padding: 2px 58px 22px 22px;
  color: #4e5b57;
  font-size: 0.96rem;
  line-height: 2;
  text-align: justify;
  text-align-last: right;
  border-top: 1px solid #eef2f0;
}

html[lang^="fa"] .rastak-home-faq .rastak-faq-accordion {
  max-width: 920px;
  margin: 0 auto;
}

html[lang^="fa"] .rastak-home-faq {
  background: linear-gradient(135deg, #d9e9e3 0%, #eaf3ef 100%) !important;
  border-top: 1px solid #c9ddd6;
  border-bottom: 1px solid #c9ddd6;
}

html[lang^="fa"] .rastak-home-faq-actions {
  margin-top: 28px;
  text-align: center;
}

html[lang^="fa"] .rastak-home-faq-actions .button {
  min-width: 245px;
  padding: 15px 32px;
  font-size: 0.96rem;
}

/* Keep the theme's side navigation and only restore language-aware arrows. */
#services .owl-team .owl-prev::before,
#services .owl-team .owl-next::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74968c;
  font-family: "FontAwesome";
  font-size: 30px;
  line-height: 1;
  transition: color 0.25s ease;
}

#services .owl-team .owl-prev::before {
  content: "\f104";
}

#services .owl-team .owl-next::before {
  content: "\f105";
}

html[dir="rtl"] #services .owl-team .owl-prev::before,
html[lang^="fa"] #services .owl-team .owl-prev::before,
html[lang^="ar"] #services .owl-team .owl-prev::before {
  content: "\f105";
}

html[dir="rtl"] #services .owl-team .owl-next::before,
html[lang^="fa"] #services .owl-team .owl-next::before,
html[lang^="ar"] #services .owl-team .owl-next::before {
  content: "\f104";
}

#services .owl-team .owl-prev:hover::before,
#services .owl-team .owl-next:hover::before {
  color: #4f6d64;
}

/* Footer: logo right, information left */
html[lang^="fa"] .rastak-footer-overview {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 70px);
  text-align: right;
}

html[lang^="fa"] .rastak-footer-logo {
  flex: 0 0 150px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

html[lang^="fa"] .rastak-footer-logo .footer-brand {
  margin: 0;
}

html[lang^="fa"] .rastak-footer-logo img {
  width: auto;
  max-width: 140px;
  height: auto;
}

html[lang^="fa"] .rastak-footer-details {
  flex: 1 1 auto;
  min-width: 0;
}

html[lang^="fa"] .rastak-footer-details > p {
  margin-top: 0;
  text-align: justify;
  text-align-last: right;
}

html[lang^="fa"] .rastak-footer-details .contact-classic {
  margin-top: 22px;
}

@media (max-width: 991px) {
  /* The fixed navbar already creates its own submenu toggle. */
  html[lang^="fa"] .rd-navbar-fixed .rd-nav-link > .fa-angle-down {
    display: none !important;
  }

  html[lang^="fa"] .swiper-slider-classic .swiper-slide::after {
    background: rgba(12, 20, 25, 0.50);
  }

  html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption .col-md-6 {
    max-width: 78%;
    flex: 0 0 78%;
  }

  html[lang^="fa"] .counter-modern {
    min-height: 230px;
  }

  html[lang^="fa"] .rastak-footer-overview {
    gap: 28px;
  }
}

@media (max-width: 767px) {
  html[lang^="fa"] body {
    font-size: 15px;
  }

  /* Keep the brand visually centered between the two mobile controls. */
  html[lang^="fa"] .rd-navbar-fixed .rd-navbar-panel .rd-navbar-brand {
    position: absolute;
    top: 50%;
    right: auto;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  html[lang^="fa"] .rd-navbar-fixed .rd-navbar-panel .rd-navbar-brand img {
    display: block;
    margin: 0 auto;
  }

  html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption .col-md-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* The mobile slide is only about 150px tall; keep its caption inside it. */
  html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption .container-fluid {
    padding-right: 20px;
    padding-left: 42px;
  }

  html[lang^="fa"] .swiper-slider-classic h1 {
    font-size: 1.12rem !important;
    line-height: 1.5 !important;
  }

  html[lang^="fa"] .swiper-slider-classic .text-width-large {
    margin-top: 6px !important;
    font-size: 0.82rem !important;
    line-height: 1.7;
  }

  html[lang^="fa"] .swiper-slider-classic .text-width-large + .text-width-large,
  html[lang^="fa"] .swiper-slider-classic .swiper-slide-caption .button {
    display: none !important;
  }

  /* Separate the blog archive CTA from carousel pagination on small screens. */
  html[lang^="fa"] .owl-posts + .btn {
    display: flex;
    width: max-content;
    clear: both;
    float: none !important;
    margin: 30px auto 0;
  }

  /* Compact headings inside articles and regular content pages. */
  html[lang^="fa"] .rastak-content-page h1 {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
  }

  html[lang^="fa"] .rastak-content-page h2 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 1.22rem !important;
    line-height: 1.7 !important;
  }

  html[lang^="fa"] .rastak-content-page h3 {
    margin-top: 22px;
    margin-bottom: 9px;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
  }

  html[lang^="fa"] .rastak-content-page h4,
  html[lang^="fa"] .rastak-content-page h5,
  html[lang^="fa"] .rastak-content-page h6 {
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }

  html[lang^="fa"] .rastak-page-heading h1 {
    font-size: 1.55rem !important;
    line-height: 1.65 !important;
  }

  html[lang^="fa"] .breadcrumbs-custom-path,
  html[lang^="fa"] .breadcrumbs-custom-path .active {
    font-size: 0.82rem;
    line-height: 1.75;
  }

  html[lang^="fa"] .rastak-faq-groups,
  html[lang^="fa"] .rastak-footer-overview {
    flex-direction: column;
  }

  html[lang^="fa"] .rastak-footer-logo {
    flex-basis: auto;
    width: 100%;
    justify-content: center;
  }

  html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question {
    padding: 17px 48px 17px 16px;
    font-size: 0.95rem;
  }

  html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question::before,
  html[lang^="fa"] .rastak-faq-accordion .rastak-faq-question::after {
    right: 17px;
  }

  html[lang^="fa"] .rastak-faq-accordion .card-body {
    padding: 2px 18px 18px;
  }
}
