/* General Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Neue', cursive;
  background-color: #f9f9ff;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff6b6b;
}

nav a {
  margin: 0 1rem;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff6b6b;
}

/* Auth Buttons */
.auth-buttons .btn {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #ff6b6b;
  color: #fff;
}

.btn.primary:hover {
  background-color: #ff5252;
}

.btn {
  background-color: transparent;
  color: #333;
  border: 2px solid #ff6b6b;
}

.btn:hover {
  background-color: #ff6b6b;
  color: #fff;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  padding: 6rem 1rem;
  position: relative;
  color: white;
  text-align: center;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 12px;
  display: inline-block;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

/* Features */
.features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 4rem 0;
  gap: 1rem;
  text-align: center;
}

.feature {
  flex: 1 1 200px;
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  margin-top: 1rem;
}

/* Courses */
.courses h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-8px);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h3 {
  margin-top: 1rem;
}

.course-card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #666;
}

.course-card .btn.small {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

/* Why Us */
.why-us {
  background: linear-gradient(135deg, #ffe1e1, #fff9f0);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 30px;
  margin: 4rem 0;
}

.why-us h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.why-us ul {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.why-us li {
  font-size: 1.1rem;
  margin: 1rem 0;
}

.explore-link {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #f1f1f1;
  padding: 2rem 0;
  text-align: center;
  border-top: 2px solid #eee;
}

.footer a {
  margin: 0 1rem;
  color: #666;
  font-weight: 500;
}

.footer a:hover {
  color: #ff6b6b;
}
