/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Forum', serif;
  background-color: #fdf6e3;
  color: #3c3c3c;
  transition: background 0.3s, color 0.3s;
}

.dark-theme {
  background-color: #1f1f28;
  color: #e0e0dc;
}

/* Banner */
.banner {
  width: 100%;
  background-color: #2f3e46;
  color: #fdf6e3;
  padding: 20px 40px;
  text-align: center;
  box-sizing: border-box;
}

.banner h1 {
  font-size: 36px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.tagline {
  font-size: 16px;
  color: #dcd5b1;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: #3f5641;
  border-bottom: 1px solid #bfae7c;
  box-sizing: border-box;
}

.dark-theme .navbar {
  background-color: #2a2a38;
  border-color: #5a5564;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a,
.dropbtn,
#theme-toggle {
  color: #fdf6e3;
  background: none;
  border: none;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 10px;
}

.dropbtn:hover,
#theme-toggle:hover {
  text-decoration: underline;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f5e3;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid #bfae7c;
  z-index: 1000;
}

.dropdown-content a {
  color: #2f3e46;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #e6e0c8;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dark-theme .dropdown-content {
  background-color: #2a2a38;
  border-color: #444;
}

.dark-theme .dropdown-content a {
  color: #e0e0dc;
}

.dark-theme .dropdown-content a:hover {
  background-color: #3b3b4a;
}

/* Carousel Sections */
.carousel-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.carousel-container h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #3f5641;
}

.dark-theme .carousel-container h2 {
  color: #e0e0dc;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide h3 {
  font-size: 22px;
  margin: 10px 0 5px;
}

.carousel-slide p {
  font-size: 16px;
  margin: 0 auto;
  max-width: 600px;
}

.carousel-slide img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #d2c69a;
  margin-bottom: 10px;
}

.carousel-controls {
  margin-top: 15px;
}

.carousel-controls button {
  background-color: #3f5641;
  color: #fdf6e3;
  border: none;
  padding: 10px 16px;
  margin: 0 5px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-controls button:hover {
  background-color: #2f3e46;
}

.dark-theme .carousel-controls button {
  background-color: #444;
  color: #e0e0dc;
}

.dark-theme .carousel-controls button:hover {
  background-color: #555;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #3f5641;
  font-size: 14px;
  color: #fdf6e3;
  margin-top: 40px;
}

.dark-theme .footer {
  background-color: #2a2a38;
  color: #e0e0dc;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .carousel-slide img {
    max-width: 100%;
  }
}
