.blog-detail-page {
  padding: 48px 0 70px;
  background: linear-gradient(180deg, #f5f8fb 0, #fff 420px);
}

.blog-detail-page__container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
  align-items: start;
}

.blog-article {
  overflow: hidden;
  border: 1px solid #e7ebf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 39, 55, .08);
}

.blog-article__header {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 48px 34px;
  text-align: center;
}

.blog-article__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #e33c3c;
  background: #fff0f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-article__header h1 {
  margin: 0;
  color: #16202c;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.blog-article__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: #75808d;
  font-size: 13px;
}

.blog-article__meta i { margin-right: 5px; color: #e85151; }
.blog-article__share { min-height: 32px; margin-top: 20px; }

.blog-gallery {
  margin: 0 34px;
  overflow: hidden;
  border-radius: 16px;
  background: #11151a;
}

.blog-gallery__stage {
  position: relative;
  height: clamp(330px, 48vw, 610px);
  overflow: hidden;
  touch-action: pan-y;
}

.blog-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.blog-gallery__slide.is-active { opacity: 1; visibility: visible; }

.blog-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.blog-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  font-size: 28px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.blog-gallery__arrow:hover,
.blog-gallery__arrow:focus-visible {
  background: #ff4c4c;
  outline: 0;
  transform: scale(1.06);
}

.blog-gallery__arrow--prev { left: 16px; }
.blog-gallery__arrow--next { right: 16px; }

.blog-gallery__counter {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  font-size: 12px;
  font-weight: 700;
}

.blog-article__content {
  max-width: 850px;
  margin: 0 auto;
  padding: 46px 52px 58px;
  color: #394553;
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.blog-article__content p,
.blog-article__content h4 {
  width: auto !important;
  margin: 0 0 1.35em !important;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  font-weight: 400;
  line-height: inherit;
}

.blog-article__content h1,
.blog-article__content h2,
.blog-article__content h3 {
  margin: 1.65em 0 .65em;
  color: #172331;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  line-height: 1.35;
}

.blog-article__content h1 { font-size: 1.65em; }
.blog-article__content h2 { font-size: 1.35em; }
.blog-article__content h3 { font-size: 1.16em; }

.blog-article__content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
}

/* Article links stay normal; no URL labels, boxes, or hover overlays. */
.blog-article__content a,
.blog-article__content a:hover,
.blog-article__content a:focus {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  outline-offset: 3px;
  color: #0879bd;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-article__content a::before,
.blog-article__content a::after { content: none !important; display: none !important; }

.blog-article__content blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border: 0;
  border-left: 4px solid #ff4c4c;
  border-radius: 0 10px 10px 0;
  background: #fff5f5;
  color: #303b47;
}

.blog-article__comments {
  margin: 0 52px 52px;
  padding-top: 30px;
  border-top: 1px solid #e7ebf0;
}

.blog-article__comments h2 {
  margin: 0 0 18px;
  color: #172331;
  font-size: 22px;
  font-weight: 700;
}

.blog-sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(28, 39, 55, .06);
}

.blog-sidebar__label {
  margin-bottom: 4px;
  color: #8a949f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.blog-sidebar__ad {
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
}

.blog-sidebar__ad:last-child { border-bottom: 0; }
.blog-sidebar__ad .ads-img-cntr { display: block; width: 100%; margin: 0 auto; }
.blog-sidebar__ad img { max-width: 100%; height: auto; border-radius: 9px; }

@media (max-width: 991px) {
  .blog-detail-page { padding-top: 28px; }
  .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 600px) {
  .blog-detail-page { padding: 18px 0 42px; }
  .blog-detail-page__container { width: min(100% - 20px, 1280px); }
  .blog-article { border-radius: 13px; }
  .blog-article__header { padding: 30px 20px 24px; }
  .blog-article__header h1 { font-size: clamp(25px, 8vw, 34px); }
  .blog-article__meta { margin-top: 17px; }
  .blog-gallery { margin: 0 10px; border-radius: 10px; }
  .blog-gallery__stage { height: clamp(250px, 78vw, 430px); }
  .blog-gallery__arrow { width: 40px; height: 40px; margin-top: -20px; }
  .blog-gallery__arrow--prev { left: 9px; }
  .blog-gallery__arrow--next { right: 9px; }
  .blog-article__content { padding: 32px 22px 42px; font-size: 16px; line-height: 1.85; }
  .blog-article__content h1 { font-size: 1.45em; }
  .blog-article__content h2 { font-size: 1.25em; }
  .blog-article__comments { margin: 0 22px 38px; }
  .blog-sidebar { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-gallery__slide,
  .blog-gallery__arrow { transition: none; }
}
