* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #fff;
  color: #1c1d1f;
  line-height: 1.4;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Section */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1c1d1f;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page-description {
  font-size: 1.125rem;
  color: #4a5568;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 2rem;
}

/* Courses Section */
.courses-section {
  margin-bottom: 3rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.course-card {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.course-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.course-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-content {
  padding: 1rem;
  text-align: center;
}

.course-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1d1f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Show All Section */
.show-all-section {
  text-align: left;
  margin-top: 2rem;
}

.show-all-btn {
  background: transparent;
  border: 2px solid #2196f3;
  color: #2196f3;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.show-all-btn:hover {
  background: #2196f3;
  color: white;
}

/* Responsive Design */
@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .course-image {
    height: 180px;
  }

  .page-description {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .page-description {
    font-size: 1.25rem;
  }

  .page-header {
    margin-bottom: 4rem;
  }

  .course-title {
    font-size: 1.125rem;
  }

  .course-content {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .course-image {
    height: 200px;
  }

  .page-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding: 2rem;
  }

  .page-title {
    font-size: 4rem;
  }
}

/* Loading animation */
.page-header {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.course-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(1) {
  animation-delay: 0.3s;
}
.course-card:nth-child(2) {
  animation-delay: 0.4s;
}
.course-card:nth-child(3) {
  animation-delay: 0.5s;
}
.course-card:nth-child(4) {
  animation-delay: 0.6s;
}

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