/* Homepage Styles */
.homepage-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding: 50px 0;
  margin: 0 auto;
  width: 100%;
}

.homepage-hero-image {
  position: relative;
}

.homepage-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.homepage-hero-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
}

.homepage-hero-title {
  font-size: 3em;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.homepage-hero-subtitle {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.homepage-hero-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 40px;
  line-height: 1.7;
}

.homepage-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.homepage-features-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 30px 0px;
  gap: 20px;
}

.homepage-feature {
  flex-grow: 1;
  min-width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('https://sharing.cohota.com/hoclieutiengtrung/banner_background.jpg')
}

.homepage-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.homepage-feature-icon {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homepage-feature-icon img {
  width: 70px;
  height: 70px;
}

.homepage-feature-text {
  font-size: 1.4em;
  font-weight: 500;
}

.homepage-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.homepage-btn-primary {
  background-color: oklch(57.7% .245 27.325);
  color: #f1f1f1;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.homepage-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.homepage-banner {
  padding: 30px 0;
}

.homepage-banner-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.homepage-banner-card {
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('https://sharing.cohota.com/dronesoccer/logo.jpg')
}

.homepage-banner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.homepage-banner-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 20px;
}

.homepage-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.homepage-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.homepage-banner-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  margin: 0;
  line-height: 1.3;
}

.homepage-banner-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

.homepage-banner-link {
  font-size: 1rem;
  font-weight: 600;
  color: oklch(57.7% .245 27.325);
  margin-top: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.homepage-banner-card:hover .homepage-banner-link {
  transform: translateX(5px);
}

.homepage-courses {
  padding: 30px 0;
}

.homepage-courses-container {
  max-width: 1500px;
  margin: 0 auto;
}

.homepage-title {
  text-align: center;
  color: #333333;
  margin-bottom: 10px;
}

.homepage-subtitle {
  text-align: center;
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.homepage-course-grid {
  display: grid;
  gap: 20px;
  padding: 10px 0px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.homepage-course-card {
  border: 1px solid #042069;
  border-top: 5px solid #042069;
  background-color: transparent;
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.homepage-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.homepage-course-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  aspect-ratio: 1/1; 
  object-fit: contain;
}

.homepage-course-content {
  padding-top: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.homepage-course-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.homepage-course-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.homepage-course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #555555;
}

.homepage-course-instructor img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.homepage-course-btn {
  width: 100%;
  text-align: center;
  background: #042069;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Course Details Section */
.homepage-course-details {
  padding: 80px 0;
  background: white;
}

.homepage-course-detail-card {
  background: #f4f4f4;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.homepage-course-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 30px;
  text-align: center;
}

.homepage-course-modules {
  display: grid;
  gap: 25px;
}

.homepage-module {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid oklch(57.7% .245 27.325);
}

.homepage-module-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 15px;
}

.homepage-module-lessons {
  display: grid;
  gap: 10px;
}

.homepage-lesson {
  padding: 12px 15px;
  background: #f4f4f4;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.homepage-lesson:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.homepage-lesson-link {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.homepage-lesson-link:hover {
  color: oklch(57.7% .245 27.325);
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .homepage-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0px;
    text-align: center;
  }

  .homepage-hero-title {
    font-size: 2.5rem;
  }

  .homepage-hero-subtitle {
    font-size: 1.1rem;
  }

  .homepage-hero-description {
    font-size: 1rem;
  }

  .homepage-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .homepage-cta {
    justify-content: center;
  }

  .homepage-title {
    font-size: 2rem;
  }

  .homepage-course-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .homepage-course-card {
    margin: 0 10px;
  }

  .homepage-banner-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .homepage-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .homepage-banner-image {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .homepage-hero-title {
    font-size: 2rem;
  }

  .homepage-hero-subtitle {
    font-size: 1rem;
  }

  .homepage-cta {
    flex-direction: column;
    align-items: center;
  }

  .homepage-banner-title {
    font-size: 1.3rem;
  }

  .homepage-banner-description {
    font-size: 0.9rem;
  }

  .homepage-banner-card {
    padding: 20px;
  }

  .homepage-banner-image {
    width: 80px;
    height: 80px;
  }
}
