/* ===== SPECIALTY CARDS COMPACT STYLES ===== */
/* This file contains only styles for the specialty card components themselves */
/* Search functionality and page-specific styles are in specialties-page.css */

.specialty-card-compact {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.specialty-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    /* Increased for better spacing with background */
    line-height: 1.3;
    min-height: 2rem;
    /* Changed from height to min-height for flexibility */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    /* Smooth transition for styling changes */
}

.card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.tag-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag-badge i {
    color: #6a11cb;
    font-size: 10px;
}

.card-actions {
    display: flex;
    justify-content: center;
}

.btn-more {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    min-width: 120px;
}

.btn-more:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.btn-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-more:hover i {
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 768px) {
    .card-content {
        padding: 16px;
    }

    .card-title {
        font-size: 0.85rem;
        /* Reduced from 0.95rem */
    }

    .tag-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .card-image {
        height: 120px;
        padding: 0px;
        /* Removed padding to eliminate margin around image */
    }

    .btn-more {
        padding: 7px 14px;
        font-size: 0.75rem;
        min-width: 100px;
    }
}

/* Extra small mobile devices (phones in portrait) */
@media (max-width: 480px) {
    .card-title {
        font-size: 1rem;
        /* Even smaller for very small screens */
        min-height: 2rem;
        /* Adjust min-height accordingly */
    }

    .card-content {
        padding: 14px;
    }

    .tag-badge {
        font-size: 0.8rem;
        padding: 2px 5px;
    }

    .btn-more {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-width: 90px;
    }
}