/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f9fafb;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ================= HEADER ================= */
header {
  background: #0f5132;
  color: #fff;
  padding: 15px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

/* ================= NAV ================= */
#navbar {
  display: flex;
  /* align-items: center; */
}

nav a {
  color: #fff;
  text-decoration: none;
  /* margin-left: 20px; */
  font-weight: 500;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
  color: yellow;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  z-index: 1000;
}

/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

.dropdown > a {
  padding: 10px 15px;
  display: inline-block;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute; /* desktop */
  top: 100%;
  left: 0;
  background: #0f5132;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  white-space: nowrap;
}

.dropdown:hover .dropdown-content {
  display: block; /* desktop hover */
}

/* Show dropdown when open on mobile */
.dropdown.open .dropdown-content {
  display: block;
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../img/journal-background.jfif') center/cover no-repeat;
  padding: 120px 0;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}

/* ================= CARDS ================= */
.card {
  background: #fff;
  padding: 20px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Desktop hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Mobile open */
.dropdown.open .dropdown-content {
  display: block;
}

/* ================= FOOTER ================= */
.footer {
  background: #0f5132;
  color: #fff;
  padding: 20px 0;
  margin-top: 40px;
}

/* ================= MOBILE ================= */
@media(max-width:768px){
  .hamburger { display: block; }
  #navbar {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #0f5132;
    margin-top: 10px;
  }
  #navbar.active { display: flex; }

  nav a, .dropdown > a {
    width: 100%;
    padding: 12px 20px;
    margin-left: 0;
  }

  .dropdown-content {
    position: relative;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* disable hover on mobile */
  }
}
