/*
 * Global H1 scale for a calmer, more consistent visual hierarchy.
 * Loaded after page-specific styles so every template keeps its own layout
 * while sharing the same responsive title proportions.
 */
.notran-hero-title {
  font-size: clamp(2rem, 3.45vw, 3.25rem) !important;
  line-height: 1.38 !important;
}

/* Homepage Persian slogan is intentionally more prominent than other page titles. */
body.home.notran-lang-fa .notran-hero-title {
  font-size: clamp(2.45rem, 4.35vw, 4rem) !important;
  line-height: 1.34 !important;
}

.notran-bi-page .notran-bi-hero h1,
.notran-ai-page .notran-ai-hero h1,
.notran-sw-page .notran-sw-hero h1,
.notran-dx-page .notran-dx-hero h1,
.notran-growth-page .notran-growth-hero h1,
.notran-infra-page .notran-infra-hero h1 {
  font-size: clamp(2rem, 3.55vw, 3.2rem) !important;
}

.notran-bi-page .notran-bi-hero h1,
.notran-ai-page .notran-ai-hero h1,
.notran-sw-page .notran-sw-hero h1,
.notran-dx-page .notran-dx-hero h1,
.notran-growth-page .notran-growth-hero h1,
.notran-infra-page .notran-infra-hero h1,
html[dir="rtl"] .notran-dept-en__hero h1 {
  line-height: 1.5 !important;
}

.notran-dept-en .notran-dept-en__hero h1 {
  font-size: clamp(2.1rem, 3.7vw, 3.3rem) !important;
  line-height: 1.14 !important;
}

.notran-projects-page .notran-projects-hero__content h1 {
  font-size: clamp(2rem, 3.65vw, 3.35rem) !important;
  line-height: 1.45 !important;
}

.notran-project-single .notran-project-single__intro h1 {
  font-size: clamp(1.95rem, 3.45vw, 3.1rem) !important;
  line-height: 1.48 !important;
}

body:not(.home) main > .max-w-5xl h1,
body:not(.home) main > .max-w-4xl h1,
body.archive main h1,
body.blog main h1,
body.single-post main h1,
body.page main h1,
body.error404 main h1,
.single-notran_department main > section h1:not([class]) {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem) !important;
  line-height: 1.55 !important;
}

@media (max-width: 767px) {
  .notran-hero-title {
    font-size: 1.8rem !important;
    line-height: 1.48 !important;
  }


  body.home.notran-lang-fa .notran-hero-title {
    font-size: clamp(2rem, 9vw, 2.3rem) !important;
    line-height: 1.5 !important;
  }

  .notran-bi-page .notran-bi-hero h1,
  .notran-ai-page .notran-ai-hero h1,
  .notran-sw-page .notran-sw-hero h1,
  .notran-dx-page .notran-dx-hero h1,
  .notran-growth-page .notran-growth-hero h1,
  .notran-infra-page .notran-infra-hero h1 {
    font-size: 1.72rem !important;
    line-height: 1.58 !important;
  }

  .notran-dept-en .notran-dept-en__hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }

  .notran-projects-page .notran-projects-hero__content h1,
  .notran-project-single .notran-project-single__intro h1 {
    font-size: 1.72rem !important;
    line-height: 1.55 !important;
  }

  body:not(.home) main > .max-w-5xl h1,
  body:not(.home) main > .max-w-4xl h1,
  body.archive main h1,
  body.blog main h1,
  body.single-post main h1,
  body.page main h1,
  body.error404 main h1,
  .single-notran_department main > section h1:not([class]) {
    font-size: 1.55rem !important;
  }
}
