/* Hospital Styles */

.hospital-category-section {
    position: relative;
    padding-bottom: 3rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.category-title-wrapper h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    white-space: nowrap;
}

.category-line {
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    flex-grow: 1;
    border-radius: 50px;
}

.dept-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dept-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
    border-color: var(--primary);
}

.dept-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

.dept-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.dept-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.dept-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Specific Section Colors */
.section-opd .dept-icon-wrapper { background: linear-gradient(135deg, #2e7d32, #4db6ac); }
.section-ipd .dept-icon-wrapper { background: linear-gradient(135deg, #1565c0, #64b5f6); }
.section-other .dept-icon-wrapper { background: linear-gradient(135deg, #f39c12, #ffb74d); }

.section-ipd .dept-card:hover { border-color: #1565c0; box-shadow: 0 20px 40px rgba(21, 101, 192, 0.15); }
.section-other .dept-card:hover { border-color: #f39c12; box-shadow: 0 20px 40px rgba(243, 156, 18, 0.15); }

/* Patient Content Sections */
.patient-content-section {
    padding: 5rem 0;
}

.patient-img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.patient-img-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.patient-img-wrapper:hover img {
    transform: scale(1.05);
}

.img-overlay-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.patient-text-content h2 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.patient-text-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* Statistics Table */
.stats-table-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.table-custom {
    margin: 0;
}

.table-custom th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1.2rem;
    border: none;
}

.table-custom td {
    padding: 1.2rem;
    vertical-align: middle;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover {
    background-color: rgba(46, 125, 50, 0.02);
}

.dept-count-badge {
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

.total-row {
    background: rgba(243, 156, 18, 0.05) !important;
    font-weight: 800;
}

.total-row td {
    color: var(--secondary) !important;
}

/* Download Card */
.stats-download-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.stats-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.stats-icon-box {
    font-size: 4rem;
    color: #e74c3c; /* PDF Red */
}



