/* ==========================================================================
   Tin tức mới nhất (1 Lớn + 3 Nhỏ)
   Flatsome Child Theme
   ========================================================================== */

.latest-news-section {
  width: 100%;
  box-sizing: border-box;
  position: relative;

  /* Default Variables */
  --news-accent: #008f5d;
  --news-accent-bg: #e6f7ef;
}

/* Optional Heading */
.latest-news-heading {
  font-size: 28px;
  font-weight: 700;
  color: #0b2942;
  margin: 0 0 20px 0;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Layout: 2 Columns (Left Big + Right Stack)
   -------------------------------------------------------------------------- */
.latest-news-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Left Big Card (Main Featured Post)
   -------------------------------------------------------------------------- */
.latest-news-main {
  border-radius: 6px;
  flex: 1 1 58%;
  width: 58%;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  background-color: #0b1e13;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-news-main:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Background image */
.latest-news-main__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.latest-news-main:hover .latest-news-main__bg {
  transform: scale(1.05);
}

/* Dark Gradient Overlay */
.latest-news-main__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(8, 38, 20, 0.5) 45%,
      rgba(6, 28, 15, 0.94) 85%,
      rgba(4, 20, 10, 0.98) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Left Content Area */
.latest-news-main__content {
  position: relative;
  z-index: 3;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

/* Meta: Badge & Date */
.latest-news-main__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.latest-news-badge--main {
  background-color: var(--news-accent, #008f5d);
  color: #ffffff;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.latest-news-date--main {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  font-weight: 500;
}

.latest-news-date--main svg {
  margin-right: 5px;
  opacity: 0.9;
}

/* Title */
.latest-news-main__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.latest-news-main__title a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-news-main__title a:hover {
  opacity: 0.88;
}

/* Excerpt */
.latest-news-main__excerpt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button */
.latest-news-main__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.latest-news-main__btn:hover {
  background: #ffffff;
  color: #0b2942;
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Right Side: Small Cards Stack
   -------------------------------------------------------------------------- */
.latest-news-side {
  flex: 1 1 42%;
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

/* Small Card */
.latest-news-card {
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  background: #ffffff;
  border: 1px solid #e5e9ee;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
  flex: 1;
}

.latest-news-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

/* Small Thumbnail */
.latest-news-card__thumb {
  flex: 0 0 200px;
  width: 160px;
  height: 148px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
  border-radius: 6px 0px 0px 6px;
}

.latest-news-card__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.latest-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.latest-news-card:hover .latest-news-card__img {
  transform: scale(1.06);
}

/* Small Content */
.latest-news-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Small Meta */
.latest-news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.latest-news-badge--sub {
  background-color: #e6e6f7;
  color: var(--news-accent, #008f5d);
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.latest-news-date--sub {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
}

.latest-news-date--sub svg {
  margin-right: 4px;
  opacity: 0.8;
}

/* Small Title */
.latest-news-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.latest-news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-news-card__title a:hover {
  color: var(--news-accent, #008f5d);
}

/* Small Excerpt */
.latest-news-card__excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small Readmore Link */
.latest-news-card__link {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.latest-news-card:hover .latest-news-card__link {
  color: var(--news-accent, #008f5d);
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Responsive: Tablet & Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .latest-news-wrapper {
    flex-direction: column;
  }

  .latest-news-main {
    width: 100%;
    min-height: 400px;
  }

  .latest-news-side {
    width: 100%;
  }

  .latest-news-card {
    flex: none;
  }
}

@media (max-width: 549px) {
  .latest-news-main {
    min-height: 360px;
  }

  .latest-news-main__content {
    padding: 24px 20px 20px;
  }

  .latest-news-main__title {
    font-size: 19px;
  }

  .latest-news-main__excerpt {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .latest-news-card {
    padding: 10px;
    gap: 10px;
  }

  .latest-news-card__thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 80px;
  }

  .latest-news-card__title {
    font-size: 13.5px;
  }

  .latest-news-card__excerpt {
    display: none;
    /* Hide excerpt on extra small screens for clean look */
  }
}