/* Community Q&A Styles - Modern Redesign */

/* Community Navigation with Question Bar */
.community-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 2rem;
}

.nav-question-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.question-search-form {
    background: #f8f9fa;
    border-radius: 25px;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    align-items: center;
    gap: 0.5rem;
}

.question-search-form:focus-within {
    border-color: #315a89;
    box-shadow: 0 0 0 3px rgba(49, 90, 137, 0.1);
    background: white;
}

.question-field {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    flex: 1;
    color: #333;
}

.question-field:focus {
    outline: none;
    box-shadow: none;
}

.question-field::placeholder {
    color: #8e9aaf;
    font-style: italic;
}

.question-btn {
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    border: none;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    min-width: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.3);
}

.question-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 90, 137, 0.4);
    background: linear-gradient(135deg, #254a73 0%, #315a89 100%);
}

/* Community Search Bar */
.community-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.community-search-form {
    position: relative;
}

.search-input-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(49, 90, 137, 0.2);
    border-radius: 50px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(49, 90, 137, 0.15);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #315a89;
    box-shadow: 0 0 0 4px rgba(49, 90, 137, 0.1), 0 12px 40px rgba(49, 90, 137, 0.2);
    background: white;
}

.search-icon {
    color: #315a89;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.community-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.community-search-input:focus {
    outline: none;
}

.community-search-input::placeholder {
    color: #8e9aaf;
    font-weight: 400;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-filter-select {
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: white;
    color: #666;
    min-width: 130px;
    font-weight: 500;
}

.search-filter-select:focus {
    outline: none;
    border-color: #315a89;
    box-shadow: 0 0 0 2px rgba(49, 90, 137, 0.1);
}

.community-search-btn {
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(49, 90, 137, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.community-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 90, 137, 0.4);
    background: linear-gradient(135deg, #254a73 0%, #315a89 100%);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.active {
    background-color: rgba(49, 90, 137, 0.1);
}

.suggestion-icon {
    color: #315a89;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
}

.suggestion-category {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

/* Community Hero Section */
.community-hero {
    background-color: #e6e6e6;
    padding: 3rem 1rem 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.community-hero h1 {
    color: #315a89 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.community-hero .lead {
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Modern Question Card */
.modern-question-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(49, 90, 137, 0.2);
    padding: 0;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.modern-question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 100px rgba(49, 90, 137, 0.25);
}

.question-card-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: white;
    border-bottom: 1px solid rgba(49, 90, 137, 0.1);
}

.question-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(49, 90, 137, 0.3);
}

.question-icon i {
    font-size: 2rem;
    color: white;
}

.question-card-header h3 {
    color: #315a89;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.question-card-header p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* Question Form */
.question-form {
    padding: 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-question-input {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.modern-question-input:focus {
    border-color: #315a89;
    box-shadow: 0 0 0 4px rgba(49, 90, 137, 0.1), 0 4px 20px rgba(49, 90, 137, 0.15);
    outline: none;
    background: white;
}

.modern-question-input::placeholder {
    color: #8e9aaf;
    font-style: normal;
    font-weight: 400;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
    overflow: visible;
}

/* Dropdown Styles */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
    flex: 1 1 220px;
    min-width: 200px;
    width: 100%;
}

.filter-text-input input {
    border-radius: 12px;
    border: 1px solid #d8e2f4;
    padding: 0.75rem 1rem;
}

.filter-text-input input:focus {
    border-color: #315a89;
    box-shadow: 0 0 0 3px rgba(49, 90, 137, 0.12);
}
.dropdown-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
}

.dropdown-btn:hover,
.dropdown-btn.active {
    border-color: #315a89;
    color: #315a89;
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.15);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    min-width: 200px;
    z-index: 9999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu label {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.dropdown-menu label:last-child {
    border-bottom: none;
}

.dropdown-menu label:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.dropdown-menu input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: #315a89;
}

/* Button Styles */
.ask-button {
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 90, 137, 0.3);
}

.ask-button:hover {
    background: linear-gradient(135deg, #254a73 0%, #315a89 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 90, 137, 0.4);
}

/* AI Response Section */
.ai-response-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(49, 90, 137, 0.15);
    overflow: hidden;
    border: 1px solid rgba(49, 90, 137, 0.1);
}

.ai-loading {
    padding: 3rem 2rem;
    text-align: center;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #315a89;
    animation: pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.ai-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.ai-header h4 {
    color: #315a89;
    margin: 0;
    font-weight: 700;
}

.ai-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Response Tabs */
.response-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    color: #315a89;
    border-bottom-color: #315a89;
}

.tab-btn:hover {
    color: #315a89;
    background: rgba(49, 90, 137, 0.05);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}


/* Align thumbs + comment icons bottom-left on all screen sizes */
.post-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.post-card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem 1rem;
  width: 100%;
  border-top: 1px solid #e5eaf4;
}

.post-card-stats .post-vote-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.post-card-stats .post-card-comment-count {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #315a89;
}

.post-card-stats a {
  display: inline-flex;
  align-items: center;
}

.post-card-stats i {
  cursor: pointer;
  color: #315a89;
  transition: color 0.2s ease;
}

.post-card-stats i:hover {
  color: #4a7ba7;
}



.response-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #315a89;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

/* AI Actions */
.ai-actions {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.satisfaction-check h6 {
    color: #315a89;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Source Links Styling */
.source-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(49, 90, 137, 0.08);
    border: 1px solid rgba(49, 90, 137, 0.2);
    border-radius: 8px;
    color: #315a89;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    max-width: 100%;
    word-break: break-word;
}

.source-link:hover {
    background: rgba(49, 90, 137, 0.12);
    border-color: #315a89;
    color: #254a73;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.15);
}

.source-link i {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .source-links {
        gap: 0.4rem;
    }
    
    .source-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-modern {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-modern.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-modern.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 90, 137, 0.3);
}

.btn-modern.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 90, 137, 0.4);
}

