.blog-detail-page .hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid #dbe2ec;
}

.blog-detail-page .hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-bottom: 28px;
}

.blog-detail-page .hero-title {
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(44px, 5.4vw, 62px);
  line-height: 0.96;
  letter-spacing: 0.2px;
  font-weight: 800;
  max-width: none;
  margin: 0;
}

.blog-detail-page .article {
  padding: 24px 0 68px;
}

.blog-detail-page .article .wrap {
  max-width: 1220px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 24px;
  box-shadow: none;
}

.blog-detail-page .article-meta {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-detail-page .article-share {
  margin: 0 0 12px;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.blog-detail-page .share-trigger {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #cfd8e6;
  background: #f8fafc;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.blog-detail-page .share-trigger:hover,
.blog-detail-page .share-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: #bfcce0;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.blog-detail-page .share-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: none;
}

.blog-detail-page .share-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #d8dfea;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  display: none;
  z-index: 8;
}

.blog-detail-page .share-pop.open {
  display: grid;
  gap: 6px;
}

.blog-detail-page .share-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d8dfea;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-detail-page .share-btn:hover {
  transform: translateY(-1px);
  border-color: #c7d2e5;
  background: #ffffff;
}

.blog-detail-page .share-btn.whatsapp {
  border-color: #b7e4c7;
  background: #ecfdf3;
  color: #166534;
}

.blog-detail-page .share-btn.copy {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.blog-detail-page .meta-chip {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d8dfea;
  background: #f7f9fd;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.blog-detail-page .article h1 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 74px);
  line-height: 0.98;
  max-width: none;
  color: #0f172a;
}

.blog-detail-page .article-date {
  margin-top: 8px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  color: #1e293b;
}

.blog-detail-page .article-banner {
  margin-top: 20px;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.blog-detail-page .article h2 {
  margin: 32px 0 10px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.blog-detail-page .article p {
  margin: 0 0 18px;
  color: #334155;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.45;
  max-width: 70ch;
}

.blog-detail-page .article-intro {
  font-weight: 700;
  color: #26324b;
}

.blog-detail-page .article ul {
  margin: 0 0 24px 1.2em;
  list-style: disc;
  display: block;
  padding: 0;
  max-width: none;
}

.blog-detail-page .article li {
  color: #2c3b51;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.45;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.blog-detail-page .article-gallery {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.blog-detail-page .gallery-item {
  position: relative;
  grid-column: span 6;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dce3ee;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  isolation: isolate;
}

.blog-detail-page .gallery-item.wide {
  grid-column: 1 / -1;
}

.blog-detail-page .gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.blog-detail-page .gallery-item img.poster-head-focus {
  object-position: center 22%;
}

.blog-detail-page .gallery-item.wide img {
  aspect-ratio: 16 / 8.5;
}

.blog-detail-page .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.05) 35%, rgba(10, 18, 32, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.blog-detail-page .gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px 15px;
  color: #f8fafc;
}

.blog-detail-page .gallery-kicker {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-detail-page .gallery-title {
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}

.blog-detail-page .gallery-note {
  margin-top: 6px;
  color: rgba(241, 245, 249, 0.9);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.35;
  max-width: 54ch;
}

.blog-detail-page .gallery-item.wide .gallery-title {
  font-size: clamp(22px, 2.4vw, 33px);
}

.blog-detail-page .gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

/*
 * Dark mode: dark canvas + high-contrast type (headings white, body cyan on navy).
 * Fixes light grey text on white/light grey when ui-modern sets p/h colors but page bg stays light.
 */
body.blog-detail-page.dark-mode {
  background: #0a111f !important;
  color: #e2e8f0 !important;
}

body.blog-detail-page.dark-mode main.article,
body.blog-detail-page.dark-mode .article,
body.blog-detail-page.dark-mode .article .wrap {
  background: transparent !important;
}

body.blog-detail-page.dark-mode .article h1,
body.blog-detail-page.dark-mode .article h2 {
  color: #ffffff !important;
}

body.blog-detail-page.dark-mode .article-date {
  color: #e2e8f0 !important;
}

body.blog-detail-page.dark-mode .article p {
  color: #a5f3fc !important;
}

body.blog-detail-page.dark-mode .meta-chip {
  border-color: #475569 !important;
  background: #1e293b !important;
  color: #f8fafc !important;
}

body.blog-detail-page.dark-mode .share-trigger {
  border-color: #475569 !important;
  background: #1e293b !important;
  color: #f8fafc !important;
}

body.blog-detail-page.dark-mode .share-trigger:hover,
body.blog-detail-page.dark-mode .share-trigger:focus-visible {
  border-color: #64748b !important;
  background: #334155 !important;
}

body.blog-detail-page.dark-mode .share-pop {
  border-color: #334155 !important;
  background: #0f172a !important;
}

body.blog-detail-page.dark-mode .share-btn {
  border-color: #475569 !important;
  background: #1e293b !important;
  color: #e0f2fe !important;
}

body.blog-detail-page.dark-mode .share-btn:hover {
  border-color: #64748b !important;
  background: #334155 !important;
}

body.blog-detail-page.dark-mode .share-btn.whatsapp {
  border-color: #2f855a !important;
  background: #12372a !important;
  color: #bbf7d0 !important;
}

body.blog-detail-page.dark-mode .article-intro {
  color: #bae6fd !important;
}

body.blog-detail-page.dark-mode .article li {
  color: #a5f3fc !important;
}

body.blog-detail-page.dark-mode .hero {
  border-bottom-color: #334155 !important;
}

body.blog-detail-page.dark-mode .gallery-item {
  border-color: #334155 !important;
}

@media (max-width: 900px) {
  .blog-detail-page .hero-title {
    font-size: 34px;
  }

  .blog-detail-page .article {
    padding: 18px 0 52px;
  }

  .blog-detail-page .article .wrap {
    padding: 0 16px;
  }

  .blog-detail-page .article h1 {
    font-size: 40px;
  }

  .blog-detail-page .article-date {
    font-size: 22px;
  }

  .blog-detail-page .article-banner {
    min-height: 300px;
    border-radius: 12px;
  }

  .blog-detail-page .article h2 {
    font-size: 32px;
  }

  .blog-detail-page .article p {
    font-size: 17px;
  }

  .blog-detail-page .article-meta {
    margin-top: 2px;
  }

  .blog-detail-page .article-share {
    margin: 0 0 10px;
  }

  .blog-detail-page .share-trigger {
    width: 40px;
    height: 40px;
  }

  .blog-detail-page .share-pop {
    min-width: 156px;
    padding: 7px;
  }

  .blog-detail-page .share-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .blog-detail-page .meta-chip {
    font-size: 12px;
    min-height: 24px;
    padding: 0 8px;
  }

  .blog-detail-page .article li {
    font-size: 15px;
  }

  .blog-detail-page .article-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-detail-page .gallery-item,
  .blog-detail-page .gallery-item.wide {
    grid-column: 1 / -1;
    border-radius: 10px;
  }

  .blog-detail-page .gallery-item img,
  .blog-detail-page .gallery-item.wide img {
    aspect-ratio: 16 / 10;
  }

  .blog-detail-page .gallery-caption {
    padding: 13px 14px 12px;
  }

  .blog-detail-page .gallery-kicker {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .blog-detail-page .gallery-title {
    font-size: 17px;
  }

  .blog-detail-page .gallery-item.wide .gallery-title {
    font-size: 20px;
  }

  .blog-detail-page .gallery-note {
    margin-top: 4px;
    font-size: 12px;
  }
}
