/**
 * FA homepage: finish the visual rhythm without touching approved content.
 * Sits after the existing dedicated modules. Only layout/presentation.
 */

/* Group identity strip — shorter, more refined; mark and name only. */
html[lang="fa-IR"] .sc-family--band {
  padding-block:clamp(27px,3.3vw,47px) !important;
  background:#fff;
}
html[lang="fa-IR"] .sc-family--band .sc-family__intro {
  margin-bottom:16px !important;
}
html[lang="fa-IR"] .sc-family--band .sc-family__list {
  margin-top:16px !important;
  border-block:1px solid #e4ebf0;
}
html[lang="fa-IR"] .sc-family--band .sc-family__member {
  min-height:124px !important;
  gap:8px !important;
  padding:13px 12px !important;
}
html[lang="fa-IR"] .sc-family--band .sc-family__logo-placeholder {
  height:57px !important;
}
html[lang="fa-IR"] .sc-family--band .sc-family__logo-placeholder img {
  max-height:55px !important;
}
html[lang="fa-IR"] .sc-family--band .sc-family__wordmark {
  font-size:clamp(15px,1.2vw,19px);
}

/* CEO message — make quote and photograph read as one editorial arrangement. */
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__panel {
  border-color:#d5e1e9;
  box-shadow:0 12px 42px rgb(13 55 87 / 4%);
}
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait > img:not(.sc-leadership__floating-mark) {
  object-position:center 21%;
}
html[lang="fa-IR"] .sc-leadership__action .sc-button:focus-visible {
  outline:2px solid #126fa5;
  outline-offset:4px;
}

/* Partners: white-mark gallery with intentional breathing room.
   Optical size normalization is preserved from FA asset styles. */
html[lang="fa-IR"] .sc-fa-partners {
  padding-block:clamp(40px,5vw,72px);
}
html[lang="fa-IR"] .sc-fa-partners__composition {
  box-shadow:0 18px 50px rgb(9 54 85 / 8%);
}
html[lang="fa-IR"] .sc-fa-partners__intro {
  padding:clamp(29px,3.3vw,52px);
}
html[lang="fa-IR"] .sc-fa-partners__logo {
  transition:background-color .25s ease;
}
html[lang="fa-IR"] .sc-fa-partners__logo img {
  opacity:.92;
}

/* Video newsroom: keep thumbnails engaging without losing copy legibility. */
html[lang="fa-IR"] .sc-fa-news-clips__item:not(.sc-fa-news-clips__item--featured) .sc-fa-news-clips__title {
  -webkit-line-clamp:2;
  font-size:clamp(14px,1.12vw,17px);
}
html[lang="fa-IR"] .sc-fa-news-clips__item:not(.sc-fa-news-clips__item--featured) .sc-fa-news-clips__excerpt {
  -webkit-line-clamp:2;
  line-height:1.7;
}
html[lang="fa-IR"] .sc-fa-news-clips__item--featured .sc-fa-news-clips__copy {
  padding:clamp(20px,2.7vw,38px);
}
html[lang="fa-IR"] .sc-fa-news-clips__link:is(:hover,:focus-visible) .sc-fa-news-clips__shade {
  opacity:.88;
}

