/* ==========================================================================
   SECTION NEWS (port từ home.model.css)
   ========================================================================== */

.home-news {
  padding-top: 4.38rem;
  padding-bottom: 4.38rem;
}

.home-news__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.home-news__eyebrow {
  color: #1d262d;
  text-align: right;
  font-size: 1rem;
  font-weight: 400;
  line-height: 120%;
  text-transform: uppercase;
}

.home-news__title {
  padding-top: 1.25rem;
  color: #000;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 130%;
  text-transform: uppercase;
  margin: 0;
}

/* ===== Grid: 2 big + small list ===== */
.home-news__grid {
  display: flex;
  align-content: center;
  gap: 1rem;
}

/* ===== Big card ===== */
.home-news__big {
  gap: 1rem;
  width: 25.875rem;
  height: 22.3125rem;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  flex-shrink: 0;

  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Override global `a:link, a:visited { width:100% }` (0,1,1) đè lên class (0,1,0).
   Card lớn là thẻ <a> nên bị kéo full-width → ép lại width qua selector cao specificity. */
.home-news__grid a.home-news__big {
  width: 25.875rem;
}

.home-news__big.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-news__big[data-stagger-index="0"].is-visible {
  transition-delay: 0s;
}
.home-news__big[data-stagger-index="1"].is-visible {
  transition-delay: 0.1s;
}

.home-news__big-bg-sub {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 8, 21, 0) 47.57%,
    rgba(4, 8, 21, 0.9) 86.13%
  );
  pointer-events: none;
}

.home-news__big-image {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.home-news__big-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-news__big:hover .home-news__big-image img {
  transform: scale(1.04);
}

.home-news__big-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.00938rem;
  margin: 0;
}

/* ===== Small list ===== */
.home-news__small {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-news__small-item {
  display: flex;
  align-content: center;
  gap: 0.88rem;
  align-items: center;
  height: 6.75rem;
  border-radius: 0.5rem;
  background: #fff;
  transition:
    background 0.3s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
  overflow: hidden;
  box-shadow: 0 4px 37.9px 0 rgba(0, 0, 0, 0.07);
  text-decoration: none;

  opacity: 0;
  transform: translateX(30px);
}

/* `.home-news__small-item` là <a> → global `a:link, a:visited { display:block }` (0,1,1)
   đè `display:flex` (0,1,0) khiến content (ngày + tiêu đề) xuống dưới ảnh & bị overflow:hidden
   cắt mất. Ép lại flex bằng selector cao specificity (0,2,1). */
.home-news__small a.home-news__small-item {
  display: flex;
}

.home-news__small-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.home-news__small-item[data-stagger-x="0"].is-visible {
  transition-delay: 0s;
}
.home-news__small-item[data-stagger-x="1"].is-visible {
  transition-delay: 0.1s;
}
.home-news__small-item[data-stagger-x="2"].is-visible {
  transition-delay: 0.2s;
}

.home-news__small-item:hover {
  background: #ececec;
}

.home-news__small-image {
  width: 7.489rem;
  height: 6.75rem;
  border-radius: 0.5rem 0 0 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.home-news__small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-news__small-item:hover .home-news__small-image img {
  transform: scale(1.05);
}

.home-news__small-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.home-news__small-date {
  display: flex;
  width: 4.75rem;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.home-news__small-date strong {
  color: #1d262d;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: normal;
}

.home-news__small-date span {
  color: #1d1d1d;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.00875rem;
}

.home-news__small-item h4 {
  overflow: hidden;
  color: #1d262d;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: 600;
  line-height: 137.6%;
  letter-spacing: 0.00938rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  flex-shrink: 0;
  margin: 0;
  flex: 1;
  padding-right: 1.5rem;
}

.home-news__small-content-paga {
  width: 0.0625rem;
  height: 3.4375rem;
  opacity: 0.1;
  background: #313131;
  flex-shrink: 0;
}

.home-news__button-mobile,
.home-news__small-date-mobile {
  display: none;
}

.home-news__button {
  display: block;
}

.home-news__button .button:hover,
.home-news__button a.button:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.home-news__button .button:hover svg,
.home-news__button a.button:hover svg {
  color: #fff;
}

/* ========================================================================
   MOBILE
   ======================================================================== */
@media (max-width: 768px) {
  .home-news {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .home-news__head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .home-news__eyebrow {
    font-size: 0.875rem;
    display: block;
    text-align: center;
    opacity: 0.7;
  


font-size: 0.875rem;
font-style: normal;
font-weight: 400;
line-height: normal;
letter-spacing: 0.0175rem;
text-transform: uppercase;
  }

  .home-news__title {
    padding-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
  }

  .home-news__button {
    display: none;
  }

  .home-news__button-mobile {
    padding-top: 0.88rem;
    display: flex;
    align-content: center;
    justify-content: center;
    width: 8rem;
    max-width: 8rem;
    margin: 0 auto;
  }

  .home-news__button-mobile .button,
  .home-news__button-mobile a.button,
  .home-news__button-mobile a.button:link,
  .home-news__button-mobile a.button:visited {
    width: 8rem;
    min-width: 8.5rem;
        max-width: 9rem;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .home-news__button-mobile a.button:visited {

    border-bottom: 0.647px solid var(--Foundation-Blue-blue-800, #252525);
  }
.home-news__button-mobile .button, .home-news__button-mobile a.button, .home-news__button-mobile a.button:link, .home-news__button-mobile a.button:visited{
          min-width: 6rem !important;
        gap: 0.5rem;
}
  .home-news__grid {
    flex-direction: column;
    gap: 1rem;
  }

  .home-news__big,
  .home-news__grid a.home-news__big {
    width: 100%;
    height: 13.125rem;
  }

  .home-news__big-title {
    font-size: 0.875rem;
    padding: 0.9375rem 0.8125rem;
  }

  .home-news__small-content-paga {
    display: none;
  }

  .home-news__small-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
  }

  .home-news__small-item h4 {
    font-size: 0.875rem;
    width: 100%;
    padding-right: 0.75rem;
  }

  .home-news__small-date {
    display: none;
  }

  .home-news__small-date-mobile {
    display: block;
    color: #999;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.0075rem;
  }

  .home-news__small-image {
    width: 7.489rem;
    height: 6.75rem;
  }
}
