/* Manning Kass Global Design Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Roboto+Condensed:wght@400;500;700&display=swap');

:root {
    --mk-primary: #25408F;
    --mk-secondary: #007DBE;
    --mk-text: #212529;
    --mk-accent: #666666;
    --mk-bg-light: #f5f5f5;
    --mk-font-primary: 'Roboto Condensed', sans-serif;
    --mk-font-secondary: 'Inter', sans-serif;
}

/* Base */
.mk-team-directory-wrapper {
    font-family: var(--mk-font-secondary);
    background: linear-gradient(135deg, var(--mk-primary) 0%, var(--mk-secondary) 100%);
    padding: 30px 15px;
    margin: 0;
}

/* Team Layout */
.mk-team-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px;
}

.mk-team-main {
    flex: 1 1 0;
}

.mk-team-sidebar {
    flex: 0 0 220px;
}

/* Team Grid */
.mk-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mk-team-card {
    background: #ffffff;
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 140px;
    overflow: hidden;
}

.mk-card-img {
    flex: 0 0 130px;
    background: #e2e2e2;
}

.mk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mk-card-info {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0; /* Fix flexbox blowout with nowrap text */
    overflow: hidden;
}

.mk-card-name {
    margin: 0 0 5px 0;
    font-family: var(--mk-font-primary);
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
}

.mk-card-name a {
    color: var(--mk-secondary);
    text-decoration: none;
}

.mk-card-loc {
    color: var(--mk-secondary);
    font-family: var(--mk-font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    margin: 0 0 10px 0;
}

.mk-card-email {
    font-family: var(--mk-font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    margin: 2px 0;
}

.mk-card-email a {
    color: var(--mk-secondary);
    text-decoration: none;
}

.mk-card-phone {
    font-family: var(--mk-font-secondary);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    margin: 2px 0;
    color: var(--mk-primary);
}

.mk-card-email {
    width: 100%;
    display: block;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Sidebar Filter Box */
.mk-filter-box {
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mk-alphabet-filter {
    display: grid;
    grid-template-columns: repeat(6, 30px);
    gap: 5px;
    margin-bottom: 25px;
    justify-content: start;
}

.mk-alpha-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #3e5364;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 5px;
    line-height: 30px;
    text-decoration: none;
    font-family: var(--mk-font-secondary);
    font-weight: 400;
}

.mk-alpha-btn:hover {
    color: #fff;
    text-decoration: none;
}

.mk-alpha-btn.active {
    background: var(--mk-primary);
}

.mk-filter-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mk-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mk-field-group label {
    font-family: var(--mk-font-secondary);
    font-size: 14px;
    color: var(--mk-text);
}

.mk-field-group input[type="text"],
.mk-field-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: var(--mk-text);
    font-family: var(--mk-font-secondary);
    box-sizing: border-box;
}

.mk-search-btn {
    background: #6c757d !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-family: var(--mk-font-secondary);
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: background 0.2s;
}

.mk-search-btn:hover {
    background: #6c757d !important;
}

@media (max-width: 991px) {
    .mk-team-layout { flex-direction: column-reverse; }
    .mk-team-sidebar { flex: 1 1 100%; }
    .mk-team-grid { grid-template-columns: 1fr; }
}

/* Single Attorney Profile Box */
.mk-blue-bg {
    background: linear-gradient(135deg, var(--mk-primary) 0%, var(--mk-secondary) 100%);
    padding: 50px 20px;
}

.mk-single-white-container {
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mk-single-white-container .mk-attorney-profile-box,
.mk-single-white-container .mk-filter-box {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.mk-attorney-profile-box {
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mk-profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.mk-profile-photo {
    flex: 0 0 200px;
}

.mk-profile-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.mk-profile-contact {
    flex: 1;
}

.mk-profile-name {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
    margin: 0 0 5px 0;
}

.mk-profile-desig {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
    margin: 0 0 20px 0;
}

.mk-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mk-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mk-font-secondary);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--mk-text);
}

.mk-contact-list li a {
    color: var(--mk-secondary);
    text-decoration: none;
}

.mk-contact-list li svg {
    color: var(--mk-text);
}

.mk-profile-bio {
    font-family: var(--mk-font-secondary);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--mk-text);
    margin-bottom: 40px;
}

.mk-meta-block {
    margin-bottom: 30px;
}

.mk-meta-block h3 {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
    margin: 0 0 15px 0;
}

.mk-dashed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mk-dashed-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-family: var(--mk-font-secondary);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--mk-secondary);
}

.mk-dashed-list li.mk-indented-item {
    margin-left: 20px;
    color: var(--mk-text);
}

.mk-dashed-list li::before {
    content: "â€”";
    position: absolute;
    left: 0;
    color: var(--mk-text);
    font-weight: normal;
}

.mk-dashed-list li a {
    color: var(--mk-secondary);
    text-decoration: none;
}

/* News Widget */
.mk-news-wrapper {
    padding: 50px 20px;
}

