* { box-sizing: border-box; }

:root {
  --deep-green: #0f504a;
  --aqua: #06d9c6;
  --white: #ffffff;
  --text: #1f2c2a;
  --soft-bg: #f7fbfb;
  --line: rgba(15, 80, 74, 0.12);
  --shadow: 0 10px 30px rgba(15, 80, 74, 0.10);
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #fcfefe;
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--deep-green); }

.container {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  padding-top: 12px;
  background: var(--white);
}

.hero-shell {
  width: min(1360px, calc(100% - 16px));
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.topbar {
  padding: 24px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.logo {
  width: 110px;
  height: auto;
  flex-shrink: 0;
}

.brand-text h1 {
  margin: 0 0 8px;
  color: var(--deep-green);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.brand-sub {
  margin: 0;
  color: var(--deep-green);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 4px;
  border-top: 2px solid var(--line);
}

.main-nav a {
  text-decoration: none;
  color: var(--deep-green);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--aqua);
}

.community-main {
  padding: 18px 0 48px;
}

.community-toolbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-wrap input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

.toolbar-note {
  margin-top: 12px;
  color: #5f6b69;
  font-size: 0.98rem;
}

.community-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.profile-cover {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
}

.profile-panel h2,
.feed-post h3,
.members-panel h3,
.groups-panel h3,
.quick-links h3,
.post-composer h3,
.library-heading {
  margin: 0 0 8px;
  color: var(--deep-green);
}

.profile-panel .title,
.profile-panel .location {
  margin: 0 0 8px;
}

.btn {
  display: inline-block;
  background: var(--deep-green);
  color: #fff;
  border: 0;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-light {
  background: #e8f7f4;
  color: var(--deep-green);
  border: 1px solid var(--line);
  margin-right: 8px;
  margin-bottom: 8px;
}

.btn-small {
  padding: 10px 14px;
}

.group-item,
.member-suggestion {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.group-item:first-of-type,
.member-suggestion:first-of-type {
  border-top: none;
  padding-top: 0;
}

.group-item h4,
.member-suggestion h4,
.feed-post h4 {
  margin: 0 0 6px;
}

.quick-links ul,
.feature-panel ul {
  margin: 0;
  padding-left: 20px;
}

.quick-links li,
.feature-panel li {
  margin: 10px 0;
}

.post-composer form input,
.post-composer form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  margin-bottom: 14px;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.upload-pill {
  background: #edf8f6;
  color: var(--deep-green);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.feed-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep-green);
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.tab.active {
  background: var(--aqua);
}

.feed-post .post-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.mini-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-header p,
.member-suggestion p,
.group-item p,
.small-note,
.meta {
  margin: 0;
  color: #5f6b69;
}

.post-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.post-actions a {
  text-decoration: none;
  font-weight: 700;
}

.comment-box {
  margin-top: 14px;
  background: #f5fbfa;
  border-radius: 14px;
  padding: 12px 14px;
}

.site-footer { margin-top: 24px; }

.footer-banner {
  background: var(--deep-green);
  color: #fff;
  text-align: center;
  font-weight: 800;
  padding: 24px 16px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.footer-copy {
  text-align: center;
  color: var(--deep-green);
  font-weight: 700;
  padding: 16px;
}

@media (max-width: 1100px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
  }

  .search-wrap {
    grid-template-columns: 1fr;
  }

  .composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    width: 95px;
  }
}
