/* ============================================================
   AL-HABIB REAL ESTATE — PRIVACY POLICY PAGE (Arabic / RTL)
   BEM prefix: pp-
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --pp-dark-blue:      #0c3144;
  --pp-nav-blue:       #103c55;
  --pp-mid-blue:       #16506e;
  --pp-body-dark:      #354956;
  --pp-body-text:      #282828;
  --pp-gold-label:     #7f6f33;
  --pp-sidebar-active: #16506e;
  --pp-sidebar-dim:    #606060;
  --pp-border:         #dcdcdc;
  --pp-bg-light:       #f8fafc;
  --pp-bg-page:        #f8fbfc;
  --pp-link-color:     #16506e;
  --pp-tag-bg:         #e2e8f0;
  --pp-tag-text:       #606060;
  --pp-meta-text:      #9a9a9a;
  --pp-heading-text:   #16506e;
  --pp-px:             96px;
  --pp-py:             32px;
  --pp-gap:            48px;
  --pp-content-w:      612px;
  --pp-sidebar-w:      400px;
  --pp-radius:         8px;
  --pp-card-img-h:     256px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.pp-breadcrumbs {
  background-color: var(--pp-nav-blue);
  padding: 12px var(--pp-px);
  direction: rtl;
}

.pp-breadcrumbs__inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.pp-breadcrumbs__current {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #b4d2e1;
  padding: 16px 8px;
  line-height: 1;
}

.pp-breadcrumbs__sep {
  color: #86b8d1;
  flex-shrink: 0;
  margin: 0 2px;
}

.pp-breadcrumbs__link {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #86b8d1;
  text-decoration: none;
  padding: 16px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.pp-breadcrumbs__link:hover {
  color: #ffffff;
}

/* ── Content Area ────────────────────────────────────────────── */
.pp-content-area {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: var(--pp-gap);
  padding: var(--pp-py) var(--pp-px);
  background-color: var(--pp-bg-page);
  direction: rtl;
}

/* ── Content Column ──────────────────────────────────────────── */
.pp-content-col {
  flex: 1 1 var(--pp-content-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pp-title-block {
  padding: 12px 0 48px;
  text-align: right;
}

.pp-title {
  font-family: '29LT Zarid', '29LT Zarid Sans', system-ui, sans-serif;
  font-size: 60px;
  font-weight: 700;
  color: var(--pp-dark-blue);
  line-height: 1.25;
  letter-spacing: -2px;
  margin: 0;
  direction: auto;
}

.pp-body {
  text-align: right;
}

.pp-section-heading {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pp-body-dark);
  line-height: 1.5;
  margin: 0 0 12px;
  direction: auto;
}

.pp-paragraph {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--pp-body-dark);
  line-height: 1.5;
  margin: 0 0 12px;
  direction: auto;
}

.pp-link {
  color: var(--pp-link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.pp-link:hover {
  color: var(--pp-dark-blue);
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.pp-sidebar {
  flex: 0 0 var(--pp-sidebar-w);
  width: var(--pp-sidebar-w);
  position: sticky;
  top: 80px;
  direction: rtl;
}

.pp-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.pp-sidebar__item {
  display: block;
  font-family: '29LT Zarid', '29LT Zarid Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
  color: var(--pp-sidebar-dim);
  text-decoration: none;
  padding: 24px 0;
  border-bottom: 1px solid var(--pp-border);
  opacity: 0.5;
  transition: color 0.2s, opacity 0.2s;
  width: 100%;
}

.pp-sidebar__item--active {
  color: var(--pp-sidebar-active);
  opacity: 1;
}

.pp-sidebar__item:hover {
  opacity: 1;
  color: var(--pp-sidebar-active);
}

/* ── Related Articles Bar ────────────────────────────────────── */
.pp-related-bar {
  background-color: var(--pp-bg-light);
  display: flex;
  align-items: center;
  padding: 24px var(--pp-px);
  direction: rtl;
  min-height: 88px;
}

.pp-related-bar__label {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--pp-gold-label);
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ── News Section ────────────────────────────────────────────── */
.pp-news-section {
  background-color: var(--pp-bg-page);
  padding: 0 var(--pp-px) 48px;
  direction: rtl;
}

.pp-news-grid {
  display: flex;
  gap: var(--pp-gap);
  align-items: flex-start;
}

/* ── News Card ───────────────────────────────────────────────── */
.pp-news-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.pp-news-card__img-wrap {
  height: var(--pp-card-img-h);
  border-radius: var(--pp-radius);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

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

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

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

.pp-news-card__title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--pp-meta-text);
  width: 100%;
  direction: rtl;
}

.pp-news-card__read-time {
  flex: 1 0 0;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.pp-news-card__read-time strong {
  font-weight: 700;
}

.pp-news-card__date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pp-news-card__source {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.pp-news-card__source-name {
  font-weight: 700;
}

.pp-news-card__date {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.pp-news-card__heading {
  font-family: '29LT Zarid', '29LT Zarid Sans', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--pp-heading-text);
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0;
  text-align: right;
  direction: auto;
}

.pp-news-card__excerpt {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--pp-body-text);
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
  text-align: right;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pp-news-card__tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pp-news-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background-color: var(--pp-tag-bg);
  border-radius: 9999px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-tag-text);
  white-space: nowrap;
  line-height: 1;
}

/* ── Responsive: Tablet (≤1024px) ───────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pp-px: 48px;
    --pp-sidebar-w: 280px;
  }

  .pp-title {
    font-size: 48px;
  }

  .pp-news-card__heading {
    font-size: 24px;
  }
}

/* ── Responsive: Mobile (≤768px) ────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --pp-px: 24px;
    --pp-py: 24px;
    --pp-gap: 32px;
  }

  .pp-breadcrumbs {
    padding: 10px var(--pp-px);
  }

  .pp-content-area {
    flex-direction: column;
    gap: 32px;
  }

  .pp-content-col {
    width: 100%;
  }

  .pp-sidebar {
    flex: none;
    width: 100%;
    position: static;
    order: -1;
  }

  .pp-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .pp-title-block {
    padding-bottom: 24px;
  }

  .pp-sidebar__item {
    font-size: 16px;
    padding: 14px 0;
  }

  .pp-news-grid {
    flex-direction: column;
    gap: 32px;
  }

  .pp-news-card__heading {
    font-size: 22px;
  }

  .pp-related-bar {
    padding: 16px var(--pp-px);
    min-height: auto;
  }

  .pp-news-section {
    padding-bottom: 32px;
  }
}

/* ── Responsive: Small Mobile (≤480px) ──────────────────────── */
@media (max-width: 480px) {
  :root {
    --pp-px: 16px;
  }

  .pp-title {
    font-size: 28px;
  }

  .pp-news-card__heading {
    font-size: 20px;
  }

}
