/* Unified grid system for all card layouts */
.svh-card-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.p_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Legacy news-item and po_item styles removed - now using unified .svh-card class */

.p_thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: block;
    max-height: 200px !important;
    min-height: 200px !important;
}

/* Special styling for placeholder thumbnails */
.p_thumbnail.svh-placeholder-image {
    object-fit: contain !important;
    padding: 30px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #e9ecef !important;
}

/* Special styling for placeholder/logo images in news/projects */
.news-item .svh-placeholder-image, .po_item .svh-placeholder-image {
    object-fit: contain !important;
    padding: 30px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* News/projects cards now use the same structure as dashboard cards */
.news-item .svh-item-content, .po_item .svh-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================================
   UNIFIED CARD COMPONENT SYSTEM
   ======================================== */

/* Base card container - used across all components */
.svh-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.svh-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.svh-card:hover * {
    text-decoration: none !important;
}

/* Ensure all links inside cards have no underlining */
.svh-card,
.svh-card:link,
.svh-card:visited,
.svh-card:hover,
.svh-card:active,
.svh-card:focus {
    text-decoration: none !important;
}

.svh-card *,
.svh-card *:link,
.svh-card *:visited,
.svh-card *:hover,
.svh-card *:active,
.svh-card *:focus {
    text-decoration: none !important;
}

/* Override any theme or global link styles */
a.svh-card,
a.svh-card:link,
a.svh-card:visited,
a.svh-card:hover,
a.svh-card:active,
a.svh-card:focus {
    text-decoration: none !important;
}

/* Force remove underlines from all card content */
.svh-card h1,
.svh-card h2,
.svh-card h3,
.svh-card h4,
.svh-card h5,
.svh-card h6,
.svh-card p,
.svh-card span,
.svh-card div {
    text-decoration: none !important;
}

/* Override any WordPress theme link styles */
#svh-dashboard-grid a,
#svh-dashboard-grid a:link,
#svh-dashboard-grid a:visited,
#svh-dashboard-grid a:hover,
#svh-dashboard-grid a:active,
#svh-dashboard-grid a:focus {
    text-decoration: none !important;
}

/* Ensure no underlines in any card grid */
.svh-card-grid a,
.svh-card-grid a:link,
.svh-card-grid a:visited,
.svh-card-grid a:hover,
.svh-card-grid a:active,
.svh-card-grid a:focus {
    text-decoration: none !important;
}

/* Card thumbnail/image */
.svh-card-thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: block;
    max-height: 200px !important;
    min-height: 200px !important;
}

