/* ============================================================
   Community.css
   Page-specific styles for Community.html.

   Sections 2–4 use plain <section class="cmn-section"> wrappers
   (NOT Nicepage's .u-sheet) so they always scale to viewport
   without fighting Nicepage's fixed per-breakpoint sheet widths.
   The hero (section 1) and header / footer still use Nicepage
   classes to inherit the site's chrome.
   ============================================================ */

html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

/* -----------------------------------------------------------
   Section 1 — Hero banner (Nicepage-style, matches About hero)
   ----------------------------------------------------------- */
.u-section-1 {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                    url('images/vlcsnap-2023-07-30-20h41m30s771.png');
  background-position: 50% 50%;
  background-size: cover;
}

.u-section-1 .u-sheet-1 {
  min-height: 291px;
}

.u-section-1 .u-text-1 {
  font-weight: 800;
  font-size: 6rem;
  margin: 58px auto 0;
}

.u-section-1 .u-text-2 {
  font-weight: 500;
  max-width: 520px;
  width: auto;
  margin: 12px auto 58px;
  padding: 0 16px;
}

@media (max-width: 1199px) {
  .u-section-1 .u-sheet-1 { min-height: 302px; }
  .u-section-1 .u-text-1 { font-size: 3.75rem; }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 { min-height: 288px; }
  .u-section-1 .u-text-1 { font-size: 3rem; margin-top: 48px; }
  .u-section-1 .u-text-2 { font-size: 1rem; }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 { min-height: 200px; }
  .u-section-1 .u-text-1 { font-size: 2.25rem; margin-top: 36px; }
  .u-section-1 .u-text-2 { font-size: 0.92rem; margin-bottom: 36px; }
}

/* -----------------------------------------------------------
   Shared section + wrap (sections 2, 3, 4)
   ----------------------------------------------------------- */
.cmn-section {
  width: 100%;
  background: #f5f7fa;
  padding: 64px 0;
}

.cmn-section + .cmn-section { border-top: 1px solid rgba(0, 0, 0, 0.04); }

