/**
 * Company Profiles Styles
 *
 * Single-column layout styles for company profile tiles
 * - Full width tiles with reduced height
 * - Different from grid layout used by events/courses/resources
 */

/* Company profiles container - Single column layout */
.memberpulse-company-profiles-container {
    display: block;
    width: 100%;
    margin-bottom: 1.875rem;
}

.memberpulse-company-profiles-container .memberpulse-company-tile {
    width: 100%;
    margin-bottom: 1.25rem;
    /* Inherit base styles from item-tiles.css but override height */
    height: 16.25rem;
    /* The background, border, padding, etc. come from item-tiles.css */
}

.memberpulse-company-profiles-container .memberpulse-company-tile:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Company title */
.memberpulse-company-tile .company-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.memberpulse-company-tile .company-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.memberpulse-company-tile .company-title a:hover {
    color: #3498db;
}

/* Company details section */
.memberpulse-company-tile .company-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.memberpulse-company-tile .company-phone,
.memberpulse-company-tile .company-website {
    width: 100%;
}

.memberpulse-company-tile .company-bio {
    flex: 1 1 100%;
    margin-top: 0.5rem;
    overflow: hidden; /* Cut off long bio text */
}

.memberpulse-company-tile .company-phone a,
.memberpulse-company-tile .company-website a {
    color: #3498db;
    text-decoration: none;
}

.memberpulse-company-tile .company-phone a:hover,
.memberpulse-company-tile .company-website a:hover {
    text-decoration: underline;
}

.memberpulse-company-tile .company-bio p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Action button - positioned at bottom left */
.memberpulse-company-tile .company-action {
    align-self: flex-start; /* Changed from flex-end to flex-start for left alignment */
    position: absolute;
    bottom: 1rem;
}

.memberpulse-company-tile .view-profile-btn {
    display: inline-block;
    background: var(--memberpulse-accent, #211d62); /* Match site button colors */
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.memberpulse-company-tile .view-profile-btn:hover {
    background: var(--memberpulse-accent-hover, #005a87); /* Match site hover color */
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .memberpulse-items-grid.single-column .memberpulse-company-tile {
        padding: 0.9375rem;
        min-height: 6.25rem;
    }

    .memberpulse-company-tile .company-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .memberpulse-company-tile .company-title {
        font-size: 1.2rem;
    }
}