/*
 * News Featured ("Tin nổi bật") section.
 * Design source: Figma 407:50057 (desktop), 407:51629 (mobile).
 */

.iw-news-featured {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #ffffff; /* default — overridable via shortcode bg_color */
  font-family: inherit;
  color: #181d27;
  -webkit-font-smoothing: antialiased;
}

.iw-news-featured .iw-news-featured__inner {
  max-width: var(--iw-container-max);
  margin: 0 auto;
  /* Horizontal padding = breathing room on viewports narrower than 1440px.
     The 240px in Figma was the offset from a 1920 frame edge to content —
     `max-width: 1440 + margin: auto` already handles that centering, so we
     only need a small inset here, not 240. */
  padding: 60px var(--iw-container-pad-x);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
}

.iw-news-featured__title {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #181d27;
}

.iw-news-featured__empty {
  margin: 0;
  color: #888888;
}

.iw-news-featured__grid {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.iw-news-featured__hero {
  flex: 0 0 704px;
  min-width: 320px;
  max-width: 704px;
}

.iw-news-featured__side {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1280px) {
  .iw-news-featured__grid {
    gap: 24px;
  }
  
  .iw-news-featured__hero {
    flex: 0 0 604px;
    min-width: 320px;
    max-width: 604px;
  }

  .iw-news-featured__side {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .iw-news-featured__hero {
    flex: 0 0 504px;
    min-width: 320px;
    max-width: 504px;
  }
}

@media (max-width: 991px) {
  .iw-news-featured .iw-news-featured__inner {
    padding: 32px var(--iw-container-pad-x);
    gap: 16px;
  }

  .iw-news-featured__title {
    font-size: 24px;
    line-height: 32px;
  }

  .iw-news-featured__grid {
    flex-direction: column;
    gap: 32px;
  }

  .iw-news-featured__hero {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .iw-news-featured__side {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
  }
}
