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

/* Banner Section */ /* General Styles */
body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f9;
}

/* Course Banner Section */
.course-banner {
  background: linear-gradient(to right, #4facfe, #00f2fe),
    url("../img/heroman.png") no-repeat right center;
  background-size: cover;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  color: white;
  text-align: left;
  background-attachment: fixed;
  padding: 0 20px;
  overflow: hidden;
}

.banner-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding-left: 50px;
}

.banner-content {
  max-width: 600px;
  color: white;
  text-align: left;
  animation: fadeIn 1.5s ease-in-out;
}

.banner-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.banner-content p {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 20px;
}
.banner-container img {
  width: 250px; 
  height: 250px;
  margin-left: 100px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
  .banner-container img {
    width: 150px;
    height: 150px;
    margin-left: 0;
    border-radius: 50%;
    box-shadow: none;
  }
}

/* Media Query for Extra Small Screens (Mobile) */
@media (max-width: 1025px) {
  .banner-container img {
    display: none;
  }
}



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

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .course-banner {
    height: 100vh;
  }

  .banner-content h1 {
    font-size: 2.5rem;
  }

  .banner-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .course-banner {
    height: 100vh;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }
}

/* Main Section */
main {
  margin-top: 20px;
}

.learn-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Course Overview Section */
.course-overview {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  animation: slideIn 1s ease-out;
}

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

.course-overview h2 {
  font-size: 2.4rem;
  color: #3f51b5;
  margin-bottom: 15px;
  font-weight: 700;
}

.course-overview p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #555;
}

.course-details {
  list-style: none;
  padding: 0;
}

.course-details li {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #333;
}

.enroll-btn {
  background: linear-gradient(to right, #3f51b5, #5a67d8);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.enroll-btn:hover {
  background: linear-gradient(to right, #2d3b8b, #4a55a1);
  transform: scale(1.05);
}

/* Course Content Section */
.course-content {
  margin-top: 40px;
  padding-bottom: 50px;
}

.course-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.learning-points {
  list-style: disc;
  padding-left: 20px;
}

.learning-points li {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #555;
}

/* Reviews Section */
.reviews {
  margin-top: 40px;
}

.reviews h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.review-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-left: 5px solid #3f51b5;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.review-card p {
  font-size: 1.1rem;
  color: #555;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .course-overview h2 {
    font-size: 1.8rem;
  }

  .course-content h3,
  .reviews h3 {
    font-size: 1.5rem;
  }

  .enroll-btn {
    width: 100%;
    text-align: center;
    display: block;
  }
}
