/* Department Staff Directory Styles */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

.dsd-container {
    font-family: 'Sarabun', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Grid Layout */
.dsd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .dsd-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Style */
.dsd-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dsd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Card Inner Layout */
.dsd-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

/* Avatar Section */
.dsd-avatar-col {
    flex-shrink: 0;
}

.dsd-avatar-image {
    width: 120px !important;
    height: 160px !important;
    border-radius: 8px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dsd-avatar-placeholder {
    width: 120px !important;
    height: 160px !important;
    border-radius: 8px !important;
    background-color: #f8fafc;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #f1f5f9;
}

.dsd-avatar-placeholder svg {
    width: 40px;
    height: 40px;
}

/* Info Section */
.dsd-info-col {
    flex-grow: 1;
    min-width: 0;
}

.dsd-name-wrap {
    margin-bottom: 8px;
}

.dsd-name {
    margin: 0 0 2px 0;
    font-size: 0.925rem;
    font-weight: 600;
    color: #1e293b; /* Clean Dark Gray */
    line-height: 1.4;
    word-break: break-word;
}

.dsd-position {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b; /* Slate Gray */
    font-weight: 400;
    line-height: 1.3;
}

/* Divider */
.dsd-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

/* Contact Section */
.dsd-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dsd-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.dsd-contact-item svg {
    color: #94a3b8;
}

/* Error / Not Found Messages */
.dsd-error, .dsd-not-found {
    padding: 15px 20px;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    font-family: 'Sarabun', sans-serif;
}

.dsd-not-found {
    background-color: #f1f5f9;
    color: #334155;
    border-left-color: #94a3b8;
}
