/* =========================================================
   BLOG PAGE — page-specific styles
   Builds on top of base.css tokens/utilities (same system as
   categories.css: --grad, --primary, --ink, --line, --light,
   --r-card, --r-md, --r-pill, --sh-card, --sh-soft, --sh-lift,
   --sh-glass, --header-h, --ease, --star).
   ========================================================= */

/* ---------- Hero ---------- */
.hero--blog {
  min-height: 600px;
  height: auto;
  padding-block: 0 40px;
}
.hero-inner--blog {
  padding-block: calc(var(--logo-h) + 20px) 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero--blog .hero-title {
  color: #fff;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 26px;
}
.hero-stats li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-stat-icon {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  flex-shrink: 0;
}
.hero-stat-icon i {
  width: 18px;
  height: 18px;
}
.hero-stats b {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.hero-stats small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
}

.hero-copy .btn {
  margin-top: 30px;
}

/* Featured card, right side of hero */
.hero-featured {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--sh-glass);
}
.hero-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-featured-media {
  height: 280px;
}
.hero-featured-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero-featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
}
.hero-featured-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-featured-author img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.hero-featured-author b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.hero-featured-author small {
  display: block;
  font-size: 11.5px;
  color: rgba(30, 41, 59, 0.55);
}
.hero-featured-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.6);
  white-space: nowrap;
}
.hero-featured-read i {
  width: 13px;
  height: 13px;
}

/* ---------- Search & filters ---------- */
#search {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.search-card {
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--sh-card);
  padding: 16px 24px;
}
.search-form {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1fr auto;
  gap: 12px;
  align-items: center;
}
.search-input {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--light, #f8fafc);
  padding: 13px 40px 13px 16px;
  font-size: 13.5px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.3s;
}
.search-input input:focus {
  border-color: var(--primary);
}
.search-input-icon {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  color: rgba(30, 41, 59, 0.4);
  pointer-events: none;
}
.field--select .field-row {
  /* base .field > span (a one-class + type-selector rule) has higher
     specificity than base .field-row's own "display: flex" and was
     winning, stacking the select and chevron instead of placing them
     side by side — re-declare flex here at higher specificity to fix it. */
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
}
.search-btn {
  white-space: nowrap;
}

.popular-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.popular-searches > span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.75);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tag-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Shared: eyebrow / section head row ---------- */
.eyebrow--onbrand {
  color: rgba(255, 255, 255, 0.85);
}
.sec-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
  margin-bottom: 30px;
}
.sec-head--row .sec-title {
  margin: 0;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.link-arrow i {
  width: 15px;
  height: 15px;
}

/* ---------- Featured article (2-col card) ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.featured-media {
  min-height: 320px;
}
.featured-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.featured-body {
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-body .eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.featured-body h2 {
  margin-top: 10px;
  font-size: clamp(22px, 2.4vw, 28px);
}
.featured-body p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(30, 41, 59, 0.6);
}
.featured-body .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.55);
}
.article-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta i {
  width: 14px;
  height: 14px;
}
.article-author img {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Latest articles grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.article-card {
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 70px -34px rgba(7, 27, 52, 0.32);
}
.article-media {
  position: relative;
  height: 170px;
}
.article-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.article-card:hover .article-media img {
  transform: scale(1.08);
}
.article-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-body {
  padding: 20px;
}
.article-body h3 {
  font-size: 15.5px;
  line-height: 1.4;
}
.article-body p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(30, 41, 59, 0.6);
}
.article-body .article-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}

/* ---------- Browse by category ---------- */
.browse-cat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.browse-cat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s;
}
.browse-cat-pill:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card);
  border-color: transparent;
}
.browse-cat-icon {
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: rgba(91, 61, 245, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.browse-cat-icon i {
  width: 19px;
  height: 19px;
}
.browse-cat-copy b {
  display: block;
  font-size: 13.5px;
}
.browse-cat-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(30, 41, 59, 0.5);
}

/* ---------- Popular destinations (overlay style) ---------- */
.blog-dest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.blog-dest-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
}
.blog-dest-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.blog-dest-card:hover img {
  transform: scale(1.1);
}
.blog-dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 52, 0) 45%, rgba(7, 27, 52, 0.75) 100%);
}
.blog-dest-copy {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  color: #fff;
}
.blog-dest-copy b {
  display: block;
  font-size: 14px;
}
.blog-dest-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Travel tips banner ---------- */
.travel-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1.1fr 1.2fr auto;
  align-items: center;
  gap: 28px;
  border-radius: 30px;
  background: var(--grad);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}
