.tag-list {
  display: none;
}

.tags-expo-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    padding: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    gap: 15px; /* Space between cards */
    justify-content: center; /* Center cards if they don't fill the row */
}

.tag-card {
    background-color: #2f2f2f;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0,0,0,0.2);;
    padding: 12px;
    width: calc(33.33% - 15px);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures children don't break rounded corners */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tag-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #383838;
    padding-bottom: 8px;
}

.tag-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff !important;
    background-color: #4B9CD3;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0; /* Reset margin */
    display: inline-block;
    text-decoration: none;
}

.tag-name:hover {
    background-color: #6FBFEC;
}

.tag-name a:visited {
    color: $fff;
    text-decoration: none;
}


.post-count {
    font-size: 0.8em;
    font-weight: 500;
    color: #e0e0e0;
    background-color: #4a5568;
    padding: 3px 7px;
    border-radius: 10px; /* Pill shape */
    white-space: nowrap;
}

.post-titles-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85em;
    max-height: 120px; /* Max height before scrolling */
    overflow-y: auto; /* Add scrollbar if content exceeds max-height */
    flex-grow: 1; /* Allow list to take remaining space */
}

/* Custom scrollbar (optional, for Webkit browsers) */
.post-titles-list::-webkit-scrollbar {
    width: 6px;
}
.post-titles-list::-webkit-scrollbar-track {
    background: #222222;
    border-radius: 10px;
}
.post-titles-list::-webkit-scrollbar-thumb {
    background: #454545;
    border-radius: 10px;
}
.post-titles-list::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.post-titles-list li {
    margin-bottom: 4px;
    line-height: 1.3;
    padding: 2px 0;
}
.post-titles-list li:last-child {
    margin-bottom: 0;
}

.post-titles-list a {
    text-decoration: none;
    color: #a0cff3;
    transition: color 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.post-titles-list a:hover {
    color: #c0e0ff;
}

.no-posts {
    font-style: italic;
    color: #777;
    font-size: 0.85em;
    text-align: center;
    padding: 10px 0;
}

