* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  background: #2e7d32;
  color: white;
  padding: 15px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Mobile */
#menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
}


/* HERO SECTION */
.hero {
  width: 100%;
  height: 90vh;
  position: relative;
}

/* SLIDER */
.slider {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* SLIDES */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* IMAGE SIZE CONTROL */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image proportional */
}

/* DARK OVERLAY */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  top: 0;
  left: 0;
}

/* TEXT */
.caption {
  position: absolute;
  bottom: 25%;
  left: 10%;
  color: white;
  max-width: 500px;
}

.caption h2 {
  font-size: 45px;
}

.caption p {
  font-size: 18px;
  margin-top: 10px;
}

/* BUTTONS */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.prev { left: 15px; }
.next { right: 15px; }

/* DOTS */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 5px;
  background: white;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
}

.dot.active {
  opacity: 1;
  background: #66bb6a;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .caption h2 {
    font-size: 28px;
  }

  .caption p {
    font-size: 14px;
  }
}
.hero {
  height: 90vh;   /* full screen banner */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ⭐ auto adjust perfectly */
}





/* Sections */
.section {
  padding: 50px;
  text-align: center;
}

/* Cards */
.course-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #f4f4f4;
  padding: 20px;
  width: 200px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

/* Gallery */
.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img {
  width: 250px;
  border-radius: 10px;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
}

form input, form select, form textarea {
  margin: 10px 0;
  padding: 10px;
}

form button {
  background: #2e7d32;
  color: white;
  padding: 10px;
  border: none;
}

/* Footer */
footer {
  background: #2e7d32;
  color: white;
  padding: 10px;
}

/* Responsive */
@media(max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #2e7d32;
    position: absolute;
    top: 60px;
    right: 0;
  }

  .nav-links.active {
    display: flex;
  }

  #menu-btn {
    display: block;
  }
}
/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active slide */
.slide.active {
  display: block;
}

/* Caption */
.caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: white;
}

.caption h2 {
  font-size: 40px;
}

.caption p {
  font-size: 18px;
}

/* Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }


object-fit: cover;