.travel-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 70% at 95% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 70% at 5% 100%, rgba(255, 255, 255, 0.1), transparent 70%);
}
.travel-banner-icon {
  display: grid;
  place-items: center;
  height: 68px;
  width: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex-shrink: 0;
}
.travel-banner-icon i {
  width: 30px;
  height: 30px;
}
.travel-banner-copy .eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.travel-banner-copy h2 {
  margin-top: 6px;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}
.travel-banner-features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 28px;
}
.travel-banner-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.travel-banner-features span {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.travel-banner-features i {
  width: 14px;
  height: 14px;
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--primary);
  white-space: nowrap;
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- Trending articles (horizontal row) ----------
   grid-auto-columns: minmax(200px, 1fr) let a single 1fr track (whenever
   there are few trending posts) stretch to the full row width instead of
   staying a compact card — a flex row with a fixed card share doesn't
   have that failure mode, and matches every other slider on the site. */
.trending-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  padding: 4px 4px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trending-row::-webkit-scrollbar {
  display: none;
}
.trending-row.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.trending-card {
  flex: 0 0 calc((100% - 4 * 18px) / 5);
  scroll-snap-align: start;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.trending-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card);
}
.trending-media {
  height: 110px;
}
.trending-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.trending-body {
  padding: 14px;
}
.trending-body h4 {
  font-size: 13px;
  line-height: 1.4;
}
.trending-meta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(30, 41, 59, 0.5);
}

/* ---------- Newsletter ---------- */
.newsletter-card {
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-soft);
  padding: clamp(20px, 2.6vw, 30px) clamp(24px, 3vw, 36px);
}
.newsletter-icon {
  display: grid;
  place-items: center;
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
}
.newsletter-icon i {
  width: 24px;
  height: 24px;
}
.newsletter-copy {
  flex: 1;
  min-width: 200px;
}
.newsletter-copy h2 {
  font-size: 19px;
}
.newsletter-copy p {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(30, 41, 59, 0.6);
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  font-size: 13px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.3s;
}
.newsletter-form input:focus {
  border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browse-cat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .blog-dest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .travel-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .travel-banner-features {
    justify-content: center;
  }
  .trending-card {
    flex: 0 0 calc((100% - 2 * 18px) / 3);
  }
}
@media (max-width: 1024px) {
  .hero--blog {
    height: auto;
  }
  .hero-inner--blog {
    grid-template-columns: 1fr;
    padding-block: calc(var(--logo-h) + 20px) 40px;
  }
  .hero-featured {
    max-width: 460px;
    margin-inline: auto;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 260px;
  }
  #search {
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .hero-inner--blog {
    padding-block: calc(var(--logo-h) + 40px) 32px;
  }
  .hero-featured-media {
    height: 220px;
  }
  .hero-featured-foot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .search-input {
    grid-column: 1 / -1;
  }
  .search-btn {
    grid-column: 1 / -1;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .browse-cat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trending-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
  .newsletter-card {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .hero-stats {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .browse-cat-row {
    grid-template-columns: 1fr;
  }
  .blog-dest-grid {
    grid-template-columns: 1fr;
  }
  .trending-card {
    flex: 0 0 85vw;
  }
  /* min-width:280px (set above) doesn't get relaxed by the 768px stacking
     rule, so the newsletter input+button pair still overflows a 320-360px
     card. */
  .newsletter-form {
    min-width: 0;
  }
  .blog-gallery-grid {
    grid-template-columns: 1fr;
  }
  .blog-tips-card {
    padding: 28px;
  }
  .blog-quote-card {
    padding: 32px 24px;
  }
  .blog-author-card {
    padding: 24px;
  }
  .blog-cta-card {
    padding: 40px 24px;
  }
}

/* =========================================================
   BLOG DETAIL PAGE CUSTOM CSS
   ========================================================= */
.blog-detail-main {
  background: #fff;
}

/* ---------- Grid Layout ---------- */
.blog-detail-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px;
}
@media (min-width: 768px) {
  .blog-detail-container {
    padding: 64px 32px;
  }
}
.blog-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .blog-detail-grid {
    grid-template-columns: 7fr 3fr;
    gap: 56px;
    align-items: start;
  }
}
.blog-detail-left {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.blog-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .blog-detail-sidebar {
    position: sticky;
    top: 100px;
  }
}

/* ---------- Hero ---------- */
.blog-detail-hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  padding-top: 120px;
  background-color: var(--ink);
  overflow: hidden;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-hero-img {
  object-fit: cover;
  object-position: center;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(7, 27, 52, 0.8), rgba(7, 27, 52, 0.4));
}
.blog-hero-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-hero-content {
  max-width: 900px;
  text-align: left;
}
.blog-breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.blog-breadcrumb-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--ease);
}
.blog-breadcrumb-link:hover {
  color: #fff;
}
.blog-breadcrumb-current {
  color: #fff;
}
.blog-breadcrumb-icon {
  width: 16px;
  height: 16px;
}
.blog-hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
}
.blog-hero-excerpt {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 800px;
}
.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.blog-meta-badge {
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
}
.blog-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-author-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
}
.blog-author-name {
  color: #fff;
  font-weight: 600;
}
.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 24px;
}
.blog-meta-item svg {
  width: 16px;
  height: 16px;
}

