@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2&display=swap'); 
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
body {
      margin: 0;
      padding: 40px;
      background: url('https://i.pinimg.com/736x/0c/a3/51/0ca351d3116d63d1009e88cb52cd5413.jpg') no-repeat center center fixed;
      background-size: cover;
      font-family: 'Poppins', sans-serif;
      display: flex;
      flex-direction: column; /* Dọc */
      align-items: center;
      gap: 20px;
    }

    .card {
      font-family: 'Ubuntu', sans-serif;
  background-color: white;
  color: rgb(250, 0, 0);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(6, 6, 6, 0.3);
  overflow: hidden;
  padding: 20px;
  width: 480px;
  height: auto;
  border: 4px solid transparent;
  transition: transform 0.8s cubic-bezier(0.25, 1.25, 0.5, 1), 
              box-shadow 0.8s ease, 
              border-color 0.8s ease;
    }

    /* .card:hover {
      transform: translateY(-6px) scale(1.02);
  border-color: #00aaff;
  box-shadow: 0 18px 36px rgba(0, 170, 255, 0.45);
  cursor: url('https://files.catbox.moe/49xu5z.cur'), auto;
    } */
html, body, * {
  cursor: url('https://files.catbox.moe/49xu5z.cur'), auto;
}
a:hover {
  cursor: url('https://files.catbox.moe/n3733u.cur'), pointer;
}
/* Trạng thái ban đầu (ẩn + dịch xuống) */
/* Trạng thái ban đầu */
.card {
  opacity: 0;
  transform: translateY(40px); /* dịch xuống */
  transition: 
    opacity 0.6s ease, 
    transform 0.6s ease, 
    box-shadow 0.8s ease, 
    border-color 0.8s ease;
}

/* Khi hiện ra */
.card.show {
  opacity: 1;
  transform: translateY(0); /* về vị trí ban đầu */
}

/* Hiệu ứng hover: cộng thêm translateY và scale */
.card:hover {
  transform: translateY(-6px) scale(1.02); /* vẫn sẽ có hiệu ứng hover nếu đã có .show */
  border-color: #00aaff;
  box-shadow: 0 18px 36px rgba(0, 170, 255, 0.45);
  cursor: url('https://files.catbox.moe/49xu5z.cur'), auto;
}


    .card img {
      width: 100%;
  height: auto;
  object-fit: cover; /* Cắt ảnh hoặc căn chỉnh tùy theo tỷ lệ */
  display: block;
  border-radius: 12px;
    }

    .card-content {
      padding: 20px;
      text-align: center;
    }

    .card-title {
      margin-top: 12px;
      font-size: 1.2rem;
      text-align: center;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
      font-family: 'Quicksand', sans-serif;
    }

    .social-buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
      padding: 10px 20px 20px 20px;
      flex-wrap: wrap;
      font-family: 'Exo 2', sans-serif;
      font-weight: 400;
    }

    .social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center; /* căn giữa icon + text */
  gap: 6px;
  width: 100px;       /* chiều rộng cố định */
  height: 40px;       /* chiều cao cố định */
  padding: 0 12px;    /* đệm ngang */
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  font-family: 'Exo 2', sans-serif;
  transition: background 0.3s;
}


    .social-buttons a img {
      width: 23px;
      height: 23-px;
    }

    .facebook {
      background: #e7f0ff;
      color: #1877f2;
      font-family: "Exo 2", sans-serif;
      font-optical-sizing: auto;
    }

    .facebook:hover {
      background: #d0e2ff;
    }

    .youtube {
      background: #ffecec;
      color: #ff0000;
    }

    .youtube:hover {
      background: #ffd6d6;
    }

    .drive {
      background: #e8f5e9;
      color: #0f9d58;
    }

    .drive:hover {
      background: #c8e6c9;
    }
    /* PC (>= 769px): ẩn hamburger và mobile menu */
