{% set tag_palette = ["#F4EEE7", "#E8F2EE", "#B5BE96", "#C9CFD6", "#93A0AB", "#DDC59A", "#9A9A9A", "#E8D9BE"] %}
{% set primary_tag = content.tag_list[0] if content.tag_list and content.tag_list|length > 0 else None %}
{% set tag_color = tag_palette[primary_tag.id % 8] if primary_tag else tag_palette[0] %}

.blog-header {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: linear-gradient(135deg,  0%, transparent 65%);
  padding: 16px;
}

.blog-header__hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.blog-header__info {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.blog-header__title {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 36px;
  line-height: 1.25;
  text-transform: uppercase;
}

.blog-header__data {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-header__data-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-header__data-Right {

}
.blog-header__date,
.blog-header__read-time {
  font-size: 16px;
  line-height: 1.4;
}

.blog-header__image-wrap {
  flex: 1 1 45%;
/*   max-width: 700px; */
  padding: 16px;
}

.blog-header__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.blog-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
}

.blog-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-header__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eee2d2;
  color: #000;
  line-height: 1.2;
  text-decoration: none;
}

.blog-header__tag:hover,
.blog-header__tag:focus {
  text-decoration: underline;
}

.blog-header__breadcrumb {
  font-size: 14px;
  line-height: 1.4;
}

.blog-header__breadcrumb-link {
  text-decoration: underline;
  color: inherit;
}

.blog-header__breadcrumb-sep {
  margin: 0 6px;
}

.blog-header__breadcrumb-current {
  color: #b8860b;
}

/* Social Share Segment */
.post-social-share-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.post-main-share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.post-share-bubbles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.post-share-bubbles.active {
    pointer-events: auto;
}

.post-share-bubble {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(0, 0) scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.post-share-bubble img {
    height: 24px;
    width: 24px;
}

.post-share-bubbles.active .post-share-bubble {
    opacity: 1;
}

.post-share-bubbles.active .post-share-bubble:hover img {
    transform: scale(1.2);
    transition: 0.5s ease;
}

.post-share-bubbles.active .post-share-bubble:nth-child(1) {
    transform: translate(0px, -80px); /* 12 o'clock */
    transition-delay: 0s;
}

.post-share-bubbles.active .post-share-bubble:nth-child(2) {
    transform: translate(69.28px, -40px); /* 2 o'clock */
    transition-delay: 0.1s;
}

.post-share-bubbles.active .post-share-bubble:nth-child(3) {
    transform: translate(69.28px, 40px); /* 4 o'clock */
    transition-delay: 0.2s;
}

.post-share-bubbles.active .post-share-bubble:nth-child(4) {
    transform: translate(0px, 80px); /* 6 o'clock */
    transition-delay: 0.3s;
}

.post-share-bubbles.active .post-share-bubble:nth-child(5) {
    transform: translate(-69.28px, 40px); /* 8 o'clock */
    transition-delay: 0.4s;
}

.post-share-bubbles.active .post-share-bubble:nth-child(6) {
    transform: translate(-69.28px, -40px); /* 10 o'clock */
    transition-delay: 0.5s;
}

@media (max-width: 768px) {
  .blog-header__hero {
    flex-direction: column-reverse;
  }

  .blog-header__image-wrap,
  .blog-header__info {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }

  .blog-header {
    display: flex;
    flex-direction: column;
  }

  .blog-header__nav {
    flex-direction: column;
    align-items: flex-start;
  }
}