.wol-staff-wrap { margin: 0; padding: 0; position: relative; }

.wol-staff-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    position:absolute;
    right:0px;
    top:0px;
}

.wol-layout-toggle {
    display: flex;
    gap: 0;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    overflow: hidden;
}

.wol-layout-btn {
    background: #fff;
    border: none;
    padding: 7px 12px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.wol-layout-btn:hover { background: #f0f0f0; color: #024f67; }

.wol-layout-btn.active { background: #024f67; color: #fff; }

.wol-layout-btn + .wol-layout-btn { border-left: 1px solid #d5d5d5; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* =========================================================
   SHARED CARD ELEMENTS
   ========================================================= */
.wol-staff-card {
    background: #fff;
}

.wol-card-photo {
    overflow: hidden;
    background: #eef8fc;
    line-height: 0;
}

.wol-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.wol-card-photo-link { display: block; line-height: 0; }
.wol-card-photo-link:hover img { transform: scale(1.04); }

.wol-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wol-photo-fallback svg { width: 50%; height: 50%; opacity: 0.6; }

.wol-card-body { flex: 1; }

.wol-card-name {
    font-family: 'cstmfont', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #024f67;
    margin: 0 0 6px;
    line-height: 1.2;
}

.wol-card-name a {
    color: #024f67;
    text-decoration: none;
}

.wol-card-name a:hover { color: #4db3db; }

.wol-card-designation {
    color: #4db3db;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}

.wol-card-email {
    margin: 0 0 10px;
    font-size: 13px;
}

.wol-card-email a { color: #4db3db; text-decoration: none; }
.wol-card-email a:hover { color: #024f67; }

.wol-card-intro {
    color: #575757;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px;
    text-align: justify;
}

.wol-card-readmore {
    margin: 6px 0 0;
    font-size: 14px;
}

.wol-card-readmore a {
    color: #4db3db;
    text-decoration: none;
}

.wol-card-readmore a:hover { color: #024f67; }

.wol-no-members { color: #666; font-style: italic; }

/* =========================================================
   LIST LAYOUT  – matches screenshot exactly
   Name (large, dark), Designation (blue caps), Email (blue),
   Intro text, "Read more: Name" link, divider line
   ========================================================= */
.wol-staff-layout[data-layout="list"] {
    display: flex;
    flex-direction: column;
}

.wol-staff-layout[data-layout="list"] .wol-staff-card {
    border-bottom: 1px solid #d5d5d5;
    padding: 20px 0 20px;
}

.wol-staff-layout[data-layout="list"] .wol-staff-card:last-child {
    border-bottom: none;
}

.wol-staff-layout[data-layout="list"] .wol-card-photo {
    display: none;
}

.wol-staff-layout[data-layout="list"] .wol-card-body {
    padding: 0;
}

.wol-staff-layout[data-layout="list"] .wol-card-name {
    font-size: 22px;
    margin-bottom: 4px;
}

/* =========================================================
   GRID LAYOUT  – photo top, then all text below, read more at bottom
   ========================================================= */
.wol-staff-layout[data-layout="grid"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .wol-staff-layout[data-layout="grid"] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .wol-staff-layout[data-layout="grid"] { grid-template-columns: 1fr; }
}

.wol-staff-layout[data-layout="grid"] .wol-staff-card {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.wol-staff-layout[data-layout="grid"] .wol-staff-card:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
    border-color: #4db3db;
}

.wol-staff-layout[data-layout="grid"] .wol-card-photo,
.wol-staff-layout[data-layout="grid"] .wol-card-photo-empty {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.wol-staff-layout[data-layout="grid"] .wol-card-photo-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

.wol-staff-layout[data-layout="grid"] .wol-card-photo-link .wol-card-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
}

.wol-staff-layout[data-layout="grid"] .wol-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wol-staff-layout[data-layout="grid"] .wol-card-name {
    font-size: 17px;
    text-align: left;
}

.wol-staff-layout[data-layout="grid"] .wol-card-readmore {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #efefef;
}

/* =========================================================
   DETAIL PAGE
   ========================================================= */
.wol-staff-detail-wrap { padding: 0; }

.wol-detail-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d5d5d5;
}

.wol-detail-photo { flex-shrink: 0; width: 160px; }

.wol-detail-photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    display: block;
}

.wol-detail-meta { flex: 1; }

.wol-detail-name {
    font-family: 'cstmfont', sans-serif;
    font-size: 28px;
    color: #024f67;
    margin: 0 0 6px;
    padding: 0;
    font-weight: 400;
    line-height: 1.2;
}

.wol-detail-designation {
    color: #4db3db;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.wol-detail-email { margin: 0; font-size: 14px; }
.wol-detail-email a { color: #4db3db; text-decoration: none; }
.wol-detail-email a:hover { color: #024f67; }

.wol-detail-body {
    font-size: 14px;
    line-height: 1.8;
    color: #575757;
    margin-bottom: 28px;
}

.wol-detail-body p { margin-bottom: 14px; text-align: justify; }

.wol-detail-footer { padding-top: 12px; border-top: 1px solid #d5d5d5; }

.wol-back-link {
    display: inline-block;
    color: #4db3db;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 18px;
    border: 1px solid #4db3db;
    transition: background 0.15s, color 0.15s;
}

.wol-back-link:hover { background: #4db3db; color: #fff; }

@media (max-width: 600px) {
    .wol-detail-header { flex-direction: column; gap: 16px; }
    .wol-detail-photo { width: 100%; }
    .wol-detail-photo img { width: 100px; height: 100px; }
}
