.blog-detail-page {
  background: var(--white);
}

.blog-detail-page .topbar__inner,
.blog-detail-page .navbar__inner,
.blog-detail-page .site-footer .shell,
.detail-shell {
  width: min(1192px, calc(100% - 48px));
  margin-inline: auto;
}

.blog-detail-page .nav-links a.is-active {
  color: var(--green-strong);
}

.detail-breadcrumb-hero {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.detail-breadcrumb-hero__pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 25, 45, 0.98), rgba(8, 35, 60, 0.92) 48%, rgba(6, 25, 45, 0.98));
  background-size: 90px 90px, 90px 90px, auto;
}

.detail-breadcrumb-hero__pattern::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  content: "";
  background: linear-gradient(42deg, rgba(131, 174, 72, 0.1), rgba(131, 174, 72, 0));
}

.detail-breadcrumb-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 78px;
  display: flex;
  align-items: center;
}

.detail-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 20px;
}

.detail-breadcrumb a:hover {
  color: var(--white);
}

.detail-breadcrumb span:last-child {
  display: inline-flex;
  max-width: min(520px, 52vw);
  min-height: 26px;
  align-items: center;
  overflow: hidden;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-main {
  padding: 38px 0 0;
  background: var(--white);
}

.detail-card,
.detail-cta,
.detail-related {
  width: 100%;
  margin-inline: auto;
}

.detail-card {
  overflow: hidden;
  padding: 30px 30px 26px;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.detail-back:hover {
  color: #4f8f24;
}

.detail-header {
  margin-top: 10px;
}

.detail-header h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(32px, 2.1vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.detail-header p {
  margin: 8px 0 0;
  color: var(--green-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 8px;
}

.detail-tags,
.detail-meta,
.detail-meta span {
  display: inline-flex;
  align-items: center;
}

.detail-tags {
  gap: 8px;
}

.detail-tag {
  min-height: 25px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f3dc;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 600;
}

.detail-tag--primary {
  background: var(--green);
  color: var(--white);
}

.detail-meta {
  gap: 12px;
  color: #717a8d;
  font-size: 13px;
  line-height: 18px;
}

.detail-meta span + span {
  position: relative;
  gap: 5px;
}

.detail-meta span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #c4cbd6;
  content: "";
}

.detail-meta svg,
.detail-related-card__meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #9aa3b4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-gallery {
  margin-top: 20px;
}

.detail-gallery__main {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe5ec;
}

.detail-gallery__main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 11px;
}

.detail-gallery__thumb {
  height: 78px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e5eaf1;
  cursor: pointer;
}

.detail-gallery__thumb.is-active {
  border-color: var(--green);
}

.detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-content {
  margin-top: 24px;
  color: #101828;
  font-size: 16px;
  line-height: 1.65;
}

.detail-content > * + * {
  margin-top: 16px;
}

.detail-content p {
  margin-bottom: 0;
}

.detail-content h2,
.detail-content h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing: 0;
}

.detail-content h2 {
  margin-top: 30px;
  font-size: 26px;
  line-height: 1.2;
}

.detail-content h3 {
  margin-top: 24px;
  font-size: 21px;
  line-height: 1.25;
}

.detail-content ul,
.detail-content ol {
  padding-left: 22px;
}

.detail-content li + li {
  margin-top: 6px;
}

.detail-content a {
  color: var(--green-strong);
  font-weight: 700;
  text-decoration: none;
}

.detail-content a:hover {
  text-decoration: underline;
}

.detail-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.detail-content th,
.detail-content td {
  padding: 12px 14px;
  border: 1px solid #e4e9f1;
  text-align: left;
  vertical-align: top;
}

.detail-content th {
  background: #f4f7f9;
  color: var(--ink);
  font-weight: 800;
}

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.detail-content .wp-block-pullquote {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.detail-content blockquote {
  margin: 0;
  padding: 16px 20px;
  border-left: 3px solid var(--green);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-content blockquote p {
  margin: 0;
}

.detail-cta {
  position: relative;
  min-height: 210px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy-deep);
  color: var(--white);
}

.detail-cta__pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 25, 45, 0.98), rgba(8, 39, 63, 0.92));
  background-size: 90px 90px, 90px 90px, auto;
}

.detail-cta__pattern::before {
  position: absolute;
  right: 3%;
  top: -30%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(131, 174, 72, 0.08);
  content: "";
}

