/* =========================
   FORUMS PAGE (1100px wide)
   Light theme
   ========================= */

/* Wrapper: separate from section3 */
.forum-page {
  padding: 40px 20px;
}

.forum-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* Page head */
.forum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.forum-head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Top 2-column grid */
.forum-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 */
  gap: 26px;
  align-items: start;
  margin-bottom: 34px;
}

@media (max-width: 900px) {
  .forum-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Panel container */
.forum-panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

.forum-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
}

.forum-panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.forum-panel-link {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
}

.forum-panel-link:hover {
  color: #004d85;
}

/* Categories list */
.forum-categories {
  display: grid;
  gap: 12px;
}

.forum-cat-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;

  text-decoration: none;
  color: inherit;

  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px;

  background: #fafafa;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.forum-cat-card:hover {
  transform: translateY(-2px);
  border-color: #d7e8ff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

.forum-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e8f5ff;
  color: #004d85;
  user-select: none;
}

.forum-cat-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.forum-cat-desc {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Top Discussions list */
.forum-topics {
  display: grid;
  gap: 12px;
}

.topic-item {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.topic-item:first-child {
  border-top: none;
  padding-top: 0;
}

.topic-title {
  display: inline-block;
  text-decoration: none;        /* no underline */
  color: #111;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

.topic-title:hover {
  color: #0077cc;
}

.topic-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #333;
  font-size: 0.95rem;
}

.topic-comments {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5ff;
  color: #004d85;
  font-weight: 800;
}

.topic-category {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
}

.topic-category:hover {
  color: #004d85;
}

.topic-dot {
  color: #777;
}

/* Category blocks (Posts grouped below) */
.forum-category-block {
  margin: 26px 0 34px;
}

.forum-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.forum-category-head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.forum-backlink {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
}

.forum-backlink:hover {
  color: #004d85;
}

/* Post list rows */
.post-list {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

.post-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 14px;
  align-items: center;

  padding: 14px 16px;
  border-top: 1px solid #eee;

  text-decoration: none;
  color: inherit;
}

.post-row:first-child {
  border-top: none;
}

.post-row:hover {
  background: #f6fbff;
}

.post-row-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.post-row-sub {
  color: #333;
  font-size: 0.95rem;
}

.post-row-stats {
  justify-self: end;
  min-width: 44px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  font-weight: 800;
  color: #111;
}

/* FAQ list (admin-only content) */
.faq-list {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafafa;
  margin: 10px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

/* Utility: you used .nodent in your HTML snippets */
.nodent {
  text-indent: 0;
  margin-bottom: 0;
}

/* ===== Threads Section ===== */
/* =========================
   THREAD PAGE (NEW CSS ONLY)
   Add this to forums.css
   ========================= */

.thread-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.thread-back {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
}

.thread-back:hover {
  color: #004d85;
}

.thread-category {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.thread-category:hover {
  color: #0077cc;
}

.thread-head {
  margin: 10px 0 18px;
}

.thread-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.15;
}

.thread-head-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #333;
  font-size: 0.95rem;
}

/* Original post */
.post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
  margin-bottom: 22px;
}

.post-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.post-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e8f5ff;
  color: #004d85;
  user-select: none;
}

.author-name {
  font-weight: 800;
}

.author-sub {
  color: #333;
  font-size: 0.95rem;
}

.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-link {
  text-decoration: none;
  color: #0077cc;
  font-weight: 700;
}

.post-link:hover {
  color: #004d85;
}

.post-body p {
  margin: 0 0 12px;
}

.post-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.reply-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.reply-btn:hover {
  background: #f6f6f6;
}

/* Comments */
.comments-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 12px;
}

.comment-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
  margin-bottom: 14px;
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  gap: 10px;
}

.comment-link {
  text-decoration: none;
  color: #0077cc;
  font-weight: 700;
}

.comment-link:hover {
  color: #004d85;
}

.comment-body p {
  margin: 0 0 10px;
}

/* replies: visually nested, but still chronological */
.comment-replies {
  margin-top: 12px;
  padding-left: 18px;
  border-left: 3px solid #e8f5ff;
  display: grid;
  gap: 12px;
}

.comment-reply {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
}

/* Reply box */
.reply-box {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

.reply-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  resize: vertical;
  background: #fff;
}

.reply-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: flex-end;
}

.reply-submit {
  border: 1px solid #0077cc;
  background: #0077cc;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.reply-submit:hover {
  background: #004d85;
  border-color: #004d85;
}

.reply-cancel {
  text-decoration: none;
  color: #0077cc;
  font-weight: 700;
}

.reply-cancel:hover {
  color: #004d85;
}
