.courses-hero {
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  padding: 2.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.courses-hero-content {
  flex: 1;
  min-width: 300px;
}

.courses-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.courses-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.view-all-btn {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.view-all-btn:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.courses-section {
  background-color: #f9fafb;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.courses-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.course-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.85;
}

.course-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.course-image svg {
  width: 70%;
  height: 70%;
  opacity: 0.9;
}

.course-card:hover .course-image {
  transform: scale(1.05);
}

.course-category {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.course-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin: 0;
}

.course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.course-age,
.course-duration {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.course-age svg,
.course-duration svg {
  width: 16px;
  height: 16px;
  stroke: #9ca3af;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.stars {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
}

.reviews {
  font-size: 0.8rem;
  color: #9ca3af;
}

.enroll-btn {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.enroll-btn:hover {
  background-color: #2563eb;
}

.enroll-btn:active {
  transform: scale(0.98);
}

.courses-footer-nav {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
  padding: 0.5rem;
}

.footer-item:hover,
.footer-item.active {
  color: #3b82f6;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

.footer-login {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.footer-login:hover {
  background-color: #2563eb;
}

@media (max-width: 1024px) {
  .courses-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .courses-hero {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .view-all-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .courses-container {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .courses-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .courses-hero-content {
    min-width: auto;
  }

  .courses-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .courses-subtitle {
    font-size: 0.9rem;
  }

  .view-all-btn {
    width: 100%;
  }

  .course-card {
    border-radius: 0.75rem;
  }

  .course-content {
    padding: 1rem;
    gap: 0.6rem;
  }

  .course-title {
    font-size: 0.95rem;
  }

  .course-meta {
    gap: 0.75rem;
    font-size: 0.75rem;
  }

  .enroll-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    margin-top: 0.4rem;
  }

  .courses-footer-nav {
    position: static;
  }

  .footer-container {
    gap: 0.5rem;
  }

  .footer-item {
    font-size: 0.65rem;
  }

  .footer-login {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 480px) {
  .courses-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .courses-section {
    padding: 1rem 0.75rem;
  }

  .courses-hero {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }

  .courses-title {
    font-size: 1.25rem;
  }

  .courses-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .view-all-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .course-card {
    border-radius: 0.5rem;
  }

  .course-image-wrapper {
    aspect-ratio: 1 / 0.8;
  }

  .course-image svg {
    width: 65%;
  }

  .course-category {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .course-content {
    padding: 0.85rem;
    gap: 0.5rem;
  }

  .course-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .course-meta {
    gap: 0.5rem;
    font-size: 0.7rem;
  }

  .course-rating {
    margin-top: 0.15rem;
  }

  .stars {
    font-size: 0.8rem;
  }

  .reviews {
    font-size: 0.7rem;
  }

  .enroll-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
  }

  .footer-container {
    gap: 0.25rem;
  }

  .footer-item {
    flex: 1;
    max-width: 60px;
    font-size: 0.6rem;
  }

  .footer-login {
    flex: 1;
    max-width: 100px;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }
}
