/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #f9fafb;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0077cc;
  text-decoration: none;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #0077cc;
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-menu a {
    width: 100%;
    display: block;
  }
}

/* ===== HEADER ===== */
.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header h1 {
  font-size: 2rem;
  color: #111827;
}

.site-header .subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== SEARCH SECTION ===== */
.search-section {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

#searchInput {
  width: 90%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

#searchInput:focus {
  border-color: #0077cc;
  outline: none;
}

/* ===== COMMUNITY LIST ===== */
.community-list {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.community-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.community-card h2 {
  font-size: 1.15rem;
  color: #0077cc;
  margin-bottom: 0.75rem;
}

/* Remove bullets and spacing for lists inside cards */
.community-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.community-card li {
  margin-bottom: 1rem;
  padding-left: 0;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.community-card li:hover {
  border-left: 3px solid #0077cc;
  padding-left: 0.5rem;
}

.community-card a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.community-card a:hover {
  text-decoration: underline;
}

.community-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}


/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  background-color: #ffffff;
  padding: 1.5rem 1rem;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.95rem;
}

.site-footer a {
  color: #0077cc;
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
