/* ===================== RESET ===================== */
html {
            scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: left;
  background-color: #f5f5f5;
  overflow-x: hidden; /* Ngăn cuộn ngang */
}

* {
  box-sizing: border-box;
}

/* ===================== TITLE ===================== */
.title {
  font-size: 24px;
  background-color: rgb(125, 164, 193);
  height: 50px;
  font-weight: bold;
  margin: 0;
  padding-top: 15px;
  padding-left: 100px;
}

/* ===================== SEARCH BAR ===================== */
.search-bar {
  display: flex;
  align-items: center;   /* Căn giữa theo chiều dọc */
}

.search-input {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px 0 0 5px; /* bo góc bên trái */
  border: 1px solid #ccc;
  outline: none;
}

.search-button {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 0 5px 5px 0; /* bo góc bên phải */
  border: 1px solid #007bff;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  height: 100%;              /* cao bằng input */
}

.search-button:hover {
  background-color: #0056b3;
}


/* ===================== NAVBAR ===================== */
.navbar {
  display: grid;
  grid-template-columns: 1fr;
  background-color: #333;
}

.navbar ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0;
}

.navbar a {
  display: inline-block;
  padding: 14px 20px;
  text-decoration: none;
  color: white;
  width: 100%;
  text-align: center;
}

.navbar a:hover {
  background-color: #555;
}

/* ===================== HEADER ROW ===================== */
.headerow {
  display: grid;
  grid-template-columns: 20% 20% 20% 40%;
  width: 100%;
  gap: 10px;
  padding-left: 90px;
}

.row3 {
  text-align: center;
}

/* ===================== SLIDESHOW ===================== */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border: #0e4c75 15px solid;
  height: 600px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 30px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  user-select: none;
  text-align: center;
  line-height: 50px;
  z-index: 2;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ===================== CONTENT ===================== */
.description {
  margin: 20px;
  font-size: 16px;
}

.gioithieu {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
}

.content {
  max-width: 900px;      /* Giới hạn chiều rộng cho dễ đọc */
  margin: 40px auto;     /* Căn giữa khối nội dung và tạo khoảng cách */
  padding: 20px;         /* Thêm khoảng cách bên trong */
  text-align: justify;   /* Căn đều 2 bên cho đoạn văn */
  line-height: 1.8;      /* Giãn dòng cho dễ đọc */
  font-size: 16px;       /* Cỡ chữ dễ nhìn */
  color: #333;           /* Màu chữ nhã nhặn */
  background-color: #fff; /* Nền trắng để nổi bật nội dung */
  border-radius: 12px;   /* Bo góc mềm mại */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Đổ bóng nhẹ */
}
.content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a4f7a;        /* Màu tiêu đề nổi bật */
  text-align: center;    /* Tiêu đề nằm giữa */
}
.content p {
  margin-bottom: 16px;   /* Tạo khoảng cách giữa các đoạn */
}


/* ===================== FOOTER ===================== */
.footer {
  background-color: #0e4c75;
  color: white;
  padding: 40px 250px;
  font-family: Arial, sans-serif;
}

/* ===================== SEARCH RESULT ===================== */
.search-result {
  padding: 20px 100px;
  font-family: Arial, sans-serif;
}

.search-result h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0e4c75;
}

.search-item {
  background-color: #f9f9f9;
  border-left: 5px solid #0e4c75;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.search-item p {
  margin: 5px 0;
  font-size: 16px;
}

.search-item strong {
  color: #0e4c75;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .headerow {
    grid-template-columns: 1fr 1fr;
    padding-left: 20px;
  }

  .footer {
    padding: 30px 50px;
  }

  .slideshow-container {
    height: 400px;
    border-width: 10px;
  }

  .slide {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 20px;
    padding-left: 20px;
  }

  .headerow {
    grid-template-columns: 1fr;
    padding-left: 10px;
  }

  .slideshow-container {
    height: 250px;
    border-width: 8px;
  }

  .slide {
    height: 250px;
  }

  .footer {
    padding: 20px;
    text-align: center;
  }

  .search-result {
    padding: 10px;
  }

  .search-input {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 18px;
    padding-left: 10px;
  }

  .gioithieu {
    font-size: 28px;
  }

  .slideshow-container {
    height: 200px;
  }

  .slide {
    height: 200px;
  }
}
