body {
  font-family: "Roboto", Arial, sans-serif;
  padding: 0;
  margin: 0;
  background: #f6f7f9;
}

h1 {
  font-size: 35px;
}

h1,
h2 {
  /* padding-right: 50px; */
  line-height: 105%;
}

h1,
h2 a {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  padding: 0rem;
}

h2 a {
  font-size: 28px;
  color: #1d2d1d;
  text-decoration: none;
}

h2 a:hover {
  text-decoration: underline;
}

h5 {
  font-size: x-small;
}

@media (max-width: 600px) {
  h1,
  h2 a {
    font-size: 25px;
  }
}

/* page containers */

*,
*::before,
*::after {
  box-sizing: border-box;
  text-decoration: none;
}

.wider-container {
  min-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container > * {
  width: 100%;
}

.logo {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #657b35;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 3px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* navigation */

.main-nav {
  width: 100%;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #657b35;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  background: #657b35;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #e1f0c3;
  font-weight: 500;
}

.nav-link.active {
  font-weight: 700;
  color: #f5ffe2;
}

@media (max-width: 600px) {
  .nav-logo {
    font-size: 1rem;
  }
  .nav-links {
    gap: 0.7rem;
  }
}

/* menu button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* mobile menu */
@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links a {
    padding: 1rem;
    border-top: 1px solid rgb(101, 123, 53, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    text-decoration: none;
    text-align: center;
    color: #657b35;
    font-weight: 500;
  }

  .nav-link.active {
    font-weight: 700;
    color: #657b35;
  }
}

/* button */

button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #657b35;
  color: white;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.atoz {
  padding: 0.5rem 0.5rem;
  width: 35vw;
  max-width: 320px;
}

/* icons */

i {
  font-size: 0.9em;
  color: currentColor;
  vertical-align: middle;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
}

.icon i {
  font-size: 1.6em;
  line-height: 1;
}

/* index */

.index-container {
  max-width: min(700px, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* space between sections */
}

.first-impression {
  min-height: 100vh; /* full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background-color: none;
  padding: 2rem;
  box-sizing: border-box;
}

/* Header */
.landing-header {
  text-align: center;
}

.index-logo {
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(3rem, 90%, 12rem);
  line-height: 0.9;
  color: #657b35;
  margin-bottom: -0.2rem;
  padding-left: 3px;
  letter-spacing: -0.1rem;
  white-space: nowrap;
}

.subtitle {
  font-size: 2rem;
  font-family: "Poppins", Arial, sans-serif;
  margin: 0px;
}

.tagline {
  font-size: 1.2rem;
  color: #555;
}

.index-note {
  margin-top: 150px;
  font-size: 0.9rem;
  color: #777;
  max-height: 0px;
}

.actions-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: none;
  border-radius: 1rem;
  padding: 1.5rem;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
  text-align: center;
}

.main-buttons {
  padding-top: 0px;
  width: 100%;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.search-placeholder {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-placeholder input {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

.why-box {
  width: 100%;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.why-box h2 {
  margin-bottom: 1rem;
  color: #657b35;
}

.why-box p {
  line-height: 1.5;
  color: #555;
}

@media (max-width: 600px) {
  .index-container {
    padding: 1rem;
  }
  .index-logo {
    font-size: 2.3rem;
  }
  .subtitle {
    font-size: 1.4rem;
  }
  .index-note {
    font-size: 0.7rem;
  }
}

/* service grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  width: 70%;
  gap: 1rem;
}

.service-card {
  background: white;
  border-radius: 1rem;
  border-color: #a0bb64;
  border-width: 0.25rem;
  border-style: solid;
  position: relative;
  height: 23.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  vertical-align: bottom;
  z-index: 0;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.service-card h2 {
  line-height: 1;
  padding-right: 20px;
}

.label {
  font-weight: normal;
}

.text-bit {
  padding-bottom: 10px;
}

.grid-top-block {
  height: 3rem;
}

.grid-centre-text {
  height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 3px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.grid-centre-text > * {
  margin: 0;
}

.grid-bottom-block {
  height: 2rem;
  font-weight: bold;
  font-size: 13px;
  color: #555;
}

@media (max-width: 600px) {
  .service-grid {
    width: 80%;
  }
}

/* service stickers */

.usecase-stickers {
  position: absolute;
  top: 2.5rem;
  right: 0;

  z-index: -1;
}

.usecase-sticker {
  width: 90px;
  position: absolute;
  mix-blend-mode: multiply;
  height: auto;
  object-fit: contain;
  display: block;
}

.sticker-1 {
  top: 0.8rem;
  right: 0rem;
}

.sticker-2 {
  top: 4.7rem;
  right: 0.7rem;
}

.sticker-3 {
  top: 1.8rem;
  right: 3.9rem;
}

/* org avatars */

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1d1d1d;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: #555;
  margin-left: -14px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* services page org section */

.org-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  line-height: 1.1;
}

.org-row a {
  text-decoration: none;
  /* color: #965f18; */
  color: #657b35;
  font-weight: bold;
}

.org-row a:hover {
  text-decoration: underline;
}

.org-count {
  margin-left: 0.25rem;
  color: #666;
  font-size: 0.85rem;
}

/* individual service org section */

.srv-org-grid {
  display: flex;
  justify-content: left;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.srv-org-card {
  width: 120px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.org-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #1d1d1d;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 auto 0.5rem;
  overflow: hidden;
}

.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-name {
  font-size: 0.7rem;
  line-height: 1.2;
}

.org-card:hover .org-name {
  text-decoration: underline;
}

.org-card:hover .org-avatar {
  border: 2px solid #657b35;
}

.inline-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  color: #666;
}

/* organisations grid cards */

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  width: 50%;
  gap: 1rem;
}

.orgs-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.orgs-card h2 {
  margin: 6 0 0.5rem;
  font-size: 1.1rem;
}

.orgs-social-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.orgs-social-links a {
  width: 24px;
  height: 24px;
  color: #444;
}

.orgs-social-links a:hover {
  color: #a0bb64;
}

.org-service-count {
  width: 20%;
  text-align: center;
  border-radius: 10px;
  padding: 0.2rem 0.6rem;
  margin-left: 80%;
  background-color: #657b35;
  /* margin-top: 0.25rem; */
  font-size: 0.85rem;
  color: #fff;
  vertical-align: center;
}

@media (max-width: 600px) {
  .orgs-grid {
    width: 80%;
  }
}

/* individual service page */
.ind-service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 700px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.service-link {
  margin: 1.5rem 0;
  text-align: center;
}

/* individual org page */
.org-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 700px;
  min-width: min(700px, 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.org-social-links {
  margin-top: 1rem;
  margin-left: 0.2rem;
  display: flex;
  gap: 0.75rem;
}

.org-social-links a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: #333;
}

.org-social-links a:hover {
  color: #a0bb64;
}

#services li a {
  color: #a0bb64;
  text-decoration: none;
}

#services li a:hover {
  text-decoration: underline;
}

.ind-org-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ind-org-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ind-org-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #1d1d1d;
  overflow: hidden;
  background: #e6e6e6;
  flex-shrink: 0;
  position: relative;
}

.ind-org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ind-org-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  font-weight: 600;
  font-size: 1.5rem;
  color: #555;
  align-items: center;
  justify-content: center;
}

.ind-org-header-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ind-org-name {
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ind-org-type-pill {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #eef4e3;
  color: #657b35;
}

.ind-org-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ind-org-action-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.ind-org-action-btn.secondary {
  /* background: #f0f0f0; */
}

.ind-org-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  width: 90%;
  gap: 1rem;
}

.ind-org-service-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 600px) {
  .ind-org-name {
    font-size: 25px;
  }
}

