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

/* Body styles */
body {
  font-family: 'SF Pro Display', 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Header styles */
header {
  background-color: #333;
  text-align: center;
  padding: 20px 0;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* Main styles */
main {
  padding: 40px;
}

/* Banner styles */
.banner {
  text-align: center;
  padding: 40px;
  background-color: #0070c9;
  color: #fff;
}

.banner h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #005aa7;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #004280;
}

/* Courses section styles */
.courses {
  display: flex;
}

.course-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  /* width: calc(33.33% - 20px); */
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.course-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.course-card p {
  color: #666;
  margin-bottom: 20px;
  height: 100%;
}

.enroll-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0070c9;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.enroll-button:hover {
  background-color: #005aa7;
}

/* Testimonials styles (Update as needed) */
.testimonials {
  padding: 40px 10px;
  background-color: #f9f9f9;
}

.testimonials h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.testimonial {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}
/* Add a subtle animation to the banner */
.banner {
  background-color: #0070c9;
  color: #fff;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #004280, #005aa7, #0070c9, #005aa7, #004280);
  z-index: -1;
  animation: gradient 15s ease infinite;
}

.students {
  display: flex;
}

@keyframes gradient {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.banner h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
/* Add some hover effects to the navigation */
nav ul li a:hover {
  color: #FFA500; /* Change color on hover */
  transform: scale(1.1); /* Scale up on hover */
}
/* Add hover effect and transition to course cards */
.course-card {
  /* Existing styles */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.course-card:hover {
  transform: translateY(-10px); /* Lift the card on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
}

.course-card {
  /* Adjust width to fit three cards in a row */
  width: calc(33.33% - 20px); /* Calculate width considering the gap */
  flex-basis: calc(33.33% - 20px); /* Flex basis adjustment */
  margin-bottom: 20px;
}

.course-card {
  /* Adjust width to fit three cards in a row */
  width: calc(33.33% - 10px); /* Adjust width considering the gap */
  flex-basis: calc(33.33% - 10px); /* Flex basis adjustment */
  margin-bottom: 20px;
}

/* For smaller screens, ensure the cards stack properly */
@media screen and (max-width: 768px) {
  .courses {
    justify-content: flex-start; /* Ensure flex-start for smaller screens */
  }

  .course-card {
    width: calc(50% - 10px); /* Display two cards in a row for smaller screens */
    flex-basis: calc(50% - 10px);
  }
}

.course-card {
  /* Adjust width to fit three cards in a row */
  width: calc(33.33% - 13.33px); /* Adjust width considering the gap */
  flex-basis: calc(33.33% - 13.33px); /* Flex basis adjustment */
  margin-bottom: 20px;
  margin-left: 10px; /* Introduce left margin to create equal spacing */
  margin-right: 10px; /* Introduce right margin to create equal spacing */
}
/* Testimonials Section Styles */
.testimonials {
  padding: 50px 10px;
  background-color: #f9f9f9;
  text-align: center;
}

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

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.student-info img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.student-name {
  font-weight: bold;
  color: #333;
  font-size: 20px;
  margin-bottom: 10px;
}

.student-testimonial {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}
/* Testimonials Section Styles */
.testimonials {
  padding: 50px 10px;
  background-color: #f9f9f9;
  text-align: center;
}

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

.testimonial {
  display: inline-block;
  width: calc(33.33% - 13.33px);
  margin: 0 10px;
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  vertical-align: top;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.student-info img {
  width: 170px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.student-name {
  font-weight: bold;
  color: #333;
  font-size: 20px;
  margin-bottom: 10px;
}

.student-testimonial {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}
