/* ==============================
   COMPACT HOSPITAL CARD CSS - UPDATED
============================== */

:root {
  --primary-color: #077c8c; 
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --card-border: #e2e8f0;
}

/* Main Card - Height aur Font Badhaya */
.hospital-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    overflow: hidden;
    font-size: 1rem; /* Base font badhaya (pehle 0.9rem tha) */
    min-height: 320px; /* Card ki height force increase ki */
    display: flex;
    flex-direction: column;
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(7, 124, 140, 0.15);
    border-color: rgba(7, 124, 140, 0.4);
}

/* Header Section */
.card-header-compact {
    padding: 20px 20px 0 20px; /* Padding badhayi */
}

/* Logo Box */
.logo-wrapper {
    width: 55px;  /* Size badhaya */
    height: 55px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Typography - Fonts Badhaye */
.hospital-name {
    font-size: 1.15rem; /* Pehle 1rem tha */
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.hospital-location {
    font-size: 0.9rem; /* Pehle 0.8rem tha */
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 4px;
}

/* Divider */
.card-divider-compact {
    margin: 15px 20px;
    border-top: 1px solid #f1f5f9;
}

/* Description - Text bada kiya */
.description-text-compact {
    font-size: 0.95rem; /* Pehle 0.85rem tha */
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em; /* Height adjust ki taaki 3 lines fit ho sakein */
}

/* Employee Badge */
.employee-badge-compact {
    display: inline-block;
    background-color: #e0f2f1;
    color: var(--primary-color);
    font-size: 0.85rem; /* Pehle 0.75rem tha */
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Button - Compact Width (Fit Text) */
.btn-view-compact {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    padding: 10px 24px; /* Padding badha di */
    border-radius: 8px;
    font-size: 0.95rem; /* Font bada kiya */
    transition: all 0.2s ease;
    
    /* New: Width fit content */
    display: inline-block;
    width: auto; 
    min-width: 140px; /* Thoda standard size */
}

.btn-view-compact:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Empty State */
.empty-state-box {
    padding: 50px;
    background: white;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

/* Layout Fix */
.main-container {
  margin-top: 60px !important; 
  min-height: 100vh;
}

@media (max-width: 991px) {
  .main-container {
    margin-top: 0px !important; 
    padding: 0 15px;
  }
}