/* Reset and base styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: #fff8f0;
}

/* Layout: Sidebar and Main */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #006400 70%, #ffb300 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 0 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 10;
  box-shadow: 2px 0 16px rgba(0,0,0,0.08);
}

.kenya-logo {
  width: 80px;
  margin-bottom: 32px;
}

.toggle-btn {
  display: none;
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
}

.sidebar nav {
  width: 100%;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
  width: 80%;
  text-align: center;
  display: block;
  text-decoration: none;
}

.nav-links a.active,
.nav-links a:hover,
.nav-links a:focus {
  background: #ffb300;
  color: #006400;
}

main {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 0 32px;
  background: #fff8f0;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 0; /* Remove excessive bottom margin */
  padding-bottom: 0;
}
main > .page-header + .hero {
  margin-top: 24px; /* Add space between h1 and hero */
}
.page-header h1 {
  font-size: 2.2rem;
  color: #006400;
  margin: 0;
}

/* Hero Section */
.hero {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 70px 20px 60px 20px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,100,0,0.5) 0%, rgba(255,179,0,0.2) 100%);
  z-index: 0;
}

.hero h2, .hero p, .hero .btn {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  text-shadow: 2px 2px 8px #222;
}

.hero span {
  color: #ffb300;
  font-size: 1.2em;
  font-weight: bold;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 6px #222;
}

.btn {
  display: inline-block;
  background: #ffb300;
  color: #fff;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  border: none;
  text-decoration: none;
}

.btn:hover, .btn:focus {
  background: #006400;
  color: #ffb300;
  transform: scale(1.05);
}

/* Featured Destinations Section */
.featured-destinations.container {
  margin-top: 40px;
}

.card-grid, .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: auto; /* Let card height fit content */
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #006400;
  font-size: 1.2rem;
}

.card-body p {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.card-body ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc inside;
  color: #333;
  font-size: 0.98rem;
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,100,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,100,0,0.13);
}

/* Footer */
footer {
  width: 100%;
  background: #006400;
  color: #fff;
  text-align: center;
  padding: 28px 10px 20px 10px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 30px 30px 0 0;
  margin-top: auto;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 70vw;
    min-width: 180px;
    max-width: 320px;
    transition: left 0.3s;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    padding-top: 24px;
    z-index: 20;
  }
  .sidebar.open {
    left: 0;
  }
  .toggle-btn {
    display: block;
  }
  main {
    margin-left: 0;
    padding: 24px 8px 0 8px;
  }
  footer {
    font-size: 1rem;
    padding: 18px 4px 12px 4px;
  }
}

@media (max-width: 600px) {
  .card-grid, .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card img, .gallery img {
    height: 140px;
  }
  .hero {
    padding: 40px 8px 32px 8px;
  }
  .kenya-logo {
    width: 50px;
  }
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}