/* ---------- Featured Image ---------- */
.blog-featured-section {
  margin-top: 48px;
  margin-bottom: 64px;
}
.blog-featured-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 600px;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-lift);
}

/* ---------- Content ---------- */
.blog-detail-body {
  display: flex;
  flex-direction: column;
}
.blog-detail-content {
  width: 100%;
  padding: 0;
  font-size: 18px;
  color: #2c3e50;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-detail-content p {
  margin-bottom: 32px;
}
/* CMS-authored content can include a raw <table> or embedded <iframe> with
   no size constraints of its own — contain both instead of letting them
   push the 320-430px column wide. */
.blog-detail-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.blog-detail-content iframe,
.blog-detail-content video {
  max-width: 100%;
}
.blog-detail-content h2 {
  font-size: 34px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 64px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.blog-detail-content h3 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}
.blog-detail-content ul {
  list-style: none;
  padding-left: 8px;
  margin-bottom: 32px;
}
.blog-detail-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.blog-detail-content img {
  border-radius: var(--r-card);
  margin: 48px 0;
  box-shadow: var(--sh-card);
  width: 100%;
  height: auto;
}
.blog-detail-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  font-style: italic;
  font-size: 20px;
  color: rgba(7, 27, 52, 0.7);
  margin-bottom: 32px;
}

