/* General Reset */
body {
  margin: 0;
  padding: 0;
  background-color: #FFF8EA;
  font-family: 'Cairo', sans-serif;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 50px;
  font-family: 'Playfair Display', serif;
  color: #594545;
  margin: 10px 0;
}

.banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Navigation - Top Bar */
nav {
  position: sticky;   /* keeps it visible when scrolling */
  top: 0;
  z-index: 1000;      /* ensures it stays above images/content */
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #594545;
  display: flex;
  justify-content: center;
}

nav li {
  display: inline;
}

nav li a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

nav li a:hover {
  background-color: #9E7676;
}
/* Remove sidebar effect */
main {
  margin-left: 0; 
  padding: 20px;
}
.content p {
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  color: #815B5B;
  margin-bottom: 20px;
}

.tree {
  display: block;
  margin: 20px auto;
  width: 250px;
  height: auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #594545;
  color: white;
  margin-top: 40px;
}

/* ── Active nav link ── */
nav li a.active {
  background-color: #9E7676;
}

/* ── Hamburger button — hidden on desktop ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
@media (max-width: 768px) {
  nav {
    background-color: #594545;
    min-height: 48px;
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #594545;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
  }

  nav ul.nav-open {
    max-height: 600px;
  }

  nav li {
    display: block;
    width: 100%;
  }

  nav li a {
    display: block;
    text-align: left;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  nav li form {
    padding: 10px 16px !important;
    display: flex;
    gap: 8px;
  }

  nav li form input[type="search"] {
    flex: 1;
    width: auto !important;
  }

  main {
    margin-left: 0;
  }
}