@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro&display=swap");

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
body {
  background-color: #f8fafc;
  color: #2d3748;
  line-height: 1.8;
  overflow-x: hidden;
  font-family: "Be Vietnam Pro", sans-serif;
}

a {
  text-decoration: none !important;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a3c34;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f6ad55;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header and Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1a3c34, #2d6a4f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hamburger {
  display: none;
  background-color: #2d6a4f;
  color: white;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  text-align: right;
  width: 100%;
  position: relative;
}

.close-menu {
  display: none;
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
}

nav {
  display: block;
  background: #1a3c34;
  width: 100%;
  padding: 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px;
}

nav ul li a {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: #f6ad55;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Slideshow */
.slideshow {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #000;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slideshow .prev,
.slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.slideshow .prev:hover,
.slideshow .next:hover {
  background: #f6ad55;
}

.slideshow .prev {
  left: 20px;
}

.slideshow .next {
  right: 20px;
}

/* Main Container */
.main-container {
  display: flex;
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Content */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.top-banner {
  background: linear-gradient(135deg, #1a3c34, #2d6a4f);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.top-banner h2 {
  font-size: 2.4rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

section {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
section ul {
  padding-left: 40px;
}

section:hover {
  transform: translateY(-5px);
}

h2 {
  color: #1a3c34;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #f6ad55;
  position: absolute;
  bottom: -10px;
  left: 0;
}

p,
ul li {
  font-size: 1rem;
  margin: 12px 0;
  color: #4a5568;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card h3 {
  color: #2d6a4f;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: #4a5568;
}

/* Travel Grid */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.travel-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.travel-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.travel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.travel-card h3 {
  color: #2d6a4f;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.travel-card p {
  font-size: 0.9rem;
  color: #4a5568;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox .close:hover {
  color: #f6ad55;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #f6ad55;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

/* Contact Modal */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.active {
  display: flex;
  opacity: 1;
}

.contact-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #2d3748;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #f6ad55;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: #1a3c34;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #f6ad55;
  box-shadow: 0 0 8px rgba(246, 173, 85, 0.3);
  outline: none;
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.submit-btn {
  background: #f6ad55;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
  background: #dd6b20;
  transform: translateY(-2px);
}

#formMessage {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

/* Map */
.map {
  margin-top: 25px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #1a3c34, #2d6a4f);
  color: #fff;
  padding: 40px 20px;
  box-shadow: 0 -4px 15px rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #f6ad55;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin: 5px 0;
  display: block;
}

.footer-section a:hover {
  color: #fff;
}

.social-links a {
  margin-right: 15px;
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #f6ad55;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #f6ad55;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .slideshow {
    height: 500px;
  }

  .main-container {
    margin: 10px;
    flex-direction: column;
  }

  .travel-grid,
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .close-menu {
    display: block;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 52, 0.95);
    z-index: 999;
    padding: 50px 15px;
    overflow-y: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  nav.active {
    display: block;
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    align-items: flex-start;
  }

  nav ul li a {
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 8px;
    display: block;
    touch-action: manipulation;
    width: 100%;
    text-align: left;
  }

  .slide-caption {
    font-size: 1.2rem;
    padding: 10px 20px;
    max-width: 80%;
  }

  section {
    padding: 25px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .top-banner h2 {
    font-size: 2rem;
  }

  .map iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .slideshow {
    height: 300px;
  }

  .slide-caption {
    font-size: 1rem;
    padding: 8px 15px;
    max-width: 90%;
  }

  section {
    padding: 20px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .top-banner h2 {
    font-size: 1.8rem;
  }

  .travel-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .map iframe {
    height: 250px;
  }

  nav ul li a {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .hamburger {
    font-size: 1.2rem;
    padding: 8px 12px;
  }

  .close-menu {
    font-size: 1.3rem;
    top: 8px;
    left: 12px;
  }
}
/* Thêm vào styles.css hiện có */
.travel-card {
  text-decoration: none; /* Đảm bảo không có gạch chân cho liên kết */
  color: inherit; /* Giữ màu chữ từ CSS gốc */
}

.travel-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.travel-card h3 {
  transition: color 0.3s ease;
}

.travel-card:hover h3 {
  color: #f6ad55; /* Màu nổi bật khi hover */
}

@media (max-width: 768px) {
  .travel-card {
    padding: 15px; /* Giảm padding cho thiết bị nhỏ hơn */
  }

  .travel-card img {
    max-height: 150px; /* Giảm chiều cao hình ảnh cho thiết bị di động */
  }

  .travel-card h3 {
    font-size: 1.2rem;
  }

  .travel-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .travel-card img {
    max-height: 130px;
  }

  .travel-card h3 {
    font-size: 1.1rem;
  }

  .travel-card p {
    font-size: 0.8rem;
  }
}
p {
  text-align: justify;
}
