/* ==========================================================================
   AWARDS WEB — NEWS & EVENTS STYLES (MATCHING THE GRAND ESPORTS LAYOUT)
   ========================================================================== */

.section-frame13 {
  min-height: 100vh;
  background: #0b0d10 url(../images/bg-news.webp) no-repeat top center / cover;
  padding: clamp(90px, 10vh, 130px) 0 60px;
  position: relative;
  overflow: visible;
}

.section-frame13::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.38) 0%, rgba(10, 12, 14, 0.55) 55%, rgba(10, 12, 14, 0.88) 100%);
  pointer-events: none;
}

.section-frame13 .section-content {
  position: relative;
  z-index: 2;
}

.section-frame13 .container1 {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header tin tức */
.news-header {
  text-align: center;
  margin-bottom: 45px;
}

.news-page-title {
  color: #f5d7a3;
  background: linear-gradient(90deg, #f5d7a3 0%, #e2b66c 50%, #f5d7a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(26px, 3.5vw, 42px);
  font-family: "fzpopinsbold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.news-page-sub {
  color: #ffffff;
  font-size: clamp(14px, 1.2vw, 17px);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tin lớn nổi bật (news-main) */
.section-frame13 .news-main {
  width: 100%;
  background-color: #202427;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 218, 158, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.section-frame13 .news-main:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 218, 158, 0.5);
  box-shadow: 0 16px 40px rgba(245, 215, 163, 0.12);
}

.section-frame13 .news-main .thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #fbda9e;
  /* 16:9 ở mọi khung của trang tin: trùng tỉ lệ ảnh bìa BTC đã cắt trong CMS nên ảnh không bị cắt thêm lần nữa. */
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #111;
}

.section-frame13 .news-main .thumb > a {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.section-frame13 .news-main .thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s ease;
}

.section-frame13 .news-main:hover .thumb img {
  transform: scale(1.05);
}

.section-frame13 .news-main .title {
  font-size: clamp(20px, 2vw, 28px);
  font-family: "fzpopinsbold", sans-serif;
  color: #f9d79d;
  padding: 0 20px;
  line-height: 1.35;
  margin: 18px 0 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-frame13 .news-main .title a {
  color: #f9d79d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-frame13 .news-main .title a:hover {
  color: #fff;
}

.section-frame13 .news-main .short-des {
  font-size: 15px;
  color: #d1d5db;
  padding: 0 20px;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.section-frame13 .news-main .datetime {
  font-size: 13px;
  color: #9ca3af;
  padding: 14px 20px 18px;
  margin: auto 0 0;
}

/* Khối tin hot (news-hot) 2x2 grid */
.section-frame13 .box-r {
  display: flex;
  flex-direction: column;
}

.section-frame13 .news-hot {
  background-color: #202427;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 218, 158, 0.16);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.section-frame13 .news-hot:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 218, 158, 0.4);
}

.section-frame13 .news-hot .thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #fbda9e;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #111;
}

.section-frame13 .news-hot .thumb > a {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.section-frame13 .news-hot .thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.section-frame13 .news-hot:hover .thumb img {
  transform: scale(1.05);
}

.section-frame13 .news-hot .title {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  color: #f9d79d;
  padding: 0 12px;
  line-height: 1.35;
  margin: 10px 0 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-frame13 .news-hot .title a {
  color: #f9d79d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-frame13 .news-hot .title a:hover {
  color: #fff;
}

.section-frame13 .news-hot .short-des {
  font-size: 13px;
  color: #9ca3af;
  padding: 0 12px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-frame13 .news-hot .datetime {
  font-size: 12px;
  color: #6b7280;
  padding: 8px 12px 10px;
  margin: auto 0 0;
}

/* Lưới tin tức 3 cột hàng dưới (news-item) */
.news-list-grid {
  margin-top: 45px;
}

.section-frame13 .news-item {
  background-color: #202427;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 218, 158, 0.16);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.section-frame13 .news-item:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 218, 158, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.section-frame13 .news-item .thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #fbda9e;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #111;
}

.section-frame13 .news-item .thumb > a {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.section-frame13 .news-item .thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.section-frame13 .news-item:hover .thumb img {
  transform: scale(1.05);
}

.section-frame13 .news-item .title {
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 700;
  color: #f9d79d;
  padding: 0 16px;
  line-height: 1.4;
  margin: 14px 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-frame13 .news-item .title a {
  color: #f9d79d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-frame13 .news-item .title a:hover {
  color: #fff;
}

.section-frame13 .news-item .short-des {
  font-size: 14px;
  color: #9ca3af;
  padding: 0 16px;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.section-frame13 .news-item .datetime {
  font-size: 12px;
  color: #6b7280;
  padding: 10px 16px 14px;
  margin: auto 0 0;
}

/* Phân trang (pagi) */
.section-frame13 .pagi {
  margin: 50px auto 0;
  text-align: center;
}

.section-frame13 .pagi .pagination {
  gap: 8px;
}

.section-frame13 .pagi .page-item .page-link {
  background-color: #1f2327;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0;
  transition: all 0.2s ease;
}

.section-frame13 .pagi .page-item .page-link:hover {
  background-color: #2b3137;
  color: #f9d79d;
  border-color: #fbda9e;
}

.section-frame13 .pagi .page-item.active .page-link {
  background: linear-gradient(135deg, #f9d79d 0%, #e2b66c 100%);
  border-color: #f9d79d;
  color: #081224;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 215, 163, 0.3);
}

.section-frame13 .pagi .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
  background-color: #17191b;
}

/* ==========================================================================
   CHI TIẾT TIN TỨC (NEWS DETAIL)
   ========================================================================== */

.section-news-detail .news-breadcrumb {
  margin-bottom: 25px;
}

.section-news-detail .news-breadcrumb a {
  color: #f9d79d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.section-news-detail .news-breadcrumb a:hover {
  color: #fff;
}

.section-news-detail .news-details {
  background-color: #202427;
  border-radius: 0;
  padding: 40px;
  border: 1px solid rgba(251, 218, 158, 0.2);
  margin-bottom: 60px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.section-news-detail .news-details h1.title {
  font-size: clamp(24px, 3.2vw, 38px);
  color: #f9d79d;
  font-family: "fzpopinsbold", sans-serif;
  line-height: 1.35;
  margin: 0 0 14px;
  position: relative;
  padding-top: 24px;
}

.section-news-detail .news-details h1.title::before {
  content: "";
  width: 70px;
  height: 3px;
  background-color: #fbda9e;
  position: absolute;
  top: 0;
  left: 0;
}

.section-news-detail .news-details .datetime {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 24px;
}

.section-news-detail .news-detail-cover {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.section-news-detail .news-detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.section-news-detail .news-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  color: #f9d79d;
  line-height: 1.7;
  margin-bottom: 30px;
  font-style: italic;
  border-left: 3px solid #fbda9e;
  padding-left: 18px;
}

.section-news-detail .news-body-content {
  font-size: 16px;
  color: #e5e7eb;
  line-height: 1.85;
}

.section-news-detail .news-body-content p {
  margin-bottom: 20px;
}

.section-news-detail .news-related {
  margin-top: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-news-detail .news-related h4.title {
  font-size: clamp(22px, 2.5vw, 30px);
  color: #fbda9e;
  font-family: "fzpopinsbold", sans-serif;
  text-transform: uppercase;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 991px) {
  .section-frame13 {
    padding: 100px 0 60px;
  }

  .section-frame13 .box-r {
    margin-top: 24px;
  }

  .section-news-detail .news-details {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .section-frame13 .news-main .title {
    font-size: 18px;
    padding: 0 14px;
    margin: 14px 0 6px;
  }

  .section-frame13 .news-main .short-des {
    font-size: 13px;
    padding: 0 14px;
  }

  .section-frame13 .news-main .datetime {
    padding: 10px 14px 14px;
  }

  .section-frame13 .news-hot .title,
  .section-frame13 .news-item .title {
    font-size: 14px;
    line-height: 1.35;
    padding: 0 10px;
    margin: 10px 0 4px;
  }

  .section-frame13 .news-hot .short-des,
  .section-frame13 .news-item .short-des {
    font-size: 12px;
    padding: 0 10px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .section-frame13 .news-hot .datetime,
  .section-frame13 .news-item .datetime {
    padding: 6px 10px 10px;
  }
}


/* Mũi tên "Quay lại": chỉnh bằng lớp thay vì style nội tuyến (CSP và kiểm tra kiến trúc cấm style trong view). */
.news-back-icon { vertical-align: middle; margin-right: 6px; }
