/* Blog post details page (blog/blog-post-details/index.html) */

/* Override Twenty Twenty-Five body / preset typography on post pages */
body.iso-blog-post {
  font-family: "Roboto", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  color: rgba(0, 0, 0, 0.78) !important;
  background-color: #fff !important;
  --wp--preset--font-family--manrope: "Roboto", sans-serif;
  --wp--preset--font-size--large: 1rem;
  --wp--preset--font-size--medium: 1rem;
  --wp--preset--font-size--small: 0.875rem;
  --wp--style--root--padding-top: 0;
  --wp--style--root--padding-right: 0;
  --wp--style--root--padding-bottom: 0;
  --wp--style--root--padding-left: 0;
}

.bp-page {
  background: #f7f8fa;
  min-height: 100vh;
  font-family: "Roboto", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  color: rgba(0, 0, 0, 0.78);
}

/* @media only screen and (max-width: 768px) {
  .bp-page {
    margin-top: 0rem;
    padding-top: 4rem;
  }
} */

.bp-page .container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Article layout ── */

.bp-article {
  padding: 3rem 0 2.5rem 0;
  margin-top: 5rem;
}

.bp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Main content ── */

.bp-header {
  margin-bottom: 1.75rem;
}

.bp-title {
  font-family: "Oswald", sans-serif !important;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: #000;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
}

.bp-subtitle {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.55 !important;
  max-width: 58ch;
  font-family: "Roboto", sans-serif !important;
}

.bp-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-family: "Roboto", sans-serif !important;
}

.bp-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px;
}

.bp-meta strong {
  color: #000;
  font-weight: 600;
}

.bp-featured {
  margin: 0 0 1.75rem;
  width: 100%;
}

.bp-featured__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0rem;
  box-sizing: border-box;
  display: block;
}

.bp-quote {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary-color, #58669f);
  background: rgba(88, 102, 159, 0.06);
  border-radius: 0 12px 12px 0;
}

.bp-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.6 !important;
  font-family: "Roboto", sans-serif !important;
}

.bp-body {
  font-family: "Roboto", sans-serif !important;
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.7 !important;
  font-size: 1rem !important;
}

/* WordPress block editor content */
.bp-page .bp-body.post-content {
  font-family: "Roboto", sans-serif !important;
  color: rgba(0, 0, 0, 0.78);
  font-size: 1rem !important;
}

.bp-page .bp-body.post-content :is(p, .wp-block-paragraph) {
  margin: 0 0 1.1rem !important;
  padding: 0 !important;
  line-height: 1.7 !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: rgba(0, 0, 0, 0.78) !important;
}

.bp-page .bp-body.post-content :is(h2, h3, h4, .wp-block-heading) {
  margin: 1.75rem 0 1rem !important;
  padding: 0 !important;
  font-family: "Oswald", sans-serif !important;
  font-weight: 600 !important;
  color: #000 !important;
  line-height: 1.25 !important;
}

.bp-page .bp-body.post-content h2,
.bp-page .bp-body.post-content h2.wp-block-heading {
  font-size: 1.5rem !important;
}

.bp-page .bp-body.post-content h3,
.bp-page .bp-body.post-content h3.wp-block-heading {
  font-size: 1.35rem !important;
}

.bp-page .bp-body.post-content h4,
.bp-page .bp-body.post-content h4.wp-block-heading {
  font-size: 1.15rem !important;
}

.bp-page .bp-body.post-content :is(ul, ol, .wp-block-list) {
  margin: 0 0 1.25rem 1.5rem !important;
  padding: 0 0 0 0.25rem !important;
  display: block !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 1rem !important;
}

.bp-page .bp-body.post-content :is(ul, ul.wp-block-list) {
  list-style: disc !important;
}

.bp-page .bp-body.post-content :is(ol, ol.wp-block-list) {
  list-style: decimal !important;
}

.bp-page .bp-body.post-content li {
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  line-height: 1.65 !important;
  display: list-item !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: rgba(0, 0, 0, 0.78) !important;
}

.bp-page .bp-body.post-content li:last-child {
  margin-bottom: 0 !important;
}

.bp-page .bp-body.post-content strong {
  font-weight: 700 !important;
  color: #000 !important;
}

.bp-page .bp-body.post-content :is(hr, .wp-block-separator) {
  margin: 1.75rem 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
  height: 0 !important;
  opacity: 1 !important;
}

.bp-page .bp-body.post-content .wp-block-image {
  margin: 1.5rem 0 !important;
}

.bp-page .bp-body.post-content .wp-block-image img,
.bp-page .bp-body.post-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  display: block;
}

