/* Doctors Page Specific Styles - Compact Header Design */

/* Compact Page Header */
.page-header {
    background: linear-gradient(135deg, #00c4cc, #0056b3);
    padding: 40px 0 25px; /* Reduced from 120px 0 60px */
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="10" r="1.2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.8" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-bottom: 12px; /* Reduced from 20px */
    font-size: 13px; /* Slightly smaller */
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 8px; /* Reduced spacing */
    color: rgba(255, 255, 255, 0.6);
}

.page-header h1 {
    font-size: 2.2rem; /* Reduced from 3rem */
    font-weight: 700;
    margin-bottom: 8px; /* Reduced from 15px */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1rem; /* Reduced from 1.2rem */
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 500px;
}

/* Doctors Layout */
.doctors-main-section {
    padding: 40px 0; /* Reduced from 60px */
    background: #f8f9fa;
}

.doctors-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Slightly narrower sidebar */
    gap: 35px; /* Reduced gap */
}

/* Sidebar - More Compact */
.doctors-sidebar {
    background: white;
    border-radius: 16px; /* Slightly smaller radius */
    padding: 25px; /* Reduced padding */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px; /* Adjusted for smaller header */
}

.sidebar-header h3 {
    color: #0056b3;
    font-size: 1.3rem; /* Slightly smaller */
    margin-bottom: 20px; /* Reduced margin */
    font-weight: 600;
}

.department-list {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced gap */
}

.department-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced gap */
    padding: 12px; /* Reduced padding */
    border-radius: 12px; /* Smaller radius */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.department-item:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.department-item.active {
    background: linear-gradient(135deg, #00c4cc, #0056b3);
    color: white;
    border-color: #00c4cc;
}

.dept-icon {
    width: 40px; /* Reduced from 45px */
    height: 40px;
    border-radius: 10px; /* Smaller radius */
    background: rgba(0, 196, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Reduced from 20px */
    color: #00c4cc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.department-item.active .dept-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dept-info {
    flex: 1;
    min-width: 0; /* Prevent text overflow */
}

.dept-name {
    display: block;
    font-weight: 600;
    font-size: 13px; /* Slightly smaller */
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dept-count {
    font-size: 11px; /* Smaller count text */
    opacity: 0.8;
}

/* Main Content - More Compact */
.doctors-content {
    background: white;
    border-radius: 16px; /* Smaller radius */
    padding: 30px; /* Reduced padding */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Search and Sort Controls - Compact */
.doctors-controls {
    display: flex;
    gap: 15px; /* Reduced gap */
    margin-bottom: 25px; /* Reduced margin */
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 180px; /* Reduced min-width */
}

.search-box i {
    position: absolute;
    left: 12px; /* Reduced from 15px */
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px; /* Smaller icon */
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 38px; /* Reduced padding */
    border: 2px solid #e0e0e0;
    border-radius: 8px; /* Smaller radius */
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #00c4cc;
    box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.1);
}

.sort-dropdown select {
    padding: 10px 12px; /* Reduced padding */
    border: 2px solid #e0e0e0;
    border-radius: 8px; /* Smaller radius */
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 140px; /* Reduced min-width */
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #00c4cc;
}

/* Results Info - Compact */
.results-info {
    margin-bottom: 25px; /* Reduced margin */
    padding: 12px 16px; /* Reduced padding */
    background: #f8f9fa;
    border-radius: 8px; /* Smaller radius */
    font-size: 13px; /* Smaller font */
    color: #666;
    border-left: 3px solid #00c4cc; /* Thinner accent */
}

/* Doctors Grid - Optimized spacing */
.doctors-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; /* Reduced gap */
    margin-bottom: 30px; /* Reduced margin */
}

.doctor-card-main {
    background: white;
    border-radius: 16px; /* Consistent smaller radius */
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.doctor-card-main:hover {
    transform: translateY(-3px); /* Reduced lift effect */
    box-shadow: 0 15px 45px rgba(0, 196, 204, 0.15);
    border-color: #00c4cc;
}

.doctor-image-main {
    height: 260px; /* Slightly reduced */
    overflow: hidden;
    position: relative;
}

.doctor-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card-main:hover .doctor-image-main img {
    transform: scale(1.03); /* Reduced scale effect */
}

/* Doctor Overlay - Improved */
.doctor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(0, 196, 204, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.doctor-card-main:hover .doctor-overlay {
    opacity: 1;
}

.btn-view-cv {
    background: white;
    color: #0056b3;
    border: none;
    padding: 10px 18px; /* Slightly smaller */
    border-radius: 20px; /* Smaller radius */
    font-weight: 600;
    font-size: 13px; /* Smaller font */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-cv:hover {
    background: #00c4cc;
    color: white;
    transform: scale(1.03); /* Reduced scale */
}

.doctor-info-main {
    padding: 25px; /* Reduced padding */
}

.doctor-info-main h3 {
    font-size: 1.25rem; /* Slightly smaller */
    color: #0056b3;
    margin-bottom: 6px; /* Reduced margin */
    font-weight: 600;
}

.doctor-title-main {
    color: #00c4cc;
    font-size: 13px; /* Smaller font */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px; /* Reduced margin */
    display: block;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
    color: #666;
    font-size: 13px; /* Smaller font */
}

.doctor-experience i {
    color: #00c4cc;
    font-size: 14px;
}

.doctor-actions {
    display: flex;
    gap: 8px; /* Reduced gap */
}

/* Pagination - Compact */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Reduced gap */
    margin-top: 30px; /* Reduced margin */
}

.page-btn {
    width: 36px; /* Smaller buttons */
    height: 36px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px; /* Smaller radius */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.page-btn:hover,
.page-btn.active {
    background: #00c4cc;
    border-color: #00c4cc;
    color: white;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 4px; /* Reduced gap */
}

.page-number {
    width: 36px; /* Consistent with page-btn */
    height: 36px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
}

.page-number:hover,
.page-number.active {
    background: #00c4cc;
    border-color: #00c4cc;
    color: white;
}

/* Responsive Design for Compact Layout */
@media (max-width: 1024px) {
    .doctors-layout {
        grid-template-columns: 220px 1fr; /* Even narrower sidebar */
        gap: 25px;
    }
    
    .doctors-sidebar {
        padding: 20px;
    }
    
    .dept-name {
        font-size: 12px;
    }
    
    .dept-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 25px 0 15px; /* Even more compact on mobile */
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .doctors-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctors-sidebar {
        position: static;
        order: 2;
        margin-top: 20px;
    }
    
    .doctors-content {
        order: 1;
        padding: 20px;
    }
    
    .doctors-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .doctors-grid-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px 0 12px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .doctors-sidebar {
        padding: 15px;
    }
    
    .doctors-content {
        padding: 15px;
    }
    
    .doctor-info-main {
        padding: 20px;
    }
    
    .doctor-image-main {
        height: 220px;
    }
}