@media (min-width: 769px) {
  .hamburger,
  .mobile-menu {
    display: none;
  }
}
/* Mobile navbar */
@media (max-width: 768px) {
  .nav-left .nav-link {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    margin-right: 16px;
  }

  .hamburger span {
    height: 3px;
    border-radius: 2px;
    background-color: orange;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(2) {
    background-color: pink;
  }

  .hamburger span:nth-child(3) {
    background-color: lightgreen;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: white;
    border-top: 1px solid orange;
    z-index: 999;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

  .mobile-menu a {
    padding: 12px 16px;
    border-bottom: 1px solid orange;
    color: orange;
    text-decoration: none;
    font-weight: bold;
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu.show {
    display: flex;
  }
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
  background-color: red;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  background-color: red;
}
.hamburger span {
  transform-origin: center;
}
/* Navbar chính */
.navbar {
font-family: "Varela Round", sans-serif;
font-weight: 400;
font-style: normal;
position: fixed;
top: 0;
width: 100%;
margin: 0 auto; /* căn giữa */
background-color: white;
padding: 0.4rem 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
border-bottom: 3px dashed orange;
}

/* Phần trái navbar */
.nav-left {
display: flex;
gap: 1rem;
}
/* Link trong navbar */
.nav-link {
text-decoration: none;
font-family: 'Varela Round', sans-serif;
color: #333;
padding: 0.3rem 0;
position: relative;
font-size: 0.95rem;
transition: color 0.3s ease;
}
/* Gạch dưới (mặc định ẩn) */
.nav-link::after {
content: "";
position: absolute;
left: 0;
bottom: 0; /* đưa lên gần chữ hơn (từ -4px -> 0) */
height: 3px;
width: 0%;
background: linear-gradient(90deg, orange, pink, lightgreen);
border-radius: 6px;
transition: width 0.3s ease, bottom 0.3s ease;
}
/* Hover: hiện underline mở rộng mượt mà */
.nav-link:hover::after {
width: 100%;
}
.nav-link:hover{
color: orange;
}
/* Active: underline luôn hiện, màu nhạt */
.nav-link.active::after {
width: 100%;
background: linear-gradient(90deg, orange, pink, lightgreen);
opacity: 0.5; /* nhạt hơn khi active */
border-radius: 6px;
}
/* Logo giữa navbar */
.nav-left .logo {
height: 30px;       /* hoặc 24px nếu muốn nhỏ hơn nữa */
width: auto;
margin-right: 0.8rem; /* cách chữ kế bên một chút */
vertical-align: middle;
 text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-left: 12px; /* đẩy logo xa mép trái */
}
.nav-link.active {
color: orange;
}
/* -------Thẻ lọc và Search---------- */
    .filter-search-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* Ô lọc dropdown */
.custom-dropdown {
  position: relative;
  font-family: 'Quicksand', sans-serif;
}

.selected {
  border: 2px solid orange;
  border-radius: 999px;
  padding: 6px 16px;
  background: white;
  color: orange;
  font-weight: 500;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  cursor: url('https://files.catbox.moe/n3733u.cur'), pointer;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 2px solid orange;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 999;
  width: 100%;
  font-family: 'Quicksand', sans-serif;
  cursor: url('https://files.catbox.moe/n3733u.cur'), pointer;
}

.dropdown div {
  padding: 10px 16px;
  cursor: pointer;
  color: rgb(1, 60, 149);
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  transition: background 0.2s;
}

.dropdown div:hover {
  background-color: #ffe5cc; /* Cam nhạt */
}

/* Thanh tìm kiếm */
.search-box {
  display: flex;
  align-items: center;
  border: 2px solid orange;
  border-radius: 999px;
  padding: 6px 14px;
  background-color: white;
  font-family: 'Ubuntu', sans-serif;
  color: orange;
}

.search-icon {
  margin-right: 8px;
}

.search-box input {
  border: none;
  outline: none;
  font-family: 'Ubuntu', sans-serif;
  color: orange;
  background: transparent;
  font-size: 14px;
  width: 150px;
}

/* Layout dạng 2x2 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cột đều nhau */
  gap: 20px 32px; /* dọc, ngang */
  justify-content: center; /* căn giữa toàn bộ grid */
  max-width: 1080px; /* giới hạn chiều rộng */
  margin: 0 auto; /* căn giữa khối */
  padding-top: 5px;
}
.covid-19{
    padding-top: 20px;
}
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 30px auto 40px;
}

.pagination-btn {
  background-color: white;
  border: 2px solid white;
  color: orange;
  font-weight: bold;
  padding: 6px 14px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pagination-btn:disabled {
  color: gray;
  cursor: not-allowed;
  border-color: #ddd;
}

#pageIndicator {
  font-size: 16px;
  color: orange;
  font-weight: bold;
  font-family: 'Varela Round', sans-serif;
  background: white;
  border-radius: 999px;
  padding: 6px 18px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  /* Cover grid: 1 cột trên mobile */
  .cover-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Bố cục filter + search: dọc + căn giữa */
  .filter-search-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .custom-dropdown {
    order: -1; /* đẩy dropdown lên trên */
    margin-bottom: 8px;
  }
  .card {
    width: 90%;         /* Chiếm 90% chiều ngang */
    margin: 0 auto;     /* Căn giữa theo chiều ngang */
  }
}
.card-expanded-content {
  display: none;
  position: fixed; /* thay vì absolute */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* căn giữa */
  width: 90vw; /* 90% chiều rộng màn hình */
  /* max-width: 900px; */
  width: 850px; /* độ rộng cố định */
  height: 800px; /* chiều cao cố định */
  background: white;
  padding: 20px;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1001;
  box-sizing: border-box;
  top: 400px; /* khoảng cách với navbar (tuỳ bạn) */
  overflow-y: auto; 
}

.card.expanded {
  position: relative;
  z-index: 1000;
  width: 100%;
  overflow: visible; /* tránh cắt mất phần chi tiết */
}


.card.expanded .card-content,
.card.expanded .social-buttons,
.card.expanded img {
  display: none;
}

.card.expanded .card-expanded-content {
  display: block;
}

.card .close-btn {
  background: orange;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 12px;
  font-family: 'Quicksand', sans-serif;
}

.expanded-inner {
  font-family: 'Quicksand', sans-serif;
}

.expanded-inner img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #ffffff;
  color: #333;
  border: 2px solid #06b4f4;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 280px;
}

.download-btn:hover {
  background-color: #0968f5;
  color: white;
}

.download-icon {
  width: 20px;
  height: 20px;
}
.chenfile{
  margin-left: 80px;
  }



