/* =============================================================
   SILVER ARROW RENTALS — BLOG PAGE CSS
   blog.css
============================================================= */

/* ── HERO ──────────────────────────────────────────────────── */
.bl-hero {
  position: relative; min-height: 72vh;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden; padding-top: 90px;
}
.bl-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #161616 40%, #1a1008 70%, #0d0d0d 100%);
  transform: scale(1.12); will-change: transform;
}
.bl-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.35) 100%);
}
.bl-hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(241,90,36,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,90,36,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: blGridDrift 25s linear infinite;
}
@keyframes blGridDrift { 0%{background-position:0 0} 100%{background-position:80px 80px} }

.bl-hero-content {
  position: relative; z-index: 2;
  padding: 60px 60px 64px; max-width: 860px;
}
.bl-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(241,90,36,0.12); border: 1px solid rgba(241,90,36,0.3);
  color: var(--orange); font-size: 10px; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 20px;
}
.bl-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 900; line-height: 1.02; color: #fff; margin-bottom: 16px;
}
.bl-hero-title em { font-style: italic; color: var(--orange); }
.bl-hero-sub {
  font-size: clamp(14px,1.6vw,17px); color: rgba(255,255,255,0.55);
  max-width: 540px; margin-bottom: 32px; line-height: 1.7;
}
/* Search bar */
.bl-search-wrap {
  position: relative; max-width: 480px;
}
.bl-search-wrap input {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 100px;
  padding: 14px 54px 14px 22px; font-size: 14px; color: #fff;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.bl-search-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.bl-search-wrap input:focus { border-color: rgba(241,90,36,0.5); background: rgba(255,255,255,0.1); }
.bl-search-icon {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.4); pointer-events: none;
}

/* ── BODY LAYOUT ───────────────────────────────────────────── */
.bl-body {
  background: #111;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  max-width: 1380px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}
.bl-main { min-width: 0; padding-right: 48px; }
.bl-sidebar { border-left: 1px solid rgba(255,255,255,0.07); padding-left: 40px; }

/* ── FEATURED POST ─────────────────────────────────────────── */
.bl-featured {
  position: relative; border-radius: 24px; overflow: hidden;
  height: 480px; margin-bottom: 52px; cursor: pointer;
}
.bl-featured-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94);
}
.bl-featured:hover .bl-featured-img { transform: scale(1.05); }
.bl-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
}
.bl-featured-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 36px 32px;
}
.bl-featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; padding: 5px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.bl-featured-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--orange); margin-bottom: 10px;
}
.bl-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px;
}
.bl-featured-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.bl-featured-meta span { display: flex; align-items: center; gap: 5px; }

/* ── CATEGORY FILTER ───────────────────────────────────────── */
.bl-cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bl-cat-btn {
  padding: 7px 18px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.25s; font-family: var(--font-body);
  white-space: nowrap;
}
.bl-cat-btn:hover { border-color: rgba(241,90,36,0.4); color: #fff; }
.bl-cat-btn.active {
  background: var(--orange); border-color: var(--orange);
  color: #fff; box-shadow: 0 4px 18px rgba(241,90,36,0.3);
}

/* ── ARTICLE GRID ──────────────────────────────────────────── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── ARTICLE CARD ──────────────────────────────────────────── */
.bl-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.bl-card:hover {
  border-color: rgba(241,90,36,0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.bl-card-img-wrap {
  position: relative; height: 200px; overflow: hidden;
}
.bl-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
}
.bl-card:hover .bl-card-img-wrap img { transform: scale(1.08); }
.bl-card-img-wrap::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(17,17,17,0.5) 0%, transparent 50%);
}
/* Category tag on image */
.bl-card-tag {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; padding: 4px 10px; border-radius: 100px;
}
.tag-road     { background: rgba(241,90,36,0.2);  color: #f97316; border: 1px solid rgba(241,90,36,0.3); }
.tag-compare  { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.tag-tips     { background: rgba(22,199,132,0.2); color: #34d399; border: 1px solid rgba(22,199,132,0.3); }
.tag-life     { background: rgba(139,92,246,0.2); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.tag-corp     { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.tag-night    { background: rgba(6,182,212,0.2);  color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }

.bl-card-body { padding: 20px 20px 22px; }
.bl-card-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: #fff; line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-excerpt {
  font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.35);
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06);
}
.bl-card-author { display: flex; align-items: center; gap: 7px; }
.bl-author-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #d4440e);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.bl-card-time { display: flex; align-items: center; gap: 5px; }
.bl-read-link {
  color: var(--orange); font-size: 11px; font-weight: 700;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.bl-read-link:hover { gap: 7px; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.bl-sidebar-section { margin-bottom: 40px; }
.bl-sidebar-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--orange); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(241,90,36,0.2);
}
/* Popular articles */
.bl-popular-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer; transition: transform 0.2s;
}
.bl-popular-item:hover { transform: translateX(4px); }
.bl-popular-num {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  color: rgba(241,90,36,0.2); line-height: 1; flex-shrink: 0; min-width: 28px;
}
.bl-popular-title {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75);
  line-height: 1.45;
}
.bl-popular-read { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 3px; }