.cmn-section-pillars { background: #fff; }
.cmn-section-feed    { background: #f5f7fa; }

.cmn-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.cmn-h2 {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 5vw, 2.1rem);
  line-height: 1.25;
  color: #2b2b2b;
  text-align: center;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cmn-lead {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.7;
  color: #555;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  overflow-wrap: anywhere;
}

.cmn-rule {
  width: 64px;
  height: 3px;
  background: #478ac9;
  margin: 0 auto 22px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .cmn-section { padding: 48px 0; }
}

@media (max-width: 575px) {
  .cmn-section { padding: 40px 0; }
  .cmn-wrap { padding: 0 16px; }
  .cmn-lead { margin-bottom: 28px; }
}

/* -----------------------------------------------------------
   Section 3 — Stories | Events | Connect pillar cards
   ----------------------------------------------------------- */
.cmn-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cmn-pillar {
  border-radius: 12px;
  min-height: 220px;
  padding: 30px 26px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.cmn-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.cmn-pillar-stories  { background: linear-gradient(140deg, #478ac9, #2d6da3); }
.cmn-pillar-events   { background: linear-gradient(140deg, #2faa6a, #1e7a4b); }
.cmn-pillar-connect  { background: linear-gradient(140deg, #d97a3a, #a8551f); }

.cmn-pillar-title {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0 0 12px;
  color: #fff;
}

.cmn-pillar-body {
  font-family: 'Open Sans', Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
  color: #fff;
}

@media (max-width: 900px) {
  .cmn-pillars { grid-template-columns: 1fr; gap: 16px; max-width: 520px; margin: 0 auto; }
  .cmn-pillar { min-height: 0; padding: 26px 22px; }
}

/* -----------------------------------------------------------
   Section 4 — Community Updates feed
   ----------------------------------------------------------- */
.cmn-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 28px;
}

.cmn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmn-chip {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #cfd6df;
  background: #fff;
  color: #555;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cmn-chip:hover {
  border-color: #478ac9;
  color: #478ac9;
}

.cmn-chip.is-active {
  background: #478ac9;
  border-color: #478ac9;
  color: #fff;
}

.cmn-search-wrap {
  position: relative;
  flex: 0 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.cmn-search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  color: #888;
  pointer-events: none;
}

.cmn-search {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  width: 100%;
  font-size: 0.95rem;
  padding: 10px 14px 10px 34px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cmn-search:focus {
  border-color: #478ac9;
  box-shadow: 0 0 0 3px rgba(71, 138, 201, 0.18);
}

.cmn-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cmn-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #478ac9;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cmn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.cmn-card-story        { border-top-color: #478ac9; }
.cmn-card-event        { border-top-color: #2faa6a; }
.cmn-card-announcement { border-top-color: #d97a3a; }

.cmn-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 10px;
  gap: 8px;
}

.cmn-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #478ac9;
  white-space: nowrap;
}

.cmn-tag-event        { background: #e7f5ed; color: #1e7a4b; }
.cmn-tag-announcement { background: #fbe9da; color: #a8551f; }

.cmn-card-title {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #222;
  overflow-wrap: anywhere;
}

.cmn-card-loc {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-size: 0.84rem;
  color: #888;
  margin: 0 0 12px;
}

.cmn-card-body {
  font-family: 'Open Sans', Roboto, sans-serif;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  overflow-wrap: anywhere;
}

.cmn-empty {
  text-align: center;
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  color: #888;
  padding: 30px 0;
  font-size: 1rem;
}

.cmn-loadmore-wrap {
  text-align: center;
  margin-top: 36px;
}

.cmn-loadmore {
  font-family: 'Montserrat', 'Open Sans', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  background: #478ac9;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cmn-loadmore:hover {
  background: #2d6da3;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .cmn-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cmn-feed-grid { grid-template-columns: 1fr; gap: 16px; }
  .cmn-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .cmn-search-wrap { flex: 1 1 auto; width: 100%; }
  .cmn-filters { justify-content: center; }
  .cmn-card { padding: 20px 18px; }
  .cmn-card-title { font-size: 1.05rem; }
}

@media (max-width: 575px) {
  .cmn-chip { font-size: 0.82rem; padding: 7px 12px; }
}

/* ============================================================
   Section — Forum (Discussions & Q&A)
   ============================================================ */

.cmn-section-forum { background: #f5f7fa; }

.forum-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.forum-sub {
  font-family: 'Open Sans', Roboto, sans-serif;
  color: #555;
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
  max-width: 700px;
}

.admin-btn {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  background: #37474f;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.admin-btn:hover { background: #2d3e52; transform: translateY(-1px); }
.admin-btn.logged-in { background: #2e7d32; }

.admin-logout {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}
.admin-logout:hover { background: rgba(255,255,255,0.28); }

.forum-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}
.fstat {
  background: #fff;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.fstat-n {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #478ac9;
}
.fstat-l {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: #666;
  margin-top: 4px;
}

.adminbar {
  display: none;
  background: #1b5e20;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---- New-discussion form ---- */
.post-form-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 6px 18px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e6ebf0;
}
.post-form-toggle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #478ac9;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
}
.post-form-toggle::-webkit-details-marker { display: none; }
.post-form-toggle::before { content: '➕ '; }
details[open] .post-form-toggle::before { content: '➖ '; }
.post-form { padding: 6px 0 18px; }
.hint {
  font-size: 0.88rem;
  color: #666;
  margin: 0 0 12px;
}
.complaint-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #5d4037;
  line-height: 1.6;
  margin-bottom: 14px;
}

.fi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.fi, .fta {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fi:focus, .fta:focus {
  border-color: #478ac9;
  box-shadow: 0 0 0 3px rgba(71,138,201,0.18);
}
.fi-full { width: 100%; margin-bottom: 10px; }
.fta { min-height: 96px; resize: vertical; }

.rsub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 26px;
  background: #478ac9;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.rsub:hover { background: #2d6da3; }

/* ---- Filter + sort controls ---- */
.forum-controls { margin-bottom: 18px; }
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.fchips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.fchips.small { gap: 6px; }
.fbtn, .sbtn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid #cfd6df;
  background: #fff;
  color: #555;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fbtn:hover, .sbtn:hover { border-color: #478ac9; color: #478ac9; }
.fbtn.active, .sbtn.active { background: #478ac9; border-color: #478ac9; color: #fff; }
.forum-search {
  flex: 1 1 220px;
  min-width: 0;
}

/* ---- Threads ---- */
.threads-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.thread {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  border-top: 4px solid #478ac9;
}

.t-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t-meta { flex: 1; min-width: 0; }
.t-tag-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }

.ttag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.tHE { background: #e7f5ed; color: #1b5e20; }
.tQ  { background: #e3f2fd; color: #0d47a1; }
.tPG { background: #fce4ec; color: #880e4f; }
.tGH { background: #f3e5f5; color: #4a148c; }
.tIM { background: #fff3e0; color: #e65100; }
.tCO { background: #ffebee; color: #b71c1c; }

.tstatus {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.st-open     { background: #ffcdd2; color: #b71c1c; }
.st-pending  { background: #fff3cd; color: #856404; }
.st-resolved { background: #c8e6c9; color: #1b5e20; }

.pinbadge, .nbadge, .vbadge, .ibadge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.pinbadge { background: #fff8e1; color: #856404; }
.nbadge   { background: #c8e6c9; color: #1b5e20; }
.vbadge   { background: #bbdefb; color: #0d47a1; }
.ibadge   { background: #ffe0b2; color: #e65100; }

.t-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #1f1f1f;
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
}
.t-byline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.84rem;
  color: #555;
}
.t-author { font-weight: 600; color: #333; margin-right: 6px; }
.t-loc { display: block; color: #888; font-size: 0.78rem; margin-top: 2px; }
.t-time { color: #888; font-size: 0.78rem; white-space: nowrap; }

.t-excerpt {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
  margin: 8px 0 14px;
  overflow-wrap: anywhere;
}

/* ---- Replies ---- */
.replies-wrap {
  border-top: 1px solid #eef1f4;
  padding-top: 10px;
  margin-bottom: 4px;
}
.reply {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 12px;
}
.reply:last-child { border-bottom: none; }
.reply.admin-reply {
  background: linear-gradient(135deg, #f0f6ff, #e8f3fb);
  border-radius: 10px;
  padding: 14px 16px;
  border-bottom: none;
  margin: 4px 0;
  border-left: 4px solid #478ac9;
}
.r-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.r-body { flex: 1; min-width: 0; }
.r-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.r-author { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 0.86rem; color: #1f1f1f; }
.abadge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #478ac9;
  color: #fff;
}
.r-loc { font-size: 0.74rem; color: #888; }
.r-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
}
.r-meta { display: flex; gap: 12px; align-items: center; }
.r-time { font-size: 0.74rem; color: #999; }
.lbtn {
  font-size: 0.78rem;
  font-family: 'Open Sans', sans-serif;
  background: transparent;
  border: 1px solid #e0e6ec;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  color: #666;
}
.lbtn:hover, .lbtn.liked { color: #c62828; border-color: #ffcdd2; }

/* ---- Admin reply form ---- */
.admin-reply-form {
  background: #eef4fb;
  border-top: 2px solid #478ac9;
  border-radius: 0 0 10px 10px;
  padding: 14px 16px;
  margin: 8px 0 10px;
}
.arf-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #2d6da3;
  margin-bottom: 8px;
}
.ata {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #478ac9;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}
.arf-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.asub {
  background: #1b5e20;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.asub:hover { background: #2e7d32; }
.adel {
  background: #c62828;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.adel:hover { background: #b71c1c; }
.stsel {
  padding: 7px 10px;
  border: 1px solid #cfd6df;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  background: #fff;
  cursor: pointer;
}

/* ---- Public reply form ---- */
.pub-form-wrap {
  background: #f9fbfd;
  border-radius: 10px;
  padding: 6px 14px;
  margin: 8px 0 6px;
  border: 1px dashed #d6e1ec;
}
.pub-form-toggle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #478ac9;
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
}
.pub-form-toggle::-webkit-details-marker { display: none; }
.pub-form { padding: 4px 0 12px; display: flex; flex-direction: column; gap: 8px; }

/* ---- Thread footer ---- */
.t-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef1f4;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: #666;
}
.t-stats { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stbtn {
  font-size: 0.82rem;
  background: transparent;
  border: 1px solid #e0e6ec;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: #666;
}
.stbtn:hover, .stbtn.liked { color: #c62828; border-color: #ffcdd2; }
.admin-replied { color: #2d6da3; font-weight: 700; font-size: 0.78rem; }
.t-foot-label { font-style: italic; color: #888; }

/* ---- Empty state ---- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}
.empty .ei { font-size: 2rem; margin-bottom: 8px; }

/* ---- Modal ---- */
.modal-ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-ov.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-box h3 {
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 8px;
  color: #2d6da3;
}
.modal-box p {
  font-family: 'Open Sans', sans-serif;
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.modal-box input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.modal-box input:focus { border-color: #478ac9; outline: none; box-shadow: 0 0 0 3px rgba(71,138,201,0.18); }
.m-err { color: #c62828 !important; font-size: 0.84rem; margin: 0 0 10px !important; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d6da3;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1100;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .forum-stats { grid-template-columns: repeat(2, 1fr); }
  .fi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .forum-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fstat { padding: 12px 8px; }
  .fstat-n { font-size: 1.2rem; }
  .fstat-l { font-size: 0.7rem; }
  .fi-row { grid-template-columns: 1fr; }
  .thread { padding: 18px 16px 14px; }
  .av { width: 38px; height: 38px; font-size: 0.85rem; }
  .t-title { font-size: 1rem; }
  .fchips-row { flex-direction: column; align-items: stretch; }
  .forum-search { flex: 1 1 auto; width: 100%; }
}
