.results-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* card*/
  .course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
  }
  
  .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .card-summary {
    display: flex;
    flex-direction: column;
    flex: 1; 
  }
  
  
  /* card title*/
  .course-card h3 {
    margin-top: 0;
    color: #222;
  }
  
  /* CTA button */
  .cta-button {
    display: inline-block;
    margin-top: 12px;
    background-color: #f1b458;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    display: block;
    margin: 12px auto 0 auto;
    width: fit-content;
  }
  
  .cta-button:hover {
    background-color:#f0a330;
  }

  .cta-button.expand-btn {
    margin-top: auto;
  }

  /* show pop card */
.card-expanded {
  display: none;
  background-color: #fff;
  padding: 16px;
  border-top: 1px solid #ddd;
  margin-top: 12px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.course-card.expanded .card-expanded {
  display: block;
}

/* close button style */
.card-expanded .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.card-expanded .close-btn:hover {
  color: #e74c3c;
}

/* card dong hua */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.results-wrapper {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 20px;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  border-radius: 10px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.popup-content .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.popup-content .close-btn:hover {
  color: #e74c3c;
}
  

/* search bar */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background-color: #eef4f9;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  margin: 24px auto;
  max-width: 900px; 
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-bar label {
  font-weight: bold;
  margin-right: 4px;
}

.search-bar input,
.search-bar select,
.search-bar button {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.search-bar input:focus,
.search-bar select:focus {
  outline: none;
  border-color: #f1b458;
}

.search-bar button {
  background-color:#f1b458;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-bar button:hover {
  background-color: #f0a739;
}

.container h1 {
  text-align: center;
  margin-bottom: 20px;
}
