/* ===== HERO SECTION ===== */
.home .hero {
  background: linear-gradient(180deg, #e8faf3 0%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;  /* Ensure the hero section takes full screen height */
  text-align: center;
  padding: 60px 20px;
  width: 100%;  /* Ensure it takes the full width */
}

.hero-content {
  max-width: 700px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 3.5rem;  /* Make the title bigger */
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-content .highlight {
  color: #2ebfa5;  /* Highlight color for "TA Edu" */
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  color: #555;
  margin: 20px auto;
  max-width: 600px;
}

.hero-buttons {
  margin-top: 40px;
}

.hero-buttons .btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  margin: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.hero-buttons .btn.primary {
  background: #2ebfa5;
  color: white;
  border: none;
}

.hero-buttons .btn.primary:hover {
  background: #27a18b;
  transform: translateY(-3px);
}

.hero-buttons .btn.secondary {
  background: transparent;
  border: 2px solid #2ebfa5;
  color: #2ebfa5;
}

.hero-buttons .btn.secondary:hover {
  background: #2ebfa5;
  color: white;
  transform: translateY(-3px);
}

/* === Fix lệch hero hoàn toàn cho mobile === */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
  }

  .hero-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center !important;
  }

  .hero-content h1,
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    margin: 0 5px;
  }
}

/* ============ HERO PHẦN TIÊU ĐỀ ============ */
.hero {
  background: linear-gradient(180deg, #f6fff9, #ffffff);
  text-align: center;
  padding: 100px 20px 50px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #444;
}

/* ============ DANH SÁCH MÔN HỌC ============ */
.subject-list {
  background-color: #eefdf6;
  padding: 60px 20px 100px;
  text-align: center;
}

/* --- Grid chứa các card --- */
.subject-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin-top: 40px;
}

/* Card từng môn */
.subject-card {
  background: #ffffff;
  border: 1.5px solid #c8f3e5;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  width: 260px;
  padding: 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #2ecc9d;
}

.subject-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #eafcf5;
  padding: 10px;
}

.subject-card h2,
.subject-card h3 {
  color: #1ab293;
  font-size: 20px;
  margin-bottom: 10px;
}

.subject-card p {
  color: #444;
  font-size: 15px;
  margin-bottom: 18px;
}

/* --- Nút --- */
.subject-card .btn {
  display: inline-block;
  background: #1ab293;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.subject-card .btn:hover {
  background: #18a885;
  transform: translateY(-2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .subject-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 20px 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .subject-grid {
    flex-direction: column;
    align-items: center;
  }

  .subject-card {
    width: 90%;
    max-width: 340px;
  }
}

/* === Fix hero quá cao === */
.hero.hero-small {
  min-height: auto !important;
  padding: 100px 20px 50px !important;
  display: block !important;
}

.hero.hero-small h1 {
  margin-bottom: 10px;
}

.hero.hero-small p {
  margin-bottom: 0;
}
