/* Home Page Styles */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80")
    center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  color: #fff;
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease 0.2s forwards;
  opacity: 0;
}

.hero p {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 15px;
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-search {
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease 0.8s forwards;
  opacity: 0;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.search-form button {
  padding: 15px 30px;
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-text {
  font-size: 1rem;
}

/* Features Section */
.features {
  position: relative;
  overflow: hidden;
}

.feature-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.feature-icon i {
  font-size: 30px;
  color: #fff;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-text {
  color: var(--gray-dark);
}

/* Popular Courses */
.courses {
  background-color: var(--gray-light);
}

.course-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-img {
  position: relative;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.course-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary);
  color: var(--text-dark);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-content {
  padding: 25px;
}

.course-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-stars {
  color: #ffc107;
  margin-right: 10px;
}

.rating-count {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.course-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.course-title a:hover {
  color: var(--primary);
}

.course-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.course-detail {
  display: flex;
  align-items: center;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.course-detail i {
  margin-right: 5px;
  color: var(--primary);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.course-instructor {
  display: flex;
  align-items: center;
}

.instructor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.instructor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.course-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.course-price.free {
  color: var(--success);
}

.course-price .old-price {
  text-decoration: line-through;
  color: var(--gray-dark);
  font-size: 0.9rem;
  font-weight: 400;
  margin-right: 5px;
}

/* Categories Section */
.categories {
  position: relative;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 2;
}

.category-title {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.category-count {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Testimonials */
.testimonials {
  background-color: var(--gray-light);
}

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.testimonial-content::before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 0;
}

.testimonial-rating {
  color: #ffc107;
  margin-top: 5px;
}

/* Newsletter */
.newsletter {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80")
    center / cover no-repeat;
  padding: 80px 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 20px;
}

.newsletter p {
  color: #fff;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 15px 30px;
}

/* Partners */
.partners {
  padding: 60px 0;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  padding: 15px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  max-height: 70px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-search {
    padding: 15px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 0 0 50%;
    margin-bottom: 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stat-item {
    flex: 0 0 100%;
  }
}

