:root {
  --ill-black: #231f20;
  --ill-white: #ffffff;
  --ill-muted: #5d575a;
  --ill-soft: #8a8386;
  --ill-line: #d8d2d4;
  --ill-bg-soft: #f7f5f4;
}

/* Sitewide hover normalization: black/white, calm, no pink/blue drift. */
body:not(.elementor-editor-active) a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, text-decoration-color 160ms ease, opacity 160ms ease;
}

body:not(.elementor-editor-active) a:hover {
  color: var(--ill-black);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

body:not(.elementor-editor-active) .elementor-button,
body:not(.elementor-editor-active) .ill-rn-button,
body:not(.elementor-editor-active) .ill-hemayat-button,
body:not(.elementor-editor-active) .ill-hemayat-secondary,
body:not(.elementor-editor-active) .ill-button,
body:not(.elementor-editor-active) a[class*="button"],
body:not(.elementor-editor-active) a[class*="btn"] {
  border-color: var(--ill-black);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

body:not(.elementor-editor-active) .elementor-button:hover,
body:not(.elementor-editor-active) .ill-rn-button:hover,
body:not(.elementor-editor-active) .ill-hemayat-button:hover,
body:not(.elementor-editor-active) .ill-hemayat-secondary:hover,
body:not(.elementor-editor-active) .ill-button:hover,
body:not(.elementor-editor-active) a[class*="button"]:hover,
body:not(.elementor-editor-active) a[class*="btn"]:hover {
  background: var(--ill-white) !important;
  color: var(--ill-black) !important;
  border-color: var(--ill-black) !important;
  text-decoration: none !important;
  opacity: 1;
}

/* Homepage shortcode */
.ill-rn-home,
.ill-rn-home * {
  box-sizing: border-box;
}

.ill-rn-home {
  direction: rtl;
  color: var(--ill-black);
  background: var(--ill-white);
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.9;
  padding: 0 20px 72px;
}

.ill-rn-home a {
  color: var(--ill-black);
  text-decoration: none;
}

.ill-rn-hero,
.ill-rn-block {
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
}

.ill-rn-hero {
  padding: 36px 0 76px;
  text-align: center;
}

.ill-rn-hero__media {
  max-width: 860px;
  margin: 0 auto 38px;
  overflow: hidden;
}

.ill-rn-hero__image,
.ill-rn-program__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ill-rn-hero__body {
  max-width: 880px;
  margin: 0 auto;
}

.ill-rn-eyebrow,
.ill-rn-kicker {
  margin: 0 0 12px;
  color: var(--ill-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.ill-rn-kicker--link {
  display: inline-block;
  color: var(--ill-black);
  font-weight: 800;
}

.ill-rn-hero h1 {
  margin: 0;
  color: var(--ill-black);
  font-size: clamp(36px, 6.2vw, 76px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.ill-rn-lede {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--ill-muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 2.1;
}

.ill-rn-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.ill-rn-actions--center {
  justify-content: center;
}

.ill-rn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--ill-black);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.ill-rn-button--dark {
  background: var(--ill-black);
  color: var(--ill-white) !important;
}

.ill-rn-button--light {
  background: var(--ill-white);
  color: var(--ill-black) !important;
}

.ill-rn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 760px;
  margin: 42px auto 0;
  padding: 0;
  border-top: 1px solid var(--ill-line);
  border-bottom: 1px solid var(--ill-line);
}

.ill-rn-stats div {
  padding: 18px 10px;
}

.ill-rn-stats dt {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.ill-rn-stats dd {
  margin: 2px 0 0;
  color: var(--ill-soft);
  font-size: 13px;
}

.ill-rn-block {
  margin-top: 72px;
}

.ill-rn-feature {
  max-width: 880px;
  padding: 42px 28px;
  border-top: 1px solid var(--ill-black);
  border-bottom: 1px solid var(--ill-black);
  text-align: center;
}

.ill-rn-feature h2,
.ill-rn-name h2,
.ill-rn-program h2,
.ill-rn-newsletter h2,
.ill-rn-section-head h2,
.ill-rn-trio h2 {
  margin: 0;
  color: var(--ill-black);
  font-weight: 900;
  line-height: 1.45;
}

.ill-rn-feature h2,
.ill-rn-program h2 {
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: -0.035em;
}

.ill-rn-feature p,
.ill-rn-name p,
.ill-rn-program p,
.ill-rn-newsletter p,
.ill-rn-trio p,
.ill-rn-card p {
  color: var(--ill-muted);
}

.ill-rn-feature > p:not(.ill-rn-kicker) {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 2.15;
}

.ill-rn-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ill-rn-trio article,
.ill-rn-card {
  min-height: 100%;
  padding: 26px 22px;
  border: 1px solid var(--ill-line);
  background: var(--ill-white);
}

.ill-rn-trio h2,
.ill-rn-card h3 {
  font-size: 22px;
}

.ill-rn-trio p,
.ill-rn-card p {
  margin: 14px 0 20px;
  font-size: 15px;
  line-height: 2.05;
}

.ill-rn-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ill-line);
  padding-bottom: 18px;
}

.ill-rn-section-head h2,
.ill-rn-name h2,
.ill-rn-newsletter h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.ill-rn-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ill-rn-card h3 {
  margin: 0;
  line-height: 1.7;
}

.ill-rn-name,
.ill-rn-newsletter {
  max-width: 780px;
  text-align: center;
}

.ill-rn-name p,
.ill-rn-newsletter p {
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 2.1;
}

.ill-rn-program {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  background: var(--ill-bg-soft);
}

.ill-rn-program__text {
  text-align: right;
}

.ill-rn-subtitle {
  margin: 6px 0 16px !important;
  color: var(--ill-black) !important;
  font-weight: 900;
}

.ill-rn-program__text .ill-rn-actions {
  justify-content: flex-start;
}

.ill-rn-program__media {
  overflow: hidden;
  background: var(--ill-white);
}

.ill-rn-newsletter {
  padding: 42px 24px;
  border: 1px solid var(--ill-line);
}

.ill-rn-note {
  margin-top: 12px !important;
  color: var(--ill-soft) !important;
  font-size: 13px !important;
}

@media (max-width: 920px) {
  .ill-rn-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ill-rn-program {
    grid-template-columns: 1fr;
  }

  .ill-rn-program__text,
  .ill-rn-program__text .ill-rn-actions {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .ill-rn-home {
    padding: 0 18px 54px;
  }

  .ill-rn-hero {
    padding-top: 26px;
    padding-bottom: 58px;
  }

  .ill-rn-hero__media {
    margin-bottom: 30px;
  }

  .ill-rn-hero h1 {
    font-size: clamp(34px, 11.5vw, 48px);
    line-height: 1.24;
  }

  .ill-rn-lede {
    font-size: 16px;
    line-height: 2;
  }

  .ill-rn-actions,
  .ill-rn-program__text .ill-rn-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ill-rn-button {
    width: 100%;
  }

  .ill-rn-stats,
  .ill-rn-trio,
  .ill-rn-card-grid {
    grid-template-columns: 1fr;
  }

  .ill-rn-feature {
    padding: 34px 0;
  }

  .ill-rn-section-head {
    align-items: start;
    flex-direction: column;
  }

  .ill-rn-program {
    padding: 24px 18px;
  }
}