.bp-page .bp-body.post-content .wp-element-caption {
  margin-top: 0.5rem !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  color: rgba(0, 0, 0, 0.55) !important;
  text-align: center;
  font-family: "Roboto", sans-serif !important;
}

.bp-page .bp-body.post-content a {
  color: var(--primary-color, #58669f) !important;
  text-decoration: underline;
}

.bp-page .bp-body.post-content a:hover {
  opacity: 0.85;
}

/* Neutralise WP block font-size utility classes inside post content */
.bp-page .bp-body.post-content :is(p, li, .wp-block-paragraph).has-large-font-size,
.bp-page .bp-body.post-content :is(p, li, .wp-block-paragraph).has-medium-font-size,
.bp-page .bp-body.post-content :is(p, li, .wp-block-paragraph).has-small-font-size {
  font-size: 1rem !important;
}

.bp-page .bp-body.post-content :is(h2, h3, h4, .wp-block-heading).has-large-font-size {
  font-size: inherit !important;
}

.bp-body p {
  margin-bottom: 1.1rem;
  line-height: 1.7 !important;
}

.bp-body__heading {
  margin: 1.75rem 0 1rem !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: #000;
}

.bp-body__list {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bp-body__list li {
  line-height: 1.65 !important;
  padding-left: 0.25rem;
}

.bp-body__list strong {
  color: #000;
}

.bp-tag {
  text-decoration: none;
}

/* ── Sidebar cards ── */

.bp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 6rem;
}

.bp-card {
  background: #fff;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 1.35rem;
  /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04); */
}

.bp-card--author {
  text-align: center;
}

.bp-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #f7f8fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px;
  margin: 0 auto 0.75rem;
  display: block;
}

.bp-card__name {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #000;
}

.bp-card__role {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Roboto", sans-serif !important;
}

.bp-card__bio {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.55 !important;
  font-family: "Roboto", sans-serif !important;
}

.bp-card__title {
  font-family: "Oswald", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #000;
  margin-bottom: 1rem !important;
}

/* Featured products */

.bp-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bp-products__link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  transition: opacity 0.15s ease;
}

.bp-products__link:hover {
  opacity: 0.8;
}

.bp-products__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #e7e9ee;
}

.bp-products__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bp-products__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #000;
  line-height: 1.3 !important;
  font-family: "Roboto", sans-serif !important;
}

.bp-products__cat {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Roboto", sans-serif !important;
}

/* Tags */

.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bp-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(88, 102, 159, 0.1);
  color: var(--primary-color, #58669f);
  border: 1px solid rgba(88, 102, 159, 0.18);
  font-family: "Roboto", sans-serif !important;
}

/* Share */

.bp-share {
  display: flex;
  gap: 0.65rem;
}

.bp-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.bp-share a:hover {
  background: var(--primary-color, #58669f);
  color: #fff;
}

/* ── You May Also Like ── */

.bp-also-like {
  background: #fff;
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bp-also-like__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.bp-also-like__title {
  font-family: "Oswald", sans-serif !important;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem) !important;
  font-weight: 700 !important;
  color: #000;
}

.bp-also-like__sub {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.55 !important;
  max-width: 52ch;
  font-family: "Roboto", sans-serif !important;
}

.bp-also-like__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  font-family: "Roboto", sans-serif !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bp-also-like__cta:hover {
  border-color: var(--primary-color, #58669f);
  background: rgba(88, 102, 159, 0.04);
}

.bp-also-like__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bp-post-card {
  background: transparent;
}

.bp-post-card__link {
  display: block;
  color: inherit;
}

.bp-post-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #e7e9ee;
}

.bp-post-card__meta {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Roboto", sans-serif !important;
}

.bp-post-card__title-row {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bp-post-card__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #000;
  line-height: 1.25 !important;
}

.bp-post-card__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #000;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;

  display: none !important;
}

.bp-post-card__excerpt {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.58);
  line-height: 1.5 !important;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Roboto", sans-serif !important;
}

.bp-post-card__date {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 500;
  flex-shrink: 0;
}

/* ── Responsive ── */

@media only screen and (max-width: 1024px) {
  .bp-layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .bp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .bp-card--author {
    grid-column: 1 / -1;
  }

  .bp-also-like__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .bp-article {
    padding: 2rem 0 1.5rem;
    margin-top: 0rem;
  }

  .bp-sidebar {
    grid-template-columns: 1fr;
  }

  .bp-also-like__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bp-also-like__grid {
    grid-template-columns: 1fr;
  }

  .bp-featured__image {
    padding: 0rem;
    max-height: 280px;
  }
}
