/* =========================================================
   Marrakech Desert Excursions — Morocco Travel Guide / Blog Page
   Matches: marrakech-desert-trips.com/blogs/
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f172a;
  --blue:    #2563eb;
  --orange:  #f97316;
  --orange-h:#ea6c09;
  --orange-lt:#fff7ed;
  --gold:    #f59e0b;
  --green:   #16a34a;
  --green-lt:#dcfce7;
  --red:     #ef4444;
  --text:    #111827;
  --text2:   #374151;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --bg:      #f8fafc;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; padding: 0; margin: 0; }
button, input, select, textarea { font-family: inherit; }

/* ── CONTAINER ───────────────────────────────────────────── */
.bl-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── BLOG HERO ───────────────────────────────────────────── */
.bl-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1587974928442-77dc3e0dba72?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}
.bl-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,16,36,0.88) 0%, rgba(10,16,36,0.60) 100%);
}
.bl-hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
  padding: 56px 24px;
  margin: 0 auto;
  text-align: center;
}
.bl-breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.bl-breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.18s; }
.bl-breadcrumb a:hover { color: #f97316; }
.bl-breadcrumb span { margin: 0 6px; opacity: 0.4; }

.bl-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.bl-hero h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: #fbbf24;
}
.bl-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.75);
  max-width: 620px; margin: 0 auto 20px;
}
.bl-hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12.5px; color: rgba(255,255,255,0.7);
}
.bl-hero-meta strong { color: rgba(255,255,255,0.9); }

/* ── CATEGORY FILTER ─────────────────────────────────────── */
.bl-cats-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px; /* header height */
  z-index: 100;
  padding: 0 24px;
}
.bl-cats-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.bl-cats-inner::-webkit-scrollbar { display: none; }
.bl-cat {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: none;
  font-size: 13.5px; font-weight: 500; color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}
.bl-cat:hover { border-color: var(--orange); color: var(--orange); }
.bl-cat.active { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 600; }
.bl-cat-count {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  transition: background 0.18s;
}
.bl-cat.active .bl-cat-count { background: rgba(255,255,255,0.25); }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.bl-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── FEATURED SECTION ────────────────────────────────────── */
.bl-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--orange);
  margin-bottom: 20px;
}
.bl-section-label::after {
  content: '';
  flex: 1; height: 1.5px;
  background: linear-gradient(to right, var(--border), transparent);
}

.bl-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.bl-feat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  display: block;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.bl-feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bl-feat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.bl-feat-card:hover img { transform: scale(1.05); }
.bl-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,10,25,0.88) 0%, rgba(5,10,25,0.20) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.bl-feat-cat {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}
.bl-feat-title {
  font-size: 20px; font-weight: 800;
  color: #fff; line-height: 1.25;
  margin-bottom: 8px;
}
.bl-feat-excerpt {
  font-size: 13px; color: rgba(255,255,255,0.72);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.bl-feat-meta {
  font-size: 12px; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 12px;
}

/* ── ALL GUIDES GRID ─────────────────────────────────────── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.bl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}
.bl-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.bl-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.bl-card:hover .bl-card-img img { transform: scale(1.06); }
.bl-card-cat {
  position: absolute; top: 12px; left: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: var(--orange); color: #fff;
}
.bl-card-cat.cat-planning  { background: #3b82f6; }
.bl-card-cat.cat-culture   { background: #8b5cf6; }
.bl-card-cat.cat-daytrips  { background: var(--green); }
.bl-card-cat.cat-city      { background: #0891b2; }
.bl-card-cat.cat-nature    { background: #16a34a; }
.bl-card-cat.cat-desert    { background: var(--orange); }

.bl-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.bl-card-title {
  font-size: 15.5px; font-weight: 700;
  color: var(--navy); line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.18s;
}
.bl-card:hover .bl-card-title { color: var(--orange); }
.bl-card-excerpt {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}
.bl-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: auto;
}
.bl-card-date { font-size: 12px; color: var(--muted); }
.bl-card-read {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--orange);
}
.bl-card-read svg { flex-shrink: 0; }

/* Load more */
.bl-load-more {
  text-align: center; margin-top: 36px;
}
.bl-load-more button {
  background: none;
  border: 2px solid var(--border);
  color: var(--text2);
  padding: 12px 32px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.bl-load-more button:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-lt); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.bl-sidebar { display: flex; flex-direction: column; gap: 24px; }

.bl-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.bl-widget-title {
  font-size: 15px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

/* Popular posts */
.bl-pop-list { display: flex; flex-direction: column; gap: 14px; }
.bl-pop-item { display: flex; gap: 12px; align-items: flex-start; }
.bl-pop-num {
  width: 28px; height: 28px;
  background: var(--orange-lt); color: var(--orange);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0; margin-top: 1px;
}
.bl-pop-title { font-size: 13.5px; font-weight: 600; color: var(--navy); line-height: 1.4; cursor: pointer; transition: color 0.18s; }
.bl-pop-title:hover { color: var(--orange); }
.bl-pop-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Tags */
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tag {
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text2);
  cursor: pointer;
  transition: all 0.18s;
}
.bl-tag:hover { background: var(--orange-lt); border-color: var(--orange); color: var(--orange); }

/* Newsletter widget */
.bl-nl-widget { background: var(--navy); border-color: transparent; }
.bl-nl-widget .bl-widget-title { color: #fff; border-bottom-color: var(--orange); }
.bl-nl-widget p { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.bl-nl-widget input {
  width: 100%; padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  border-radius: 8px; font-size: 14px;
  color: #fff; outline: none; margin-bottom: 8px;
  transition: border-color 0.18s;
}
.bl-nl-widget input::placeholder { color: rgba(255,255,255,0.35); }
.bl-nl-widget input:focus { border-color: var(--orange); }
.bl-nl-widget button {
  width: 100%; padding: 11px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background 0.18s;
}
.bl-nl-widget button:hover { background: var(--orange-h); }

/* Trip CTA widget */
.bl-trip-widget {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: transparent;
}
.bl-trip-widget .bl-widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.bl-trip-widget p { font-size: 13.5px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.bl-trip-widget a {
  display: block; text-align: center;
  background: #fff; color: var(--orange);
  padding: 11px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: background 0.18s, transform 0.18s;
}
.bl-trip-widget a:hover { background: #fff7ed; transform: scale(1.02); }

/* ── FOOTER ───────────────────────────────────────────────── */
.bl-footer { background: #060d1f; padding: 56px 0 0; }
.bl-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bl-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.bl-footer-logo { display: flex; align-items: center; gap: 10px; }
.bl-footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 300px; }
.bl-footer-social { display: flex; gap: 8px; }
.bl-footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all 0.18s;
}
.bl-footer-social a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.bl-footer-col h5 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.bl-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.bl-footer-col li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.18s, padding-left 0.18s; }
.bl-footer-col li a:hover { color: var(--orange); padding-left: 4px; }
.bl-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; flex-wrap: wrap; gap: 10px;
}
.bl-footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.bl-footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.bl-footer-legal a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.18s; }
.bl-footer-legal a:hover { color: var(--orange); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bl-main { grid-template-columns: 1fr; }
  .bl-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .bl-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .bl-featured-grid { grid-template-columns: 1fr; }
  .bl-feat-card { height: 240px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-sidebar { grid-template-columns: 1fr; }
  .bl-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .bl-footer-bottom { flex-direction: column; text-align: center; }
}
