/* ==========================================================
   site.css — Style chính cho Home Page
   Chuẩn hóa BEM + Responsive
   Chủ đạo: đỏ đậm (#800000)
   ========================================================== */

/* ========== RESET ==========  */

*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* Container chuẩn */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Biến */
:root {
  --primary: #c50202;
  /* đỏ đậm 002c6e*/
  --primary-dark: #aa0404;
  --muted: #6b6b6b;
  --light: #f5f5f5;
  --border: #ddd;
  --radius: 0.5rem;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --header-h: 80px;
  --nav-h: 50px;
}

/* ========== HEADER ========== */
.header {
  background: #fff;
 /*  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;*/
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo img {
  width: clamp(45px, 4vw, 60px);
  height: auto;
}

.header__ministry {
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1rem, 1.5vw, 1.7rem);
}

.header__portal {
  font-size: 1rem;
  color: var(--muted);
  color: darkslategray;
  font-weight: bold;
  
}


.header__auth {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}


/* Mặc định: PC giữ nguyên fixed
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}*/

/* Toggle menu */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 24px;
  height: 3px;
  background: #000;
  position: relative;
  display: inline-block;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Mobile */
@media (max-width: 768px) {

  /* Header không fixed trên mobile */
  .header {
    position: relative;
  }

  /* Hiện nút toggle */
  .header__toggle {
    display: block;
  }

  /* Ẩn menu mặc định */
  .nav {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid #ddd;
    transition: max-height 0.3s ease;
  }

  .nav.is-open {
    max-height: 500px;
  }

  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .nav__list {
    flex-direction: column;
    width: 100%;
  }

  .nav__link {
    width: 100%;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }
}


/* Nút */
.btn {
  padding: 0.4rem 0.85rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--small {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}

/* Hamburger (mobile) */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #222;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #222;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ========== NAV ========== */
.nav {
  background: #fff;
   z-index: 1200; 

}

.nav__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--nav-h);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__link:hover {
  background: var(--primary);
  color: #fff;
}

.nav__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--nav-h);
  border-top: 1px solid var(--border);
  /* thêm vào */
}

/* ========== MAIN ========== */
 /* .main {
  margin-top: calc(var(--header-h) + var(--nav-h)); 
} */

/* Banner */
.banner {
  position: relative;
  width: 100%;
  /* thay vì 100vw */
  margin: 0 auto;
  /* căn giữa */
  max-width: 1200px;
  /* giống .container */
  overflow: hidden;

}

.banner__slide {
  display: none;
  position: relative;
}

.banner__slide img {
  width: 100%;
  height: 50vh;
  /* banner chiếm 50% chiều cao màn hình */
  object-fit: cover;
}

.banner__slide.active {
  display: block;
  animation: fade 0.8s;
}

@keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

/* Caption */
.banner__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

.banner__caption a {
  display: inline-block;
  background: #d40000;         /* đỏ tươi hơn */
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;       /* bỏ gạch chân */
  padding: 0.55rem 1.4rem;
  border-radius: 999px;        /* pill */
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}

.banner__caption a:hover {
  background: #b00000;         /* đậm hơn khi hover */
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.banner__caption a:active {
  background: #990000;         /* nhấn xuống đậm thêm */
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.banner__caption a:hover {
  text-decoration: none;
}

/* Controls */
.banner__prev,
.banner__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
}

.banner__prev:hover,
.banner__next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.banner__prev {
  left: 10px;
}

.banner__next {
  right: 10px;
}

/* Dots */
.banner__dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.banner__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
}

.banner__dot.active {
  background: #fff;
}

/* Slogan */
.banner-slogan {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
  /* giống content/banner */

}

.banner-slogan p {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scrollText 14s linear infinite;
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}


@media (max-width: 768px) {
  .banner__slide img {
    height: 35vh; /* Giảm chiều cao cho mobile */
  }
}


