/* =====================================================================
   ORANGE SPACES – blog.css   (blog list only: /dubai-real-estate-blog/)
   Same look as the old Orange blog page. Everything is scoped under
   .blog-page so nothing leaks into base.css / other pages.

   SECTIONS
     1. Page tokens
     2. Hero
     3. Featured article
     4. Article grid + cards
     5. Pagination
     6. About the blog
   ===================================================================== */


/* ── 1. PAGE TOKENS ─────────────────────────────────────────────── */
.blog-page {
  --bl-dark-green: #0e2a1e;
  --bl-mid-green: #1a3d2b;
  --bl-gold: #c9a84c;
  --bl-gold-2: #b89a4e;
  --bl-ivory: #faf7f0;
  --bl-navy: #1a2744;
  --bl-emerald: #2a7a5e;
  --bl-muted: #0f1013;
--bl-serif: var(--font-display);
--bl-ui: var(--font-body);

background: var(--bl-ivory);
color: var(--bl-navy);
font-family: var(--bl-ui);
  
  -webkit-font-smoothing: antialiased;
}
.blog-page a { color: inherit; text-decoration: none; }
.blog-page img { display: block; max-width: 100%; }

.bl-container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
@media (max-width: 600px) { .bl-container { padding: 0 1.25rem; } }

.bl-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--bl-gold);
}
.bl-eyebrow--dark { color: var(--bl-gold-2); }


/* ── 2. HERO ────────────────────────────────────────────────────── */
.bl-hero {
  position: relative; overflow: hidden;
  min-height: 45vh; display: flex; align-items: center;
  padding: calc(var(--nav-height, 64px) + 56px) 0 64px;   /* room for the fixed navbar */
  background: var(--bl-dark-green);
}
.bl-hero::before {                       /* gold dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(201,168,76,.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bl-hero::after {                        /* bottom fade */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(14,42,30,.5));
}
.bl-hero__inner {
  position: relative; z-index: 1; width: 100%;
  max-width: 1550px; margin: 0 auto; padding: 0 150px;
}
.bl-hero__title {
  max-width: 820px; margin: 14px 0 22px;
  font-family: var(--font-display, serif); font-size: 50px; font-weight: 500; line-height: 1.12; color: #fff;
}
.bl-hero__title em { font-style: italic; color: rgba(255,255,255,.75); }
.bl-hero__sub { max-width: 640px; font-size: 15px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.65); }

.bl-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 26px; }
.bl-crumbs li {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.bl-crumbs li + li::before { content: "›"; opacity: .6; }
.bl-crumbs a:hover { color: var(--bl-gold); }
.bl-crumbs [aria-current] { color: var(--bl-gold); }

@media (max-width: 1200px) { .bl-hero__inner { padding: 0 40px; } }
@media (max-width: 768px) {
  .bl-hero { min-height: 0; padding: calc(var(--nav-height, 64px) + 40px) 0 52px; text-align: center; }
  .bl-hero__inner { padding: 0 24px; }
  .bl-hero__title { font-size: 30px; margin-left: auto; margin-right: auto; }
  .bl-hero__sub { margin: 0 auto; }
  .bl-crumbs ol { justify-content: center; }
}


/* ── 3. FEATURED ARTICLE ────────────────────────────────────────── */
.bl-feat { padding-bottom: 2.5rem; }
.bl-feat__card {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch;
  padding: 3.5rem 0; border-bottom: 1px solid rgba(26,39,68,.1);
}
.bl-feat__thumb { border-radius: 20px; position: relative; display: block; overflow: hidden; background: rgba(26,39,68,.05); aspect-ratio: 16 / 10; }
.bl-feat__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.bl-feat__card:hover .bl-feat__thumb img { transform: scale(1.03); }
.bl-feat__badge {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 2px;
  background: rgba(26,39,68,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bl-gold-2);
}
.bl-feat__body { display: flex; flex-direction: column; justify-content: center; }
.bl-feat__meta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bl-gold-2); }
.bl-feat__title {
  margin-top: 14px; font-family: var(--bl-serif); font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--bl-navy);
}
.bl-feat__title a:hover { color: var(--bl-emerald); }
.bl-feat__excerpt { margin-top: 1.25rem; font-size: 15px; line-height: 1.7; color: var(--bl-muted); }
.bl-feat__link {
  align-self: flex-start; margin-top: 2rem; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--bl-emerald); transition: gap .2s ease;
}
.bl-feat__link:hover { gap: 12px; }

@media (min-width: 768px) {
  .bl-feat { padding-bottom: 4rem; }
  .bl-feat__card { grid-template-columns: 7fr 5fr; gap: 2.5rem; }
  .bl-feat__thumb { aspect-ratio: auto; min-height: 460px; }
  .bl-feat__thumb img { position: absolute; inset: 0; }
  .bl-feat__excerpt { font-size: 17px; }
}
@media (max-width: 600px) { .bl-feat__card { padding: 2.5rem 0; } }


