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


.hero {
  background: url('../img/heroman.png') no-repeat right center;
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), */
    /* url("../img/heroman.png"); */
    /* background-repeat: no-repeat; */
    /* background-position: right center; */
  background-size: contain;
  height: 100vh;
  width: 100%;
  background-color: #bcddff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  color: white;
  text-align: left;
  background-attachment: fixed;
  padding: 0 20px;
  overflow: hidden;
}

.hero-container {
  max-width: 800px;
  position: relative;
  margin: 80px 0 0 50px;
  z-index: 2;
}

.hero-content {
  max-width: 500px;
  color: #111111;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  /* color: #111; */
  line-height: 1.2;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);*/
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  display: inline-block;
  font-size: 16px;
}

.btn-primary {
  background-color: #1eb2a6;
  color: white;
  border: 2px solid #1eb2a6;
}

.btn-primary:hover {
  background-color: #17a89d;
  border-color: #17a89d;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: #333;
  color: white;
  border: 2px solid #333;
}

.btn-secondary:hover {
  background-color: #444;
  border-color: #444;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero{
    background: url("");
  }
  .hero h1 {
    font-size: 36px;
  }

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

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

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

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

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

.features {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.feature-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item i {
  font-size: 40px;
  color: #1eb2a6;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.feature-item p {
  font-size: 16px;
  color: #666;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .features-row {
    flex-direction: column;
    align-items: center;
  }
}

.testimonials {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.testimonials-container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.testimonials-row {
  display: flex;
  overflow: hidden;
  position: relative;
}

.testimonial-item {
  flex: 1;
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.testimonial-item p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 15px;
}

.testimonial-item h4 {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 5px;
}

.testimonial-item span {
  font-size: 1rem;
  color: #888;
}

.slider-dots {
  text-align: center;
  margin-top: 20px;
}

.slider-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.slider-dot.active {
  background-color: #333;
}

@media (max-width: 1200px) {
  .testimonials h2 {
    font-size: 2.2rem;
  }

  .testimonial-item p {
    font-size: 1.1rem;
  }

  .testimonial-item h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .testimonials h2 {
    font-size: 2rem;
  }

  .testimonial-item p {
    font-size: 1rem;
  }

  .testimonial-item h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .testimonials h2 {
    font-size: 1.8rem;
  }

  .testimonial-item p {
    font-size: 0.95rem;
  }

  .testimonial-item h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .testimonials h2 {
    font-size: 1.6rem;
  }

  .testimonial-item p {
    font-size: 0.9rem;
  }

  .testimonial-item h4 {
    font-size: 1rem;
  }
}

.courses {
  padding: 50px 0;
  background-color: #f4f4f4;
}

.courses-container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.courses h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.courses-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.course-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-align: left;
}

.course-item img {
  width: 100%;
  height: 200px;
  border-bottom: 2px solid #eee;
  object-fit: cover;
}
.course-item-items{
  padding: 20px;
}
/* For the h3 element (Title) */
.course-item-items h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for overflow text */
  font-size: 1.8rem;
  margin: 15px 0 10px;
  color: #333;
}

/* For the p element (Description) */
.course-item-items p {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 3 lines, you can adjust this */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for overflow text */
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}


.courses-row .course-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1eb2a6;
  margin: 10px 0;
}

.enroll-now {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #1eb2a6;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.enroll-now:hover {
  background-color: #169e8f;
}

@media (max-width: 768px) {
  .courses-row {
    flex-direction: column;
    align-items: center;
  }
}

.blogs {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.blogs-container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.blogs h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.blogs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.blog-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-align: left;
}

.blogs-row .blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-item img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid #eee;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 1.8rem;
  margin: 15px 0 10px;
  color: #333;
}

.blog-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.blog-content .read-more {
  display: inline-block;
  font-size: 1rem;
  color: #1eb2a6;
  text-decoration: none;
  border-bottom: 2px solid #1eb2a6;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.blog-content .read-more:hover {
  color: #169e8f;
  border-bottom-color: #169e8f;
}

.view-all-blogs {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  color: #fff;
  background-color: #1eb2a6;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.view-all-blogs:hover {
  background-color: #169e8f;
}

@media (max-width: 768px) {
  .blogs-row {
    flex-direction: column;
    align-items: center;
  }
}
