/* ===== TOP NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  background-color: #1e293b;
  border-bottom: 2px solid #2563eb;
  z-index: 1000;
  padding: 15px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header .logo {
  color: #60a5fa;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Boxed links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links .nav-box {
  background-color: #2563eb;
  color: #f1f5f9;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.3s;
}

.nav-links .nav-box:hover {
  background-color: #3b82f6;
  transform: translateY(-2px);
}

/* Responsive for small screens */
@media (max-width: 600px){
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
}

/* Responsive for small screens */
@media (max-width: 600px){
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .nav-links a {
    margin-left: 0;
  }
}
/* ===== GLOBAL STYLES ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a;
  color: #e5e7eb;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== LESSON CONTAINER ===== */
.lesson-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 30px;
  background-color: #1e293b;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.lesson-container h2 {
  font-size: 2.5rem;
  color: #93c5fd;
  margin-bottom: 20px;
}

.lesson-container p {
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: #f1f5f9;
}

/* ===== CODE BOX ===== */
.code-box {
  background-color: #0f172a;
  border-left: 6px solid #2563eb;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 30px;
}

.code-box pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #f8fafc;
}

/* ===== LESSON NAVIGATION ===== */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.lesson-nav a {
  background: #2563eb;
  color: #f1f5f9;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.3s;
}

.lesson-nav a:hover {
  background: #3b82f6;
  transform: translateY(-3px);
}

/* ===== COURSE PROGRESS ===== */
.course-progress {
  margin-bottom: 25px;
}

.progress-text {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #93c5fd;
}

.progress-bar {
  background-color: #334155;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  height: 12px;
  width: 0%;
  transition: width 0.6s ease;
}

/* ===== INDEX PAGE ===== */
.course-intro {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.course-intro h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #60a5fa;
}

.course-intro p {
  font-size: 1.4rem;
  color: #cbd5e1;
  opacity: 0.9;
}

.lessons {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.lessons a {
  background: #1e293b;
  padding: 25px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #e5e7eb;
  border-left: 6px solid #2563eb;
  transition: all 0.3s ease;
}

.lessons a:hover {
  background: #2563eb;
  transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px){
  .lesson-container {
    padding: 20px;
  }
  .lesson-nav a {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  .course-intro h1 {
    font-size: 2.2rem;
  }
  .course-intro p {
    font-size: 1.1rem;
  }
}
/* Contact form styling */
.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  background-color: #0f172a;
  color: #f1f5f9;
  border: 1px solid #2563eb;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #2563eb;
  color: #f1f5f9;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background-color: #3b82f6;
  transform: translateY(-3px);
}
/* ===== FOOTER ===== */
.site-footer {
  background-color: #1e293b;
  color: #cbd5e1;
  text-align: center;
  padding: 25px 20px;
  margin-top: 50px;
  border-top: 2px solid #2563eb;
  border-radius: 12px 12px 0 0;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.site-footer .footer-links a {
  color: #f1f5f9;
  font-weight: bold;
  transition: all 0.3s;
}

.site-footer .footer-links a:hover {
  color: #60a5fa;
  text-decoration: underline;
}