/* Single News page — overflow visible required or position:sticky never sticks (parent theme hides overflow on #qodef-page-wrapper). */
body.single-news #qodef-page-wrapper,
body.single-news #qodef-page-outer,
body.single-news #qodef-page-inner,
body.post-type-news #qodef-page-wrapper,
body.post-type-news #qodef-page-outer,
body.post-type-news #qodef-page-inner {
  overflow: visible !important;
}

body.single-news #qodef-page-inner,
body.post-type-news #qodef-page-inner {
  padding: 0 100px 0 100px;
  width: 100%;
}

.single-news #qodef-page-outer {
  background: #f5f5f5;
}

.single-news-wrap {
  padding: 0;
}

.single-news-hero-bleed {
  background: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 40px 100px;
}

.single-news-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.single-news-title {
  font-size: 52px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #000;
}

.single-news-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #666;
  font-size: 13px;
}

.single-news-meta .blog-author-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.single-news-meta .blog-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d9d9d9;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.single-news-meta .blog-author-img img.author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.single-news-meta .blog-author-img svg.author-icon {
  width: 100%;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.single-news-meta .blog-author-name-date {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-news-meta .blog-author-name-date span {
  font-size: 12px;
  color: #000;
  font-weight: 500;
  line-height: normal;
}

.single-news-meta .blog-author-name-date .update-span {
  color: #666;
  font-weight: 400;
  margin-top: 3px;
}

.single-news-hero-media img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.single-news-body {
  margin: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.single-news-content {
  min-width: 0;
}

.single-news-content .entry-content {
  color: #111;
}

/* Remove top spacing for the first H2 inside content */
.single-news-content .entry-content > h2:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.single-news-sidebar {
  align-self: start;
  position: relative;
}

/* JS sticky fallback (same idea as single-blog.js): NeoBeat’s wrapper overflow breaks pure CSS sticky. */
.single-news-sidebar-sticky.single-news-sticky-fixed {
  position: fixed !important;
  top: 110px !important;
  z-index: 20;
}

body.admin-bar.single-news .single-news-sidebar-sticky.single-news-sticky-fixed,
body.admin-bar.post-type-news .single-news-sidebar-sticky.single-news-sticky-fixed {
  top: 142px !important;
}

.single-news-sidebar-sticky.single-news-sticky-absolute {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
}

.single-news-sidebar-sticky > * + * {
  margin-top: 14px;
}

@media (max-width: 1200px) {
  .single-news-sidebar-sticky.single-news-sticky-fixed,
  .single-news-sidebar-sticky.single-news-sticky-absolute {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    z-index: auto;
  }
}

.single-news-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px;
}

.single-news-box-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin: 0 0 12px;
}

.single-news-featured-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single-news-featured-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  background: #fff;
  text-decoration: none;
}

.single-news-featured-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.single-news-featured-meta {
  font-size: 10px;
  font-weight: 500;
  color: #777;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.single-news-featured-title {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.single-news-featured-arrow svg {
  width: 44px;
  height: 44px;
  display: block;
}

/* Share box: match single-blog share styling */
.single-sharebar-box {
  background: #0b0b0b;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
}

.single-sharebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.single-share-links {
  display: flex;
  gap: 10px;
}

.single-share-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.single-share-link:hover {
  background: #f2f2f2;
}

.single-share-link svg {
  width: 20px;
  height: 20px;
  fill: #000;
  display: block;
}

.single-news-related {
  padding: 35px 100px 35px;
}

.single-news-related-bleed {
  background: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.single-news-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.single-news-related-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.single-news-related-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.single-news-related-viewall:hover {
  color: #000;
}

.single-news-related-viewall-icon {
  display: block;
  color: currentColor;
}

.single-news-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(15px, 2.083vw, 40px);
}

/* Card border inside related/content area */
.single-news-related .blog-card {
  border: 1px solid #e8e8e8;
}

.single-news-related .blog-card:hover {
  border-color: #d7d7d7;
}

@media (max-width: 1200px) {
  body.single-news #qodef-page-inner {
    padding: 0 15px;
  }
  .single-news-hero-bleed {
    padding: 28px 15px;
  }
  .single-news-related {
    padding: 22px 15px 28px;
  }
  .single-news-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .single-news-body {
    grid-template-columns: 1fr;
  }
  .single-news-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .single-news-title {
    font-size: 28px;
  }
  .single-news-related-grid {
    grid-template-columns: 1fr;
  }
}

