/**
 * BFHD Listing Card Component Styles
 * Prefix: bfhd_l_
 */

/* Card Container */
.bfhd_l_card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    /* height: 100% removed to prevent grid overlap issues */
    position: relative;
    overflow: hidden;
    /* Margin removed - relying on Grid Gap for spacing */
}

/* Hover Effect Wrapper */
.bfhd_l_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #00E2C1 0%, #757DFE 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.bfhd_l_card:hover::before {
    opacity: 1;
}

.bfhd_l_card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 24px 48px rgba(0, 226, 193, 0.15);
}

/* Logo */
.bfhd_l_logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 1rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #f7fafc;
    position: relative;
    z-index: 1;
}

.bfhd_l_card:hover .bfhd_l_logo {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Content Area */
.bfhd_l_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Title - Centered & Dark Blue */
.bfhd_l_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A365D;
    /* Dark Blue */
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;

    /* Title Clamping (2 lines) to ensure uniform height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6em;
    /* Fixed height for 2 lines (1.3 * 2) */
}

/* Description - Left Aligned & Clamped */
.bfhd_l_desc {
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    /* Increased spacing since meta is gone */
    line-height: 1.5;
    flex: 1;
    text-align: left;

    /* Line Clamping (3 lines) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions Container (Buttons) */
.bfhd_l_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom */
}

/* Common Button Styles */
.bfhd_l_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    /* Equal width */
    white-space: nowrap;
    cursor: pointer;
}

/* View Details Button (Gradient) */
.bfhd_l_btn:not(.bfhd_l_btn_cat) {
    background: linear-gradient(135deg, #00E2C1 0%, #757DFE 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 226, 193, 0.3);
}

.bfhd_l_btn:not(.bfhd_l_btn_cat):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 226, 193, 0.4);
    color: white;
}

/* Category Button (Gray Gradient) */
.bfhd_l_btn_cat {
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%);
    color: #4A5568;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bfhd_l_btn_cat:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #CBD5E0 0%, #A0AEC0 100%);
    color: #2D3748;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Meta Data (Phone/Email icons) */
.bfhd_l_meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.bfhd_l_meta_item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bfhd_l_card {
        padding: 1.25rem;
    }

    .bfhd_l_logo {
        width: 60px;
        height: 60px;
    }

    /* Stack buttons on very small screens if needed */
    @media (max-width: 400px) {
        .bfhd_l_actions {
            flex-direction: column;
        }

        .bfhd_l_btn {
            width: 100%;
        }
    }
}