/* ── Root tokens ─────────────────────────────────────── */
:root {
  --bh-bg: #dff0f0; /* outer section teal-mist  */
  --bh-card: #ffffff;
  --bh-title: #144345; /* deep teal                */
  --bh-accent: #1a8fa0; /* teal link / icon colour  */
  --bh-text: #444c55;
  --bh-muted: #7a8693;
  --bh-bc-active: #1a8fa0;
  --bh-radius: 18px;
  --bh-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
  --bh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sidebar-toc a {
  color: #666;
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  transition: 0.2s;
}

.sidebar-toc a.active,
.sidebar-toc a:hover {
  color: #233838;
  font-weight: 600 !important;
  border-left: 2px solid #1a8fa0;
}

@media (min-width: 767px) {
  /* The default state */
  .sidebar-sticky {
    position: relative;
    transition: top 0.3s ease;
    margin-top: 20px;
    padding-top: 0px !important;
  }

  /* The state applied only when scrolling down */
  .sidebar-sticky.is-sticky {
    position: fixed;
    top: 0px;
    width: 370px;
    z-index: 1000;
  }
}

.content p {
  font-size: 16px;
  line-height: 31px;
  color: #233838;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

.offer-coursebox {
  background: linear-gradient(172.37deg, #2da573 33.47%, #0b8c56 99.82%);
  color: #fff;
  border-radius: 10px;
  margin-top: 20px;
}
.offer-coursebox > div {
  padding: 0 10px 15px;
  text-align: center;
}
.offer-coursebox > img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
}
a.btn.btn-primary {
  background: #ffd028;
  border-radius: 10px;
  color: #000;
  font-family: Open Sans;
  font-weight: 700;
  font-style: Bold;
  font-size: 15px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0%;
  padding: 12px 24px;
}
.offer-coursebox p {
  font-family: Open Sans;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 160%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: bottom;
  margin: 10px 0;
}
.sidebar-toc {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
}

.sidebar-toc h3 {
  font-size: 20px;
  margin: 0 0 15px 0;
  font-family: "Open Sans";
  font-weight: 500;
}
.offer-coursebox div h2 {
  margin: 0;
}
.offer-coursebox div h2 a {
  font-family: Work Sans;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: bottom;
  color: #ffffff;
  margin: 0;
}

.sidebar-toc ul {
  max-height: 420px;
  height: fit-content;
  overflow-y: auto;
  padding-right: 10px;
  text-align: start;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #18b5d7 #eef2f3;
}
.bh-hero-spacer .content h2 {
  background: #ebfbff;
  padding: 10px 15px;
  font-family: Work Sans;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 24px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  border-radius: 7px;
  color: #144345 !important;
}

.bh-hero-spacer .content h2 span {
  color: #144345 !important;
}

/* Chrome, Edge, Safari */
.sidebar-toc ul::-webkit-scrollbar {
  width: 6px; /* slim scrollbar */
}

.sidebar-toc ul::-webkit-scrollbar-track {
  background: #eef2f3;
  border-radius: 10px;
}

.sidebar-toc ul::-webkit-scrollbar-thumb {
  background: #18b5d7;
  border-radius: 10px;
}

.sidebar-toc ul::-webkit-scrollbar-thumb:hover {
  background: #18b5d7;
}

.sidebar-toc ul li {
  margin-bottom: 10px;
}

.sidebar-toc ul li a {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  leading-trim: NONE;
  line-height: 160%;
  letter-spacing: 0%;
  text-align: start;
}

.bh-excerpt-content {
  border: 1px solid #dddddd;
  padding: 15px;
  border-radius: 15px;
}

.bh-excerpt-content h3 {
  font-family: Work Sans;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 24px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  margin: 0;
}

.bh-hero-spacer .container {
  max-width: 1200px;
}

/* ── Outer wrapper ───────────────────────────────────── */
.bh-hero-wrap {
  padding: 52px 15px;
  font-family: var(--bh-font);
  background: linear-gradient(to left, #0076a266, #67d3b857);
}

/* ── Card ────────────────────────────────────────────── */
.bh-hero-card {
  display: flex;
  align-items: center;
  gap: 42px;
  max-width: 1170px;
  margin: 0 auto;
  background: var(--bh-card);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  padding: 32px 32px 32px 36px;
  overflow: hidden;
}

/* ── Left column ─────────────────────────────────────── */
.bh-hero-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Breadcrumbs ─────────────────────────────────────── */
.bh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--bh-muted);
  line-height: 1.4;
  margin-bottom: 15px;
}
.bh-breadcrumbs a {
  color: var(--bh-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.bh-breadcrumbs a:hover {
  color: var(--bh-accent);
}
.bh-bc-sep {
  color: var(--bh-muted);
}
.bh-bc-current {
  color: var(--bh-accent);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* ── Title ───────────────────────────────────────────── */
.bh-hero-title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--bh-title);
  letter-spacing: -0.3px;
}

/* ── Meta row ────────────────────────────────────────── */
.bh-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 22px;
}

/* Author block */
.bh-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bh-author-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  /* border: 2px solid var(--bh-bg); */
  flex-shrink: 0;
}
.bh-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bh-published-by {
  font-size: 18px;
  color: var(--bh-muted);
  text-transform: capitalize;
  letter-spacing: 0.4px;
  font-style: italic;
}
.bh-author-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--bh-title);
  text-decoration: none;
  transition: color 0.2s;
}
.bh-author-name:hover {
  color: var(--bh-accent);
}

/* Date block */
.bh-date-block {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--bh-text);
}
.bh-icon {
  width: 15px;
  height: 15px;
  color: var(--bh-muted);
  flex-shrink: 0;
}

/* ── Right column ────────────────────────────────────── */
.bh-hero-right {
  position: relative;
  flex: 0 0 545px;
  max-width: 545px;
  width: 100%;
}

/* ── Thumbnail ───────────────────────────────────────── */
.bh-thumb-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.bh-thumb {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Read time badge */
.bh-read-time {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  background: rgb(255 255 255);
  backdrop-filter: blur(4px);
  color: #233838;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 14px;
  width: fit-content;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.bh-read-time svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Share button ────────────────────────────────────── */
.bh-share-wrap {
  position: absolute;
  top: 0px;
  right: 0;
  z-index: 10;
}
.bh-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: none;
  border-bottom-left-radius: 20px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bh-title);
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.bh-share-btn svg {
  width: 15px;
  height: 15px;
}

/* Dropdown */
.bh-share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.bh-share-dropdown.is-open {
  display: flex;
}

.bh-share-dropdown a,
.bh-share-dropdown .bh-copy-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--bh-text);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.bh-share-dropdown a:hover,
.bh-share-dropdown .bh-copy-link:hover {
  background: var(--bh-bg);
  color: var(--bh-title);
}
.bh-share-dropdown svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 720px) {
  .bh-hero-card {
    flex-direction: column;
    padding: 20px 20px 24px;
    gap: 20px;
  }
  .bh-hero-right {
    width: 100%;
    flex: unset;
  }
  .bh-hero-left {
    gap: 0px;
  }
  .bh-share-wrap {
    top: -10px;
  }
  .bh-hero-title {
    font-size: 20px;
  }
}
