/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════ */
:root {
  --green-900:    #062e22;
  --green-800:    #0a4d3c;
  --green-700:    #0e6650;
  --green-600:    #138a6a;
  --green-400:    #3dbe92;
  --green-200:    #a8e6ce;
  --green-100:    #d4f3e7;
  --green-50:     #edfaf4;

  --warm-50:   #faf9f6;
  --warm-100:  #f2f0eb;
  --warm-200:  #e4e0d8;

  --neutral-900:  #1a1a1a;
  --neutral-700:  #3d3d3d;
  --neutral-500:  #6b7280;
  --neutral-400:  #9ca3af;
  --neutral-300:  #d1d5db;
  --neutral-200:  #e9eaec;
  --neutral-100:  #f3f4f6;
  --neutral-50:   #f9fafb;

  --red-600:   #c0392b;
  --red-50:    #fef2f2;
  --amber-600: #d97706;

  --bg:           #f4f7f5;
  --white:        #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(10,77,60,.14);

  --radius:       14px;
  --radius-sm:    8px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--warm-50);
  color: var(--neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
.top-header-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 18px 0;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo-link:hover { opacity: .8; }
.logo-image {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

.header-center-wrapper {
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.navbar-two-rows {
  display: flex;
  flex-direction: column;
  min-width: 680px;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-200);
}

.navbar-top-row a {
  color: var(--green-800);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
}

.navbar-top-row a:hover { background: var(--green-50); }

.nav-sep {
  color: var(--neutral-300);
  font-size: 11px;
}

.navbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.nav-link,
.dropdown-toggle {
  color: var(--green-800);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition);
}

.nav-link:hover,
.dropdown:hover > .dropdown-toggle {
  background: var(--green-50);
}

.nav-link.active,
a.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 8px;
  transition: transform .25s;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--green-800);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .22s ease;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.dropdown-open .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--neutral-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}