.btn-modern.btn-outline {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-modern.btn-outline:hover {
    background: #f8f9fa;
    border-color: #315a89;
    color: #315a89;
}

/* Questions Filter */
.questions-filter {
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    gap: 0.25rem;
    border: 1px solid #e9ecef;
}

.filter-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-tab.active {
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 90, 137, 0.3);
}

.filter-tab:hover:not(.active) {
    background: #f8f9fa;
    color: #315a89;
}

/* Compact Question Rows */
.question-row {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.question-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(49, 90, 137, 0.1);
    border-color: #315a89;
}

.question-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.question-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.question-info {
    flex: 1;
    min-width: 0;
}

.question-title {
    color: #315a89;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-meta-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.question-meta-inline .username {
    font-weight: 500;
    color: #315a89;
    font-size: 0.85rem;
}

.question-meta-inline .time {
    font-size: 0.8rem;
    color: #8e9aaf;
}

.question-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.question-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.question-stats .stat-item i {
    color: #315a89;
    font-size: 0.8rem;
}

.question-stats .stat-item.answered {
    color: #28a745;
}

.question-stats .stat-item.answered i {
    color: #28a745;
}

.question-stats .stat-item.pending {
    color: #ffc107;
}

.question-stats .stat-item.pending i {
    color: #ffc107;
}

.expand-icon {
    color: #8e9aaf;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.question-row.expanded .expand-icon {
    transform: rotate(180deg);
}

