/* CSS cho navbar */
.navbar {
  background: linear-gradient(
    45deg,
    #484980,
    #071bd3
  ); /* Gradient màu xanh lá cây khi được chọn */
  padding: 15px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 20px;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.navbar ul li {
  display: inline-block;
  position: relative;
  margin-right: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
  background-color: #083ac4;
  border-radius: 5px;
}

@media (max-width: 1080px) {
  .navbar {
    background: linear-gradient(
      45deg,
      #484980,
      #071bd3
    ); /* Gradient màu xanh lá cây khi được chọn */
    padding: 4px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 20px;
  }

  .navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
  }

  .navbar ul li {
    display: inline-block;
    position: relative;
    margin-right: 10px;
  }

  .navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 0.8em;
    padding: 6px 12px;
    transition: background-color 0.3s ease;
  }

  .navbar ul li a:hover {
    background-color: #083ac4;
    border-radius: 2px;
  }
}

/* Thiết kế cho banner */
.banner {
  background-image: url("https://gcs.tripi.vn/public-tripi/tripi-feed/img/474075gqP/mau-background-banner-trang_014245841.jpg"); /* Thay thế bằng URL ảnh của bạn */
  background-size: cover;
  background-position: center;
  height: 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  padding-left: 50px;
  padding-right: 50px;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(180, 180, 180, 0.3); /* Lớp phủ màu trắng với độ mờ */
  z-index: 1;
}

/* Nội dung banner sử dụng flexbox */
.banner-content {
  display: flex;
  justify-content: left;
  align-items: center;
  width: 80%; /* Giới hạn chiều rộng của nội dung banner */
  z-index: 1;
  position: relative;
}

/* Thiết kế logo bên trái */
.logo-left {
  max-width: 150px; /* Kích thước logo */
  margin-right: 20px; /* Khoảng cách giữa logo và nội dung */
}

/* Phần nội dung văn bản trong banner */
.banner-text {
  max-width: 800px; /* Giới hạn chiều rộng nội dung để gọn hơn */
  left: 0px;
}

.banner h1 {
  font-size: 2.5em;
  margin-bottom: 5px;
  margin-top: 5px;
  text-transform: none;
  color: red;
}

.banner h2 {
  font-size: 2em;
  margin-bottom: 5px;
  margin-top: 5px;
  color: rgb(40, 96, 201);
}

/* Căn chỉnh icon liên hệ và số điện thoại */
.contact-info {
  z-index: 2;
  display: flex; /* Căn các icon và text theo chiều ngang */
  align-items: center;
  gap: 10px; /* Khoảng cách giữa các mục liên hệ */
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item img.icon {
  width: 25px; /* Kích thước icon */
  height: 25px;
}

.contact-item span {
  font-size: 15px; /* Kích thước chữ cho số điện thoại */
  color: #d61c16; /* Màu trắng cho số điện thoại */
  width: 100pt;
}

.contact-face {
  display: flex;
  align-items: center;
}

.contact-face a {
  text-decoration: none; /* Loại bỏ gạch chân cho liên kết */
}

.contact-face span {
  font-size: 15px;
  color: #d61c16;
}

.contact-face a img.icon {
  width: 25px; /* Kích thước icon */
  height: 25px;
}

.contact-info img.icon:hover {
  transform: scale(1.1); /* Tăng kích thước icon khi hover */
  transition: transform 0.3s ease;
}

@media (max-width: 1080px) {
  /* Thiết kế cho banner */
  .banner {
    background-image: url("https://gcs.tripi.vn/public-tripi/tripi-feed/img/474075gqP/mau-background-banner-trang_014245841.jpg"); /* Thay thế bằng URL ảnh của bạn */
    background-size: cover;
    background-position: center;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
  }

  .banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
      180,
      180,
      180,
      0.3
    ); /* Lớp phủ màu trắng với độ mờ */
    z-index: 1;
  }

  /* Nội dung banner sử dụng flexbox */
  .banner-content {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 70%; /* Giới hạn chiều rộng của nội dung banner */
    z-index: 2;
    position: relative;
  }

  /* Thiết kế logo bên trái */
  .logo-left {
    max-width: 50px; /* Kích thước logo */
    margin-right: 10px; /* Khoảng cách giữa logo và nội dung */
  }

  /* Phần nội dung văn bản trong banner */
  .banner-text {
    max-width: 600px; /* Giới hạn chiều rộng nội dung để gọn hơn */
    left: 0px;
  }

  .banner h1 {
    font-size: 1.2em;
    margin-bottom: 2px;
    margin-top: 2px;
    text-transform: none;
    color: red;
  }

  .banner h2 {
    font-size: 0.8em;
    margin-bottom: 2px;
    margin-top: 2px;
    color: rgb(40, 96, 201);
  }

  /* Căn chỉnh icon liên hệ và số điện thoại */
  .contact-info {
    z-index: 2;
    display: flex; /* Căn các icon và text theo chiều ngang */
    align-items: right;
    gap: 2px; /* Khoảng cách giữa các mục liên hệ */
  }

  .contact-item {
    display: flex;
    align-items: flex-end;
    margin-bottom: 3px;
  }

  .contact-item img.icon {
    width: 15px; /* Kích thước icon */
    height: 15px;
  }

  .contact-item span {
    font-size: 10px; /* Kích thước chữ cho số điện thoại */
    color: #d61c16; /* Màu trắng cho số điện thoại */
    width: 55pt;
  }

  .contact-face {
    display: flex;
    align-items: flex-end;
  }

  .contact-face a {
    text-decoration: none; /* Loại bỏ gạch chân cho liên kết */
  }

  .contact-face span {
    display: none;
    font-size: 10px;
    color: #d61c16;
  }

  .contact-face a img.icon {
    width: 15px; /* Kích thước icon */
    height: 15px;
  }

  .contact-info img.icon:hover {
    transform: scale(1.1); /* Tăng kích thước icon khi hover */
    transition: transform 0.3s ease;
  }
}
/* Định dạng phần chính */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Custom phần section chọn bài thi */
.quiz-section {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 10px black;
  margin-bottom: 20px;
}