/* ── 4. ARTICLE GRID + CARDS ────────────────────────────────────── */
.bl-grid-section { padding: 3rem 0 6rem; }
.bl-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 2.5rem; }
.bl-grid-title {
  font-family: var(--bl-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500;
  letter-spacing: -.01em; color: var(--bl-navy);
}
.bl-grid-count { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bl-gold-2); white-space: nowrap; }

.bl-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 560px)  { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } .bl-grid-section { padding-bottom: 8rem; } }
@media (max-width: 600px)  { .bl-grid-count { display: none; } }

.bl-card {   position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
  border-radius: 18px;
  overflow: hidden; }
.bl-card:hover { transform: translateY(-3px); }
.bl-card__thumb { border-radius: 18px; position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(26,39,68,.05); }
.bl-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.bl-card:hover .bl-card__thumb img { transform: scale(1.04); }
.bl-card__overlay {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(to top, rgba(26,39,68,.7) 0%, transparent 50%);
}
.bl-card:hover .bl-card__overlay { opacity: 1; }
.bl-card__cat {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 2px;
  background: rgba(250,247,240,.95); font-size: 9.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bl-navy);
}
.bl-card__num {
  position: absolute; right: 12px; top: 12px; font-family: var(--bl-serif); font-size: 12px;
  letter-spacing: .05em; color: var(--bl-ivory); mix-blend-mode: difference;
}
.bl-card__body { flex: 1; display: flex; flex-direction: column; padding-top: 1.25rem; }
.bl-card__meta { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bl-gold-2); }
.bl-card__title {
  margin-top: .5rem; font-family: var(--bl-serif); font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--bl-navy); transition: color .2s ease;
}
/* whole card is clickable, but only the title is the real link (one link per card) */
.bl-card__title a::after { content: ""; position: absolute; inset: 0; }
.bl-card:hover .bl-card__title { color: var(--bl-emerald); }
.bl-card__excerpt {
  margin-top: .5rem; font-size: 13.5px; line-height: 1.65; color: var(--bl-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card__more {
  margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(26,39,68,.65);
}
.bl-card__line { width: 24px; height: 1px; background: var(--bl-gold-2); flex-shrink: 0; }
.bl-empty { color: var(--bl-muted); }


/* ── 5. PAGINATION ──────────────────────────────────────────────── */
.bl-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin: 60px 0 0; font-family: var(--bl-ui);
}
.bl-pagination a, .bl-pagination span {
  position: relative; min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid rgba(14,31,59,.1); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--bl-navy); transition: all .25s ease;
}
.bl-pagination a:hover { transform: translateY(-2px); border-color: var(--bl-gold); box-shadow: 0 10px 26px rgba(201,168,76,.2); }
.bl-pagination a[rel="prev"], .bl-pagination a[rel="next"] { padding: 0 18px; font-weight: 700; letter-spacing: .03em; }
.bl-pagination .is-active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--bl-dark-green), var(--bl-mid-green));
  box-shadow: 0 14px 30px rgba(14,42,30,.28);
}
.bl-pagination .is-active::after {
  content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--bl-gold);
}
.bl-pagination__dots { border: none !important; background: transparent !important; min-width: 20px !important; padding: 0 !important; }
@media (max-width: 768px) {
  .bl-pagination { gap: 6px; margin-top: 40px; }
  .bl-pagination a, .bl-pagination span { min-width: 38px; height: 38px; padding: 0 10px; font-size: 12px; }
}


/* ── 6. ABOUT THE BLOG ──────────────────────────────────────────── */
.bl-about { padding: 5rem 0 6rem; background: #fff; border-top: 1px solid rgba(26,39,68,.08); }
.bl-about__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.bl-about h2 {
  margin: 12px 0 18px; font-family: var(--bl-serif); font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500; line-height: 1.2; color: var(--bl-navy);
}
.bl-about h3 { margin-bottom: 10px; font-family: var(--bl-serif); font-size: 1.3rem; font-weight: 600; color: var(--bl-navy); }
.bl-about p { font-size: 15px; line-height: 1.8; color: var(--bl-muted); }
.bl-about__links { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.bl-about__links a {
  display: inline-flex; justify-content: space-between; gap: 12px; padding: 14px 18px;
  border: 1px solid rgba(26,39,68,.12); border-radius: 16px; font-size: 14px; font-weight: 500;
  color: var(--bl-navy); transition: border-color .2s, color .2s;
}
.bl-about__links a:hover { border-color: var(--bl-gold); color: var(--bl-emerald); }
.bl-about__cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .bl-about__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bl-about__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
