.forum-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.forum-category {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-left {
  flex: 0 0 250px;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

.category-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}

.category-info {
  display: flex;
  flex-direction: column;
}



.category-description {
  font-size: 1.2rem;
  color: #666;
}

.category-topics {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.forum-topic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 1px solid #eee;
}

.forum-topic:last-child {
  border-bottom: none;
}

.topic-title {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
}

.topic-title:hover {
  text-decoration: underline;
}

.topic-date {
  font-size: 1.2rem;
  color: #999;
  white-space: nowrap;
  padding-left: 1rem;
}
/* Increase font size for topic titles */
.custom-forum-topic-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0056b3;
  margin-bottom: 0.25rem;
}

/* Smaller margin between title and date */
.custom-forum-topic-meta {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.15rem;
}

/* Improve box styling for each forum group */
.custom-forum-category {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
  min-height: 140px; /* Increased height */
}

/* Hover effect for better UI */
.custom-forum-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Category title (e.g., eTISC, Other Topics) */
.custom-forum-category h2 {
  font-size: 1.25rem !important;
  font-weight: bold !important;
  margin-bottom: 0.5rem !important;
}

/* Optional: Decrease padding in topic list for tighter layout */
.custom-forum-topic-list li {
  margin-bottom: 0.3rem;
}
.forum-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.forum-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.forum-filters input[type="text"],
.forum-filters select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.forum-filters input[type="submit"] {
  padding: 8px 16px;
  background-color: #005ea5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.forum-filters input[type="submit"]:hover {
  background-color: #004b8d;
}

.create-discussion-btn {
  background-color: #333e4f;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.create-discussion-btn:hover {
  background-color: #1d2733;
}

.category-title {
  font-weight: bold !important;
  font-size: 20px !important;
  margin-bottom: 0.4rem;
  color: #003366;
}