.quiz-section h2 {
  text-align: center;
  color: black;
  font-size: 2rem;
  margin-bottom: 20px;
}

@media (max-width: 1080px) {
  .quiz-section {
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px black;
    margin-bottom: 5px;
  }
  .quiz-section h2 {
    text-align: center;
    color: black;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}

/* Custom danh sách các bài thi */
.quiz-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Chia thành 2 cột */
  gap: 20px; /* Khoảng cách giữa các bài thi */
}

.quiz-item {
  background-color: #d4c3c3;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(15, 15, 15, 0.5);
  transition: transform 0.2s;
}

.quiz-item:hover {
  transform: translateY(-5px);
}

.quiz-item h3 {
  color: black;
  font-size: 1.5rem;
}

.quiz-item p {
  color: #1b1919;
  font-size: 1.21rem;
}

.quiz-item .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  text-decoration: solid;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.quiz-item .btn:hover {
  background-color: #005bb5;
  transform: translateY(-3px);
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 1080px) {
  .quiz-list {
    grid-template-columns: 1fr; /* Với màn hình nhỏ, chỉ hiển thị 1 cột */
  }
  .quiz-item {
    background-color: #d4c3c3;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(15, 15, 15, 0.5);
    transition: transform 0.2s;
  }

  .quiz-item:hover {
    transform: translateY(-2px);
  }

  .quiz-item h3 {
    color: black;
    font-size: 1.4rem;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .quiz-item p {
    color: #1b1919;
    font-size: 1rem;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .quiz-item .btn {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #0073e6;
    color: white;
    font-size: 1rem;
    text-decoration: solid;
    border-radius: 3px;
    transition: background-color 0.3s;
  }

  .quiz-item .btn:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
  }
}

/* Container cho giao diện thi trắc nghiệm */
.quiz-container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
}

/*Footer*/
.custom_footer_section {
  background-image: url("https://t3.ftcdn.net/jpg/04/42/06/34/360_F_442063430_OjLo5sHK0twuUk2hCGWpjLphEHiLcamL.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom_footer_content {
  display: flex;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  justify-content: space-between;
  gap: 20px;
}

.custom_footer_content .contact_info,
.custom_footer_content .services {
  flex: 1;
}

.custom_footer_content .logo {
  flex: 1;
  text-align: center;
}

.logo img {
  width: 110px;
  margin-bottom: 10px;
}

.logo p {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.social_icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social_icons a img {
  width: 30px;
  height: 30px;
}

.contact_info h3,
.services h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: red;
}

.contact_info p,
.services p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.contact_info a {
  color: #ffffff;
  text-decoration: none;
}

.contact_info a:hover {
  text-decoration: underline;
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border: none;
}

/* Responsive cho thiết bị di động */
@media (max-width: 768px) {
  .custom_footer_content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .custom_footer_content .contact_info,
  .custom_footer_content .services,
  .custom_footer_content .logo {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }

  .contact_info h3,
  .services h3 {
    font-size: 20px;
  }

  .contact_info p,
  .services p {
    font-size: 14px;
  }

  .logo img {
    width: 90px;
  }

  .logo p {
    font-size: 20px;
  }

  .social_icons {
    gap: 10px;
  }

  .social_icons a img {
    width: 25px;
    height: 25px;
  }
}

/* Phần Copyright và Design by */
.copyright {
  display: flex;
  justify-content: space-between; /* Căn đều giữa trái và phải */
  align-items: center; /* Căn giữa theo chiều dọc */
  padding: 2px 0; /* Khoảng cách trên dưới */
  background-color: #034ea2; /* Màu nền */
  color: white; /* Màu chữ */
  font-size: 0.9em; /* Kích thước chữ nhỏ */
}

.copyright .left {
  margin-left: 20px; /* Thêm khoảng cách cho phần bên trái */
}

.copyright .right {
  margin-right: 20px; /* Thêm khoảng cách cho phần bên phải */
}

.copyright p {
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: 50px;
  margin-left: 50px;
}
.copyright a {
  color: #ffffff; /* Màu chữ của liên kết */
  font-weight: bold;
  text-decoration: none; /* Loại bỏ gạch chân của liên kết */
}

.copyright a:hover {
  color: red; /* Thay đổi màu khi hover */
}

/* Đối với màn hình nhỏ */
@media (max-width: 768px) {
  .copyright {
    width: 99.7%;
    flex-direction: column; /* Căn dọc khi ở màn hình nhỏ */
    text-align: center; /* Căn giữa nội dung */
  }

  .copyright .left,
  .copyright .right {
    margin: 5px 0; /* Khoảng cách trên dưới khi căn dọc */
  }
}
