/* News shortcode layout */
.custom-news-wrap {
  font-family: "Inter" !important;
}

.custom-news-wrap .news-page-title {
  text-align: center;
  font-size: 44px;
  font-weight: 600;
  margin: 0 0 25px;
  color: #000;
}

.news-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.custom-news-wrap.is-side-stretch .news-top-grid {
  align-items: stretch;
}

.news-featured {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-featured-media img {
  width: 100%;
  height: 320px !important;
  object-fit: cover;
  display: block;
}

.news-featured-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-featured-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.news-featured-excerpt {
  font-size: 13px;
  color: #555;
  margin: 0 0 14px;
}

.news-featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

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

.news-featured-author .blog-author-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #D9D9D9;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

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

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

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

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

.news-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
}

.news-side-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
  min-height: 88px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Only stretch side items to match featured height when we have full 5 items */
.custom-news-wrap.is-side-stretch .news-side {
  height: 100%;
}

.custom-news-wrap.is-side-stretch .news-side-item {
  flex: 1;
  min-height: 0;
}

.news-side-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-side-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  line-height: 1.2;
  min-width: 0;
}

.news-side-meta-row .news-side-source-line {
  flex: 1 1 100%;
  min-width: 0;
}

.news-side-source-line {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #777;
  min-width: 0;
}

/* Side meta is sentence-case like "By Lena · Updated on : 23 Feb 2026" */

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

.news-side-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #111;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Circle + arrow are drawn inside the SVG (44×44). */
.news-side-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.news-side-arrow .news-side-arrow-icon {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

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

.news-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 14px;
  color: #555;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
}

/* Bottom cards reuse `blog-card` markup + styles from custom-blog.css */

.custom-news-wrap.is-loading {
  position: relative;
}

.custom-news-wrap .news-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.custom-news-wrap.is-loading .news-loader {
  display: flex;
}

.custom-news-wrap .news-loader::after {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid #d0d0d0;
  border-top-color: #0b0b0b;
  animation: newsSpin 0.9s linear infinite;
}

@keyframes newsSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .news-top-grid {
    grid-template-columns: 1fr;
  }
  .news-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-bottom-grid {
    grid-template-columns: 1fr;
  }

  .news-side-item {
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 10px;
    align-items: flex-start;
  }

  .news-side-thumb img {
    width: 48px !important;
    height: 48px !important;
  }

  .news-side-arrow {
    margin-top: 2px;
  }

  .news-side-arrow .news-side-arrow-icon {
    width: 40px;
    height: 40px;
  }

  .news-side-title {
    font-size: 13px;
  }

  .news-side-source-line {
    font-size: 9px;
  }
}