.dropdown-menu a:hover {
  background: var(--neutral-50);
  border-left-color: var(--green-800);
  padding-left: 21px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero-section {
  background-image: url('BG.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,46,34,.82) 0%, rgba(10,77,60,.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  max-width: 620px;
  letter-spacing: .2px;
}

/* ═══════════════════════════════════════════
   INTRO STRIP
═══════════════════════════════════════════ */
.intro-strip {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}
.intro-strip-inner {
  max-width: 1160px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.intro-text { flex: 1; min-width: 220px; }
.intro-text p { font-size: 14px; color: var(--neutral-500); line-height: 1.7; margin: 0; }
.intro-text strong { color: var(--green-800); }

.intro-stats {
  display: flex; align-items: center; flex-shrink: 0;
  background: var(--neutral-50); border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm); overflow: hidden;
}
.intro-stat { text-align: center; padding: 13px 24px; }
.intro-stat-num {
  display: block; font-family: var(--font-display);
  font-size: 22px; line-height: 1; color: var(--green-800);
}
.intro-stat-lbl {
  display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--neutral-500); margin-top: 4px;
}
.intro-stat--alert .intro-stat-num { color: #b45309; }
.intro-stat--alert .intro-stat-lbl { color: #b45309; }
.intro-stat--alert               { background: #fffbeb; }
.intro-stat-divider { width: 1px; height: 38px; background: var(--neutral-200); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   TOOLBAR
═══════════════════════════════════════════ */
.toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky; top: 0; z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.toolbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.toolbar-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.toolbar-cats  { padding: 14px 0 12px; }
.toolbar-search { padding: 12px 0 14px; }
.toolbar-divider { height: 1px; background: var(--neutral-100); }
.toolbar-label {
  font-size: 12px; font-weight: 600; color: var(--neutral-500);
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.toolbar-label i { font-size: 11px; }

.category-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  font-family: var(--font-body); user-select: none; line-height: 1;
}
.chip i { font-size: 11px; }

.chip-all      { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.chip-question { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.chip-concern  { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.chip-suggest  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.chip-help     { background: #fdf4ff; color: #7e22ce; border-color: #e9d5ff; }

.chip-all:hover,      .chip-all.active      { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.chip-question:hover, .chip-question.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.chip-concern:hover,  .chip-concern.active  { background: #c2410c; color: #fff; border-color: #c2410c; }
.chip-suggest:hover,  .chip-suggest.active  { background: #15803d; color: #fff; border-color: #15803d; }
.chip-help:hover,     .chip-help.active     { background: #7e22ce; color: #fff; border-color: #7e22ce; }

.search-wrap {
  flex: 1; min-width: 220px; position: relative; display: flex; align-items: center;
}
.search-wrap i {
  position: absolute; left: 14px; color: var(--neutral-500); font-size: 13px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--neutral-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--neutral-900);
  background: var(--neutral-50); outline: none; transition: all .2s;
}
.search-input:focus {
  border-color: var(--green-800); background: var(--white);
  box-shadow: 0 0 0 3px rgba(10,77,60,.1);
}
.search-input::placeholder { color: var(--neutral-500); }

.filter-group { display: flex; gap: 10px; align-items: center; }
.filter-select {
  padding: 9px 30px 9px 12px;
  border: 1.5px solid var(--neutral-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 13px; color: var(--neutral-700);
  background: var(--neutral-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  -webkit-appearance: none; outline: none; cursor: pointer; transition: all .2s;
}
.filter-select:focus {
  border-color: var(--green-800); background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(10,77,60,.1);
}

.btn-create {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: var(--green-800); color: var(--white);
  border: 2px solid var(--green-800); border-radius: 10px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all .22s; white-space: nowrap; flex-shrink: 0;
  letter-spacing: .2px;
}
.btn-create:hover {
  background: var(--green-700); border-color: var(--green-700);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,77,60,.3);
}
.btn-create i { font-size: 12px; }

/* ═══════════════════════════════════════════
   PAGE BODY
═══════════════════════════════════════════ */
.page-body { max-width: 1160px; margin: 0 auto; padding: 32px 24px 60px; flex: 1; }

.result-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.result-count { font-size: 13px; color: var(--neutral-500); }
.result-count strong { color: var(--neutral-900); font-weight: 700; }

/* ═══════════════════════════════════════════
   POST CARDS GRID
═══════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--neutral-200);
  padding: 22px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; opacity: 0; transition: opacity .22s;
}
.post-card[data-cat="Questions"]::before    { background: #2563eb; }
.post-card[data-cat="Concerns"]::before     { background: #c2410c; }
.post-card[data-cat="Suggestions"]::before  { background: #15803d; }
.post-card[data-cat="Community Help"]::before { background: #7e22ce; }

.post-card:hover {
  border-color: var(--green-400);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(10,77,60,.13);
}
.post-card:hover::before { opacity: 1; }

.card-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.card-badges { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }

.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 700; line-height: 1;
  letter-spacing: .2px;
}
.status-answered { background: #d1fae5; color: #065f46; }
.status-review   { background: #fef3c7; color: #92400e; }
.status-resolved { background: #dbeafe; color: #1e40af; }
.status-open     { background: var(--neutral-100); color: #4b5563; }

.cat-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px;
  font-size: 11px; font-weight: 600; line-height: 1;
}
.cat-tag-question { background: #eff6ff; color: #2563eb; }
.cat-tag-concern  { background: #fff7ed; color: #c2410c; }
.cat-tag-suggest  { background: #f0fdf4; color: #15803d; }
.cat-tag-help     { background: #fdf4ff; color: #7e22ce; }

.card-title {
  font-size: 15.5px; font-weight: 700; color: var(--neutral-900);
  line-height: 1.45; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-preview {
  font-size: 13.5px; color: var(--neutral-500); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(13.5px * 1.6 * 2);
  margin-bottom: 10px;
}
.card-location {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--neutral-500); font-size: 12px; margin-bottom: 4px;
}
.card-location i { color: var(--green-800); font-size: 11px; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--neutral-100); margin-top: auto;
  gap: 8px;
}
.card-author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; font-family: var(--font-display);
}
.card-author-name {
  font-size: 12.5px; font-weight: 600; color: var(--neutral-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-date { font-size: 11px; color: #9ca3af; }

.card-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.card-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .18s; font-family: var(--font-body);
  border: 1.5px solid var(--neutral-200);
  background: var(--neutral-50); color: var(--neutral-500);
}
.card-action-btn:hover { background: var(--green-50); border-color: var(--green-400); color: var(--green-800); }
.card-action-btn.active { background: var(--green-50); border-color: var(--green-800); color: var(--green-800); }
.card-action-btn i { font-size: 11px; }

/* ── Report button on cards ── */
.btn-report-card {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .18s; font-family: var(--font-body);
  border: 1.5px solid var(--neutral-200);
  background: var(--neutral-50); color: var(--neutral-400);
}
.btn-report-card i { font-size: 11px; }
.btn-report-card:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #dc2626;
}
.btn-report-card.reported {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #b91c1c;
  cursor: default;
  opacity: .75;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════ */
.empty-state { text-align: center; padding: 80px 20px; display: none; }
.empty-state i  { font-size: 48px; color: var(--neutral-300); margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--neutral-500); font-size: 18px; margin-bottom: 6px; }
.empty-state p  { color: #9ca3af; font-size: 14px; }

/* ═══════════════════════════════════════════
   MODALS — SHARED
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,46,34,.62); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.26);
  width: 100%; max-height: 90vh; overflow-y: auto;
  transform: translateY(24px) scale(.97); transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.28); }

/* ═══════════════════════════════════════════
   POST DETAIL MODAL
═══════════════════════════════════════════ */
.modal-detail { max-width: 780px; }
.modal-detail-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  padding: 32px 36px 24px; border-radius: 20px 20px 0 0; position: relative;
}
.modal-detail-meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.modal-detail-meta .status-badge { font-size: 13px; padding: 6px 16px; }
.modal-detail-meta .cat-tag      { font-size: 12px; padding: 5px 13px; }

.modal-detail-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px); color: var(--white); line-height: 1.3; margin-bottom: 14px;
}
.modal-detail-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.modal-detail-info span { color: rgba(255,255,255,.7); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.modal-detail-info i { color: #a8e6ce; }

.modal-body { padding: 30px 36px; }
.modal-detail-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 22px; }
.modal-detail-desc { color: var(--neutral-700); font-size: 15px; line-height: 1.85; margin-bottom: 22px; }
.modal-location-row {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f0fdf4; color: #15803d;
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 22px;
}

.detail-helpful-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--neutral-50);
  border: 1px solid var(--neutral-200); border-radius: 10px;
  margin-bottom: 26px; flex-wrap: wrap;
}
.detail-helpful-label { font-size: 13.5px; color: var(--neutral-500); }
.btn-helpful-detail {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 8px;
  background: var(--white); color: var(--green-800);
  border: 2px solid var(--green-800);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-helpful-detail:hover { background: var(--green-50); }
.btn-helpful-detail.voted { background: var(--green-800); color: var(--white); }
.btn-helpful-detail .helpful-count {
  background: rgba(0,0,0,.1); padding: 1px 7px; border-radius: 100px; font-size: 12px;
}
.btn-helpful-detail.voted .helpful-count { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════════
   REPLIES
═══════════════════════════════════════════ */
.replies-section-title {
  font-size: 15px; font-weight: 700; color: var(--neutral-900);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.replies-section-title span {
  background: var(--green-800); color: var(--white);
  border-radius: 100px; font-size: 11px; padding: 2px 9px;
}
.reply-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.reply-item {
  display: flex; gap: 14px; padding: 15px 18px;
  background: var(--neutral-50); border-radius: 12px; border: 1px solid var(--neutral-100);
}
.reply-item.staff-reply { background: #f0fdf4; border-color: #bbf7d0; }
.reply-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; font-family: var(--font-display);
}
.reply-avatar.staff-avatar { background: #065f46; }
.reply-content { flex: 1; }
.reply-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.reply-name   { font-size: 13.5px; font-weight: 700; color: var(--neutral-900); }
.staff-badge  {
  display: inline-flex; align-items: center; gap: 4px;
  background: #065f46; color: var(--white);
  padding: 2px 9px; border-radius: 100px; font-size: 10.5px; font-weight: 600;
}
.reply-date { font-size: 11.5px; color: #9ca3af; margin-left: auto; }

/* Report button on individual replies */
.btn-report-reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--neutral-400);
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
}
.btn-report-reply i { font-size: 10px; }
.btn-report-reply:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #dc2626;
}
.btn-report-reply.reported {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #b91c1c;
  cursor: default;
  opacity: .7;
}
.reply-text { font-size: 13.5px; color: #4b5563; line-height: 1.7; }

.reply-form-wrap { border-top: 1px solid var(--neutral-200); padding-top: 22px; }
.reply-form-wrap h4 { font-size: 14px; font-weight: 700; color: var(--neutral-900); margin-bottom: 12px; }
.reply-textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--neutral-200); border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--neutral-900);
  resize: vertical; min-height: 90px; outline: none; transition: all .2s; background: var(--neutral-50);
}
.reply-textarea:focus {
  border-color: var(--green-800); background: var(--white); box-shadow: 0 0 0 3px rgba(10,77,60,.1);
}
.reply-textarea::placeholder { color: var(--neutral-500); }
.reply-submit {
  margin-top: 10px; padding: 11px 24px;
  background: var(--green-800); color: var(--white);
  border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s;
}
.reply-submit:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10,77,60,.25); }

/* ═══════════════════════════════════════════
   CREATE DISCUSSION MODAL
═══════════════════════════════════════════ */
.modal-create { max-width: 620px; }
.modal-create-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  padding: 28px 32px 24px; border-radius: 20px 20px 0 0; position: relative;
}
.modal-create-header h2 {
  font-family: var(--font-display); font-size: 22px; color: var(--white);
  margin-bottom: 4px; display: flex; align-items: center; gap: 10px;
}
.modal-create-header p { color: rgba(255,255,255,.68); font-size: 13px; }
.modal-create-body { padding: 28px 32px; }

.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--neutral-700); margin-bottom: 7px; }
.form-label span    { color: #ef4444; margin-left: 2px; }
.form-label .optional { color: var(--neutral-500); font-weight: 400; font-size: 12px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--neutral-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; color: var(--neutral-900);
  background: var(--neutral-50); outline: none; transition: all .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-800); background: var(--white); box-shadow: 0 0 0 3px rgba(10,77,60,.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--neutral-500); }
.form-select {
  -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.upload-area {
  border: 2px dashed var(--neutral-300); border-radius: 10px;
  padding: 24px; text-align: center; cursor: pointer; transition: all .2s; background: var(--neutral-50);
}
.upload-area:hover { border-color: var(--green-800); background: #f0fdf4; }
.upload-area i   { font-size: 24px; color: var(--neutral-300); margin-bottom: 8px; display: block; }
.upload-area p   { font-size: 13px; color: var(--neutral-500); margin-bottom: 4px; }
.upload-area span{ font-size: 11.5px; color: #9ca3af; }

.upload-preview { display: none; position: relative; }
.upload-preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }
.upload-remove {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: var(--white); border: none;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 12px; display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.upload-remove:hover { background: #ef4444; }

.form-footer { display: flex; gap: 12px; justify-content: flex-end; padding-top: 4px; }
.btn-cancel {
  padding: 11px 22px; background: var(--neutral-100); color: var(--neutral-700);
  border: none; border-radius: 10px; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-cancel:hover { background: var(--neutral-200); }
.btn-submit {
  padding: 11px 26px; background: var(--green-800); color: var(--white);
  border: none; border-radius: 10px; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s;
}
.btn-submit:hover { background: var(--green-700); box-shadow: 0 4px 14px rgba(10,77,60,.3); }

/* ═══════════════════════════════════════════
   REPORT MODAL
═══════════════════════════════════════════ */
.modal-report { max-width: 500px; }

.modal-report-header {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  padding: 32px 36px 26px;
  border-radius: 20px 20px 0 0;
  position: relative;
  text-align: center;
}

.report-header-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px; color: #fff;
  border: 2px solid rgba(255,255,255,.25);
}

.modal-report-header h2 {
  font-family: var(--font-display);
  font-size: 21px; color: #fff; margin-bottom: 6px;
}
.modal-report-header p {
  color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.5;
}

.modal-report-body { padding: 26px 32px 28px; }

.report-subtitle {
  font-size: 13px; font-weight: 600;
  color: var(--neutral-700); margin-bottom: 14px;
}

/* Reason radio items */
.report-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.report-reason-item { cursor: pointer; }
.report-reason-item input[type="radio"] { display: none; }

.reason-inner {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px;
  border: 1.5px solid var(--neutral-200); border-radius: 10px;
  background: var(--neutral-50); transition: all .18s;
}
.report-reason-item:hover .reason-inner {
  border-color: #fca5a5; background: #fff5f5;
}
.report-reason-item input[type="radio"]:checked + .reason-inner {
  border-color: #ef4444; background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.reason-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.reason-icon--red    { background: #fee2e2; color: #dc2626; }
.reason-icon--amber  { background: #fef3c7; color: #d97706; }
.reason-icon--orange { background: #ffedd5; color: #ea580c; }
.reason-icon--blue   { background: #dbeafe; color: #2563eb; }
.reason-icon--gray   { background: var(--neutral-100); color: var(--neutral-500); }

.reason-text { display: flex; flex-direction: column; gap: 1px; }
.reason-text strong { font-size: 13.5px; color: var(--neutral-900); font-weight: 600; }
.reason-text small  { font-size: 11.5px; color: var(--neutral-500); }

.report-note {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--neutral-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--neutral-900);
  background: var(--neutral-50); resize: vertical;
  outline: none; transition: all .2s; margin-bottom: 18px;
}
.report-note:focus {
  border-color: #ef4444; background: var(--white);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.report-note::placeholder { color: var(--neutral-400); }

.report-footer { display: flex; gap: 10px; justify-content: flex-end; }

.btn-report-submit {
  padding: 11px 24px; background: #dc2626; color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s;
}
.btn-report-submit:hover {
  background: #b91c1c; transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,.35);
}
.btn-report-submit:disabled {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-900); color: var(--white);
  padding: 13px 22px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.25); z-index: 3000;
  display: flex; align-items: center; gap: 9px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i    { color: var(--green-400); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--green-800);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: auto;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 40px; margin-bottom: 30px;
}
.footer-section h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.25);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: .88rem; line-height: 1.6; }
.footer-links li i { margin-right: 7px; color: rgba(255,255,255,.7); }
.footer-links a { color: #fff; text-decoration: none; transition: color .2s, padding-left .2s; display: inline-block; }
.footer-links a:hover { color: #b8e6d5; padding-left: 4px; }
.footer-logo-section { display: flex; align-items: flex-start; justify-content: center; }
.footer-logo-link { display: block; transition: opacity .25s; }
.footer-logo-link:hover { opacity: .8; }
.footer-logo { width: 100px; height: auto; }
.footer-bottom {
  text-align: center; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 1200px; margin: 0 auto;
}
.footer-bottom p { font-size: .87rem; color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1060px) {
  .top-header-container { flex-direction: column; padding: 14px 16px; }
  .header-center-wrapper { width: 100%; }
  .navbar-two-rows { min-width: auto; width: 100%; }
  .navbar-top-row { justify-content: center; }
  .navbar-bottom-row { justify-content: center; flex-wrap: wrap; }
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-logo-section { grid-column: 1/-1; justify-content: center; }
}

@media (max-width: 768px) {
  .hero-section { height: 280px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 14px; max-width: 90%; }
  .nav-sep { display: none; }
  .navbar-top-row { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .navbar-bottom-row { flex-wrap: wrap; gap: 6px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-section h3 { text-align: center; }
  .footer-links { text-align: center; }
  .footer-logo-section { justify-content: center; }
  .intro-strip-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .intro-stats { width: 100%; }
  .intro-stat { flex: 1; padding: 11px 14px; }
  .toolbar-cats { padding: 12px 0 10px; }
  .toolbar-search { padding: 10px 0 12px; flex-wrap: wrap; }
  .search-wrap { min-width: 100%; }
  .filter-group { width: 100%; }
  .filter-select { flex: 1; }
  .btn-create { width: 100%; justify-content: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .modal-detail-hero, .modal-body { padding: 24px 20px; }
  .modal-create-header, .modal-create-body { padding: 24px 20px; }
  .modal-report-header, .modal-report-body { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .page-body { padding: 24px 16px 48px; }
  .report-footer { flex-direction: column; }
  .btn-report-submit, .report-footer .btn-cancel { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .logo-image { width: 100px; }
  .navbar-top-row a { padding: 3px 6px; font-size: 11px; }
  .navbar-bottom-row .nav-link,
  .navbar-bottom-row .dropdown-toggle { font-size: 11px; padding: 5px 7px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 12px; }
  .chip { font-size: 12px; padding: 6px 13px; }
  .intro-stat { padding: 10px 12px; }
  .intro-stat-num { font-size: 18px; }
}