/* ============================================================
   AL-HABIB REAL ESTATE — NEWS & INSIGHTS SECTION
   Shared component styles — works for both RTL and LTR.
   ============================================================ */

.mah-news {
  background: var(--mah-bg-news, #f8fafc);
  padding: var(--mah-section-py, 96px) 0;
}

.mah-news .container-xl {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 40px;
  row-gap: 40px;
  align-items: end;
}

.mah-news .row {
  grid-column: 1 / -1;
}

.mah-news__titles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mah-news__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #7f6f33;
  margin: 0;
  line-height: 1.25;
}

.mah-news__heading {
  font-family: '29LT Zarid', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0c3144;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.mah-news__viewall {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0c3144;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 8px;
  grid-column: 2;
  grid-row: 1;
  transition: color 0.3s ease;
}

.mah-news__viewall:hover {
  color: #1f688f;
}

/* ── News card ── */
.mah-news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.mah-news-card__img-wrap {
  width: 100%;
  height: 256px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px;
}

.mah-news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mah-news-card:hover .mah-news-card__img {
  transform: scale(1.04);
}

.mah-news-card__body {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  text-align: start;
}

.mah-news-card__title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mah-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  color: #1f688f;
}

.mah-news-card__source-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mah-news-card__source,
.mah-news-card__date {
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9A9A9A;
}

.mah-news-card__readtime {
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9A9A9A;
}

.mah-news-card__readtime strong {
  font-weight: 700;
}

.mah-news-card__title {
  font-family: '29LT Zarid', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: #16506e;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.03em;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mah-news-card__excerpt {
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0c3144;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mah-news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  flex-shrink: 0;
}

.mah-news-card__tag {
  display: inline-flex;
  align-items: center;
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #606060;
  background: #e2e8f0;
  border-radius: 9999px;
  padding: 2px 10px;
  height: 24px;
  transition: background 0.3s ease;
}

.mah-news-card__tag:hover {
  background: #cdd6e0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mah-news {
    padding: 48px 0;
  }

  .mah-news .container-xl {
    display: flex;
    flex-direction: column;
    align-items: unset;
  }

  .mah-news__header  { order: 1; }
  .mah-news .row     { order: 2; }

  .mah-news__viewall {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    grid-column: unset;
    grid-row: unset;
  }

  .mah-news__heading {
    font-size: clamp(24px, 6vw, 32px);
  }

  .mah-news-card__body {
    padding: 0 8px;
    gap: 16px;
  }

  .mah-news-card__title {
    font-size: 20px;
  }
}