/* ---------- Image Gallery ---------- */
.blog-gallery-section {
  width: 100%;
}
.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-lift);
}
.blog-gallery-item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.blog-gallery-img {
  object-fit: cover;
  transition: transform 0.7s ease;
}
.blog-gallery-item:hover .blog-gallery-img {
  transform: scale(1.05);
}
.blog-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blog-gallery-item:hover .blog-gallery-caption {
  opacity: 1;
}
.blog-gallery-caption p {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* ---------- Quote Block ---------- */
.blog-quote-section {
  width: 100%;
}
.blog-quote-card {
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--sh-lift);
  padding: 56px;
  text-align: center;
  border: 1px solid var(--line);
  position: relative;
}
.blog-quote-icon-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: var(--sh-soft);
}
.blog-quote-icon-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.blog-quote-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.blog-quote-text {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 32px;
}
.blog-quote-author {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.blog-quote-role {
  font-size: 14px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---------- Travel Tips ---------- */
.blog-tips-section {
  width: 100%;
}
.blog-tips-card {
  border-radius: var(--r-card);
  background: var(--grad);
  padding: 48px;
  box-shadow: var(--sh-lift);
  position: relative;
  overflow: hidden;
}
.blog-tips-dec-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: #fff;
  opacity: 0.05;
  border-radius: 50%;
  filter: blur(40px);
  transform: translate(50%, -50%);
}
.blog-tips-dec-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: #000;
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(30px);
  transform: translate(-50%, 50%);
}
.blog-tips-inner {
  position: relative;
  z-index: 10;
}
.blog-tips-inner h3 {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 32px;
}
.blog-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px;
}
.blog-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.blog-tip-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.blog-tip-content h4 {
  color: #fff;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 4px;
}
.blog-tip-content p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Tags ---------- */
.blog-tags-section {
  width: 100%;
  margin: 16px 0;
}
.blog-tags-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-tags-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 8px;
}
.blog-tag-link {
  padding: 6px 16px;
  background: #f3f4f6;
  color: var(--light);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--ease);
}
.blog-tag-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- Author Card ---------- */
.blog-author-section {
  width: 100%;
  margin-top: 32px;
}
.blog-author-card {
  background: #f9fafb;
  border-radius: var(--r-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .blog-author-card {
    flex-direction: row;
    align-items: flex-start;
  }
}
.blog-author-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--sh-soft);
  flex-shrink: 0;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .blog-author-avatar-wrap {
    margin: 0;
  }
}
.blog-author-content {
  text-align: center;
}
@media (min-width: 768px) {
  .blog-author-content {
    text-align: left;
  }
}
.blog-author-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}
.blog-author-name-lg {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.blog-author-bio {
  color: var(--light);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.blog-author-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .blog-author-social {
    justify-content: flex-start;
  }
}
.blog-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  box-shadow: var(--sh-soft);
  transition: all var(--ease);
}
.blog-social-link:hover {
  color: var(--primary);
  box-shadow: var(--sh-card);
}
.blog-social-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Previous / Next Posts ---------- */
.blog-prev-next-section {
  width: 100%;
  margin-top: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.blog-prev-next-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .blog-prev-next-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.blog-prev-post, .blog-next-post {
  width: 100%;
  flex: 1;
}
@media (min-width: 768px) {
  .blog-prev-post {
    display: flex;
    justify-content: flex-start;
  }
  .blog-next-post {
    display: flex;
    justify-content: flex-end;
  }
}
.blog-nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.blog-prev-link {
  align-items: flex-start;
  text-align: left;
}
.blog-next-link {
  align-items: flex-end;
  text-align: right;
}
.blog-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  transition: color var(--ease);
}
.blog-nav-label svg {
  width: 16px;
  height: 16px;
}
.blog-nav-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  transition: color var(--ease);
}
.blog-prev-link:hover .blog-nav-label,
.blog-prev-link:hover .blog-nav-title,
.blog-next-link:hover .blog-nav-label,
.blog-next-link:hover .blog-nav-title {
  color: var(--primary);
}
.blog-nav-divider {
  display: none;
}
@media (min-width: 768px) {
  .blog-nav-divider {
    display: block;
    width: 1px;
    height: 64px;
    background: var(--line);
  }
}

/* ---------- CTA Section ---------- */
.blog-cta-section {
  width: 100%;
}
.blog-cta-card {
  position: relative;
  background: var(--grad);
  border-radius: var(--r-card);
  padding: 80px 48px;
  text-align: center;
  box-shadow: var(--sh-lift);
  overflow: hidden;
}
.blog-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.blog-cta-dec-1, .blog-cta-dec-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: #fff;
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(40px);
  mix-blend-mode: overlay;
}
.blog-cta-dec-1 {
  top: -100px;
  right: -100px;
}
.blog-cta-dec-2 {
  bottom: -100px;
  left: -100px;
}
.blog-cta-content {
  position: relative;
  z-index: 10;
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blog-cta-subtitle {
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 16px;
}
.blog-cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}
.blog-cta-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  max-width: 600px;
}
.blog-cta-btn {
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--sh-card);
  text-decoration: none;
}
.blog-cta-btn:hover {
  background: #f9fafb;
  box-shadow: var(--sh-lift);
  transform: translateY(-2px);
}

/* ---------- Related Posts ---------- */
.blog-related-section {
  background: #f9fafb;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.blog-related-header {
  text-align: center;
  margin-bottom: 48px;
}
.blog-related-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
}
.blog-related-desc {
  font-size: 18px;
  color: var(--light);
  margin-top: 16px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}
.blog-related-card {
  height: 100%;
}
.blog-related-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
}