.detail-cta__inner {
  position: relative;
  z-index: 1;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  text-align: center;
}

.detail-cta h2 {
  max-width: 620px;
  margin: 0;
  color: var(--white);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(30px, 2.3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.detail-cta p {
  margin: 12px 0 0;
  color: #b7bdcd;
  font-size: 14px;
  line-height: 20px;
}

.detail-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.detail-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.detail-button--primary {
  background: var(--green);
  color: var(--white);
}

.detail-button--whatsapp {
  background: #24c14a;
  color: var(--white);
}

.detail-related {
  margin-top: 30px;
  padding-bottom: 58px;
}

.detail-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.detail-related__header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.detail-related__header a {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.detail-related-card {
  min-width: 0;
}

.detail-related-card__link {
  display: flex;
  min-height: 360px;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.detail-related-card__media {
  position: relative;
  height: 164px;
  overflow: hidden;
  background: #dfe5ec;
}

.detail-related-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-related-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.detail-related-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px;
}

.detail-related-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #727a8d;
  font-size: 13px;
  line-height: 18px;
}

.detail-related-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.detail-related-card h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-related-card__source {
  margin-top: 8px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.detail-related-card__excerpt {
  margin-top: 8px;
  display: -webkit-box;
  overflow: hidden;
  color: #737b8e;
  font-size: 13px;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-related-card__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #e9edf2;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

@media (min-width: 1920px) {
  .blog-detail-page .topbar__inner,
  .blog-detail-page .navbar__inner,
  .blog-detail-page .site-footer .shell,
  .detail-shell {
    width: min(75vw, 1920px);
  }
}

@media (min-width: 1280px) and (max-width: 1919.98px) {
  .blog-detail-page .topbar__inner,
  .blog-detail-page .navbar__inner,
  .blog-detail-page .site-footer .shell,
  .detail-shell {
    width: min(1440px, calc(100% - clamp(192px, 20vw, 360px)));
  }
}

@media (max-width: 1279.98px) {
  .blog-detail-page .topbar__inner,
  .blog-detail-page .navbar__inner,
  .blog-detail-page .site-footer .shell,
  .detail-shell {
    width: min(960px, calc(100% - 48px));
  }

  .detail-card,
  .detail-cta,
  .detail-related {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .detail-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-detail-page .topbar__inner,
  .blog-detail-page .navbar__inner,
  .blog-detail-page .site-footer .shell,
  .detail-shell {
    width: min(100% - 40px, 560px);
  }

  .detail-breadcrumb-hero,
  .detail-breadcrumb-hero__inner {
    min-height: 112px;
  }

  .detail-breadcrumb {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 18px;
  }

  .detail-breadcrumb span:last-child {
    max-width: 100%;
  }

  .detail-main {
    padding-top: 28px;
  }

  .detail-card {
    padding: 18px 14px 20px;
  }

  .detail-header h1 {
    font-size: 27px;
    line-height: 1.12;
  }

  .detail-header p {
    font-size: 15px;
    line-height: 20px;
  }

  .detail-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-gallery {
    margin-top: 20px;
  }

  .detail-gallery__main {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    height: auto;
    border-radius: 8px;
  }

  .detail-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .detail-gallery__thumbs::-webkit-scrollbar {
    display: none;
  }

  .detail-gallery__thumb {
    height: 60px;
  }

  .detail-content {
    font-size: 14px;
    line-height: 1.5;
  }

  .detail-content table {
    display: block;
    overflow-x: auto;
    border-radius: 8px;
    white-space: nowrap;
  }

  .detail-content blockquote {
    padding: 16px 14px;
    font-size: 15px;
  }

  .detail-cta {
    min-height: 230px;
    margin-top: 22px;
  }

  .detail-cta__inner {
    min-height: 230px;
  }

  .detail-cta h2 {
    font-size: 28px;
  }

  .detail-cta__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }

  .detail-related {
    margin-top: 28px;
    padding-bottom: 46px;
  }

  .detail-related__header h2 {
    font-size: 24px;
  }

  .detail-related__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-related-card__link {
    min-height: 0;
  }
}

@media (max-width: 389.98px) {
  .detail-gallery__main {
    aspect-ratio: 1.35 / 1;
    height: auto;
  }

  .detail-header h1 {
    font-size: 25px;
  }
}