.question-details {
    display: none;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.question-row.expanded .question-details {
    display: block;
}

.question-full-text {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.question-full-text p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.responses-section {
    padding: 1.5rem;
}

.responses-section h6 {
    color: #315a89;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.response-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.response-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.response-meta .username {
    font-weight: 500;
    color: #315a89;
    font-size: 0.85rem;
}

.response-meta .time {
    font-size: 0.8rem;
    color: #8e9aaf;
}

.helpful-votes {
    font-size: 0.8rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.helpful-votes i {
    color: #28a745;
    font-size: 0.7rem;
}

.response-item p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.load-more-responses {
    text-align: center;
    margin-top: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: #315a89;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem;
}

.btn-text:hover {
    color: #254a73;
}

/* Category Tags */
.category-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.category-tag.care {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.category-tag.education {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
}

.category-tag.things-to-do {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #388e3c;
}

.category-tag.sports {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    color: #f57c00;
}

.category-tag.living {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #c2185b;
}

.category-tag.finances {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #00796b;
}

.category-tag.general {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    color: #616161;
}

/* Sidebar Modern */
.sidebar-modern {
    position: sticky;
    top: 0;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(49, 90, 137, 0.08);
    border: 1px solid #e9ecef;
}

.sidebar-card h5 {
    color: #315a89;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.guidelines-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidelines-modern li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.guidelines-modern li:last-child {
    border-bottom: none;
}

.guidelines-modern li i {
    color: #28a745;
    font-size: 0.8rem;
}

.filter-subtitle {
    color: #315a89;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(49, 90, 137, 0.1);
}

.disability-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-item:hover {
    background: rgba(49, 90, 137, 0.05);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #315a89;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #315a89;
}

.filter-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    transition: color 0.2s ease;
}

.filter-item:hover .filter-label {
    color: #315a89;
}

.filter-checkbox:checked + .filter-label {
    color: #315a89;
    font-weight: 600;
}

.community-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(49, 90, 137, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #315a89;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forum Sidebar Styling */
.forum-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.06);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    color: #315a89;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(49, 90, 137, 0.1);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 0.75rem;
}

.category-item:hover {
    background: rgba(49, 90, 137, 0.05);
    color: #315a89;
    text-decoration: none;
    border-color: rgba(49, 90, 137, 0.1);
}

.category-item.active {
    background: rgba(49, 90, 137, 0.1);
    color: #315a89;
    border-color: #315a89;
    font-weight: 600;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon i {
    color: white;
    font-size: 0.9rem;
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-stats {
    font-size: 0.8rem;
    color: #8e9aaf;
}

.quick-actions .btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Forum Header */
.forum-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.06);
    border: 1px solid #e9ecef;
}

.forum-title {
    color: #315a89;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.forum-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.forum-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-dropdown select {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: white;
    color: #666;
    min-width: 150px;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #315a89;
    box-shadow: 0 0 0 2px rgba(49, 90, 137, 0.1);
}

/* Forum Conversations Layout */
.forum-conversations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discussion-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(49, 90, 137, 0.04);
}

.discussion-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(49, 90, 137, 0.08);
    border-color: rgba(49, 90, 137, 0.2);
}

.discussion-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.discussion-content {
    flex: 1;
    min-width: 0;
}

.discussion-header {
    margin-bottom: 0.75rem;
}

.discussion-title {
    color: #315a89;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.discussion-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-time {
    color: #8e9aaf;
    font-size: 0.85rem;
}

.discussion-preview {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.discussion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    color: #315a89;
    font-weight: 500;
    font-size: 0.9rem;
}

.discussion-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discussion-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

.discussion-stats i {
    font-size: 0.8rem;
    color: #315a89;
}

.stat-status.answered {
    color: #27ae60;
}

.stat-status.answered i {
    color: #27ae60;
}

/* Discussion Activity */
.discussion-activity {
    flex-shrink: 0;
    min-width: 120px;
}

