/* NEW Doctor Profile Cards Design */
.dx-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 310px;
    height: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.dx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dx-card-image {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.dx-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dx-card:hover .dx-card-image img {
    transform: scale(1.08);
}

.dx-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #008890 0%, #F37021 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 136, 144, 0.3);
    z-index: 2;
}

.dx-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.dx-rating i {
    font-size: 10px;
}

.dx-rating-not-rated {
    color: #9ca3af;
    background: rgba(243, 244, 246, 0.9);
}

.dx-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    justify-content: flex-start;
}

.dx-doctor-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-location {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.dx-location i {
    color: #ef4444;
    font-size: 12px;
    flex-shrink: 0;
}

.dx-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.dx-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dx-tag-consultation {
    color: #005F63;
    background: #ffffff;
    border: 1px solid #e0e7ff;
}

.dx-tag-price {
    color: #059669;
    background: #ecfdf5;
}

.dx-btn-primary {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(135deg, #008890 0%, #F37021 100%);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 144, 0.2);
    text-decoration: none;
}

.dx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 136, 144, 0.3);
    opacity: 0.95;
}

.dx-btn-primary i {
    font-size: 13px;
}

/* Responsiveness */
@media (max-width: 576px) {
    .dx-card {
        height: 380px;
        max-width: 100%;
    }

    .dx-card-image {
        height: 150px;
    }

    .dx-doctor-name {
        font-size: 16px;
    }

    .dx-card-body {
        padding: 12px;
        gap: 6px;
    }
}
