/* =========================================================
   OLD MODULE.CSS KEPT FOR REFERENCE
   =========================================================

form input[type=submit].filterlink, .filterlink {
  padding: 5px;
  background:transparent;font-size:1rem;color:#000;border:0px;font-weight:inherit;border-bottom: 2px solid transparent;
}
  
form input[type=submit].filterlink.active, .filterlink.active {
  border-bottom: 2px solid #cecece;
}
  
.search-container {
  display: flex;
  align-items: center;
}
  
.filters, .sorters {
  display: flex;
  align-items: center;
}
  
.filter-sort-container {
  display: flex;
  /*flex-wrap: wrap;*/
}
  
form input[type=submit].filterlink:hover, .filterlink:hover {
  border-bottom: 2px solid red;
}
  
.topics-container{padding:15px 0;}
  
.topic-card h4 {
  margin-bottom: 0;
  color:#000;
}
span.detail-container {
  font-size: .9rem;
}
/*
.topic-card span.detail-container {display:flex;justify-content:space-between;}
.topic-card {padding:5px 5px;}
.topic-card:hover {
  background: whitesmoke;
} */
  
/**** 23-July-26 Starts****/
  
/* =========================================================
   Previous code kept for reference
   ========================================================= */
  
/* Previous .topic-card code
.topic-card {padding:5px 5px;}
.topic-card:hover { background: whitesmoke; }
*/
  
/* =========================================================
   Polished Topic Listing Styles
   ========================================================= */
  
/* Main listing area */
.topics-container {
  padding: 20px 0;
}
  
/* Topic card */
.topic-card {
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  transition:
    background-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
  
.topic-card:hover {
  background: #f9fafb;
  border-color: #d9dee7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
  
/* Topic title */
.topic-card h4 {
  margin: 0 0 8px;
  color: #111827;
  line-height: 1.4;
  font-weight: 600;
}
  
/* Topic card links */
.topic-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
  
/* Detail row */
.topic-card span.detail-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #4b5563;
}
  
/* Inner detail text spacing */
.topic-card .details,
.topic-card .descriptor-padding {
  color: #6b7280;
  line-height: 1.5;
}
  
/* Solved badge */
.status-solved {
  display: inline-block;
  background: #33bf33;
  color: #fff;
  padding: 0.25rem 0.55rem;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.68em;
  vertical-align: middle;
  font-weight: 600;
}
  
/* Filter/search wrapper */
.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
  
/* Left side filter/sort area */
.filter-sort-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
  
.filters,
.sorters {
  display: flex;
  align-items: center;
  gap: 10px;
}
  
/* Search form alignment */
#topic_search_form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
  
/* Search input wrapper */
.search-container {
  display: flex;
  align-items: center;
}
  
/* Search input */
#topic_search {
  margin-left: 7px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-width: 240px;
  background: #ffffff;
}
  
/* Search icon button area */
#topic_search_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
  
#topic_search_button svg {
  height: 20px;
  margin-top: 0;
}
  
/* Ghost button icon alignment */
.btn--ghost svg {
  margin-top: -2px;
  margin-left: 8px;
}
  
/* Category sidebar */
.category-sidebar {
  padding-right: 8px;
}
  
/* Category links */
.category-filter {
  display: block;
  padding: 10px 0 10px 16px;
  margin-bottom: 4px;
  text-decoration: none;
}
  
.category-filter h4 {
  margin: 0;
  line-height: 1.4;
}
  
/* Active category */
a.category-filter.active {
  border-left: 3px solid #c8102e;
  padding-left: 13px;
}
  
/* Category tag wrapper */
.category-tags {
  display: none;
  margin: 4px 0 12px 16px;
  padding-left: 2px;
}
  
.category-tags.active {
  display: block;
}
  
/* Category tag links */
.category-tags a {
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  display: inline-block;
  text-decoration: none;
  background: #f8fafc;
}
  
.category-tags a.active {
  border: 1px solid #c8102e;
  color: #c8102e;
  background: #fff5f5;
}
  
.category-tags a:hover {
  border: 1px solid #d1d5db;
}
  
/* Viewing heading */
.topics-container h2 {
  margin: 0 0 18px;
  line-height: 1.35;
}
  
/* Tag title beside heading */
span.tag-title {
  font-weight: 100;
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 10px;
}
  
/* Utility spacing already used in markup */
.descriptor-padding {
  padding: 2px 4px;
}
  
/* Pagination spacing */
.topics-pagination {
  margin-top: 20px;
  padding-top: 8px;
}
  
/* Mobile responsive */
@media (max-width: 767px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-sort-container {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filters,
  .sorters {
    width: 100%;
    flex-wrap: wrap;
  }
  
  #topic_search_form {
    width: 100%;
    margin-left: 0;
  }
  
  .search-container {
    width: 100%;
  }
  
  #topic_search {
    min-width: 0;
    width: 100%;
    margin-left: 0;
  }
  
  .topic-card {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  
  .topic-card h4 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .topic-card span.detail-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .category-sidebar {
    padding-right: 0;
    margin-bottom: 16px;
  }
  
  .category-filter {
    padding-left: 12px;
  }
  
  a.category-filter.active {
    padding-left: 9px;
  }
  
  .category-tags {
    margin-left: 12px;
  }
}
/*  23-July-26 Ends ****/
  
