/**
 * GroupHub front-end — GroupSor-style directory.
 */

:root {
  --gh-header: #1ebea5;
  --gh-accent: #01E675;
  --gh-body: #F0EFEE;
  --gh-join: #039be5;
  --gh-tag: #72cffa;
  --gh-card: #ffffff;
  --gh-text: #5a5a5a;
  --gh-muted: #7F7F7F;
  --gh-border: #d6d5d4;
}

html, body, div, span, h1, h2, h3, h4, p, a, img, ul, li, form, label, nav, article, footer, header, section {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}
article, footer, header, nav, section { display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--gh-body);
  color: var(--gh-text);
  line-height: 1.5;
}

.wrap {
  width: 80%;
  max-width: 980px;
  margin: 0 auto;
}

.header {
  padding: 1.2em 0 1em;
  border-bottom: 1px solid rgba(214, 213, 212, 0.64);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: var(--gh-header);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { float: none; }
.logo img { display: inline-block; height: 48px; width: auto; }
.custom-logo-link img { height: 48px; width: auto; }

.nav-icon { margin: 0 8px 0 4px; }
.nav-icon button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  display: block;
}

.top-searchbar {
  flex: 1 1 240px;
  position: relative;
  min-width: 180px;
}
.top-searchbar input[type="search"],
.top-searchbar input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.58em 2.6em 0.58em 1em;
  border: 1px solid #E7E7E7;
  outline: none;
  border-radius: 0.3em;
  font-family: inherit;
  color: #777;
  background: #F7F6F6;
}
.top-searchbar button[type="submit"] {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: url("../images/search.svg") center / 20px no-repeat;
  cursor: pointer;
}

