* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Banner */
.banner {
  position: relative;
  height: 60vh;
  background: url("../images/banner.png") no-repeat center/cover;
  color: white;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.navbar button {
  background: #0099ff;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.navbar button:hover {
  background: #007acc;
}

/* Banner content */
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}
.banner-content h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}
.banner-content p {
  font-size: 1.1rem;
}

/* Gallery */
.gallery {
  padding: 60px 10%;
  background: #f8f8f8;
  text-align: center;
}
.gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* Card */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

/* IMAGE FIX — KHÔNG BỊ MẤT GÓC */
.card img {
  width: 100%;
  height: auto;               /* Giữ tỷ lệ ảnh gốc */
  display: block;
  border-radius: 12px 12px 0 0;
  transition: 0.4s;
  object-fit: cover;

}

.card h3 {
  padding: 15px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }
  .banner-content h1 {
    font-size: 2rem;
  }
  .navbar {
    padding: 10px 20px;
  }
}

/* Popup Login */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
  animation: fadeIn 0.4s ease;
  position: relative;
}
.popup-content h2 {
  margin-bottom: 20px;
}
.popup-content input {
  width: 90%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.popup-content button {
  background: #0099ff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.popup-content button:hover {
  background: #007acc;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #555;
  cursor: pointer;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Button View */
.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  background: #0099ff;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: 0.3s;
  font-weight: 500;
}

.btn-view img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}

.btn-view:hover {
  background: #007acc;
  transform: scale(1.05);
}

.btn-view:hover img {
  transform: rotate(10deg) scale(1.1);
}
