* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: cursive;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  /* Adjusted margin */
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-height: 600px;
  /* Adjusted if needed */
  height: auto;
  /* Adjusted to auto */
}

.intro-section {
  background-color: #d1fceb;
  color: #1f1f1f;
  text-align: center;
  padding: 80px 0;
  min-height: 1200px;
  /* Adjusted if needed */
  margin-bottom: -100px;
  /* Add bottom margin for small screens */
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  margin-bottom: 30px;
}

.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  flex-basis: 100%;
  margin-bottom: 20px;
}

.login-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1f1f1f;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.login-btn:hover {
  background-color: #823ddb;
}

.image-slideshow {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  /* Removed the border */
  max-height: 600px;
  /* Adjusted if needed */
  height: auto;
  /* Adjusted to auto */
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 100%;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.fade {
  animation: fade 3s ease-in-out;
}

@media (min-width: 768px) {
  .container {
    flex-wrap: nowrap;
  }

  .card {
    flex-basis: 50%;
    margin-right: 20px;
    margin-bottom: 0;
  }

  .image-slideshow {
    flex-basis: 50%;
  }
}

/* Add these styles to your existing CSS file */

.cpi-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 20px auto;
  margin-top: -500px;
}

.cpi-card {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  text-align: center;
}

.cpi-card h2 {
  color: #333;
  font-size: 1.5rem;
  margin-top: 10px;
}

.cpi-card p {
  color: #333;
  /* Adjusted text color for better visibility on dark backgrounds */
  font-size: 1rem;
  line-height: 1.4;
}

/* Style individual cards */

#instructors-card {
  background-color: #98c1d9;
}

#learning-card {
  background-color: #fea82f;
}

#curriculum-card {
  background-color: #A47CC4;
  color: #fff;
}

#schedule-card {
  background-color: #E96B80;
  color: #fff;
}