/* Card content area */
.svh-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card meta information */
.svh-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.svh-card-type {
    background-color: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.svh-card-tenant {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Card title */
.svh-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card description */
.svh-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.svh-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.svh-card-date {
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

/* Special styling for placeholder images in cards */
.svh-card .svh-placeholder-image {
    object-fit: contain !important;
    padding: 30px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #e9ecef !important;
}

.news-item .svh-item-meta, .po_item .svh-item-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.news-item .svh-item-type, .po_item .svh-item-type {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.news-item .svh-item-tenant, .po_item .svh-item-tenant {
    background-color: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.news-item .svh-item-title, .po_item .svh-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.news-item .svh-item-description, .po_item .svh-item-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex: 1;
}

.news-item .svh-item-footer, .po_item .svh-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-item .svh-item-date, .po_item .svh-item-date {
    color: #8e8e8e;
    font-size: 12px;
    flex: 1;
}

.po_header {
    font-size: 12pt !important;
    fonrt-weight: bold;
    margin-top: 14px;
    margin-bottom: 8px;
}

.news-title, .po_title {
    font-size: 12pt !important;
    margin-top: 8px;
	margin-bottom: 0 !important;
	padding-left: 10px;
	padding-right: 10px;
}

.news-content, .po_content {
    font-size: 10pt !important;
    color: #666;
	padding-left: 10px;
	padding-right: 10px;
}

.news-more {
	text-align: left;
	margin-bottom: 20px;
}

.read-more {
	flex: 1;
	font-size: 10pt !important;
	text-align: right;
	margin-top: 0; /* ensure no additional margin above the link */
	margin-bottom: 0 !important;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
	justify-self: flex-end;
	align-self: flex-end;
}


.single_content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 1240px;
	margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .single_content {
        width: 100%;
    }
}

.p_container {
    margin-bottom: 20px;
}

.p_meta_wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	height: 100%;
}

.p_avatar {
	margin-top: -40px; 
	width: 100px !important; 
	height: 100px !important; 
	border-radius: 10px !important; 
	margin-right: 15px;
}

.p_avatar_grid {
	margin-top: 0px !important;
}

.p_meta {
	align-items: space-between;
	justify-content: space-between;
	height: 100%;
	flex: 1;
	width: auto;
}

.p_single {
    width: 100%;
    margin: 0 auto;
	margin-bottom: 40px;
}

.p_image {
    width: 100%;
    max-height: 300px;
	object-fit: cover;
}

/* Special styling for placeholder images in main content */
.p_image.svh-placeholder-image {
    object-fit: contain !important;
    padding: 40px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #e9ecef !important;
}

.p_title {
    font-size: 16pt !important;
}

.p_date {
	color: #8e8e8e;
    margin-bottom: 10px !important;
    font-size: 12pt !important;
}

.p_content {
    line-height: 1.6;
    margin-bottom: 50px !important;
}

.p_content_wrapper {
	padding: 20px;
    padding-top: 0px !important;
	background-color: #fff;
}

/* Dashboard Styles */
.svh-dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.svh-dashboard-filters {
    width: 100%;
    padding-bottom: 10px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.svh-filter-section {
    width: 100%;
    margin-bottom: 25px;
    box-sizing: border-box;
}

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

.svh-filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.svh-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.svh-pill {
    background-color: white;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.svh-pill:hover {
    border-color: #007cba;
    color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.svh-pill.active {
    background-color: #007cba;
    border-color: #007cba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.svh-pill.active:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: white;
}

/* Search Input */
.svh-search-container {
    width: 100%;
}

.svh-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.svh-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.svh-search-input::placeholder {
    color: #6c757d;
}

.svh-dashboard-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Legacy dashboard item styles removed - now using unified .svh-card class */

.svh-item-thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: block;
    max-height: 200px !important;
    min-height: 200px !important;
}

.svh-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.svh-item-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.svh-item-type,
.svh-item-tenant {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.svh-item-type {
    background-color: #007cba;
    color: white;
}

.svh-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.svh-item-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex: 1;
}

.svh-item-date {
    color: #8e8e8e;
    font-size: 12px;
    margin-bottom: 15px;
}

.svh-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.svh-item-date {
    color: #8e8e8e;
    font-size: 12px;
    flex: 1;
}


.svh-load-more-container {
    text-align: center;
    margin-top: 30px;
}

.svh-load-more-btn {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.svh-load-more-btn:hover {
    background-color: #005a87;
}

/* Dashboard Header */
.svh-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.svh-dashboard-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.svh-dashboard-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Pagination */
.svh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.svh-pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.svh-pagination-btn:hover {
    background-color: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.svh-pagination-btn.active {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* Dashboard Stats */
.svh-dashboard-stats {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
}

/* Loading and Error States */
.svh-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.svh-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 16px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin: 20px 0;
}

.svh-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    width: 100%;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .svh-dashboard-filters {
        padding: 20px;
    }
    
    .svh-pill-group {
        gap: 8px;
    }
    
    .svh-pill {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 50px;
    }
    
    .svh-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .svh-dashboard-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .svh-item-content {
        padding: 15px;
    }
    
    .svh-item-title {
        font-size: 16px;
    }
    
    .svh-item-description {
        font-size: 13px;
    }
}

/* FINAL OVERRIDE - Remove all underlines from cards */
.svh-card,
.svh-card *,
a.svh-card,
a.svh-card * {
    text-decoration: none !important;
}

/* ========================================
   PROFILE GRID STYLES
   ======================================== */

/* Profile Container */
.p_container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Profile Grid Container */
.profile-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    padding: 20px 0;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Profile Card */
.profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.profile-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #007cba;
}

.profile-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Profile Card Link */
.profile-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.profile-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Profile Card Content */
.profile-card-content {
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    height: 100%;
    min-height: 80px;
    background: #ffffff;
}

/* Profile Avatar */
.profile-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.profile-avatar .p_avatar_grid {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.profile-card:hover .profile-avatar .p_avatar_grid {
    border-color: #007cba;
}

.profile-avatar .svh-placeholder-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.profile-avatar .svh-placeholder-image img {
    width: 30px;
    height: 30px;
    opacity: 0.6;
}

/* Profile Info */
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.profile-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

/* Hide description and actions for simplified grid view */
.profile-description,
.profile-actions {
    display: none;
}

/* Profile Search */
.profile-search-container {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.profile-search-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.profile-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-results-count {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Profile Grid Responsive */
@media (max-width: 920px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 15px 0;
    }
    
    .profile-card-content {
        padding: 10px;
        min-height: 70px;
    }
    
    .profile-avatar {
        margin-right: 10px;
    }
    
    .profile-avatar .p_avatar_grid,
    .profile-avatar .svh-placeholder-image {
        width: 50px;
        height: 50px;
    }
    
    .profile-avatar .svh-placeholder-image img {
        width: 25px;
        height: 25px;
    }
    
    .profile-name {
        font-size: 0.9em;
    }
}

/* Legacy Profile Styles (for backward compatibility) */
.p_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news-item .p_meta_wrapper {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-item .p_meta {
    flex: 1;
}

.news-item .news-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.news-item .read-more {
    margin: 0;
}

.news-item .read-more a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.news-item .read-more a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ========================================
   SINGLE PROFILE LAYOUT STYLES
   ======================================== */

/* Profile Header - Avatar and Meta side by side */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-meta-section {
    flex: 1;
    padding-top: 10px;
}

.profile-meta-section .p_title {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.profile-meta-section .p_date {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    line-height: 1.4;
}


/* Profile Sections */
.profile-section {
    margin-bottom: 30px;
}

.profile-section .po_header {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Responsive Profile Layout */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .profile-meta-section {
        padding-top: 0;
    }
    
    .profile-meta-section .p_title {
        font-size: 1.5em;
    }
    
    .profile-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}

/* Force Grid Layout Override */
.profile-grid,
div.profile-grid,
.p_container .profile-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
}

/* Force Grid Responsive Overrides */
@media (max-width: 920px) {
    .profile-grid,
    div.profile-grid,
    .p_container .profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768) {
    .profile-grid,
    div.profile-grid,
    .p_container .profile-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure cards are block elements */
.profile-card {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
}

/* Search functionality styles */
.profile-card[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
}

.profile-card[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
}

/* Search hidden class */
.profile-card.search-hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure visible profiles are shown */
.profile-card:not(.search-hidden) {
    display: block !important;
    visibility: visible !important;
}

/* Fallback for older browsers */
@supports not (display: grid) {
    .profile-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    
    .profile-card {
        flex: 0 0 calc(33.333% - 20px) !important;
        margin: 10px !important;
    }
    
    @media (max-width: 920px) {
        .profile-card {
            flex: 0 0 calc(50% - 20px) !important;
        }
    }
    
    @media (max-width: 768px) {
        .profile-card {
            flex: 0 0 100% !important;
        }
    }
}