.svg-icon {height:.7rem;vertical-align: text-top;}
.category-tags {display:none}
.category-tags a {
  padding: 3px 5px;
  margin:1px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: .8rem;
  display: inline-block;
}
.category-tags a.active {
    border: 1px solid green;
}
.category-tags a:hover {
    border: 1px solid #cecece;
}
.category-tags.active  {display:block}
.topic-cta {
  padding: 50px;
}
  
.signup-modal-container {
  text-align: center;
}
.modal-popup-container {padding-bottom:20px;}
.category-filter {padding-left:16px;display:block;}
a.category-filter.active {
  border-left: red 2px solid;
  display: block;
  padding-left: 15px;
}
.status-solved {
    display: inline-block;
    background: #33bf33;
    color: #fff;
    padding: 0.2rem 0.5rem;
    margin-right: 5px;
    border-radius: 4px;
    font-size: .5em;
    vertical-align: middle;
}
.filter-container {
  display:flex;
  justify-content:left;
}
  
span.tag-title {
    font-weight: 100;
    font-size: .6em;
    vertical-align: middle;
    margin-left: 10px;
}
.descriptor-padding {padding:2px 4px;}
  
#topic_search_form { display: flex; }
#topic_search_button svg { height: 20px; margin-top:8px; }
.btn--ghost svg {
  margin-top: -3px;
  margin-left: 8px;
}
#topic_search {
  margin-left: 7px;
}

========================================================= */

/* =========================================================
   FINAL CLEANED MODULE.CSS
   Compact, polished, and conflict-free
   ========================================================= */

form input[type=submit].filterlink,
.filterlink {
  padding: 4px 5px;
  background: transparent;
  font-size: 0.95rem;
  color: #111827;
  border: 0;
  font-weight: inherit;
  border-bottom: 2px solid transparent;
}

form input[type=submit].filterlink.active,
.filterlink.active {
  border-bottom: 2px solid #cfd4dc;
}

form input[type=submit].filterlink:hover,
.filterlink:hover {
  border-bottom: 2px solid #c8102e;
}

.search-container {
  display: flex;
  align-items: center;
}

.filters,
.sorters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-sort-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.topics-container {
  padding: 10px 0;
}

.topic-card {
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.topic-card:hover {
  background: #fafafa;
  border-color: #d8dde6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.topic-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.topic-card h4 {
  margin: 0 0 4px;
  color: #111827;
  line-height: 1.3;
  font-weight: 600;
  font-size: 1rem;
}

.topic-card span.detail-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #4b5563;
  line-height: 1.35;
}

.topic-card .details,
.topic-card .descriptor-padding {
  color: #6b7280;
  line-height: 1.35;
}

.status-solved {
  display: inline-block;
  background: #c8102e;
  color: #ffffff;
  padding: 0.18rem 0.45rem;
  margin-right: 5px;
  border-radius: 999px;
  font-size: 0.58em;
  font-weight: 600;
  vertical-align: middle;
}

#topic_search_form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

#topic_search {
  margin-left: 0;
  padding: 8px 10px;
  min-width: 220px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  font-size: 0.92rem;
}

#topic_search_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#topic_search_button svg {
  height: 18px;
  margin-top: 0;
}

.btn--ghost svg {
  margin-top: -1px;
  margin-left: 6px;
}

.category-sidebar {
  padding-right: 6px;
}

.category-filter {
  display: block;
  padding: 7px 0 7px 12px;
  margin-bottom: 2px;
  text-decoration: none;
}

.category-filter h4 {
  margin: 0;
  line-height: 1.3;
  font-size: 0.96rem;
}

a.category-filter.active {
  border-left: 3px solid #c8102e;
  padding-left: 9px;
}

.category-tags {
  display: none;
  margin: 2px 0 8px 12px;
  padding-left: 0;
}

.category-tags.active {
  display: block;
}

.category-tags a {
  display: inline-block;
  padding: 3px 7px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f8fafc;
  font-size: 0.76rem;
  text-decoration: none;
  line-height: 1.2;
}

.category-tags a.active {
  border: 1px solid #c8102e;
  color: #c8102e;
  background: #fff5f5;
}

.category-tags a:hover {
  border: 1px solid #d1d5db;
}

.topics-container h2 {
  margin: 0 0 12px;
  line-height: 1.25;
}

span.tag-title {
  font-weight: 400;
  font-size: 0.58em;
  vertical-align: middle;
  margin-left: 8px;
}

.descriptor-padding {
  padding: 1px 3px;
}

.topics-pagination {
  margin-top: 14px;
  padding-top: 4px;
}

.topic-cta {
  padding: 24px 18px;
}

.signup-modal-container {
  text-align: center;
}

.modal-popup-container {
  padding-bottom: 14px;
}

.svg-icon {
  height: 0.7rem;
  vertical-align: text-top;
}

@media (max-width: 767px) {
  .topics-container {
    padding: 8px 0;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-sort-container {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filters,
  .sorters {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  #topic_search_form {
    width: 100%;
    margin-left: 0;
  }

  .search-container {
    width: 100%;
  }

  #topic_search {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
  }

  .topic-card {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 7px;
  }

  .topic-card h4 {
    font-size: 0.96rem;
    margin-bottom: 4px;
  }

  .topic-card span.detail-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.82rem;
  }

  .category-sidebar {
    padding-right: 0;
    margin-bottom: 12px;
  }

  .category-filter {
    padding: 6px 0 6px 10px;
  }

  a.category-filter.active {
    padding-left: 7px;
  }

  .category-tags {
    margin-left: 10px;
  }

  .topic-cta {
    padding: 18px 14px;
  }
}