/* Reset */
* {
  box-sizing: border-box;
}

.header *,
.navbar *,
.footer * {
  margin: 0;
  padding: 0;
}

.gvuhl{
  height: 100%;
  width: 100%;
  border-radius: 8px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #f0f2f5;
}

p, h2, h3 {
  text-align: justify;
  line-height: 1.6;
}

td {
  text-align: left; 
  padding: 10px;
}

/* Header */
.header {
  height: 80px;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.logo-img {
  height: 70px;
}
.menu-toggle {
  display: none;
  color: #2f61ad;
  font-size: 28px;
  cursor: pointer;
}

/* ===== HEADER RIGHT ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-box {
  font-size: 15px;
  color: #2f61ad;
  font-weight: 500;
}

/* ===== LANGUAGE ===== */
.lang-switch {
  font-weight: 500;
}

.lang-switch a {
  text-decoration: none;
  color: #2f61ad;
}

@media (max-width: 768px) {
  .date-box {
    display: none;
  }
}

/* ===== LANG TRONG NAV ===== */
.nav-lang {
  display: none; /* mặc định ẩn */
  justify-content: left;
  gap: 12px;
  padding: 12px;
}

.nav-lang img {
  width: 26px;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* Ẩn lang trên header */
  .lang-switch {
    display: none;
  }

  /* Hiện lang dưới nav */
  .nav-lang {
    display: flex;
  }

}

mark {
  background: yellow;
  color: black;
  padding: 2px;
  border-radius: 4px;
}

/* Navbar */
.navbar {
  background-color: #2f61ad;
  flex-shrink: 0;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 10px 20px;
  gap: 12px;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.nav-item.active > a {
  background: white;
  color: #2f61ad;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.nav-item > a:hover {
  background-color: #4c7cd5;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500;
  font-size: 20px;
}

/* Dropdown */
.dropdown-menu {
  list-style: none; /* Loại bỏ dấu chấm */
  padding: 0;
  margin: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: white;
  min-width: 200px;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  z-index: 999;
}
.dropdown-menu li a {
  color: #2f61ad;
  padding: 12px 20px;
  display: block;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background: #f0f2f5;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.schedule-item {
    display: flex; /* Sử dụng flexbox để chia 2 cột */
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa toàn bộ trong vùng */
    gap: 20px; /* Khoảng cách giữa ảnh và chữ */
    margin-bottom: 3px; /* Khoảng cách giữa các mục */
    flex-wrap: wrap;
}

.schedule-image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px; /* Bo góc nhẹ */
}

.schedule-text {
    flex: 1; /* Nội dung chữ chiếm 1 phần */
    text-align: left; /* Căn chữ về bên trái */
}
.schedule-text h2{
    text-align: left;
}

.media-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.media-box {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-9-16 { aspect-ratio: 9/16; }

.media-box img,
.media-box iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
  .media-wrapper {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.pagination a {
  padding: 8px 14px;
  border-radius: 8px;
  background: #eee;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.2s;
}

.pagination a:hover {
  background: #4c7cd5;
  color: white;
}

.pagination a.active {
  background: #2f61ad;
  color: white;
}

/* Slideshow container */
.slideshow-container{
  width: 100%;
  aspect-ratio: 16/6;   /* tỉ lệ khung ảnh */
  position: relative;
  overflow: hidden;
}

.mySlides{
  width: 100%;
  height: 100%;
}

.mySlides img{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ảnh luôn đầy khung */
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #717171;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

.page-banner {
  width: 100%;
  height: 140px; /* chỉnh tùy thích */
  background: url('img/bannercntt.png') no-repeat center;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-banner h1 {
  text-align: center;
  color: white;
  font-size: 32px;
  font-weight: 600;
  padding: 10px 30px;
}

.page-banner h2 {
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
  padding: 10px 30px;
}

@media (max-width: 768px) {
  .page-banner {
    height: 400px;
  }

  .page-banner h1 {
    /*font-size: 20px;*/
    text-align: center;
    padding: 6px 16px;
  }

  .page-banner h2 {
    /*font-size: 20px;*/
    text-align: center;
    padding: 6px 16px;
  }
}

/* Content */
.content {
  flex: 1;
  padding: 20px;
  padding-bottom: 20px;
}

.scroll-content {
  max-width: 0 auto;
  margin: 0 auto;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.post-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.a {
  text-decoration: none;
  color: #4462a7;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .navbar {
    display: none;
  }
  .navbar.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 12px; /* 👈 sửa lại */
    overflow: hidden;    /* 👈 để bo góc đẹp hơn */
  }
  .nav-item.dropdown:hover .dropdown-menu {
    display: none;
  }
  .nav-item.dropdown > a:focus + .dropdown-menu,
  .nav-item.dropdown > a:active + .dropdown-menu {
    display: block;
  }
   .nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .responsive-iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
  }

  .responsive-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

.footer {
  background-color: #2f61ad;
  color: #fff;
}

.footer {
  background: url('img/footercntt.png') no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
}

.footer-container,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.2fr 2.6fr 2.2fr 1.4fr;
  gap: 30px;
}

.footer-col h3 {
  margin-bottom: 12px;
  /*font-size: 16px;*/
  font-weight: bold;
}

.footer-col p {
  margin: 6px 0;
  line-height: 1.6;
}

.footer-logo {
  width: 140px;
  margin-bottom: 10px;
}

.footer-banner {
  display: block;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer-banner img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.social-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 6px 0;
}

.social-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background-color: #002770;
  text-align: center;
  padding: 12px;
  border-top: 1px solid #013d98;
  /*font-size: 13px;*/
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fanpage iframe {
    margin: auto;
  }
}

@media (max-width: 768px) {
  table {
    width: 100%;
    border-collapse: collapse;
  }

  tr {
    display: block;
    margin-bottom: 16px;
  }

  td {
    display: block;
    width: 100%;
    text-align: center; /* tất cả đều căn giữa */
  }

  td img {
    width: 180px;
    height: 260px;
    object-fit: cover;
  }
}