/* Calls empty state: slim, deliberate notice instead of a large hollow card. */
html[lang="fa-IR"] .sc-calls {
  padding-block:clamp(39px,4.8vw,70px) !important;
}
html[lang="fa-IR"] .sc-calls .sc-calls__intro {
  margin-bottom:20px !important;
  gap:10px;
}
html[lang="fa-IR"] .sc-calls .sc-calls__empty {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px 32px;
  padding:clamp(17px,2vw,27px) 0 !important;
  border-block:1px solid #dce6ec;
  min-height:0;
  background:transparent;
}
html[lang="fa-IR"] .sc-calls .sc-calls__empty-text {
  margin:0;
  max-width:64ch;
  font-size:clamp(14px,1.1vw,16px);
  line-height:1.85;
}
html[lang="fa-IR"] .sc-calls .sc-calls__empty-action {
  margin:0;
  flex:0 0 auto;
}
html[lang="fa-IR"] .sc-calls .sc-calls__empty-action .sc-button {
  min-height:43px;
  padding:9px 19px;
  color:#075988 !important;
  background:#fff !important;
  border:1px solid #167aac !important;
}
html[lang="fa-IR"] .sc-calls .sc-calls__empty-action .sc-button :is(.sc-button__label,.sc-button__arrow) {
  color:inherit !important;
}
html[lang="fa-IR"] .sc-calls .sc-calls__empty-action .sc-button:is(:hover,:focus-visible) {
  color:#fff !important;
  background:#0b6597 !important;
}
@media(max-width:760px) {
  html[lang="fa-IR"] .sc-calls .sc-calls__empty {
    flex-direction:column;
    align-items:flex-start;
  }
  html[lang="fa-IR"] .sc-calls .sc-calls__empty-action {
    align-self:flex-start;
  }
  html[lang="fa-IR"] .sc-family--band .sc-family__member {
    min-height:108px !important;
    padding:12px 7px !important;
  }
  html[lang="fa-IR"] .sc-fa-partners__intro {
    min-height:auto;
  }
}
/* Mobile video grid: titles lead, supporting text recedes, film remains visible. */
@media(max-width:600px) {
  html[lang="fa-IR"] .sc-fa-news-clips__item--featured {
    height:365px;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__item:not(.sc-fa-news-clips__item--featured) {
    height:220px;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__item--featured .sc-fa-news-clips__title {
    font-size:clamp(20px,5vw,23px);
    line-height:1.58;
    -webkit-line-clamp:2;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__item--featured .sc-fa-news-clips__excerpt {
    font-size:12px;
    line-height:1.8;
    -webkit-line-clamp:2;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__item:not(.sc-fa-news-clips__item--featured) .sc-fa-news-clips__excerpt {
    -webkit-line-clamp:1;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__copy {
    padding:16px;
    gap:6px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html[lang="fa-IR"] .sc-fa-news-clips__link .sc-fa-news-clips__shade {
    transition:none;
  }
}

/*
 * FA HOME / MOBILE EDITORIAL RHYTHM v2
 * Every rule is mobile-only; retained dynamic content, links, the Hero artwork,
 * approved desktop direction and Elementor source are unchanged.
 */
@media (max-width: 700px) {
  /* A deliberate, repeatable 48px section rhythm instead of inherited 96px. */
  html[lang="fa-IR"] :is(
    .sc-portfolio--editorial,
    .sc-product-finder,
    .sc-lifecycle--editorial,
    .sc-insights,
    .sc-leadership--editorial
  ) {
    padding-block:48px !important;
  }
  html[lang="fa-IR"] .sc-stat-band--brand {
    padding-block:54px !important;
  }
  html[lang="fa-IR"] .sc-final-cta--editorial {
    padding-block:56px !important;
  }

  /* Calm heading system and readable paragraphs, not desktop-scaled types. */
  html[lang="fa-IR"] :is(
    .sc-portfolio--editorial,
    .sc-product-finder,
    .sc-lifecycle--editorial,
    .sc-insights,
    .sc-leadership--editorial,
    .sc-stat-band--brand,
    .sc-final-cta--editorial
  ) .sc-section__title {
    font-size:clamp(25px,6.5vw,29px);
    line-height:1.48;
    letter-spacing:normal;
  }
  html[lang="fa-IR"] :is(
    .sc-portfolio,
    .sc-product-finder,
    .sc-lifecycle,
    .sc-insights
  ) .sc-section__lead {
    font-size:14px !important;
    line-height:1.95 !important;
    text-align:right;
    margin-inline:0;
  }
  html[lang="fa-IR"] :is(.sc-portfolio__headline,.sc-lifecycle__headline,.sc-insights__headline) {
    gap:10px;
    margin-bottom:22px !important;
  }

  /* Products become three compact, easy-to-scan product rows.
     Consistent image crop + short description + a single complete link. */
  html[lang="fa-IR"] .sc-portfolio__list {
    display:grid;
    grid-template-columns:minmax(0,1fr) !important;
    gap:13px !important;
  }
  html[lang="fa-IR"] .sc-product-card {
    min-width:0;
    height:auto;
  }
  html[lang="fa-IR"] .sc-product-card__link {
    display:grid !important;
    grid-template-columns:minmax(116px,36%) minmax(0,1fr) !important;
    grid-template-rows:1fr;
    gap:0 !important;
    align-items:stretch;
    min-height:168px;
    height:100%;
    border-radius:4px;
    overflow:hidden;
  }
  html[lang="fa-IR"] .sc-product-card__media {
    width:100%;
    height:100% !important;
    min-height:168px;
    aspect-ratio:auto !important;
    border-radius:0 !important;
    overflow:hidden;
    background:#eff4f7;
  }
  html[lang="fa-IR"] .sc-product-card__media img {
    width:100%;
    height:100%;
    object-fit:cover;
  }
  html[lang="fa-IR"] .sc-product-card__body {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-width:0;
    padding:15px 14px !important;
    gap:6px !important;
  }
  html[lang="fa-IR"] .sc-product-card__family {
    font-size:11px !important;
    line-height:1.5;
  }
  html[lang="fa-IR"] .sc-product-card__title {
    font-size:17px !important;
    line-height:1.52;
    margin:0 !important;
  }
  html[lang="fa-IR"] .sc-product-card__description {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:12px !important;
    line-height:1.7 !important;
  }
  html[lang="fa-IR"] .sc-product-card__action {
    margin-top:auto !important;
    padding-top:6px !important;
    font-size:12px !important;
    line-height:1.5;
    align-items:center;
  }
  html[lang="fa-IR"] .sc-product-card__arrow {
    width:28px;
    height:28px;
  }

  /* Solution finder: no full blank desktop gutters or stranded buttons. */
  html[lang="fa-IR"] .sc-product-finder__intro {
    margin-bottom:18px;
  }
  html[lang="fa-IR"] .sc-product-finder .sc-finder {
    gap:23px;
  }
  html[lang="fa-IR"] .sc-finder__panels {
    padding-block-start:22px;
  }
  html[lang="fa-IR"] .sc-finder__help {
    padding:21px !important;
    gap:11px !important;
  }
  html[lang="fa-IR"] .sc-finder__help :is(.sc-finder__help-title,.sc-finder__help-text) {
    margin:0;
  }
  html[lang="fa-IR"] .sc-finder__help-text {
    font-size:13px !important;
    line-height:1.85;
  }
  html[lang="fa-IR"] .sc-finder__submit {
    min-height:44px;
  }

  /* Service steps: a coherent numbered vertical rail with visible hierarchy. */
  html[lang="fa-IR"] .sc-lifecycle__media {
    max-height:155px;
    margin-bottom:17px;
  }
  html[lang="fa-IR"] .sc-lifecycle__intro {
    gap:14px;
  }
  html[lang="fa-IR"] .sc-lifecycle__journey {
    display:grid;
    grid-template-columns:1fr;
    gap:0 !important;
    margin-top:24px !important;
    border-top:1px solid #e3edf3;
  }
  html[lang="fa-IR"] .sc-lifecycle__stage {
    grid-template-columns:1fr;
    gap:6px !important;
    padding:13px 0 14px !important;
    margin:0 !important;
    min-height:0 !important;
    border-bottom:1px solid #e3edf3;
  }
  html[lang="fa-IR"] .sc-lifecycle__stage-head {
    min-height:34px;
    height:34px;
    gap:10px;
  }
  html[lang="fa-IR"] .sc-lifecycle__stage-title {
    font-size:16px !important;
    line-height:1.52 !important;
  }
  html[lang="fa-IR"] .sc-lifecycle__stage-copy {
    font-size:13px !important;
    line-height:1.8 !important;
    margin:0 !important;
  }

  /* Evidence — compact but keep all four metrics and four differentiators. */
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat-band__list {
    gap:10px !important;
    margin-block:25px !important;
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat {
    padding:19px 9px 17px !important;
    min-height:157px;
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__value {
    font-size:clamp(25px,6.4vw,33px);
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__label {
    font-size:14px;
    margin-top:8px;
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__context {
    font-size:12px;
    line-height:1.75;
  }
  html[lang="fa-IR"] .sc-stat-band__why {
    margin-top:17px;
    padding-top:9px;
  }
  html[lang="fa-IR"] .sc-stat-band__why-item {
    padding-block:10px !important;
    font-size:13px;
    line-height:1.75;
  }

  /* CEO: smaller type and paddings; portrait remains art-directed with mark. */
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__panel {
    padding:29px 21px 20px !important;
    gap:11px !important;
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__statement {
    margin-top:4px;
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__statement :is(p,blockquote) {
    font-size:16px !important;
    line-height:2 !important;
    text-align:right !important;
    margin:0;
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait {
    padding:0;
    transform:translateY(0);
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait > img:not(.sc-leadership__floating-mark) {
    height:260px !important;
    max-height:260px;
    width:min(100%,270px);
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__floating-mark {
    width:78px !important;
    height:58px !important;
  }

  /* Knowledge: one image-led feature followed by compact article rows,
     not four almost-identical full-width image cards. */
  html[lang="fa-IR"] .sc-insights__composition {
    display:flex !important;
    flex-direction:column !important;
    gap:16px !important;
  }
  html[lang="fa-IR"] .sc-insights__copy {
    order:0;
  }
  html[lang="fa-IR"] .sc-insights__featured {
    order:1;
    max-width:none !important;
  }
  html[lang="fa-IR"] .sc-insights__featured-link {
    gap:13px !important;
  }
  html[lang="fa-IR"] .sc-insights__featured-media {
    width:100%;
    height:auto !important;
    aspect-ratio:16 / 10 !important;
  }
  html[lang="fa-IR"] .sc-insights__featured-body {
    gap:7px !important;
  }
  html[lang="fa-IR"] .sc-insights__featured-title {
    font-size:20px !important;
    line-height:1.52 !important;
  }
  html[lang="fa-IR"] .sc-insights__featured-summary {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:13px !important;
    line-height:1.8 !important;
  }
  html[lang="fa-IR"] .sc-insights__list {
    order:2;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:none !important;
    gap:0;
    margin-top:8px;
    border-top:1px solid #e2e9ef;
  }
  html[lang="fa-IR"] .sc-insights__item {
    min-height:0 !important;
    display:block !important;
    margin:0;
    border-bottom:1px solid #e2e9ef;
  }
  html[lang="fa-IR"] .sc-insights__row {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 114px !important;
    grid-template-areas:"copy media";
    align-items:center;
    column-gap:13px !important;
    row-gap:0 !important;
    padding:16px 0 !important;
    height:auto !important;
    min-height:114px;
  }
  html[lang="fa-IR"] .sc-insights__row-media {
    grid-area:media;
    width:114px !important;
    height:93px !important;
    aspect-ratio:114 / 93 !important;
    margin:0;
    border-radius:3px;
    overflow:hidden;
  }
  html[lang="fa-IR"] .sc-insights__row-media img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }
  html[lang="fa-IR"] .sc-insights__row-body {
    grid-area:copy;
    display:grid;
    min-width:0;
    gap:5px !important;
    align-content:center;
  }
  html[lang="fa-IR"] .sc-insights__row-title {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    font-size:15px !important;
    line-height:1.65 !important;
  }
  html[lang="fa-IR"] .sc-insights__row-summary {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:12px !important;
    line-height:1.7 !important;
  }
  html[lang="fa-IR"] .sc-insights__action {
    order:3;
    margin-top:4px !important;
  }
  html[lang="fa-IR"] .sc-insights__action .sc-button {
    min-height:44px;
  }

  /* Film previews — keep image area visible, equal rhythm between stories. */
  html[lang="fa-IR"] .sc-home-news--editorial-fa {
    padding-block:47px 55px !important;
  }
  html[lang="fa-IR"] .sc-fa-news-clips {
    gap:11px !important;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__item--featured {
    height:335px !important;
  }
  html[lang="fa-IR"] .sc-fa-news-clips__item:not(.sc-fa-news-clips__item--featured) {
    height:200px !important;
  }

  /* Final conversion CTA: shorter but still a reliable 44px hit target. */
  html[lang="fa-IR"] .sc-final-cta--editorial .sc-button {
    min-height:44px;
  }
}
@media(max-width:370px) {
  html[lang="fa-IR"] .sc-product-card__link {
    grid-template-columns:110px minmax(0,1fr) !important;
  }
  html[lang="fa-IR"] .sc-product-card__body {
    padding:12px 10px !important;
  }
  html[lang="fa-IR"] .sc-insights__row {
    grid-template-columns:minmax(0,1fr) 98px !important;
    column-gap:10px !important;
  }
  html[lang="fa-IR"] .sc-insights__row-media {
    width:98px !important;
    height:86px !important;
  }
}

/* FA mobile Hero: keep outlined secondary action readable in idle/hover/focus.
   Explicit label color fixes inherited global white text from CTA components. */
@media (max-width: 700px) {
  html[lang="fa-IR"] .sc-hero--editorial .sc-hero__actions .sc-button--secondary {
    color: #075988 !important;
    -webkit-text-fill-color: #075988 !important;
    background-color: #fff !important;
    border: 1.5px solid #1877ad !important;
    border-radius: 4px !important;
    box-shadow: none;
  }
  html[lang="fa-IR"] .sc-hero--editorial .sc-hero__actions .sc-button--secondary .sc-button__label,
  html[lang="fa-IR"] .sc-hero--editorial .sc-hero__actions .sc-button--secondary .sc-button__arrow {
    color: #075988 !important;
    -webkit-text-fill-color: #075988 !important;
    opacity: 1 !important;
  }
  html[lang="fa-IR"] .sc-hero--editorial .sc-hero__actions .sc-button--secondary:is(:hover,:focus-visible) {
    color: #fff !important;
    background-color: #075988 !important;
    border-color: #075988 !important;
  }
  html[lang="fa-IR"] .sc-hero--editorial .sc-hero__actions .sc-button--secondary:is(:hover,:focus-visible) .sc-button__label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html[lang="fa-IR"] .sc-hero--editorial .sc-hero__actions .sc-button--secondary:focus-visible {
    outline: 3px solid #e31d24;
    outline-offset: 3px;
  }
}
