/* ================================================================
   STAFF PAGE STYLES — Mampong Municipal Education Office
   Defines all .staff-* classes used in staff.php
   ================================================================ */

/* ── Director Card ─────────────────────────────────────────────── */
.staff-director-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d7e0ea;
    box-shadow: 0 12px 32px rgba(17,24,39,0.10);
    background: #fff;
    min-height: 280px;
}

.staff-director-panel {
    background: linear-gradient(145deg, #0f6f5a, #0c4f40);
    color: #fff;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 230px;
    max-width: 270px;
    flex-shrink: 0;
}

.staff-content-pane {
    padding: 36px 32px;
    flex: 1;
}

.staff-content-title {
    font-size: 1.1rem;
    color: #151a27;
    margin-bottom: 12px;
    font-weight: 700;
}

.staff-content-text {
    color: #5f6677;
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.staff-responsibility-list {
    padding-left: 18px;
    color: #2f3647;
    font-size: 0.92rem;
    line-height: 1.9;
}

.staff-director-name {
    color: #fff;
    font-size: 1.15rem;
    margin: 14px 0 4px;
    font-weight: 700;
}

.staff-director-role {
    color: rgba(255,255,255,0.82);
    font-size: 0.83rem;
    margin: 0 0 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.staff-director-contact {
    color: rgba(255,255,255,0.88);
    font-size: 0.82rem;
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
}

.staff-contact-icon {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

/* ── Avatars ───────────────────────────────────────────────────── */
.staff-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 3px solid rgba(255,255,255,0.32);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-avatar-md {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(13,95,77,0.07);
    border: 2px solid rgba(13,95,77,0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto 14px;
}

.staff-unit-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(13,95,77,0.07);
    border: 2px solid rgba(13,95,77,0.16);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* The actual <img> tag */
.staff-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 50%;
}

.staff-avatar-img-lg   { width: 110px; height: 110px; }
.staff-avatar-img-md   { width: 82px;  height: 82px;  }
.staff-unit-avatar-img { width: 60px;  height: 60px;  }

/* Fallback icons when no photo */
.staff-icon-xl          { font-size: 2.8rem; color: rgba(255,255,255,0.55); }
.staff-icon-lg          { font-size: 2rem;   color: rgba(13,95,77,0.4);    }
.staff-unit-avatar-icon { font-size: 1.4rem; color: rgba(13,95,77,0.38);   }

/* ── Deputies Grid ─────────────────────────────────────────────── */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.staff-deputy-card {
    border-radius: 16px;
    border: 1px solid #d7e0ea;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17,24,39,0.08);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.staff-deputy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(17,24,39,0.13);
}

.staff-deputy-head {
    background: linear-gradient(150deg, #f0f7f4 0%, #e3f2ea 100%);
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #d2e8db;
}

.staff-deputy-body {
    padding: 18px 20px;
}

.staff-deputy-name {
    font-size: 1rem;
    font-weight: 700;
    color: #151a27;
    margin: 0 0 4px;
}

.staff-deputy-role {
    font-size: 0.82rem;
    color: #0d5f4d;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.03em;
}

.staff-deputy-bio {
    font-size: 0.88rem;
    color: #5f6677;
    line-height: 1.65;
    margin: 0 0 10px;
}

.staff-deputy-email {
    font-size: 0.82rem;
    color: #5f6677;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

/* ── Unit Heads Grid ───────────────────────────────────────────── */
.staff-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.staff-unit-card {
    border-radius: 14px;
    border: 1px solid #dce5ef;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17,24,39,0.07);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.staff-unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(17,24,39,0.12);
}

.staff-unit-bar {
    height: 4px;
    background: linear-gradient(90deg, #0d5f4d, #d97924);
}

.staff-unit-body {
    padding: 18px 16px;
    /* Flex grid handled in redesign.css to prevent squashing */
}

.staff-unit-name {
    font-size: 0.93rem;
    font-weight: 700;
    color: #151a27;
    margin: 0 0 3px;
}

.staff-unit-role {
    font-size: 0.79rem;
    color: #0d5f4d;
    font-weight: 600;
    margin: 0 0 6px;
}

.staff-unit-dept,
.staff-unit-email {
    font-size: 0.78rem;
    color: #5f6677;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0 0;
}

/* ── Circuit Supervisors ───────────────────────────────────────── */
.staff-circuit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.staff-circuit-card {
    border-radius: 12px;
    border: 1px solid #dce5ef;
    background: #fff;
    box-shadow: 0 6px 18px rgba(17,24,39,0.07);
    padding: 18px 16px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.staff-circuit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(17,24,39,0.11);
}

.staff-circuit-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #151a27;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-circuit-meta {
    font-size: 0.82rem;
    color: #5f6677;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
}
.staff-circuit-meta-last { margin-bottom: 0; }

/* ── Shared icon helpers ───────────────────────────────────────── */
.staff-primary-icon { color: #0d5f4d; font-size: 0.85rem; }
.staff-accent-icon  { color: #d97924; font-size: 0.82rem; }
.staff-meta-icon    { font-size: 0.77rem; flex-shrink: 0;  }
.staff-mini-icon    { font-size: 0.78rem; }
.staff-mini-link    { color: #0d5f4d; font-size: 0.82rem;  }
.staff-mini-link:hover { color: #d97924; text-decoration: none; }

/* ── Responsive ────────────────────────────────────────────────── */
/* Handled in redesign.css to prevent conflicts and ensure consistent grid sizing */