/* WhatsApp widget */
.bl-wa-card {
  background: rgba(37,211,102,0.07); border: 1px solid rgba(37,211,102,0.2);
  border-radius: 16px; padding: 24px; text-align: center;
}
.bl-wa-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(37,211,102,0.15); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: #25d366;
}
.bl-wa-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.bl-wa-card p { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 18px; line-height: 1.6; }
.bl-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff; border-radius: 100px;
  padding: 11px 20px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all 0.3s;
}
.bl-wa-btn:hover { background: #1da851; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

/* Tags cloud */
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tag {
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s;
}
.bl-tag:hover { border-color: rgba(241,90,36,0.4); color: var(--orange); }

/* ── NEWSLETTER STRIP ──────────────────────────────────────── */
.bl-newsletter {
  background: #0d0d0d; padding: 80px 40px;
  position: relative; overflow: hidden;
}
.bl-newsletter-orb {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(rgba(241,90,36,0.07), transparent 70%);
  animation: blOrbPulse 5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes blOrbPulse { 0%{transform:translate(-50%,-50%) scale(.85);opacity:.6} 100%{transform:translate(-50%,-50%) scale(1.1);opacity:1} }
.bl-newsletter-inner {
  max-width: 620px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.bl-newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800; color: #fff; margin-bottom: 10px;
}
.bl-newsletter-inner h2 em { font-style:italic; color:var(--orange); }
.bl-newsletter-inner p { font-size: 15px; color: rgba(255,255,255,0.45); margin-bottom: 32px; line-height: 1.7; }
.bl-newsletter-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
}
.bl-newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px;
  padding: 14px 22px; font-size: 14px; color: #fff;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.3s;
}
.bl-newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.bl-newsletter-form input:focus { border-color: rgba(241,90,36,0.5); }
.bl-newsletter-form button {
  background: var(--orange); color: #fff; border: none;
  border-radius: 100px; padding: 14px 28px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: all 0.3s;
}
.bl-newsletter-form button:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(241,90,36,0.4); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bl-body { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .bl-main { padding-right: 0; }
  .bl-sidebar { border-left: none; border-top: 1px solid rgba(255,255,255,0.07); padding-left: 0; padding-top: 40px; margin-top: 40px; }
}
@media (max-width: 768px) {
  /* Hero top padding follows the navbar height variable */
  .bl-hero { padding-top: var(--nav-h); }
  .bl-hero-content { padding: 40px 24px 48px; }
}
@media (max-width: 740px) {
  .bl-hero-content { padding: 32px 20px 40px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-featured { height: 300px; }
  .bl-newsletter { padding: 60px 20px; }
  .bl-newsletter-form { flex-direction: column; align-items: stretch; }
  .bl-newsletter-form button { width: 100%; }
}
@media (max-width: 480px) {
  .bl-body { padding: 32px 16px 48px; }
  .bl-hero-title { font-size: clamp(2.4rem, 11vw, 4rem); }
  .bl-cats-inner { padding: 0 16px; }
}

/* ── CMS-driven blog (§1.3) ───────────────────────────────────────────────
   The legacy layout reserved a 320px sidebar for hand-written "popular posts"
   and a newsletter box. Neither is CMS-backed, so the listing runs full width
   rather than leaving a dead column. */
.bl-body-single { grid-template-columns: 1fr; }
.bl-body-single .bl-main { padding-right: 0; }

.bl-intro { margin-bottom: 40px; color: rgba(255,255,255,0.78); }
.bl-intro h2, .bl-intro h3 { color: #fff; }

.bl-empty { color: rgba(255,255,255,0.55); font-size: 15px; }

.bl-card-title a { color: inherit; text-decoration: none; }
.bl-card-title a:hover { color: var(--orange); }
.bl-card-title a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.bl-author-name { color: rgba(255,255,255,0.7); font-weight: 600; }

/* Cards without a cover image still need their body padded away from the edge. */
.bl-card > .bl-card-body:first-child { padding-top: 22px; }

/* ── article detail ──────────────────────────────────────────────────────
   The legacy site had an index but never an article template — every card
   linked to "#" — so these are new. */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 96px;
  color: rgba(255,255,255,0.82);
}

.post-crumb { margin-bottom: 28px; }
.post-crumb a {
  color: var(--orange); font-size: 12px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.04em;
}
.post-crumb a:hover { text-decoration: underline; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: balance;
}

.post-meta {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 24px;
}

.post-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.post-body { font-size: 16.5px; line-height: 1.75; }
.post-body h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: #fff; margin: 40px 0 14px;
}
.post-body h3 { font-size: 19px; font-weight: 700; color: #fff; margin: 32px 0 12px; }
.post-body h4 { font-size: 16px; font-weight: 700; color: #fff; margin: 26px 0 10px; }
.post-body p, .post-body .cms-text { margin: 0 0 20px; }
.post-body a { color: var(--orange); }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }

.post-body figure { margin: 32px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.post-body figcaption {
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-top: 10px; text-align: center;
}

.post-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--orange);
}
.post-body blockquote p { font-size: 19px; line-height: 1.55; color: #fff; margin-bottom: 8px; }
.post-body blockquote cite {
  font-size: 13px; font-style: normal; color: rgba(255,255,255,0.5);
}

.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 48px 0 0; padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.post-tags li {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 6px 13px;
}

@media (max-width: 720px) {
  .post { padding: 40px 18px 72px; }
}
