/* Larger images for success stories section */
.success-story img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}
/* Solutions Exchange Styling - GitHub Style */
:root {
    --primary-color: #24292f;        /* GitHub dark gray */
    --secondary-color: #57606a;      /* GitHub medium gray */
    --accent-color: #0969da;         /* GitHub blue (minimal use) */
    --text-color: #24292f;           /* Dark text */
    --text-muted: #656d76;           /* Muted text */
    --bg-color: #ffffff;             /* White background */
    --bg-secondary: #f6f8fa;         /* Light gray background */
    --border-color: #d0d7de;         /* Light border */
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation Styling */
.navbar {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Main Content */
.main-container {
    margin-top: 6rem;
    padding: 2rem 0;
}

.page-title h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.description-section {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

/* Metrics Section */
.metrics-row {
    margin: 2rem 0;
}

.metric-card {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.metric-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.metric-card i {
    color: var(--secondary-color);
}

.metric-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.metric-card p {
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

/* Filter Controls */
.filter-section {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.filter-sidebar .filter-section {
    margin-bottom: 0;
    border: 1px solid #e9ecef;
}

.filter-heading {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-row {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.topic-filter-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5rem;
}

.topic-filter-container .btn {
    margin: 0.125rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive adjustments for sidebar */
@media (max-width: 991.98px) {
    .filter-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .filter-sidebar .btn-group-vertical {
        flex-direction: row;
    }
    
    .filter-sidebar .btn-group-vertical .btn {
        flex: 1;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-outline-info {
    border-color: var(--border-color);
    color: var(--text-color);
    background-color: var(--bg-secondary);
    margin: 0.2rem;
    transition: all 0.2s ease;
}

.btn-outline-info:hover {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Solution Cards */
.solution-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.solution-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.card-header-custom {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.card-title a:hover {
    text-decoration: underline;
}

.solution-meta {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.meta-item {
    margin-bottom: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--primary-color);
}

.meta-value {
    color: var(--text-color);
}

.meta-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

/* Topics/Tags */
.topic-tag {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    margin: 0.2rem;
    text-decoration: none;
}

.topic-tag:hover {
    background-color: var(--border-color);
    color: var(--text-color);
    text-decoration: none;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.status-public {
    background-color: #28a745;
    color: white;
}

.status-internal {
    background-color: #6c757d;
    color: white;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 3px solid var(--primary-color);
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .nav-large-image {
    max-height: 60px;
    width: auto;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section .nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section .nav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.builtBy {
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.builtBy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.builtBy a:hover {
    text-decoration: underline;
}

/* Guides Section */
#guides {
    background-color: #fafbfc;
}

#guides .accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}

#guides .accordion-button {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
}

#guides .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

#guides .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 51, 102, 0.25);
}

#guides .accordion-body {
    padding: 1.5rem;
}

#guides .accordion-body h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#guides .accordion-body h5:first-child {
    margin-top: 0;
}

#guides .accordion-body ul {
    margin-bottom: 1rem;
}

#guides .accordion-body ul li {
    margin-bottom: 0.5rem;
}

#guides .accordion-body a {
    color: var(--primary-color);
    text-decoration: none;
}

#guides .accordion-body a:hover {
    text-decoration: underline;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-navbar {
        flex-direction: column;
    }
    
    .footer-section ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
}

/* Page Headers */
.page-header {
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-card h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* News Section */
#news {
    background-color: #fafbfc;
}

.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card .card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover .card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.news-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.news-date .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.news-date .month {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.2;
}

.news-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Responsive news cards */
@media (max-width: 768px) {
    .news-date {
        margin-bottom: 1.5rem;
    }
    
    .news-card .card-body {
        padding: 1.5rem 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        margin-top: 5rem;
        padding: 1rem 0;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .btn-outline-info {
        font-size: 0.875rem;
        margin: 0.1rem;
    }
}

/* Loading and Empty States */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 5px solid var(--primary-color);
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    background: url('../assets/img/network image.jpg') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 700;
}

/* Featured Cards */
#featured .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#featured .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Statistics Section */
#statistics .metric-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

#statistics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

#statistics .metric-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

#statistics .metric-card p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Stat Cards for Solutions Page */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card h5 {
    font-weight: 700;
    margin-bottom: 0;
}

/* Wireframe Solutions Page Styles */
.filters-card {
    position: sticky;
    top: 100px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.keyword-tag {
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.keyword-tag:hover {
    background-color: #dc3545 !important;
}

.remove-tag {
    cursor: pointer;
}

.solutions-header h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.solution-item .card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s ease;
}

.solution-item .card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.solution-title {
    color: var(--primary-color);
    font-weight: 600;
}

.solution-title i {
    color: var(--secondary-color);
}

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

.visibility-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

.solution-tags .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.solution-actions .btn {
    font-size: 0.875rem;
}

.featured-solutions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-card {
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card img {
    height: 200px;
    object-fit: cover;
}

/* Form Controls */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-card {
        position: static;
        margin-bottom: 2rem;
    }
    
    .solution-item .row {
        flex-direction: column;
    }
    
    .solution-item .col-md-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Wireframe Repository Cards */
.repository-card {
    transition: all 0.3s ease;
}

.repository-card:hover {
    transform: translateY(-2px);
}

.repository-card .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.repository-card:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.repo-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.repo-description {
    line-height: 1.6;
    font-size: 0.95rem;
}

.visibility-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

.repo-tags .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    font-weight: 500;
}

.tag-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-clickable:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.repo-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

.rating-stars {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.repo-stats {
    font-size: 0.85rem;
}

.repo-location {
    border-left: 3px solid var(--accent-color);
    padding-left: 0.75rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 0 4px 4px 0;
}

/* Enhanced Filters Styling */
.filters-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.filter-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid black;
    padding-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.keyword-tags {
    min-height: 2rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

#keywordInput {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#keywordInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Featured Solutions styling */
.featured-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Health Boards Carousel */
.health-boards-carousel {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.health-board-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.health-board-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.health-board-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.health-board-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.health-board-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.health-board-card .btn {
    border-color: var(--border-color);
    color: var(--text-color);
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
}

.health-board-card .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-indicators {
    margin-bottom: -2rem;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--secondary-color);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .health-board-card {
        margin-bottom: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
}

/* Enhanced Tag Filter Styling */
.tag-filter-container {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-color);
}

.tag-filter-container::-webkit-scrollbar {
    width: 6px;
}

.tag-filter-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tag-filter-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.tag-filter-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.tag-item {
    padding: 0.25rem 0.75rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

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

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

.tag-item .form-check-label {
    width: 100%;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.1rem 0;
}

.tag-item .form-check-label .text-muted {
    font-size: 0.85rem;
    font-weight: 500;
}

#tagSearch {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#tagSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    outline: none;
}

#tagSearch::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Zero count filter styling */
.form-check-label.text-muted {
    opacity: 0.6;
}

.form-check-label.text-muted:hover {
    opacity: 0.8;
}

/* Dynamic filter animations */
.form-check-label {
    transition: opacity 0.2s ease;
}
