/*
    Islamabad High Court - IT Team page
    Drop this file into the existing css folder as: team-modern.css
    Bootstrap/Web Forms compatible. No backend changes required.
*/

:root {
    --ihc-green: #174b3b;
    --ihc-green-dark: #10382d;
    --ihc-green-soft: #eaf2ee;
    --ihc-gold: #b99a58;
    --ihc-ink: #25332e;
    --ihc-muted: #68766f;
    --ihc-border: #e1e8e3;
    --ihc-surface: #ffffff;
    --ihc-page: #f5f7f5;
    --ihc-shadow: 0 12px 34px rgba(22, 55, 42, .08);
}

#mTeam, #dTeam, #iTp, #iTAtproj {
    color: var(--ihc-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

#mTeam {
    position: relative;
    overflow: hidden;
    padding: 58px 0 44px;
    background:
        radial-gradient(circle at 90% 10%, rgba(185,154,88,.15), transparent 26%),
        linear-gradient(135deg, #f7faf8 0%, #edf3ef 100%);
}

#mTeam > h1 {
    max-width: 1180px;
    margin: 0 auto 12px;
    padding: 0 20px;
    /*color: var(--ihc-green) !important;*/
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.35;
    text-align: center;
}

#mTeam > div:nth-of-type(1) {
    margin: 0 auto 34px;
    padding: 0 20px;
    text-align: center;
}

#mTeam > div:nth-of-type(1) h1 {
    margin: 0 0 8px;
    color: var(--ihc-green-dark);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

#mTeam > div:nth-of-type(1) p {
    margin: 0;
    color: var(--ihc-muted);
    font-size: 1.05rem;
    letter-spacing: .04em;
}

#mTeam .container,
#dTeam .container,
#iTp .container,
#iTAtproj .container {
    width: min(1180px, calc(100% - 36px));
}

#mTeam .well {
    height: 100%;
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    background: var(--ihc-surface);
    border: 1px solid var(--ihc-border);
    border-radius: 18px;
    box-shadow: var(--ihc-shadow);
}

#mTeam .well article > div:first-child {
    overflow: hidden;
    background: #e8eee9;
}

#mTeam .well article > div:first-child img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center top;
    transition: transform .45s ease;
}

#mTeam .well:hover article > div:first-child img {
    transform: scale(1.035);
}

#mTeam .boxContent {
    padding: 22px 24px 24px;
    background: #fff;
    border-top: 3px solid var(--ihc-gold);
}

#mTeam .boxContent h4 {
    margin: 0 0 7px;
    color: var(--ihc-green);
    line-height: 1.4;
}

#mTeam .boxContent h4:first-child {
    color: var(--ihc-muted);
    font-size: .88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

#mTeam .boxContent h4:nth-child(2) {
    font-size: 1.2rem;
    font-weight: 750;
}

#mTeam .boxContent p {
    margin: 10px 0 0;
    color: var(--ihc-muted);
}

#mTeam fieldset {
    min-width: 0;
    height: 100%;
    margin: 0 0 20px;
    padding: 26px 30px 28px;
    background: #fff;
    border: 1px solid var(--ihc-border);
    border-left: 4px solid var(--ihc-gold);
    border-radius: 16px;
    box-shadow: var(--ihc-shadow);
}

#mTeam fieldset legend {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 12px;
    color: var(--ihc-green);
    border: 0;
    font-size: 1.35rem;
    font-weight: 750;
}

#mTeam fieldset p {
    margin: 8px 0 0;
    color: #526159;
    font-size: 1rem;
    line-height: 1.9;
}

#dTeam, #iTp, #iTAtproj {
    padding: 48px 0;
    background: #fff;
}

#dTeam {
    background: var(--ihc-page);
}

#dTeam h2, #iTp h2, #iTAtproj h2, #mTeam h2 {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 14px;
    color: var(--ihc-green-dark);
    font-size: clamp(1.55rem, 2.7vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

#dTeam h2:after, #iTp h2:after, #iTAtproj h2:after, #mTeam h2:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    background: var(--ihc-gold);
    border-radius: 4px;
    content: "";
}

#dTeam .row.mb30 {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--ihc-border);
    border-radius: 18px;
    box-shadow: var(--ihc-shadow);
}

#dTeam .imgBorder {
    width: 100%;
    max-width: 190px;
    height: auto;
    max-height: 230px;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #fff !important;
    outline: 1px solid var(--ihc-border);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(0,0,0,.09);
}

#dTeam h3 {
    margin: 7px 0;
    color: var(--ihc-green);
    font-size: 1.3rem;
    line-height: 1.45;
}

