* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f0ff 50%, #b3d8fd 100%);
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Remove duplicate header and nav styles since they're in nav_footer.css */

/* Main content styles */
main {
  padding-top: 80px;
}

/* Hero section */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 40px;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.slide.active {
  opacity: 1;
}
@keyframes rgbBorder {
  0% {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
  33% {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
  66% {
    border-color: #0000ff;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
  }
  100% {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
}

.slide-content {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  border: 2px solid #ff0000;
  animation: rgbBorder 3s linear infinite;
}

.slide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #2980b9;
}

/* Features section */
.features {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Popular courses section */
.courses {
  padding: 60px 0;
  background-color: #eef5fc;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-img {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.course-content {
  padding: 20px;
}

.course-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.course-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #666;
}

/* Footer styles */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #3498db;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3a506b;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .features-grid,
  .courses-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .hero {
    height: 400px;
  }

  .slide-content {
    padding: 20px;
    max-width: 90%;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 0 10px;
  }

  .logo img {
    height: 60px;
  }

  .logo {
    font-size: 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card,
  .course-card {
    margin: 10px;
  }
}
