/* Reset và font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Nội dung chính */
.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.content h1 {
  font-size: 2.2rem;
  color: #27ae60;
  margin-bottom: 25px;
  text-align: center;
}

.content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.content strong {
  font-weight: bold;
  color: #2c3e50;
}

.content .intro-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* CARD GRID - hiển thị 5 card/lần và responsive */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px;
}

/* CARD BOX */
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* HÌNH ẢNH */
.card-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid #ccc;
}

/* NỘI DUNG */
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.duration,
.price {
  margin: 5px 0;
  font-weight: normal;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(to right, #27ae60, #2ecc71);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: none;
}

.card:hover .badge {
  display: block;
}

.code {
  font-weight: bold;
  font-size: 1rem;
}

.location {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 4px 0;
  color: #2c3e50;
}

.desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.read-more {
  margin-top: auto;
  padding: 8px 15px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #2ecc71;
}

/* NỘI DUNG ẨN */
.extra-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 10px;
}

.extra-content.open {
  max-height: 500px;
}

/* Ẩn phần này nếu không dùng */
.card-container {
  display: none;
}
/* Responsive tổng thể cho thiết bị nhỏ */
@media (max-width: 768px) {
  /* --- Header và Menu --- */
  .navbar {
    padding: 10px 15px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    text-align: left;
  }

  .menu-toggle {
    display: flex;
    order: 1;
    margin-right: auto;
  }

  .navbar .menu {
    display: none;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #2c6e49;
    flex-direction: column;
    padding: 60px 20px 20px;
    gap: 15px;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .navbar .menu.active {
    display: flex;
    left: 0;
  }

  .navbar .menu a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar .menu a:last-child {
    border-bottom: none;
  }

  /* Content styles */
  .content {
    padding: 15px;
    margin-top: 20px;
    padding-top: 60px;
  }

  .content h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  /* Card section styles */
  .card-section {
    padding: 15px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    margin-bottom: 20px;
  }

  .card-image {
    height: 200px;
  }

  .card-content {
    padding: 10px;
  }

  .badge {
    font-size: 0.65rem;
  }

  .code,
  .duration,
  .location,
  .price {
    font-size: 0.9rem;
  }

  .desc {
    font-size: 0.8rem;
  }

  .read-more {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .footer-section {
    padding: 20px 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .links,
  .branding {
    text-align: center;
  }

  .links-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .links-list {
    padding: 0;
  }

  .link-item {
    font-size: 14px;
  }
  /* 
  .branding-text {
    font-size: 16px;
  } */

  .branding-description {
    font-size: 14px;
  }

  .social-button {
    padding: 8px;
  }

  .copyright {
    font-size: 12px;
    margin-top: 20px;
  }

  .branding-icon {
    width: 30px !important; /* Use !important to override other styles */
    height: 30px !important; /* Use !important to override other styles */
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .content {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Desktop styles */
@media (min-width: 1025px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  .content {
    padding-top: 80px;
  }
}
.read-more a {
  text-decoration: none;
  color: white;
  font-size: 18px;
}