.mk-news-container {
    background: #ffffff;
    padding: 40px;
    max-width: 1140px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mk-news-title {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.mk-news-subtitle {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px 0;
}

.mk-news-item {
    margin-bottom: 25px;
}

.mk-news-date {
    color: #666;
    font-family: var(--mk-font-secondary);
    font-size: 14px;
    margin: 0 0 10px 0;
}

.mk-news-post-title {
    margin: 0 0 10px 0;
}

.mk-news-post-title a, .mk-news-post-title a:hover {
    color: var(--mk-secondary);
    font-family: var(--mk-font-primary);
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
}

.mk-news-excerpt {
    color: var(--mk-text);
    font-family: var(--mk-font-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.mk-news-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.mk-news-archives {
    margin-top: 40px;
}

.mk-archive-months, .mk-archive-years {
    color: #ccc;
    font-family: var(--mk-font-secondary);
    font-size: 14px;
    line-height: 2;
}

.mk-archive-months a, .mk-archive-years a,
.mk-archive-months a:hover, .mk-archive-years a:hover {
    color: var(--mk-secondary);
    text-decoration: none;
}

/* Locations */
.mk-locations-wrapper, .mk-locations-page-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    font-family: var(--mk-font-secondary);
}

.mk-locations-title {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    text-align: left;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 500;
}

.mk-locations-grid {
    display: block;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mk-locations-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
}

@media (max-width: 767px) {
    .mk-locations-grid-inner {
        grid-template-columns: 1fr;
    }
}

.mk-location-card {
    display: flex;
    flex-direction: column;
}

.mk-loc-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mk-loc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-loc-info h3 {
    text-align: center;
    margin: 0 0 10px 0;
}

.mk-loc-info h3 a, .mk-loc-info h3 a:hover {
    color: var(--mk-secondary);
    font-family: var(--mk-font-primary);
    font-size: 20px;
    text-decoration: none;
    font-weight: 500;
}

.mk-loc-address, .mk-loc-contact {
    text-align: center;
    color: var(--mk-text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* Single Location */
.mk-single-location-box {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mk-single-location-title {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 500;
    display: block;
}

.mk-single-location-subtitle {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 400;
}

.mk-single-location-banner {
    width: 100%;
    max-width: 400px;
    height: 120px;
    overflow: hidden;
    margin-bottom: 30px;
}

.mk-single-location-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-single-location-info {
    color: var(--mk-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mk-single-location-map {
    margin-bottom: 30px;
}

.mk-single-location-attorneys h3 {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}


/* Careers */
.mk-career-page-wrapper {
    padding: 60px 0;
    font-family: var(--mk-font-secondary);
}

.mk-single-career-box {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mk-single-career-header {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.mk-single-career-title {
    color: var(--mk-primary);
    font-family: var(--mk-font-primary);
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 500;
}

.mk-single-career-service a {
    color: var(--mk-primary);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 500;
}

.mk-single-career-content {
    margin-top: 40px;
}

.mk-career-section {
    margin-bottom: 30px;
}

.mk-career-section h3 {
    color: var(--mk-primary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: var(--mk-font-secondary);
}

.mk-career-section p, .mk-career-section div, .mk-career-list-wrap ul li {
    color: var(--mk-text);
    font-size: 14px;
    line-height: 1.6;
}

.mk-career-list-wrap ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.mk-career-apply-wrapper {
    margin-top: 50px;
}

.mk-btn.mk-apply-btn {
    display: inline-block;
    background-color: #666;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mk-btn.mk-apply-btn:hover {
    background-color: var(--mk-primary);
}

/* Career Search Widget */
.mk-career-search-wrapper {
    background: #fff;
    padding: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.mk-career-search-title {
    color: var(--mk-primary);
    font-size: 32px;
    margin: 0 0 10px 0;
}

.mk-career-search-subtitle {
    color: var(--mk-primary);
    font-size: 24px;
    margin: 0 0 10px 0;
}

.mk-career-search-desc {
    color: var(--mk-text);
    margin-bottom: 20px;
}

.mk-career-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-end;
}

.mk-form-row {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.mk-form-row label {
    font-size: 13px;
    color: var(--mk-text);
    margin-bottom: 5px;
}

.mk-form-row select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 100%;
    color: var(--mk-text);
}

.mk-form-submit button {
    background: #888;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.mk-form-submit button:hover {
    background: var(--mk-primary);
}

.mk-career-table {
    width: 100%;
    border-collapse: collapse;
}

.mk-career-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 2px solid #ddd;
    color: var(--mk-text);
    font-weight: 600;
}

.mk-career-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    color: var(--mk-text);
}

.mk-career-table td a {
    color: var(--mk-primary);
    text-decoration: none;
}

.mk-career-table td a:hover {
    text-decoration: underline;
}


.mk-dashed-list li.mk-no-dash::before { content: none; }
.mk-dashed-list li.mk-no-dash { padding-left: 0; }

.mk-meta-richtext ul { list-style: none; padding: 0; margin: 0; }
.mk-meta-richtext ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-family: var(--mk-font-secondary); font-size: 16px; line-height: 24px; font-weight: 400; color: var(--mk-secondary); }
.mk-meta-richtext ul li::before { content: '—'; position: absolute; left: 0; color: var(--mk-text); font-weight: normal; }
.mk-meta-richtext p { margin-bottom: 15px; font-family: var(--mk-font-secondary); font-size: 16px; line-height: 24px; color: var(--mk-secondary); }

.mk-dashed-list li.mk-subheading:not(:first-child) { margin-top: 15px; }
.mk-dashed-list li.mk-subheading { margin-bottom: 5px; }


.mk-team-layout { display: flex; gap: 30px; }
.mk-team-main { flex: 1; }
.mk-team-sidebar { width: 300px; flex: 0 0 300px; }
.mk-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mk-team-card { display: flex; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.mk-card-img { flex: 0 0 150px; }
.mk-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-card-info { padding: 20px; flex: 1; }
.mk-card-name { margin: 0 0 10px 0; font-size: 20px; }
.mk-card-loc, .mk-card-email, .mk-card-phone { margin: 0 0 5px 0; }
.mk-filter-box { padding: 20px; background: #fff; }
.mk-alphabet-filter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 20px; }
.mk-alpha-btn { display: flex; align-items: center; justify-content: center; background: #333; color: #fff; padding: 5px; text-decoration: none; font-size: 14px; }
.mk-alpha-btn:hover, .mk-alpha-btn.active { opacity: 0.8; }
.mk-alpha-disabled { pointer-events: none; opacity: 0.5; }
.mk-field-group { margin-bottom: 15px; }
.mk-field-group label { display: block; margin-bottom: 5px; font-size: 14px; }
.mk-field-group input, .mk-field-group select { width: 100%; padding: 8px; border: 1px solid #ddd; }
.mk-search-btn { width: 100%; padding: 10px; background: #666; color: #fff; border: none; cursor: pointer; }
@media (max-width: 991px) { .mk-team-layout { flex-direction: column-reverse; } .mk-team-sidebar { width: 100%; flex: auto; } .mk-team-grid { grid-template-columns: 1fr; } }


/* Overrides for screenshot match */
.mk-team-directory-wrapper { padding: 0 !important; }
.mk-team-card { box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2px; }
.mk-card-img { flex: 0 0 120px; }
.mk-card-info { padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; }
.mk-card-name { font-size: 18px; font-weight: bold; margin-bottom: 5px; }
.mk-card-name a { color: #007fb5; text-decoration: none; }
.mk-card-loc { font-size: 13px; font-weight: bold; color: #007fb5; margin-bottom: 15px; }
.mk-card-email { font-weight: bold; margin-bottom: 2px; }
.mk-card-email a { color: #007fb5; text-decoration: none; }
.mk-card-phone { font-size: 13px; color: #44586d; margin: 0; }
.mk-filter-box { padding: 20px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.mk-alpha-btn { background: #44586d; color: #fff; font-family: sans-serif; font-size: 16px; padding: 6px; }
.mk-alpha-disabled { pointer-events: none; background: transparent !important; color: #999 !important; font-weight: normal; }
.mk-search-btn { background: #667583; }

.mk-team-directory-wrapper { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.mk-alpha-disabled { pointer-events: none !important; cursor: default !important; background: transparent !important; color: #999 !important; border: none !important; box-shadow: none !important; }

.elementor-widget-mk_team_widget > .elementor-widget-container { background: transparent !important; padding: 0 !important; margin: 0 !important; }

.mk-team-layout { padding: 0 !important; margin: 0 !important; }
.mk-team-directory-wrapper { padding: 0 !important; margin: 0 !important; }



.mk-card-email a, .mk-card-name a { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; text-transform: inherit; font-style: inherit; } 

.mk-card-phone a { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; text-transform: inherit; font-style: inherit; color: #44586d; text-decoration: none; }


/* Print Styles */
@media print {
    header.elementor-location-header, 
    footer.elementor-location-footer,
    .elementor-location-header,
    .elementor-location-footer {
        display: block !important;
        position: relative !important;
    }
    
    header.elementor-location-header *, 
    footer.elementor-location-footer *,
    .elementor-location-header *,
    .elementor-location-footer * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    header.elementor-location-header img,
    .elementor-location-header img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    footer.elementor-location-footer,
    .elementor-location-footer {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-before: auto !important;
    }
}

/* Hide Global Header and Footer ONLY on Attorney Print Pages */
@media print {
    body.single-attorney header.elementor-location-header,
    body.single-attorney footer.elementor-location-footer,
    body.single-attorney .elementor-location-header,
    body.single-attorney .elementor-location-footer {
        display: none !important;
    }
}

/* Fix Attorney Print Footer Line Cutoff */
@media print {
    body.single-attorney .mk-print-footer {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-top: 1px solid #ccc !important;
    }
}
