/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #7db6fbe6;
  background-size: cover;
  color: #333;
}
.image-slider {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding: 10px 0;
}

.slide-track {
  display: flex;
  width: calc(500px * 10); 
  animation: scroll 20s linear infinite;
}

.slide-track img {
  width: 400px;
  height: 300px;
  margin: 0 10px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 5)); } /* dịch 1 nửa chiều dài */
}

/* Menu */
nav {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 0;
}

nav a {
  color: #f6f2f2eb;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}
.navbar a {
  font-size: 14px; /* giảm số này để chữ nhỏ hơn, ví dụ 14px */
}


nav a:hover {
  color: yellow;
}

/* Header / Banner */
header {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 10px;
}

header h1 {
  color: #67a3fd;
  margin-bottom: 10px;
}

/* Nội dung chính */
main {
  background: rgba(255, 255, 255, 0.582);
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
}

main h2 {
  color: #f659a0;
  margin-bottom: 15px;
}

main div img{
  border-width: 0px;
}
main img{
    border-style: solid;
    border-width: 6px ;
    border-color: rgb(172, 215, 255);
    border-radius: 10px;
}

main ul {
  list-style: square inside;
  margin: 10px 0;
}

main ul li {
  margin: 8px 0;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input, form textarea {
  padding: 8px;
  border: 1px solid #e1dede;
  border-radius: 5px;
}

form button {
  padding: 10px;
  background: #4765eb;
  border: none;
  color: rgb(243, 240, 240);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #f02e14;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: rgba(254, 128, 187, 0.695);
  color: rgb(245, 242, 242);
  margin-top: 20px;
  border-radius: 10px 10px 0 0;
}

div{
  width: 70%;
  text-align: center;
  margin: 0 auto;
}
/* Header */
header {
  background-color: #c2daf8e6;
  box-shadow: 0 2px 100px rgba(187, 154, 154, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

/* Logo */
.logo img {
  height: 60px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s;
}
.logo img:hover {
  transform: scale(1.1);
}


nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #ebceed;
  font-weight: 500;
  font-size: 18px;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffffff;
  border-bottom: 2px solid #fab7e5;
  padding-bottom: 2px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black; 
  padding: 10px 90px;
}

.logo {
  width: 60px;  
  margin-right: 20px;
  width: 60px;        
  height: 60px;        
  border-radius: 50%; 
  object-fit: cover;   
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.nav-links a:hover {
  text-decoration: underline;
}
.slide-track img {
  margin: 0 10px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.slide-track img:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
img {
  transition: transform 0.3s ease;
  border-radius: 10px;
}

img:hover {
  transform: scale(1.1);
  cursor: pointer;
}
