/* =============================================================================
   Blog Layout – magazine/news grid
   BEM: .blog-layout, .blog-layout__left, .blog-layout__featured,
        .blog-layout__right, .blog-layout__item
   ============================================================================= */

/* ── Container ───────────────────────────────────────────────────────────── */
.blog-layout {
  display: flex;
  gap: 16px;
  width: 100%;
  font-family: inherit;
}

/* ── LEFT column (70%) ───────────────────────────────────────────────────── */
.blog-layout__left {
  flex: 0 0 60%;
  max-width: 60%;
}

/* ── Featured post card ──────────────────────────────────────────────────── */
.blog-layout__featured {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.blog-layout__featured:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

/* Zoom effect on the background image via a pseudo-element */
.blog-layout__featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  transition: transform 0.45s ease;
  z-index: 0;
}

.blog-layout__featured:hover::before {
  transform: scale(1.05);
}

/* Full-card link (transparent) */
.blog-layout__featured-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

/* Gradient overlay */
.blog-layout__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    transparent 100%
  );
  border-radius: inherit;
  z-index: 1;
}

/* Text body – bottom-left */
.blog-layout__featured-body {
  position: absolute;
  bottom: 26px;
  left: 16px;
  padding: 17px 20px;
  z-index: 3;
  width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
}

/* Date badge */
.blog-layout__date-badge {
  display: inline-block;
  background: #FFFF00;
  color: #434343;
  font-size: 12px;
  font-weight: 500;
  line-height: 21px;
  padding: 4px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Featured title */
.blog-layout__featured-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 25px;
  font-weight: 500;
  color: #202124;
}

.blog-layout__featured-title a {
  color: #202124 !important;
  text-decoration: none;
  position: relative;
  z-index: 4;
  font-size: 20px;
  line-height: 25px;
  font-weight: 500;
}

/* Author line */
.blog-layout__featured-author {
  margin: 0;
  font-size: 14px;
  color: #202124;
  line-height: 24px;
  font-weight: 400;
}

/* ── RIGHT column (30%) ──────────────────────────────────────────────────── */
.blog-layout__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── List item card ──────────────────────────────────────────────────────── */
.blog-layout__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}

/* Thumbnail wrapper */
.blog-layout__item-thumb {
  flex: 0 0 197px;
  width: 197px;
  height: 147px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.blog-layout__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-layout__item:hover .blog-layout__item-thumb img {
  transform: scale(1.08);
}

/* Item text body */
.blog-layout__item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Meta: author — date */
.blog-layout__item-meta {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Item title */
.blog-layout__item-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  color: #202124;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-layout__item-title a {
  color: inherit;
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column;
    gap: 20px;
  }

  .blog-layout__left,
  .blog-layout__right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-layout__featured {
    aspect-ratio: 1;
  }

  .blog-layout__item {
    flex: 0 0 auto;
  }

  .blog-layout__item-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 68px;
  }
}

@media (max-width: 480px) {
  .blog-layout__featured-body {
    padding: 16px 16px 14px;
  }

  .blog-layout__featured-title {
    font-size: 16px;
  }
}