.latest-reply {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(49, 90, 137, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(49, 90, 137, 0.1);
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #315a89 0%, #4a7ba7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.reply-info {
    flex: 1;
    min-width: 0;
}

.reply-author {
    color: #315a89;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-time {
    color: #8e9aaf;
    font-size: 0.75rem;
}

/* Load More */
.load-more-container {
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .forum-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .discussion-main {
        flex-direction: column;
        gap: 1rem;
    }

    .discussion-activity {
        align-self: flex-start;
        min-width: auto;
    }

    .latest-reply {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .community-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-question-container {
        order: -1;
        margin: 0;
        max-width: 100%;
    width: 100%;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.ask-button--full {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Business filter layout */
.business-filter-card {
    background: #ffffff;
    border: 1px solid #e2eaf6;
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(27, 47, 100, 0.08);
    margin-bottom: 1.5rem;
}

.business-filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.business-filter-heading .filter-subtitle {
    margin-top: 0.35rem;
    color: #51627c;
    font-size: 1rem;
}

.business-filter-row {
    flex-wrap: wrap;
    gap: 1rem;
}

.business-filter-row .filter-group {
    flex: 1 1 240px;
    min-width: 220px;
}

.filter-body-section {
    padding: 0.35rem 0;
}

.filter-section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #51627c;
    margin-bottom: 0.4rem;
}

.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(62, 114, 174, 0.35);
    background: rgba(62, 114, 174, 0.08);
    color: #1f3656;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    background: rgba(62, 114, 174, 0.18);
    border-color: rgba(62, 114, 174, 0.6);
    outline: none;
}

.filter-chip.is-selected {
    background: #315a89;
    border-color: #315a89;
    color: #ffffff;
}

.filter-autocomplete {
    display: none;
    margin-top: 0.45rem;
    border: 1px solid #d8e2f4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(25, 45, 85, 0.18);
    max-height: 240px;
    overflow-y: auto;
    padding: 0.35rem;
}

.filter-autocomplete.is-open {
    display: block;
}

.filter-autocomplete.is-loading {
    opacity: 0.7;
}

.filter-autocomplete.has-error {
    border-color: #c53030;
}

.location-suggestion-item {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.35rem;
    border-radius: 10px;
    font-weight: 600;
    color: #1f3656;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.location-suggestion-item i {
    color: #3e72ae;
}

.location-suggestion-item:hover,
.location-suggestion-item:focus-visible,
.location-suggestion-item.is-active {
    background: rgba(62, 114, 174, 0.15);
    color: #0f2744;
    outline: none;
}

.location-suggestion-empty {
    padding: 0.4rem 0.35rem;
    color: #5d6a89;
    font-size: 0.9rem;
}

.business-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.business-filter-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.4rem 0;
    font-weight: 600;
    color: #315a89;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.business-filter-option.list-group-item {
    border: 1px solid rgba(62, 114, 174, 0.18);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-filter-option.list-group-item:hover,
.business-filter-option.list-group-item:focus-visible {
    border-color: rgba(62, 114, 174, 0.6);
    background: rgba(62, 114, 174, 0.12);
    color: #1f3656;
    outline: none;
}

.business-filter-option.is-selected {
    color: #ffffff;
    background: #315a89;
    border-color: #315a89;
    box-shadow: 0 8px 20px rgba(49, 90, 137, 0.28);
}

.business-filter-option.is-selected .fw-semibold {
    color: #ffffff;
}

.business-results-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .business-results-layout {
        padding-left: 260px;
    }
}

.business-results-card {
    background: #ffffff;
    border: 1px solid #e2eaf6;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(22, 41, 89, 0.09);
}

.business-floating-actions {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1200;
}

.business-floating-actions .fab {
    width: 220px;
}

@media (min-width: 768px) {
    .business-filter-heading {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767px) {
    .dropdown-wrapper {
        width: 100%;
        flex: 1 1 100%;
    }

    .business-results-layout {
        max-width: 100%;
    }

    .business-floating-actions .fab {
        width: 190px;
    }
}

@media (min-width: 768px) {
    .filter-row {
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .dropdown-wrapper {
        flex: 1 1 calc(33.333% - 0.75rem);
        min-width: 180px;
    }

    .form-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .dropdown-wrapper {
        width: 100%;
        flex: 1 1 100%;
    }

    .form-actions {
        justify-content: center;
    }

    .ask-button--full {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .question-form .filter-row {
        gap: 1.25rem;
    }

    .question-form .dropdown-wrapper {
        max-width: 100%;
    }
}

    .forum-header {
        padding: 1rem;
    }

    .forum-title {
        font-size: 1.5rem;
    }

    .forum-controls {
        margin-top: 1rem;
    }

    .discussion-item {
        padding: 1rem;
    }

    .discussion-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .discussion-stats {
        gap: 0.75rem;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-item {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .category-name {
        font-size: 0.85rem;
    }

    .category-stats {
        font-size: 0.75rem;
    }

    .question-search-form {
        padding: 0.75rem;
    }

    .question-field {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .community-hero {
        padding: 3rem 1rem 4rem;
    }

    .community-hero h1 {
        font-size: 2rem !important;
    }

    .modern-question-card {
        margin-top: 1.5rem;
    }

    .question-card-header {
        padding: 2rem 1.5rem 1rem;
    }

    .question-form {
        padding: 1.5rem;
    }

    .input-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .selection-row {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-section {
        width: 100%;
    }

    .checkbox-group {
        max-height: 100px;
        gap: 0.25rem;
    }

    .checkbox-option {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .ask-button {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .filter-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-tab {
        justify-content: flex-start;
    }

    .question-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .question-left {
        gap: 0.75rem;
    }

    .question-title {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .question-meta-inline {
        gap: 0.75rem;
    }

    .question-stats {
        gap: 1rem;
        justify-content: space-between;
    }

    .question-stats .stat-item {
        font-size: 0.8rem;
    }

    .expand-icon {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin: 0;
    }

    .question-full-text,
    .responses-section {
        padding: 1rem;
    }

    .response-header {
        gap: 0.5rem;
    }

    .response-meta {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .action-buttons {
        flex-direction: column;
    }

    .response-tabs {
        flex-direction: column;
        padding: 0;
    }

    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: left;
        padding: 1rem 2rem;
    }

    .tab-btn.active {
        border-right-color: #315a89;
        border-bottom-color: transparent;
        background: rgba(49, 90, 137, 0.05);
    }

    .sidebar-modern {
        position: static;
        margin-top: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .community-hero h1 {
        font-size: 1.75rem !important;
    }

    .community-hero .lead {
        font-size: 1rem !important;
    }

    .question-card-header {
        padding: 1.5rem 1rem 0.75rem;
    }

    .question-icon {
        width: 60px;
        height: 60px;
    }

    .question-icon i {
        font-size: 1.5rem;
    }

    .question-card-header h3 {
        font-size: 1.5rem;
    }

    .modern-question-input {
        padding: 1rem;
        font-size: 1rem;
        min-height: 100px;
    }

    .ai-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .ai-actions {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* Active navigation link */
nav a.active {
    color: #315a89 !important;
    font-weight: 600;
}

nav a.active::after {
    width: 100% !important;
}

.connect-filter-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8faff;
    border: 1px solid #e2eaf6;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 40px rgba(16, 42, 67, 0.1);
    margin-bottom: 1.5rem;
}

 .filter-toolbar-row {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 1rem;
     flex-wrap: wrap;
 }

.filter-controls {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
}

 .filter-meta {
     max-width: 620px;
     text-align: center;
     margin: 0 auto;
 }

.connect-filter-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f3656;
    margin: 0;
}

.connect-filter-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #51627c;
}

.text-connect-title {
    color: #3E72AE;
}

.toggle-my-posts {
    display: inline-flex;
    align-items: center;
    gap: 0.30rem;
    font-weight: 600;
    color: #1f3656;
    cursor: pointer;
    white-space: nowrap;
}

.toggle-my-posts .form-check-input {
    margin: 0;
    cursor: pointer;
}

.filter-dropdowns {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.filter-horizontal-row,
.filter-dropdowns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: stretch;
    overflow: visible;
}

.connect-filter-card .filter-group,
.connect-filter-card .filter-group-header,
.connect-filter-card .filter-group-body,
.connect-filter-card .filter-group .list-group-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
}

/* Restore solid dropdown background on desktop filters */
.connect-filter-card .filter-group-body {
    background: #ffffff !important;
    border: 1px solid #d6e2f5 !important;
    border-radius: 12px;
    padding: 0.75rem !important;
    box-shadow: 0 24px 45px rgba(16, 42, 67, 0.16) !important;
}

.connect-filter-card .filter-group .list-group-item {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0.55rem 0.65rem !important;
}

.connect-floating-actions {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1050;
    pointer-events: auto;
}

.connect-floating-actions .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #3E72AE;
    background: #ffffff;
    border: 1px solid #3E72AE;
    box-shadow: 0 16px 32px rgba(16, 42, 67, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    max-width: 320px;
    white-space: normal;
    line-height: 1.2;
}


.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #3E72AE;
    background: #ffffff;
    border: 1px solid #3E72AE;
    box-shadow: 0 16px 32px rgba(16, 42, 67, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    max-width: 320px;
    white-space: normal;
    line-height: 1.2;
}


.fab i {
    font-size: 1rem;
}

.fab .fa-stack {
    font-size: 1.15rem;
    line-height: 1;
}

.fab .fa-stack .fa-magnifying-glass {
    color: #3E72AE;
}

.fab .fa-stack .fab-stack-robot {
    color: #1f3656;
    transform: scale(0.6);
    transform-origin: center;
}

.fab:hover,
.fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.24);
    outline: none;
}

.fab--primary,
.fab--accent,
.fab--ghost {
    color: #3E72AE;
    border-color: #3E72AE;
    background: #ffffff;
}

.fab span {
    display: inline-block;
}

.fab--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.fab--hidden.fab--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.filter-group {
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    flex: 0 0 220px;
    width: 220px;
}

.filter-horizontal-row::-webkit-scrollbar {
    height: 6px;
}

.filter-horizontal-row::-webkit-scrollbar-thumb {
    background-color: rgba(16, 42, 67, 0.25);
    border-radius: 999px;
}

.filter-group .filter-extra {
    display: none;
    margin-top: 0.5rem;
}

.filter-group .filter-extra.show {
    display: block;
}

.filter-group .filter-toggle {
    color: #3e72ae;
    font-weight: 600;
    text-decoration: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.filter-group .filter-toggle:hover {
    text-decoration: underline;
}

.filter-group.collapsed .filter-toggle {
    display: none;
}

 .filter-group-header {
     width: 100%;
     background: #ffffff;
     border: 1px solid #d6e2f5;
     border-radius: 12px;
     padding: 0.7rem 1rem;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.75rem;
     font-weight: 600;
     font-size: 0.95rem;
     color: #1f3656;
     cursor: pointer;
     transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
 }

.filter-group-header:focus-visible {
    outline: 2px solid rgba(62, 114, 174, 0.5);
    outline-offset: 3px;
    border-radius: 12px;
}

.filter-group-title {
    pointer-events: none;
}

.filter-group-count {
    pointer-events: none;
    font-size: 0.8rem;
    color: #6e7fa2;
    white-space: nowrap;
}

.filter-group-count.has-selection {
    color: #315a89;
    font-weight: 600;
}

.filter-group.expanded .filter-group-header {
    border-color: #315a89;
    box-shadow: 0 18px 30px rgba(16, 42, 67, 0.12);
    color: #102a43;
}

.filter-group-header::after {
    content: none !important;
}

.filter-group-caret {
    color: #3e72ae;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    pointer-events: none;
}

.filter-group.expanded .filter-group-caret {
    transform: rotate(180deg);
}

.filter-pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(62, 114, 174, 0.12);
    color: #3E72AE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-group.expanded .filter-pill-icon {
    background: #3E72AE;
    color: #ffffff;
}

@media (min-width: 769px) {
    .filter-pill-icon {
        display: none;
    }
}

.filter-group-body {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: min(320px, 80vw);
    background: #ffffff;
    border: 1px solid #d6e2f5;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 24px 45px rgba(16, 42, 67, 0.16);
    display: none;
    max-height: 320px;
    overflow-y: auto;
    z-index: 2000;
}

.filter-group.expanded .filter-group-body {
    display: block;
    animation: filterDropdown 0.18s ease-out;
}

@keyframes filterDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group .list-group {
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-group .list-group-item {
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.2s ease, transform 0.2s ease;
}

.filter-group .list-group-item:hover {
    background: rgba(62, 114, 174, 0.12);
    transform: translateX(3px);
}

.filter-group .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
    appearance: none;
}

.filter-group .filter-radio {
    cursor: pointer;
}

.filter-group .filter-item--featured {
    background: rgba(62, 114, 174, 0.12);
}

.filter-group .filter-item--featured:hover {
    background: rgba(62, 114, 174, 0.2);
}

.filter-item.is-selected {
    background: rgba(62, 114, 174, 0.15);
    border-color: #3E72AE;
}

.filter-item.is-selected .fw-semibold,
.filter-item.is-selected .filter-label {
    color: #1f3656;
    font-weight: 600;
}

.filter-group-empty {
    color: #6e7fa2;
    font-size: 0.85rem;
    margin: 0;
    padding: 0.25rem 0;
}

.filter-body-placeholder {
    display: none !important;
}

.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 33, 54, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1900;
    pointer-events: none;
}

.filter-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: -90vw;
    width: min(380px, 85vw);
    height: 100%;
    background: #ffffff;
    box-shadow: -12px 0 35px rgba(16, 42, 67, 0.2);
    z-index: 1905;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
}

.filter-drawer.show {
    right: 0;
}

.filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2eaf6;
}

.filter-drawer__header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #1f3656;
}

.filter-drawer__close {
    border: none;
    background: transparent;
    color: #3E72AE;
    font-size: 1.25rem;
}

.filter-drawer__content {
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
    flex: 1;
}

.filter-drawer__content .filter-group-body {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
    max-height: none;
    box-shadow: none;
    border: 0;
    padding: 0;
    display: block !important;
}

.filter-drawer__content .filter-extra {
    display: block !important;
}

.filter-drawer__content .filter-toggle {
    display: none !important;
}

body.filter-drawer-open {
    overflow: hidden;
}

.post-vote-meta {
    display: flex;
  
    gap: 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #1f3656;
}


.vote-meta-item {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #315a89;
}

.vote-meta-item i {
  cursor: pointer;
  transition: color 0.2s ease;
}

.vote-meta-item i:hover {
  color: #4a7ba7;
}




.post-vote-meta .vote-meta-item {
    display: inline-flex;
    gap: 0.3rem;
}

.post-vote-meta .vote-meta-item span {
    min-width: 20px;
    display: inline-block;
}

.post-card-main {
    min-width: 0;
}

.post-card-votes {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
}

.post-card-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.post-card-actions .btn {
    box-shadow: none;
}

.post-watch-toggle {
    color: #5b6d8d;
    font-size: 1.1rem;
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.post-watch-toggle:hover,
.post-watch-toggle:focus-visible {
    color: #315a89;
    transform: translateY(-1px);
}

.post-watch-toggle.is-watched {
    color: #f08a24;
}

.post-watch-toggle.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.post-watch-toggle--error {
    color: #CE5447 !important;
}

.vote-icon--up,
.comment-vote-icon--up,
.post-up-total,
.comment-up-total {
    color: #34A853;
}

.vote-icon--down,
.comment-vote-icon--down,
.post-down-total,
.comment-down-total {
    color: #CE5447;
}

.star-gold,
.star-gold i {
    color: #FFC107 !important;
}

.single-post-section .community-content {
    padding: 0 1rem 2rem;
}

.single-post-section .post-card .card-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.single-post-section .post-card .post-card-stats {
    order: 0;
    flex: 1 1 240px;
    justify-content: flex-start;
    padding-top: 0;
}

.single-post-section .post-card .post-card-actions {
    order: 1;
    margin-left: auto;
    align-self: flex-start;
    flex-direction: row;
    gap: 0.5rem;
}

.single-post-section .post-card .post-card-main {
    order: 2;
    width: 100%;
}

.single-post-back-link {
    display: inline-flex;
    align-items: center;
    color: #315a89;
    font-weight: 600;
    text-decoration: none;
    gap: 0.35rem;
}

.single-post-back-link:hover,
.single-post-back-link:focus-visible {
    text-decoration: underline;
}

.single-post-comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comment-card {
    border: 1px solid #e1e7f3;
    border-radius: 16px;
    padding: 1.1rem 1.35rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 44, 74, 0.08);
}

.comment-card--chosen {
    border-color: #34A853;
    box-shadow: 0 18px 32px rgba(32, 97, 62, 0.18);
}

.comment-card-body {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-card-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f3656;
}

/* Ensure white background for posts and comments */
.card.post-card,
.card.post-card .card-header,
.card.post-card .card-body,
.card.post-card .comments-section,
.card.post-card .comments-section .border {
  background-color: #ffffff !important;
  border-color: #e9ecef !important;
  box-shadow: none !important;
  border-bottom: none;
}

@media (max-width: 768px) {
    .connect-filter-card {
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .filter-toolbar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .filter-controls {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
    }

    .filter-meta {
        max-width: unset;
    }

    .filter-horizontal-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        gap: 0.35rem;
        width: 100%;
    }

    .filter-group {
        flex: 1 1 18%;
        max-width: none;
        min-width: 60px;
        text-align: center;
        position: static;
        background: transparent;
        border: 0 !important;
        box-shadow: none;
    }

    .filter-group-header {
        border: none !important;
        background: transparent !important;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.35rem 0.25rem;
        min-width: 0;
        box-shadow: none;
    }

    .filter-group-title {
        text-align: center;
        width: 100%;
        font-size: 0.7rem;
        color: #315a89;
    }

    .filter-group-body {
        position: static;
        width: 100%;
        left: auto;
        transform: none;
        margin-top: 0.4rem;
        box-shadow: none;
        display: none !important;
    }

    .filter-group.expanded .filter-group-header {
        box-shadow: none;
    }

    .filter-pill-icon {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
        margin: 0 auto;
        border-radius: 50%;
        border: none;
        background: rgba(62, 114, 174, 0.12);
        color: #3E72AE;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .single-post-section .community-content {
        padding: 0;
    }

    .single-post-back-link {
        margin: 0 0 0.75rem 0.15rem;
    }

    .single-post-comments {
        margin-top: 1rem;
    }

    .comment-card {
        padding: 1rem;
    }

    .comment-card-body {
        flex-direction: column;
        gap: 0.5rem;
    }

    .community-post-section {
        padding: 1.25rem 0.5rem 2.5rem;
    }

    .community-post-section .community-content {
        padding: 0;
    }

    .community-post-section #all-posts {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }


/* Ensure white background for posts and comments */
.card.post-card,
.card.post-card .card-header,
.card.post-card .card-body,
.card.post-card .comments-section,
.card.post-card .comments-section .border {
  background-color: #ffffff !important;
  border-color: #e9ecef !important;
  box-shadow: none !important;
}
/* Align thumbs and comment count bottom-left of post */

    .post-card {
        position: relative;
        background: #fff;
        width: 100%;
        margin: 0 auto;
        border-radius: 20px;
        padding-bottom: 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .post-card .card-header {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        background-color: #ffffff;
        padding: 1.25rem 1.25rem 1rem;
        padding-right: 3.25rem;
    }

    .post-card .card-body {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.95rem;
        background-color: #ffffff;
    }

    .post-card-title {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .post-card-meta {
        font-size: 0.82rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .post-card-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .post-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.5rem;
    }

    .post-card-tags .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.55rem;
        margin: 0;
    }

    .post-card-main {
        order: 1;
        width: 100%;
    }

    .post-card-actions {
        order: 2;
        position: absolute;
        top: 1.1rem;
        right: 1.25rem;
        width: auto;
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.25rem;
        align-self: auto;
        margin: 0;
    }

    .post-card-stats {
        order: 3;
        width: 100%;
        min-width: 0;
        text-align: left;
        padding: 0.75rem 1.25rem 1rem;
        border-top: 1px solid #e5eaf4;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
        position: static;
    }

    .post-card-stats .post-card-comment-count {
        white-space: nowrap;
    }

    .single-post-section .post-card .card-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        padding-right: 1.25rem;
        padding-top: 0.85rem;
        padding-bottom: 0.6rem;
    }

    .single-post-section .post-card .post-card-stats {
        order: 0;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 0;
        border-top: none;
        gap: 0.6rem;
    }

    .single-post-section .post-card .post-card-actions {
        order: 1;
        position: static;
        margin-left: auto;
        align-self: flex-start;
        margin-top: 0;
    }

    .single-post-section .post-card .post-card-votes {
        gap: 0.6rem;
    }

    .post-card-votes {
        width: auto;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        gap: 0.9rem;
    }

    .post-card-stats .post-vote-meta {
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .post-card-comment-count {
        font-size: 0.82rem;
        color: #5b6d8d;
    }

    .connect-floating-actions {
        bottom: 1.25rem;
        left: 1rem;
        right: auto;
        transform: none;
        flex-direction: row;
        gap: 0.65rem;
    }

    .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #3E72AE;
    background: #ffffff;
    border: 1px solid #3E72AE;
    box-shadow: 0 16px 32px rgba(16, 42, 67, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    max-width: 320px;
    white-space: normal;
    line-height: 1.2;
}


    .fab span {
        display: none;
    }
}
    .filter-group-count,
    .filter-group-caret {
        display: none;
    }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