#dTeam p {
    margin: 14px 0;
    color: #59675f;
    font-size: .98rem;
}

#dTeam a[href^="mailto:"] {
    color: var(--ihc-green);
    font-weight: 650;
    overflow-wrap: anywhere;
}

#dTeam .socialNetwork {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

#dTeam .socialNetwork li {
    margin: 0;
}

#dTeam .socialNetwork a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--ihc-green);
    background: var(--ihc-green-soft);
    border: 1px solid #dce9e1;
    border-radius: 50%;
    text-decoration: none;
    transition: all .2s ease;
}

#dTeam .socialNetwork a:hover,
#dTeam .socialNetwork a:focus {
    color: #fff;
    background: var(--ihc-green);
    border-color: var(--ihc-green);
    transform: translateY(-2px);
}

.ihc-project-section {
    background: #fff;
}

.ihc-automation-section {
    background: var(--ihc-page);
}

.ihc-project-section .table-responsive {
    overflow-x: auto;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--ihc-border);
    border-radius: 16px;
    box-shadow: var(--ihc-shadow);
    -webkit-overflow-scrolling: touch;
}

.ihc-project-section table.table {
    width: 100%;
    min-width: 940px;
    margin: 0;
    color: #46554d;
    background: #fff;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
    line-height: 1.65;
}

.ihc-project-section table.table th,
.ihc-project-section table.table td {
    padding: 16px 18px;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid var(--ihc-border);
    border-right: 1px solid #edf1ee;
}

.ihc-project-section table.table th {
    color: #fff;
    background: var(--ihc-green);
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.ihc-project-section table.table thead th:first-child,
.ihc-project-section table.table tbody tr:first-child th:first-child {
    border-top-left-radius: 14px;
}

.ihc-project-section table.table tbody tr:nth-child(even) {
    background: #f8faf8;
}

.ihc-project-section table.table tbody tr:hover {
    background: #f0f6f2;
}

.ihc-project-section table.table td:nth-child(1) {
    width: 58px;
    color: var(--ihc-green);
    font-weight: 750;
    text-align: center;
}

.ihc-project-section table.table td:nth-child(2) {
    min-width: 190px;
    color: var(--ihc-green-dark);
    font-weight: 700;
}

.ihc-project-section table.table p {
    margin: 0 0 10px;
}

.ihc-project-section table.table p:last-child {
    margin-bottom: 0;
}

.ihc-project-section table.table ul {
    margin: 8px 0 12px;
    padding-left: 22px;
}

.ihc-project-section table.table li {
    margin: 3px 0;
}

.ihc-project-section table.table a {
    color: #176b50;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ihc-project-section table.table tr:last-child td {
    border-bottom: 0;
}

.ihc-project-section table.table td[colspan] {
    overflow-wrap: anywhere;
}

/* Keep the original table contents readable when users scroll on small screens. */
.ihc-project-section .table-responsive:after {
    display: block;
    padding: 7px 14px;
    color: #77847c;
    background: #fbfcfb;
    border-top: 1px solid var(--ihc-border);
    content: "Scroll horizontally to view all project details";
    font-size: .78rem;
    text-align: right;
}

@media (min-width: 992px) {
    #mTeam .row.col-lg-12 {
        display: flex;
        align-items: stretch;
        margin-right: -15px;
        margin-left: -15px;
    }

    #mTeam .row.col-lg-12 > [class*="col-"] {
        float: none;
    }
}

@media (max-width: 767px) {
    #mTeam {
        padding: 38px 0 28px;
    }

    #mTeam > h1 {
        letter-spacing: .06em;
    }

    #mTeam > div:nth-of-type(1) {
        margin-bottom: 24px;
    }

    #mTeam .container, #dTeam .container, #iTp .container, #iTAtproj .container {
        width: calc(100% - 28px);
    }

    #mTeam fieldset {
        padding: 20px 19px 22px;
    }

    #mTeam fieldset p {
        font-size: .95rem;
        text-align: left !important;
    }

    #dTeam, #iTp, #iTAtproj {
        padding: 36px 0;
    }

    #dTeam .row.mb30 {
        display: block;
        padding: 20px;
    }

    #dTeam .row.mb30 > div:first-child {
        margin-bottom: 18px;
        text-align: center;
    }

    #dTeam .imgBorder {
        display: inline-block;
        width: auto;
        max-width: min(190px, 70%);
        max-height: 220px;
    }

    #dTeam h3 {
        font-size: 1.12rem;
    }

    .ihc-project-section table.table th,
    .ihc-project-section table.table td {
        padding: 12px 13px;
        font-size: .88rem;
    }

    .ihc-project-section .table-responsive:after {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