.box {
  position: absolute;
  top: -700px;
  width: 100%;
  left: 0;
  z-index: 999999;
  text-align: center;
  transition: top 0.45s ease;
}
.box.is-open { top: 0; }
.box_content_center { background: rgba(240, 239, 238, 0.96); border-radius: 0 0 8px 8px; }
.menu_box_list { display: inline-block; padding: 2em 0 1.4em; }
.menu_box_list ul li { display: inline-block; }
.menu_box_list li a {
  display: block;
  color: #363636;
  font-size: 0.875em;
  margin: 0.44em 1.4em;
  font-weight: 800;
  text-transform: uppercase;
}
.menu_box_list li a:hover,
.menu_box_list .current-menu-item a { color: #0BC20B; }
.boxclose {
  position: absolute;
  top: 1.2em;
  right: 1.2em;
}

.side-share {
  position: fixed;
  top: 200px;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.side-share img { display: block; width: 32px; height: 32px; }

.content { padding-top: 7.5em; padding-bottom: 3em; min-height: 60vh; }
#main { margin-top: 0; }

.add-wrap { text-align: center; padding: 10px 0 16px; }
.addbtn {
  color: #fff;
  font-size: 20px;
  background-color: var(--gh-accent);
  padding: 6px 14px;
  border-radius: 5px;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
}
.addbtn:hover { background: #fff; color: #0BC20B; border: 1px solid #777; }

.filter-bar { margin-bottom: 16px; text-align: center; }
.selectbtn {
  width: 230px;
  max-width: 100%;
  padding: 10px;
  margin: 8px 4px 0;
  font-size: 16px;
  font-family: inherit;
  color: #777;
  border-radius: 5px;
  border: 1px solid #cbcbc3;
  background: #fff;
}
.serbtn {
  width: 230px;
  max-width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #fff;
  background-color: var(--gh-accent);
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.maindiv {
  background-color: var(--gh-card);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.image {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  float: left;
  margin-right: 15px;
  object-fit: cover;
  background: var(--gh-header);
}
.gtitle {
  font-weight: 700;
  color: var(--gh-text);
  display: inline-block;
  padding-top: 6px;
  word-break: break-word;
}
.icon {
  height: 14px;
  width: 14px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 3px;
}
.post-basic-info { overflow: hidden; }
.post-basic-info span { margin-right: 10px; display: inline-block; margin-top: 8px; }
.post-basic-info span a { color: #ACAAAA; font-size: 0.9em; }
.post-basic-info span a:hover { color: #0BC20B; }
.descri {
  color: var(--gh-muted);
  overflow-wrap: break-word;
  font-size: 0.875em;
  margin: 0.6em 0;
  white-space: pre-wrap;
}
.descri a { color: var(--gh-join); }
.tag-row { margin: 6px 0 8px; }
.tag-row.center { text-align: center; }
.innertag {
  background-color: var(--gh-tag);
  color: #fff;
  border-radius: 15px;
  font-size: 14px;
  padding: 0 10px 2px;
  line-height: 25px;
  display: inline-block;
  margin: 0 4px 4px 0;
}
.post-info-rate-share {
  border-top: 1px solid rgba(183, 181, 181, 0.36);
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.joinbtn { color: var(--gh-join); font-weight: 700; }
.post-share { display: flex; align-items: center; gap: 6px; }
.post-share img { width: 24px; height: 24px; vertical-align: middle; }

.contact-info {
  margin-top: 0;
  padding: 2% 3% 3%;
  background: #fff;
  border-radius: 5px;
}
.group-hero { text-align: center; }
.proimg {
  height: 130px;
  width: 130px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gh-header);
  margin: 8px auto;
}
.group-hero h1,
.contact-info h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 12px;
  word-wrap: break-word;
}
.meta-row { text-align: center; margin-bottom: 8px; }
.cate { color: #9b9b9b; font-size: 12px; vertical-align: middle; display: inline; margin-right: 8px; }
.predesc {
  padding: 10px;
  white-space: pre-wrap;
  text-align: left;
  border: 1px solid #cbcbc3;
  color: #545454;
  border-radius: 5px;
  word-wrap: break-word;
  font-family: inherit;
  margin: 12px 0;
}
.btn {
  background-color: var(--gh-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  display: inline-block;
  margin: 6px;
  font-weight: 700;
}
.btn:hover { filter: brightness(0.95); }
.join-row, .share-icons { text-align: center; padding-top: 15px; }
.related-title { font-size: 20px; margin: 24px 0 12px; color: #363636; }

.contact-to input[type="text"],
.contact-to input[type="url"],
.contact-to input[type="email"],
.contact-to input[type="search"],
.text3 select,
.text3 input,
.add-group-form input[type="text"],
.add-group-form input[type="url"] {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  border: 1px solid rgba(192, 192, 192, 0.61);
  color: #626262;
  background: #fff;
  outline: none;
  font-size: 0.95em;
  border-radius: 4px;
  font-family: inherit;
}
.text2 textarea {
  width: 100%;
  box-sizing: border-box;
  height: 160px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(192, 192, 192, 0.61);
  border-radius: 4px;
  font-family: inherit;
  color: #626262;
}
.contact-form input[type="submit"],
.add-group-form input[type="submit"] {
  font-family: inherit;
  color: #fff;
  padding: 0.8em 1.5em;
  background: var(--gh-accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 8px;
}
.hint { font-size: 12px; word-wrap: break-word; color: #777; }
.rules { white-space: pre-wrap; color: #545454; font-family: inherit; margin: 12px 0; }
.guide { margin-top: 32px; color: #545454; }
.guide h2, .guide h3 { color: #363636; margin: 16px 0 8px; }
.guide ol, .guide ul { padding-left: 1.3em; margin: 8px 0; }
.guide li { margin: 4px 0; }
.legal-page h1 { font-size: 28px; }
.legal-page h2 { margin: 18px 0 8px; }
.legal-page p, .legal-page li { color: #626262; line-height: 1.8; }

.gh-notice { padding: 12px; border-radius: 6px; margin: 12px 0; }
.gh-ok { background: #e7f8ee; color: #0a7a2f; }
.gh-err { background: #fde8e8; color: #b32d2e; }
.empty-state, .no-more, .archive-heading { text-align: center; color: #555; margin: 12px 0; }
.archive-heading { font-size: 22px; font-weight: 800; }
.archive-lead { text-align: center; color: var(--gh-muted); margin-bottom: 16px; }
.load-wrap { text-align: center; margin-top: 16px; padding-top: 10px; }
.loader { text-align: center; padding: 10px; }
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top-color: var(--gh-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ad-slot { text-align: center; padding: 10px 0; margin-bottom: 10px; }
.report-toggle { font-size: 14px; color: #8C8C8C; cursor: pointer; }
.grouphub-html-sitemap ul { columns: 2; padding-left: 18px; list-style: disc; margin: 8px 0 20px; }
.grouphub-html-sitemap a { color: #435DC5; }
.grouphub-html-sitemap h2 { margin-top: 20px; }

.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  color: #8C8C8C;
  font-size: 0.9em;
}
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; }
.footer-nav a { color: #555; font-weight: 700; text-transform: uppercase; font-size: 12px; }
.footer-nav a:hover { color: #0BC20B; }
.site-footer a { color: #0BC20B; }

@media (max-width: 900px) {
  .wrap { width: 92%; }
  .selectbtn, .serbtn { width: 100%; margin-left: 0; margin-right: 0; }
  .side-share { top: auto; bottom: 70px; }
}
@media (max-width: 640px) {
  .content { padding-top: 8.2em; }
  .header { padding: 0.8em 0; }
  .logo img, .custom-logo-link img { height: 40px; }
  .menu_box_list ul li { display: block; }
  .menu_box_list li a { margin: 0.7em 0; }
  .grouphub-html-sitemap ul { columns: 1; }
  .addbtn { font-size: 18px; }
  .image { height: 44px; width: 44px; }
  .post-info-rate-share { align-items: flex-start; }
}
