/*
Theme Name: WMHS Salient Child
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.8
*/

/* =========================================
   1. FOOTER CUSTOMISATIONS
   ========================================= */
#footer-outer #footer-widgets .widget ul li {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 5px;
}
#footer-outer #footer-widgets [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}
#footer-outer .widget-title {
    margin-bottom: 15px;
}


/* =========================================
   2. WMHS STAFF ARCHIVE STYLES
   ========================================= */

/* Layout Grid */
.staff-row { display: flex; flex-wrap: wrap; align-items: flex-start; width: 100%; margin-bottom: 40px; }

@media (min-width: 992px) {
  .staff-col-main { flex: 0 0 75%; max-width: 75%; padding-right: 40px; }
  .staff-col-sidebar { flex: 0 0 25%; max-width: 25%; padding-left: 10px; border-left: 1px solid #eee; }
  .staff-col-full { width: 100%; padding: 0; } 
}

@media (max-width: 991.98px) {
  .staff-col-main, .staff-col-sidebar, .staff-col-full { flex: 0 0 100%; max-width: 100%; padding: 0; }
  .staff-col-sidebar { margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; }
}

/* Headers & Intros */
.staff-archive-intro { width: 100%; max-width: 800px; margin: 0 auto 3rem auto; text-align: left; font-size: 1rem; line-height: 1.6; }
.staff-archive-intro h1 { font-size: 2rem !important; margin-bottom: 1rem !important; line-height: 1.2 !important; }
.staff-archive-intro a { color: #0073aa; text-decoration: underline; }

.time-period-header, .specialty-archive-header { margin-bottom: 40px; border-bottom: 2px solid #f0f0f0; padding-bottom: 20px; }
.time-period-header::after, .specialty-archive-header::after { content: ""; display: table; clear: both; }
.time-period-title, .specialty-title { font-size: 2.5rem; margin-bottom: 15px; }
.time-period-description, .specialty-description { font-size: 1.1rem; line-height: 1.6; color: #555; max-width: 800px; overflow: hidden; }

.staff-portal-header { text-align: center; margin-bottom: 1.5rem; }
.staff-portal-title { font-size: 1.5rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* Images (Scoped) */
.taxonomy-header-image {
    float: right; margin-left: 25px; max-width: 150px; height: auto;
    border: 6px solid #fff; border-radius: 2px; object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); background: #f5f5f5;
}
.staff-image-wrapper { 
    float: right; margin: 0 0 20px 30px; max-width: 280px; height: 360px; 
    border: 6px solid #fff; border-radius: 2px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); background: #f5f5f5; overflow: hidden;
} 
.staff-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 767.98px) {
    .taxonomy-header-image, .staff-image-wrapper { float: none; display: block; margin: 0 auto 20px auto; }
}

.portal-image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #f4f4f6; margin-bottom: 1rem; }
.portal-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.portal-card:hover .portal-img { transform: scale(1.08); }

/* Grids */
.staff-portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 1rem; margin-bottom: 4rem; }
@media (max-width: 600px) { .staff-portal-grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .staff-portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) and (max-width: 1200px) { .staff-portal-grid { grid-template-columns: repeat(3, 1fr); } }

.related-staff-grid { display: grid; gap: 20px; }
@media (min-width: 992px) { .related-staff-grid { grid-template-columns: repeat(4, 1fr); } } 
@media (max-width: 991.98px) { .related-staff-grid { grid-template-columns: repeat(2, 1fr); } } 
@media (max-width: 575.98px) { .related-staff-grid { grid-template-columns: 1fr; } }

.staff-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 30px; margin-bottom: 30px; list-style: none; padding: 0; }
@media (max-width: 992px) { .staff-list-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .staff-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .staff-list-grid { grid-template-columns: 1fr; } }

/* Cards & Directories */
.portal-card { text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; border-radius: 8px; background: #fff; }
.portal-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.portal-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.portal-title { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; color: #333; padding: 0 10px 15px 10px; }

/* Staff Card (Standard) */
.staff-card { background: #f9f9f9; border-radius: 6px; overflow: hidden; transition: transform 0.2s; height: 100%; display: flex; flex-direction: column;}
.staff-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.staff-card .staff-image-wrapper { height: 220px; width: 100%; max-width: 100%; margin-bottom: 10px; float: none; margin: 0 0 10px 0; border: none; box-shadow: none; border-radius: 4px; } 
.staff-card-content { display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; padding: 15px; }
.staff-card-text { margin-bottom: auto; }
.staff-card-text h5 { margin: 0 0 5px; font-size: 1.1rem !important; line-height: 1.3; }
.staff-card-text h5 a { color: #333; text-decoration: none; }
.staff-card-text h5 a:hover { text-decoration: underline; }

.nectar-button.small { 
    font-size: 0.8rem; padding: 5px 10px; background: #333; color: #fff; 
    display: inline-block; border-radius: 3px; align-self: flex-start; margin-top: 15px; text-align: center; text-decoration: none;
}

/* Compact Card */
.staff-card-compact { border: 1px solid #f0f0f0; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s; background: #fff; }
.staff-card-compact:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); }
.staff-card-compact .staff-card-link-wrapper { display: flex !important; flex-direction: row !important; align-items: center !important; text-decoration: none; color: inherit; padding: 10px; width: 100%; box-sizing: border-box; }
.staff-image-wrapper-compact { width: 60px !important; height: 60px !important; flex-shrink: 0 !important; margin-right: 15px !important; margin-bottom: 0 !important; float: none !important; border-radius: 50%; overflow: hidden; background: #f8f8f8; }
.staff-image-wrapper-compact img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-details-compact { flex: 1 !important; min-width: 0 !important; width: 0 !important; text-align: left !important; }
.staff-details-compact h4 { font-size: 1rem !important; margin: 0 0 2px 0 !important; line-height: 1.2 !important; font-weight: 600; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.staff-details-compact .staff-qualifications { font-size: 0.8rem !important; color: #999 !important; margin: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; display: block !important; max-width: 100% !important; }

/* Directory Lists */
.staff-directory-list ul { list-style: none !important; padding: 0 !important; margin: 0 !important; column-count: 4; column-gap: 40px; }
.staff-directory-list li { list-style: none !important; list-style-type: none !important; margin-bottom: 6px !important; break-inside: avoid; padding-left: 0 !important; margin-left: 0 !important; }
.staff-directory-list li::marker { content: none !important; display: none !important; }
.staff-directory-list a { text-decoration: none !important; color: #555 !important; font-size: 0.9rem !important; font-weight: 500 !important; transition: all 0.2s ease; display: inline-block; }
.staff-directory-list a:hover { color: #0073aa !important; text-decoration: underline !important; transform: translateX(3px); }
@media (max-width: 992px) { .staff-directory-list ul { column-count: 3; } }
@media (max-width: 768px) { .staff-directory-list ul { column-count: 2; } }
@media (max-width: 480px) { .staff-directory-list ul { column-count: 1; } }

/* Typography & Pills */
.staff-full-name { margin: 5px 0 8px; font-size: 1.5rem; display: block; }
.staff-qualifications { font-size: 0.875rem; font-weight: normal; margin: 0 0 16px; color: #333; line-height: 1.4; }

.staff-meta-pills, .staff-card-specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; margin-bottom: 30px; }
.staff-card-specialties { margin-bottom: 8px; gap: 5px; margin-top: 0; }

.meta-pill, .specialty-pill {
    display: inline-block; font-size: 0.7rem; text-transform: uppercase;
    font-weight: 700; letter-spacing: 0.5px; padding: 4px 12px;
    border-radius: 20px; text-decoration: none; transition: all 0.2s ease;
    text-align: center;
}
.specialty-pill { padding: 2px 8px; border-radius: 10px; }
.meta-pill.specialty, .specialty-pill { background-color: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.meta-pill.specialty:hover, .specialty-pill:hover { background-color: #bbdefb; color: #0d47a1; }
.meta-pill.time-period { background-color: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }
.meta-pill.time-period:hover { background-color: #ffecb3; color: #bf360c; }

/* Sidebars */
#staff-sidebar .widget { margin-bottom: 30px; }
#staff-sidebar p.widget-title { font-size: 0.8rem; margin-bottom: 8px !important; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #999; line-height: 1.2; }
#staff-sidebar ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#staff-sidebar li { list-style: none !important; margin-bottom: 4px; font-size: 0.8rem; line-height: 1.4; }
#staff-sidebar a { text-decoration: none; color: #333; font-weight: 600; }
#staff-sidebar a:hover { color: #0073aa; text-decoration: underline; }
#staff-sidebar .current-term { background-color: #fff8c4; border-radius: 2px; padding-left: 5px; }

/* Search Widget */
#staff-sidebar .search-form, .archive-search-form form { display: flex; gap: 5px; }
#staff-sidebar .search-field, .archive-search-form .search-field { width: 100%; padding: 5px; font-size: 0.8rem; }
#staff-sidebar .search-submit, .archive-search-form .search-submit { padding: 5px 10px; font-size: 0.8rem; }

/* Top Search */
.staff-archive-top-search .search-form { display: flex !important; align-items: center !important; gap: 10px; }
.staff-archive-top-search label { width: 100%; }
.staff-archive-top-search .search-field { margin-bottom: 0 !important; width: 100% !important; }
.staff-archive-top-search .search-submit { margin-top: 0 !important; width: auto !important; height: auto !important; }

/* Standard Card Typography */
.staff-card .specialty-pill { font-size: 0.65rem !important; padding: 2px 6px !important; margin-right: 3px !important; line-height: 1 !important; }
.staff-card .staff-qualifications, .staff-card .staff-qualifications p, .staff-card .staff-qualifications span {
    font-size: 0.8rem !important; line-height: 1.3 !important; color: #666 !important; margin-top: 8px !important; margin-bottom: 0 !important; font-weight: 400 !important;   
}
.staff-card h5 { font-size: 1.1rem !important; margin-bottom: 4px !important; line-height: 1.2 !important; }


/* =========================================
   SPECIALTY ARCHIVE: HEADING HIERARCHY FIX
   (Stepped down font sizes)
   ========================================= */

/* 1. Section Title ("Staff Organized...") */
body #ajax-content-wrap .staff-by-time-period .section-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #777 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    line-height: 1.3 !important;
   
}

/* 2. Time Period Headers ("1901 - 1920") */
body #ajax-content-wrap .time-period-group h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #222 !important;
    padding-bottom: 8px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    line-height: 1.4 !important;
    
}