/* filters */

/* Homepage-specific version inside .index-filter */
.filter-panel {
  width: 100%;
  max-width: 1200px;
  padding: 0.5rem;
}

index-filter .filter-panel {
  padding: 3rem;
  margin: 1rem 0;
}

.filter-panel h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
}

.filter-panel small {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: nowrap;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.filter-buttons::-webkit-scrollbar {
  display: none;
}

.filter-buttons {
  scrollbar-width: none; /* Firefox */
}

.filter-buttons {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.index-filter .filter-buttons {
  all: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.index-filter .filter-buttons {
  justify-content: center;
}

.filter-buttons button {
  padding: 0.2rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

.filter-buttons button:hover {
  background: #a0bb64;
  color: #000;
}

.filter-buttons button.active {
  background-color: #657b35;
  color: #fff;
  border-color: #657b35;
  font-weight: 600;
}

/* #clear-filters {
  background-color: #666;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.clear-filters:hover {
  background: #ddd;
} */

.index-filter .filter-panel #clear-filters {
  all: unset;
  font-size: 0;
  height: 0;
}

.filter-buttons .filter-clear {
  font-weight: 400;
  color: #fff;
  background-color: #1d1d1d;
  border-style: dashed;
}

/* community feed */
.feed-container {
  max-width: 800px;
}

#feed {
  padding: 0;
  list-style-type: none;
}

#feed li {
  background-color: #fff;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
}

.feed-item-header {
  height: 40px;
}

.feed-item-header-left {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 10px;
}

.feed-org-name {
  width: 80%;
  font-size: 0.9rem;
  line-height: 1rem;
}

.feed-org-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1d1d1d;
  overflow: hidden;
  background: #e6e6e6;
  flex-shrink: 0;
  position: relative;
}

.feed-org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-org-date {
  color: #666;
}
