.article-sidebar-logo {
    width: 350px;
}

body {
    min-width: 375px;
}

.color-palette-blue {
    background-color: #004b99;
}

.oculeus-branch-office {
    padding-top: 5px;
}

#footer {
    border-top: 4px solid #194073;
}

.grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    grid-auto-rows: 20px;
    margin-bottom: 100px;
}

/* Start of About Us Page */

.core-values-letter {
    color: white;
    font-size: 84px;
    font-weight: bold;
}

.core-values-background-one {
    background-color: #183f72;
}

.core-values-background-two {
    background-color: #183f72;
}

.core-values-background-three {
    background-color: #b31c1b;
}

.core-values-background-four {
    background-color: #183f72;
}

.core-values-background-five {
    background-color: #b31c1b;
}

.employee-card {
    min-height: 505px;
}

/* End of About Us Page */

/* Team Grid Improvements */
.team-list .thumb-info-wrapper {
    height: 350px;
    /* Fixed height container for image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.team-list .thumb-info-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Crop image to fit without distortion */
    object-position: top center;
    /* Focus on faces */
    min-height: 100%;
}

/* Profile Text Improvements */
.employee-description {
    text-align: left;
    display: block;
    hyphens: none;
}

/* Ensure equal height cards */
.isotope-item {
    display: flex;
}

.employee-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.thumb-info-caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.employee-description {
    flex-grow: 1;
}



.road-map-description {
    height: 156px;
    vertical-align: text-top;
}

/* Start of Employee Page */

.employee-description-button {
    display: flex;
    width: 100%;
}

.employee-description-button>.hire-me-button {
    margin-left: 10px;
}

/* End of Employee Page */

/* Start of Contact Us Page */

.left-section-contact-us {
    overflow: hidden;
}

.left-section-contact-us-map {
    height: 600px;
    width: 100%;
}

/* End of Contact Us Page */

.org-chart-img {
    width: 100%;
}

.read-more-article-page {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.read-more-article-page a:hover {
    color: white
}

/* Start of Homepage Testimonial Items */

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.testimonial-logo-image {
    width: 120px !important;
}

/* End of Homepage Testimonial Items */

/* Start of Service Page */

.flip-card,
.flip-front,
.flip-back {
    min-height: 310px;
}

/* End of Service Page */

@media (max-width: 476px) {
    .logo-item {
        height: 200px;
    }

    .testimonial-logo-image {
        width: 180px !important;
    }
}

@media (min-width: 768px) {
    .header-container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .get-started {
        margin-left: auto;
        margin-right: auto;
    }

    /* Custom CSS for search and filter in Datatables of clients and projects page */
    .dataTables_length label,
    .dataTables_filter label {
        width: 100%;
    }

    .dataTables_filter label {
        padding-top: 5px;
    }

    /* Custom CSS for search and filter in Datatables of clients and projects page */

    .header-container {
        max-width: 768px;
        min-width: 375px;
    }

    /* Custom CSS for Road Map in Article Pages */
    .road-map-description {
        height: auto;
    }
}

@media (max-width: 991px) {

    .review-card {
        padding: 12px;
    }

    .svg-map-and-zoom,
    .svg-content {
        padding-bottom: 25px;
    }
}

/* About Us team: uniform grid with justified profile text.
   Overrides the isotope absolute positioning so cards always line up. */
.team-list {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 30px;
    height: auto !important;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 576px) {
    .team-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .team-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-list > .isotope-item {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.team-list .employee-card {
    height: 100%;
    margin-bottom: 0 !important;
}

.team-list .thumb-info-caption {
    text-align: left;
    hyphens: none;
}

.team-list .thumb-info-caption > span:not(.employee-description) {
    text-align: left;
}

/* Quote tool: estimate disclaimer modal */
.estimate-modal-backdrop{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.estimate-modal{background:#fff;max-width:480px;width:100%;padding:28px;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.3)}
body.estimate-modal-open{overflow:hidden}

/* Team grid hardening: every card is the same width, every photo the same
   4:5 frame (cropped to the face), whatever the source image size.
   New team members only need to copy an .isotope-item block. */
.team-list > .isotope-item { min-width: 0; display: flex; }
.team-list .employee-card {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
}
.team-list .employee-card > .thumb-info-wrapper {
    display: block !important;
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
    overflow: hidden;
    margin: 0 !important;
}
.team-list .employee-card > .thumb-info-wrapper > a {
    display: block;
    position: absolute;
    inset: 0;
}
.team-list .employee-card > .thumb-info-wrapper img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
}
.team-list .employee-card > .thumb-info-caption {
    flex: 1 1 auto;
    padding: 20px 0 0 !important;
}

/* Team: readable bios, credential tags, clearer filter tabs */
.team-list .employee-description {
    line-height: 24px !important;
}
.team-list .employee-description.is-clamped {
    display: -webkit-box !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 96px;
    overflow: hidden !important;
}
.team-list .bio-toggle {
    background: none;
    border: 0;
    padding: 0;
    margin: 6px 0 0;
    display: block;
    text-align: left;
    color: #0088cc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.team-list .bio-toggle:hover,
.team-list .bio-toggle:focus-visible { text-decoration: underline; }
.team-list .employee-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.team-list .credential-tag {
    background: #eef3f8;
    color: #1b3a63;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}
.team-list .thumb-info-caption > br { display: none; }

.sort-source[data-sort-id="team"] { gap: 6px; flex-wrap: wrap; }
.sort-source[data-sort-id="team"] .nav-link {
    font-size: 14px !important;
    font-weight: 600;
    color: #333 !important;
    padding: 8px 16px;
    border-radius: 20px;
}
.sort-source[data-sort-id="team"] .nav-link:hover,
.sort-source[data-sort-id="team"] .nav-link:focus-visible { background: #eef3f8; }
.sort-source[data-sort-id="team"] .nav-link.active,
.sort-source[data-sort-id="team"] .active > .nav-link {
    background: #0088cc !important;
    color: #fff !important;
}
.sort-source[data-sort-id="team"] .tab-count { opacity: .7; font-weight: 400; margin-left: 4px; }