/* ========== CONTENT + SIDEBAR ========== */
.main__layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.section__title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  background: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card__media {
  aspect-ratio: 4/3;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card__title {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__title a {
  color: #222;
  text-decoration: none;
}

.card__excerpt {
  font-size: 0.95rem;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  
}

.card__excerpt a {
  text-decoration: none;
}

.card__excerpt a:hover {
  text-decoration: none;
  font-weight: bolder;
  color: #800000;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}


/* Section footer */
.section__footer {
  text-align: right;
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  /* thêm khoảng cách với mục bên dưới */
}

/* Sidebar */
.sidebar {
  align-self: start;
}

.sidebar__block {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.sidebar__title {
  font-weight: bold;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.sidebar__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  /* gạch đậm */
  margin-bottom: 0.8rem;
}

.sidebar__list {
  list-style: none;
}

.sidebar__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.sidebar__list img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.sidebar__list a {
  color: #222;
  text-decoration: none;
}

.sidebar__list a:hover {
  color: var(--primary);
  font-weight: 700; 
}

.sidebar__footer {
  margin-top: 0.6rem;
  text-align: right;
}

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar__list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  /* vạch ngăn cách nhạt */
}

.sidebar__list li:last-child {
  border-bottom: none;
  /* bỏ vạch ở mục cuối */
}

.sidebar__list a {
  color: #222;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.sidebar__list a:hover {
  color: var(--primary);
}

/* Ẩn từ thông báo thứ 5 trở đi */
.sidebar__block--notice .sidebar__list li:nth-child(n+5) {
  display: none;
}

/* Ẩn từ mục danh mục thứ 8 trở đi */
.sidebar__block--category .sidebar__list li:nth-child(n+8) {
  display: none;
}


/* Chỉ áp dụng cho ảnh trong danh sách thông báo */
.sidebar__block--notice .sidebar__list img {
  width: 100%;
  /* ngang toàn sidebar */
  height: auto;
  /* giữ tỉ lệ gốc */
  object-fit: cover;
  /* nếu muốn cắt thì thay auto bằng cover */
  border-radius: var(--radius);
  margin-bottom: 0.4rem;
  /* cách chữ một chút */
  display: block;
  /* tách riêng thành một dòng */
}

/* Pagination */
.pagination {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a {
  padding: 0.45rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #222;
}

.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 1.2rem;
  margin: 2rem auto 0 auto;
  max-width: 1200px;
  /* Giống content */

}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer__col {
  flex: 1 1 300px;
}

.footer a {
  color: #ffeaea;
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
  padding-top: 0.8rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

/* Partner logo */
.footer__partner img {
  width: 70px;
  /* hoặc clamp(80px, 15vw, 120px) */
  height: auto;
  /* giữ tỉ lệ gốc */
  object-fit: contain;
  /* ảnh không bị méo */
  margin-top: 0.5rem;
  display: block;
  border-radius: 10%;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .header__title {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    /* Giới hạn chiều rộng, tránh đè nút đăng nhập */
    word-wrap: break-word;
    /* Cho phép xuống dòng */
    overflow-wrap: break-word;
  }

  .header__ministry {
    font-size: 0.85rem;
    /* Nhỏ hơn */
    line-height: 1.3;
  }

  .header__portal {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .header__auth {
    display: none;
  }

  .header__toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    height: auto;
  }

  .nav__list {
    flex-direction: column;
    width: 100%;
  }

  .nav__link {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
  }

  .main__layout {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== ARTICLE DETAIL chi tiết new ========== */
.article__title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.article__meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article__thumb {
  margin-bottom: 1rem;
}

.article__thumb img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article__summary {
  font-style: italic;
  color: #444;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.article__content p {
  margin-bottom: 1rem;
  text-align: justify;
}


/* Hiệu ứng chung cho tất cả nút */
.btn {
  transition: all 0.25s ease;
  /* mượt mà khi đổi màu, scale... */
}

/* Nút chính */
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Nút viền */
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Khi nhấn giữ */
.btn:active {
  transform: translateY(0);
  /* trở lại vị trí ban đầu */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.article__thumb {
  width: 100%;
  max-width: 900px;
  /* vừa với phần content */
  margin: 1rem auto;
  /* luôn giữ khung ngang 16:9  aspect-ratio: 16/9;*/
  background: #f5f5f5;
  /* nền xám nhạt nếu ảnh không phủ hết */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  height: auto;

}

.article__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* hiển thị toàn bộ ảnh */
  display: block;
}


/* thay đổi thiết kế Khung chứa ảnh đại diện */
.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;   /* mặc định: ảnh ngang */
  overflow: hidden;
  border-radius: 6px;
}

/* Ảnh trong card */
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* ảnh bao phủ khung, không méo */
  display: block;
}

/* Responsive theo màn hình */
@media (max-width: 767px) {
  .card__media {
    aspect-ratio: 4 / 3;  /* mobile: ảnh cao hơn */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card__media {
    aspect-ratio: 16 / 9; /* tablet: giữ 16:9 */
  }
}

@media (min-width: 1024px) {
  .card__media {
    aspect-ratio: 3 / 2;  /* desktop: ảnh thấp hơn, cân đối */
  }
}

/* css trang gioi thiệu*/
.article__content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
  
}



/* ============ PAGE LĨNH VỰC ============ */
.categories-page__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.categories-page__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.categories-page__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.categories-page__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none; /* bỏ gạch chân */
  color: inherit;        /* giữ màu chữ */
}

.categories-page__media {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.categories-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.categories-page__body {
  padding: 0.8rem;
  text-align: center;
}

.categories-page__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 5;       /* tối đa 5 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;     /* thêm ... */
}


.categories-page__link:hover .categories-page__title {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1200px) {
  .categories-page__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .categories-page__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .categories-page__grid { grid-template-columns: 1fr; }
}
/* ========== DANH SÁCH FILE ========== */

/* Table documents */
.documents-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.documents-table th,
.documents-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.documents-table th {
  background: #f3f3f3;
  text-align: left;
}
.documents-table td {
  vertical-align: top;
}


/* Captcha modal */
.captcha-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.captcha-modal__dialog {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  width: 320px;
  text-align: center;
  position: relative;
}
.captcha-modal__dialog .close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 18px;
}
.captcha-display {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border: 1px solid #ccc;
  margin: 10px 0;
  background: #f9f9f9;
  user-select: none;
}

/* ========== Responsive cho bảng danh sách tệp ========== */

/* Khi màn hình nhỏ (dưới 768px) */
@media (max-width: 768px) {
  .documents-table-wrapper {
    width: 100%;
    overflow-x: auto;       /* cho phép cuộn ngang */
    -webkit-overflow-scrolling: touch;
  }

  .documents-table {
    min-width: 600px;       /* bảng không bị co quá nhỏ */
    font-size: 0.85rem;     /* chữ nhỏ hơn một chút */
  }

  .documents-table th,
  .documents-table td {
    padding: 6px;
  }

  /* Nút tải gọn hơn */
  .documents-table .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Phân trang co lại */
  .pagination a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Khi màn hình rất nhỏ (dưới 480px) */
@media (max-width: 480px) {
  .documents-table {
    min-width: 500px;
  }

  .documents-table th:nth-child(3),
  .documents-table td:nth-child(3) {
    display: none; /* Ẩn cột Trích yếu nếu quá chật */
  }
}

/* ============================
   Feedback form styling
   ============================ */
.feedback-section {
  margin: 2rem auto;
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feedback-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.feedback-form .form-group {
  display: flex;
  flex-direction: column;
}

.feedback-form .form-group.full {
  grid-column: 1 / -1;
}

.feedback-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.feedback-form input,
.feedback-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  font-size: 0.95rem;
  width: 100%;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.15);
}

.feedback-form .required {
  color: red;
}

.feedback-form .form-actions {
  grid-column: 1 / -1;
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-form .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== SPECIAL LINKS dưới banner ========== */
.special-links {
  margin: 2rem auto;
}

.special-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.special-links__item {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-links__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.special-links__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.special-links__title {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  z-index: 1;
  padding: 0 0.5rem;
   
}

/* Responsive */
@media (max-width: 900px) {
  .special-links__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .special-links__grid {
    grid-template-columns: 1fr;
  }
}
/*====== chỉnh sửa banner ===== */
.banner-slogan {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.banner-slogan__inner {
  display: inline-block;
  padding-left: 100%;                   /* đẩy ra ngoài ban đầu */
  animation: scrollLoop 40s linear infinite;
}

.banner-slogan__inner span {
  display: inline-block;
  margin-right: 3rem;                   /* khoảng cách giữa các câu */
}

/* Animation */
@keyframes scrollLoop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* cuộn nửa dải, vì ta nhân đôi nội dung */
}

/* Tóm tắt */
.news__summary {
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

/* Ảnh đại diện như trong trang new */
.news__image {
    margin: 1.5rem 0;
    text-align: center;
}

.news__image img {
    width: 100%;           /* Chiếm toàn bộ chiều ngang */
    height: auto;
    max-height: 450px;     /* Giới hạn chiều cao để không quá to */
    object-fit: cover;     /* Cắt ảnh để vừa khung, giữ tỉ lệ */
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Nội dung */
.news__content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 1rem;
}

/* ===============================
   PRODUCT DETAIL PAGE chi tiết sản phẩm
 =============================== */


.product-detail-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.product-detail__header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.8rem;
}

.product-title {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.product-meta {
  color: #555;
  font-size: 0.95rem;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  position: relative;
}

/* Đường gạch mờ giữa hai cột */
.product-detail__grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(66.66% - 1rem); /* giữa khoảng 2/3 và gap */
  width: 1px;
  background: #ddd;
}

.product-detail__left,
.product-detail__right {
  background: #fff;
}

.product-detail__left p {
  line-height: 1.6;
  color: #222;
  text-align: justify;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h3 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-image {
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail__right {
  align-self: start;
  padding-left: 1rem;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  margin-bottom: 0.9rem;
  border-bottom: 1px dashed #eee;
  padding-bottom: 0.7rem;
}

.info-list li strong {
  display: block;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.info-list a {
  color: var(--primary);
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

.detail-actions {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
  }

  .product-detail__grid::before {
    display: none;
  }

  .product-detail__right {
    padding-left: 0;
    margin-top: 1.5rem;
  }
}

/* Sửa lệch giữa banner và slogan */
.banner,
.banner-slogan {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Giữ slogan dính sát banner, không thừa line-height */
.banner-slogan {
  line-height: 1.4;
  padding: 0.6rem 0;
}


