/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f0f4f8;
  color: #333;
  scroll-behavior: smooth;
}
.view-btn{
  background:#1E90FF;
  color:#fff;
}
.view-btn:hover{
  background:#FFD700;
  color:#1E90FF;
}
.register-btn{
  background:#FFD700;
  color:#1E90FF;
}
.register-btn:hover{
  background:#FF8C00;
  color:#fff;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 4rem 2rem;
}

/* Navbar */
nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #1E90FF;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
}

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav .nav-links li a {
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

nav .nav-links li a:hover {
  color: #FFD700;
}

nav .menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(-45deg, #1E90FF, #00BFFF, #FFD700, #FF8C00);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  min-height: 50vh;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Course Details */
.course-details {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.course-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.course-header h2 {
  color: #1E90FF;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.course-header p {
  font-size: 1.1rem;
  color: #555;
}

/* Topics List */
.topics {
  margin-top: 2rem;
}

.topics h3 {
  color: #00BFFF;
  margin-bottom: 1rem;
}

.topics ul {
  list-style: disc inside;
  color: #333;
  font-size: 1rem;
}

.topics ul li {
  margin-bottom: 0.7rem;
}
.button-group {
  display: flex;
  justify-content: center; /* centers both buttons */
  margin-top: 2rem;
  flex-wrap: wrap; /* allow stacking on small screens */
}



/* Enroll Button */
.enroll-btn {
  display: block;
  width: 200px;
  margin: 2rem auto 0 auto;
  padding: 0.8rem 2rem;
  background: #1E90FF;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.3s;
}

.enroll-btn:hover {
  background: #FFD700;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: #1E90FF;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}
/* Responsive Nav (optional improvement) */
@media (max-width: 768px) {
  nav .nav-links {
    flex-direction: column;
    background: #1E90FF;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    display: none;
    padding: 1rem 2rem;
  }

  nav .nav-links.active {
    display: flex;
  }

  nav .menu-toggle {
    display: block;
  }
}
