/* Blog Single */

.yg-single-post-container {
  padding-top: 40px;
  background: #fafafa;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 60px;
}
.yg-single-post-container .yg-left-content {
  overflow: hidden;
}

.yg-single-post-container .yg-breadcrumb {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yg-single-post-container .yg-breadcrumb a {
  color: #242526;
  text-decoration: none;
  transition: color 0.3s ease;
}

.yg-post-header {
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e2e2;
}

.yg-post-date {
  color: #555759;
  margin-bottom: 32px;
  display: block;
}

.yg-single-post-container .yg-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.yg-share-text {
  color: #000;
}

.yg-share-links {
  display: flex;
  align-items: center;
}

.yg-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.yg-post-author {
  margin-top: 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.yg-author-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.yg-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yg-author-name {
  color: #000;
}

.yg-post-content {
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e2e2;
}

.yg-post-content p,
.yg-post-content ul,
.yg-post-content ol {
  margin-block: 12px;
  color: #454748;
  font-size: 16px;
}

.yg-post-content ul,
.yg-post-content ol {
  list-style: disc;
  padding-left: 20px;
}
.yg-post-content figure {
  margin-block: 40px;
}

.yg-post-content h2,
.yg-post-content h3,
.yg-post-content h4,
.yg-post-content h5,
.yg-post-content h6 {
  margin-top: 40px;
  margin-bottom: 12px;
  color: #000;
}

.yg-post-content h2 {
  font-size: 20px;
}

.yg-post-content h3,
.yg-post-content h4,
.yg-post-content h5,
.yg-post-content h6 {
  font-size: 18px;
}

.yg-single-post-navigation {
  padding-top: 40px;
}

.yg-post-nav-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.yg-post-nav-item .yg-post-nav-link {
  border-radius: 4px;
  background: #f4f4f4;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.yg-post-nav-prev .yg-prev-header,
.yg-post-nav-next .yg-next-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yg-post-nav-next .yg-next-header {
  justify-content: flex-end;
}

.yg-post-nav-label {
  color: #01633d;
}

.yg-post-nav-title {
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yg-post-nav-prev .yg-post-nav-title {
  margin-left: 28px;
}

.yg-post-nav-next .yg-post-nav-title {
  margin-right: 28px;
}

.yg-right-content {
  position: sticky;
  top: 140px;
  height: fit-content;
  z-index: 1;
}

.yg-article-content-navigation {
  background: #f4fbf6;
  border-radius: 4px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yg-navigation-header {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.yg-navigation-toggle-icon {
  transition: transform 0.2s ease;
}

.yg-article-content-navigation .yg-navigation-toggle-icon {
  transform: rotate(180deg);
}

.yg-article-content-navigation.is-collapsed .yg-navigation-toggle-icon {
  transform: rotate(0);
}

.yg-navigation-content {
  border-top: 1px solid #e2e3e3;
  padding-top: 24px;
}

.yg-navigation-content-inner {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 20px;
}

.yg-navigation-content-inner::-webkit-scrollbar {
  width: 2px;
}

.yg-navigation-content-inner::-webkit-scrollbar-track {
  background: #b8d4c9;
}

.yg-navigation-content-inner::-webkit-scrollbar-thumb {
  background: #3e886b;
}

.yg-navigation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yg-navigation-item {
  line-height: 1.4;
}

.yg-navigation-link {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 4px;
  font-size: 16px;
}
.yg-navigation-item.is-active .yg-navigation-link {
  color: #01633d;
}

.yg-navigation-empty {
  color: #9aa09f;
}

.yg-article-content-navigation.is-collapsed .yg-navigation-content {
  display: none;
}

.yg-simple-form-wrapper {
  margin-top: 24px;
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.yg-simple-form-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
}

.yg-simple-toggle-icon {
  transition: transform 0.2s ease;
}

.yg-simple-form-wrapper .yg-simple-toggle-icon {
    transform: rotate(180deg);
  }

.yg-simple-form-wrapper.is-collapsed .yg-simple-toggle-icon {
  transform: rotate(0);
}

.yg-simple-form {
  padding: 24px;
  background-color: #fff;
  position: relative;
}

.yg-simple-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.yg-simple-form-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.yg-simple-form-wrapper.is-collapsed .yg-simple-form {
  display: none;
}

.yg-simple-form .wpforms-container {
  margin: 0 !important;
}

.yg-simple-form .wpforms-field-container {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yg-simple-form .wpforms-field-container .wpforms-field {
  padding: 0;
}

.yg-simple-form .wpforms-field input,
.yg-simple-form .wpforms-field textarea,
.yg-simple-form .wpforms-field select {
  border: none !important;
  outline: none !important;
  background-color: #fafafa !important;
  box-shadow: none !important;
}

.yg-simple-form .wpforms-field-label {
  margin-bottom: 6px !important;
}

.yg-simple-form .wpforms-required-label {
  display: none;
}

.yg-simple-form .wpforms-field textarea {
  height: 100px !important;
}

@media (min-width: 1024px) {
    .yg-simple-form-header {
        display: none;
    }

    .yg-simple-form {
        display: block !important;
    }
}

@media (max-width: 1023px) {
  .yg-single-post-container {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .yg-right-content {
    top: 61px;
    order: -1;
    display: flex;
    margin-inline: -80px;
    width: 100vw;
    z-index: 99;
  }

  .yg-right-content > * {
    width: 50%;
    flex-shrink: 0;
  }

  .yg-simple-form-wrapper {
    margin-top: 0;
  }

  .yg-simple-form-wrapper,.yg-article-content-navigation {
    border-radius: 0;
  }

  .yg-simple-form-close {
    display: flex;
    z-index: 99;
  }

  .yg-simple-form,
  .yg-navigation-content {
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
  }

  .yg-simple-form-header,
  .yg-article-content-navigation {
    padding: 16px 20px;
    background-color: #fff;
  }

  .yg-simple-form-header .text-base,
  .yg-article-content-navigation .text-base {
    font-weight: 400;
    color: #707275;
  }

  .yg-article-content-navigation {
    border-right: 1px solid #F4F4F4;
  }

  .yg-navigation-content,.yg-simple-form {
    padding: 16px 20px;
    background-color: #FFF;
    border-bottom: 1px solid #01633D;
    border-radius: 0;
  }

  .yg-simple-form .wpforms-field > input,
  .yg-simple-form .wpforms-field > textarea,
  .yg-simple-form .wpforms-field > select {
      background-color: #FAFAFA;
  }

  .yg-navigation-content-inner {
    max-height: 200px;
  }

  .yg-navigation-list {
    gap: 8px;
  }

  .yg-simple-form .wpforms-field-label {
    font-size: 14px !important;
  }
}

@media (max-width: 767px) {
    .yg-single-post-container {
        gap: 24px;
    }
    .yg-single-post-container .yg-breadcrumb {
        margin-bottom: 20px;
    }

    .yg-post-header {
        padding-bottom: 24px;
    }

    .yg-post-date {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .yg-post-author {
        margin-block: 14px;
    }

    .yg-single-post-container .yg-share {
        margin-top: 14px;
        gap: 4px;
    }

    .yg-single-post-container .yg-share svg {
        width: 40px;
        height: 40px;
    }

    .yg-post-content {
        padding-block: 24px;
    }

    .yg-right-content {
        margin-inline: -20px;
    }

    .yg-post-content figure {
        margin-block: 24px;
    }
    
    .yg-post-content h2,
    .yg-post-content h3,
    .yg-post-content h4,
    .yg-post-content h5,
    .yg-post-content h6 {
        margin-top: 24px;
    }

    .yg-post-content h2 {
        font-size: 18px;
    }

    .yg-post-content h3,
    .yg-post-content h4,
    .yg-post-content h5,
    .yg-post-content h6 {
        font-size: 16px;
    }

    .yg-post-content p, .yg-post-content ul, .yg-post-content ol {
        font-size: 14px;
    }

    .yg-single-post-navigation {
        padding-top: 24px;
    }

    .yg-post-nav-container {
      gap: 12px;
    }
    
}
