/* Brand insights — patterned after start.caredirect.com/blog */
.insights-page {
  --ink: #232e3c;
  --muted: #5e6e82;
  --line: #e6ebf2;
  --surface: #fff;
  --soft: #f4f6f9;
  --accent: #e40f62;
  --gold: #ffc554;
}

.insights-page .insights-main {
  padding-bottom: 72px;
  min-height: 70vh;
}

@media (max-width: 575.98px) {
  .insights-page .insights-main {
    padding-bottom: 48px;
  }

  .insights-page h1.page-title {
    max-width: none;
  }


}

.insights-page .rail {
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.insights-page .eye {
  margin: 0 0 8px;
  font: 700 12px / 1.2 comfortaa, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.insights-page .eye a {
  color: inherit;
  text-decoration: none;
}

.insights-page .eye a:hover {
  color: var(--accent);
}

.insights-page h1.page-title {
  margin: 0;
  font: 800 clamp(32px, 4vw, 48px) / 1.08 Niramit, sans-serif;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--ink);
}

.insights-page .lead {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 100%;
  font-size: 16px;
  line-height: 1.5;
}

.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 28px auto 0;
  max-width: 100%;
  padding-inline: 18px;
}

.insights-filters button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.insights-filters button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.insights-grid {
  margin: 36px auto 0;
  max-width: 100%;
  padding-inline: 18px;
  display: grid;
  gap: 12px;
}

.insight-card {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 160ms ease;
  min-height: 0;
}

.insight-card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  text-decoration: none;
  color: inherit;
  box-shadow: none;
}

.insight-card__media {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  aspect-ratio: 16 / 9;
  height: auto;
  align-self: center;
  overflow: hidden;
  background: var(--soft);
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.insight-card__copy {
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  align-content: start;
}

.insight-card__meta {
  margin: 0;
  font: 600 12px / 1.3 comfortaa, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insight-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 197, 84, 0.22);
  border: 1px solid rgba(255, 197, 84, 0.55);
  padding: 3px 8px;
  border-radius: 6px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.75rem 0 0;
}

.article-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: rgba(228, 15, 98, 0.08);
  border: 1px solid rgba(228, 15, 98, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
}

.article-tag--pillar {
  background: rgba(255, 197, 84, 0.22);
  border-color: rgba(255, 197, 84, 0.55);
}

.insight-card__title {
  margin: 0;
  font: 800 20px / 1.22 Niramit, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.insight-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card__more {
  margin-top: 2px;
  font: 700 13px / 1.2 comfortaa, sans-serif;
  color: var(--ink);
}

@media (max-width: 640px) {
  .insight-card {
    flex-direction: column;
    align-items: stretch;
  }

  .insight-card__media {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Article */
.article-page .insights-main {
  padding-left: 0;
  padding-right: 0;
}

.article-header h1 {
  margin: 0;
  font: 800 clamp(32px, 4vw, 48px) / 1.08 Niramit, sans-serif;
  letter-spacing: -0.03em;
  max-width: 22ch;
  color: var(--ink);
}

/* Heroes: shared rules live in local.css (.page-hero / .article-hero) */

.article-meta-block {
  margin-top: 22px;
}

.article-meta-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}

.article-byline {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.article-body {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.article-body h2 {
  margin: 12px 0 0;
  font: 800 24px / 1.2 Niramit, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-body p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}

.article-body ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.article-practice {
  margin-top: 36px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, #ffe3ee 35%, white);
}

.article-practice h2 {
  margin: 0 0 10px;
  font: 800 20px / 1.25 Niramit, sans-serif;
}

.article-practice p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}

.article-expertise {
  margin: 28px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.article-sources {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.article-sources h2 {
  margin: 0 0 14px;
  font: 800 22px / 1.2 Niramit, sans-serif;
}

.article-sources ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
}

.article-sources a {
  font-weight: 700;
  color: var(--ink);
  text-underline-offset: 2px;
}

.article-related {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, #ffe3ee 0%, #fff3d6 50%, #f4f6f9 100%);
  display: grid;
  gap: 12px;
}

.article-related h2 {
  margin: 0;
  font: 800 22px / 1.2 Niramit, sans-serif;
}

.article-related p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.article-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-related-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.article-related-links a.is-accent {
  background: var(--gold);
  border-color: var(--gold);
}

.insights-footer {
  margin-top: 0;
}

/* Service insights strip — mirrored in local.css for homepage */
.service-insights {
  margin-top: 1.5rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid #e6ebf2;
}

.service-insights__label {
  font: 700 0.72rem / 1.2 Comfortaa, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e40f62;
  margin: 0 0 0.85rem;
}

.service-insights__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.service-insights__item {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 0.5rem;
  text-decoration: none !important;
  color: #232e3c !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-insights__item:hover,
.service-insights__item:focus {
  border-color: #ffc554;
  box-shadow: 0 0.25rem 0.75rem rgba(11, 23, 39, 0.06);
  color: #232e3c !important;
}

.service-insights__media {
  flex: 0 0 112px;
  width: 112px;
  background: #f4f6f9;
  overflow: hidden;
}

.service-insights__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-insights__copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
}

.service-insights__title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #232e3c;
  margin: 0 0 0.35rem;
}

.service-insights__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5e6e82;
  margin: 0;
}

.service-insights__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1rem;
}

.service-insights__action {
  font-weight: 700;
  font-size: 0.88rem;
  color: #e40f62 !important;
  text-decoration: none !important;
}

.service-insights__action:hover,
.service-insights__action:focus {
  color: #b50c4e !important;
  text-decoration: underline !important;
}

/* Arabic RTL */
html[dir="rtl"] .insight-card,
html[dir="rtl"] .insight-card__copy,
html[dir="rtl"] .insight-card__title,
html[dir="rtl"] .insight-card__desc,
html[dir="rtl"] .insight-card__meta,
html[dir="rtl"] .article-body,
html[dir="rtl"] .article-meta-block,
html[dir="rtl"] .article-header,
html[dir="rtl"] .article-practice,
html[dir="rtl"] .article-related,
html[dir="rtl"] .rail .page-title,
html[dir="rtl"] .rail .lead,
html[dir="rtl"] .rail .eye {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .article-body ul,
html[dir="rtl"] .article-sources ol {
  padding-left: 0;
  padding-right: 1.2em;
}

html[dir="rtl"] .insights-filters {
  justify-content: flex-end;
}
