body {
  background-image: url(png/bg2.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

.region {
  border-style: hidden;
  padding: 10px 15px;
  width: 100%;
}

.header {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  padding: 20px 0;
  padding-left: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  padding: 2px 15px;
  margin: 0;
  text-transform: uppercase;
  font-size: 2rem;
}

.slogan {
  color: #ccc;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  padding: 2px 15px;
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-list {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.navigation_menu {
  width: 100%;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.5);
}

.nav-item a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

.nav-item a:hover {
  color: rgb(0, 255, 55);
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
  min-width: 160px;
  list-style: none;
  padding: 0;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li a:hover {
  background-color: #555;
  color: yellow;
}

a {
  text-decoration: none;
  color: aliceblue;
  padding: 0 10px;
}

.content {
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}

.table-wrapped {
  color: rgb(251, 251, 251);
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
}

figcaption {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 7.5px 0;
}

td {
  font-size: 13.75px;
  color: white;
  text-align: center;
  padding: 7.5px 0;
}

.main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.sodo {
  width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

.card-container {
  display: flex;
  justify-content: flex-end;
  width: auto;
}

.card {
  width: fit-content;
  max-width: 200px;
  background-color: #ffffff;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px 5px 0 0;
}

.caption {
  background-color: #ffffff;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 6px 5px;
  margin: 0%;
  text-align: center;
  font-weight: bold;
}

.the-thanh-vien {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.link-thanh-vien {
  text-decoration: none;
  color: #ffffff;
  display: block;
  width: 100%;
}

.link-thanh-vien:hover {
  text-decoration: underline;
}

.preview-profile {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: white;
  color: #333;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: all 0.3s ease;
  pointer-events: none;
}

.the-thanh-vien:hover .preview-profile {
  visibility: visible;
  opacity: 1;
  bottom: 110%;
}

.preview-profile::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.preview-profile img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.preview-content {
  padding: 10px;
  text-align: left;
  white-space: normal;
}

.preview-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #1a4d8c;
}

.preview-content p {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.preview-more {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #777;
  font-style: italic;
}

.recap {
  display: flex;
  width: fit-content;
  margin: 10px auto;
  border-style: double;
  border-color: orange;
  border-radius: 6px;
  padding: 10px;
}

.footer {
  width: 100%;
  padding: 2px 15px;
  border-style: hidden;
  background: rgba(0, 0, 0, 0.7);
}

.Cntct {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  padding: 15px 10px;
  margin-top: 2px;
  font-size: 24px;
}

.information {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  right: 30px;
  bottom: 20px;
  color: white;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  padding: 10px 25px;
  font-size: 16px;
}

.information p {
  display: flex;
  align-items: center; /* Căn icon và chữ nằm ngang nhau */
  margin: 5px 0;
}

.fa {
  /* 2. Cố định độ rộng cho icon để phần chữ phía sau thẳng hàng */
  width: 30px;
  text-align: center;
  margin-right: 10px;
}

iframe {
  width: 345px;
  height: 195px;
}

@media (max-width: 600px) {
  .name {
    font-size: 25px;
  }

  .slogan {
    font-size: 9px;
  }

  .navigation_menu {
    padding: 5px 0;
  }

  .nav-item {
    font-size: 14px;
  }

  .content {
    padding: 10px;
  }

  figcaption {
    font-size: 20px;
  }

  td {
    font-size: 15px;
  }

  .main {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .sodo {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .Cntct {
    font-size: 20px;
  }

  .information {
    font-size: 14px;
  }

  iframe {
    width: 215px;
    height: 125px;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .main {
    flex-wrap: wrap;
    flex-direction: column;
  }
}
