/*
|--------------------------------------------------------------------------
| ENCOT GOVERNANCE, BOARD, MANAGEMENT AND ORGANIZATIONAL STRUCTURE
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Soft Button
|--------------------------------------------------------------------------
*/

.button-soft {
    border:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    background:
        var(
            --encot-teal-soft,
            var(--primary-soft)
        );

    color:
        var(
            --encot-teal-dark,
            var(--primary-dark)
        );
}

.button-soft:hover {
    background: #D5EFED;

    color:
        var(
            --encot-teal-dark,
            var(--primary-dark)
        );
}

/*
|--------------------------------------------------------------------------
| Homepage Institutional Leadership
|--------------------------------------------------------------------------
*/

.governance-home-grid {
    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 55px;
}

.governance-home-image {
    position: relative;

    min-height: 490px;

    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            #D5E8E7
        );

    border-bottom:
        5px solid
        var(
            --encot-orange,
            #F58021
        );

    border-radius: 28px;

    background: #FFFFFF;

    box-shadow:
        0 20px 50px
        rgba(6, 73, 69, 0.16);
}

.governance-home-image > img {
    width: 100%;
    height: 100%;
    min-height: 490px;

    display: block;

    object-fit: cover;
    object-position: center center;

    background: #FFFFFF;
}

.governance-image-label {
    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 22px;

    padding: 17px 19px;

    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    border-radius: 15px;

    background:
        rgba(6, 73, 69, 0.90);

    color: #FFFFFF;

    backdrop-filter: blur(10px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.20);
}

.governance-image-label strong,
.governance-image-label span {
    display: block;
}

.governance-image-label strong {
    color: #FFFFFF;

    font-size: 17px;
}

.governance-image-label span {
    margin-top: 4px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 12px;
}

.governance-home-copy h2 {
    margin: 0 0 18px;

    color:
        var(
            --encot-ink,
            var(--primary-dark)
        );

    font-size:
        clamp(
            34px,
            4.5vw,
            53px
        );

    line-height: 1.08;
    letter-spacing: -0.03em;
}

.governance-home-copy p {
    color:
        var(
            --encot-muted,
            var(--muted)
        );

    font-size: 16px;
}

.governance-points {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin: 24px 0;
}

.governance-points span {
    padding: 12px 13px;

    border:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    border-left:
        4px solid
        var(
            --encot-orange,
            #F58021
        );

    border-radius: 11px;

    background:
        var(
            --encot-background,
            #F4F9F9
        );

    color:
        var(
            --encot-teal-dark,
            #075D59
        );

    font-size: 12px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Governance Page Hero
|--------------------------------------------------------------------------
*/

.governance-page-hero {
    background:
        linear-gradient(
            105deg,
            rgba(6, 73, 69, 0.97),
            rgba(2, 121, 117, 0.76)
        ),
        url("../images/staff/board.png")
        center 43% / cover;
}

/*
|--------------------------------------------------------------------------
| Governance Feature
|--------------------------------------------------------------------------
*/

.governance-feature {
    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    border-radius: 28px;

    background: #FFFFFF;

    box-shadow:
        var(
            --shadow,
            0 16px 44px rgba(6, 73, 69, 0.10)
        );
}

.governance-feature-image {
    overflow: hidden;
}

.governance-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 530px;

    display: block;

    object-fit: cover;
    object-position: center;
}

.governance-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 45px;
}

.governance-feature-copy h2 {
    margin: 10px 0 16px;

    color:
        var(
            --encot-ink,
            var(--primary-dark)
        );

    font-size:
        clamp(
            31px,
            4vw,
            47px
        );

    line-height: 1.08;
}

.governance-feature-copy p {
    color:
        var(
            --encot-muted,
            var(--muted)
        );
}

/*
|--------------------------------------------------------------------------
| Governance Principles
|--------------------------------------------------------------------------
*/

.governance-principles {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 13px;

    margin-top: 23px;
}

.governance-principle {
    padding: 16px;

    border:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    border-radius: 13px;

    background:
        var(
            --encot-background,
            var(--background)
        );
}

.governance-principle strong {
    display: block;

    margin-bottom: 5px;

    color:
        var(
            --encot-teal,
            var(--primary)
        );

    font-size: 14px;
}

.governance-principle span {
    color:
        var(
            --encot-muted,
            var(--muted)
        );

    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Board and Management Grids
|--------------------------------------------------------------------------
*/

.board-members-grid,
.management-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 21px;
}

.person-profile-card {
    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    border-radius: 20px;

    background: #FFFFFF;

    box-shadow:
        0 12px 34px
        rgba(6, 73, 69, 0.08);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.person-profile-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 44px
        rgba(6, 73, 69, 0.14);
}

.person-profile-photo {
    position: relative;

    min-height: 330px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(245, 128, 33, 0.26),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #DCEFED,
            #7DBDB9
        );
}

.person-profile-photo img {
    width: 100%;
    height: 330px;

    display: block;

    object-fit: cover;
    object-position: center top;
}

.person-profile-placeholder {
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        var(
            --encot-teal,
            var(--primary)
        );

    font-size: 42px;
    font-weight: 900;
}

.person-profile-body {
    min-height: 108px;

    padding: 20px;

    border-top:
        4px solid
        var(
            --encot-orange,
            #F58021
        );
}

.person-profile-body h3 {
    margin: 0 0 7px;

    color:
        var(
            --encot-ink,
            var(--primary-dark)
        );

    font-size: 18px;
}

.person-profile-body p {
    margin: 0;

    color:
        var(
            --encot-teal,
            var(--primary)
        );

    font-size: 13px;
    font-weight: 800;
}

.person-profile-body span {
    display: block;

    margin-top: 7px;

    color:
        var(
            --encot-muted,
            var(--muted)
        );

    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Management Levels
|--------------------------------------------------------------------------
*/

.management-tier-title {
    margin: 45px 0 20px;

    padding-bottom: 12px;

    border-bottom:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    color:
        var(
            --encot-ink,
            var(--primary-dark)
        );

    font-size: 25px;
}

.management-grid-executive {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 350px)
        );

    justify-content: center;
}

.management-grid-executive
.person-profile-photo,
.management-grid-executive
.person-profile-photo img,
.management-grid-executive
.person-profile-placeholder {
    min-height: 390px;
    height: 390px;
}

.management-empty {
    padding: 34px;

    border:
        1px dashed
        var(
            --encot-border,
            #D5E8E7
        );

    border-radius: 16px;

    background:
        var(
            --encot-background,
            #F4F9F9
        );

    color:
        var(
            --encot-muted,
            var(--muted)
        );

    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Governance Call to Action
|--------------------------------------------------------------------------
*/

.governance-cta {
    background:
        linear-gradient(
            135deg,
            var(
                --encot-teal-deep,
                #064945
            ),
            var(
                --encot-teal-dark,
                #075D59
            )
        );

    color: #FFFFFF;
}

.governance-cta-grid {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: center;

    gap: 35px;
}

.governance-cta h2 {
    margin: 0 0 10px;

    color: #FFFFFF;

    font-size:
        clamp(
            31px,
            4vw,
            48px
        );

    line-height: 1.08;
}

.governance-cta p {
    max-width: 730px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.76);
}

/*
|--------------------------------------------------------------------------
| Dynamic Organizational Chart
|--------------------------------------------------------------------------
*/

.org-intro {
    max-width: 820px;

    margin:
        0 auto
        34px;

    color:
        var(
            --encot-muted,
            var(--muted)
        );

    text-align: center;
}

.org-shell {
    overflow-x: auto;

    padding:
        24px
        12px
        44px;

    border:
        1px solid
        var(
            --encot-border,
            var(--border)
        );

    border-radius: 24px;

    background: #FBFDFC;

    box-shadow:
        var(
            --shadow,
            0 16px 44px rgba(6, 73, 69, 0.10)
        );
}

.org-chart {
    min-width: 980px;

    display: flex;
    justify-content: center;
}

.org-chart ul {
    position: relative;

    display: flex;
    justify-content: center;

    margin: 0;
    padding: 28px 0 0;
}

.org-chart > ul {
    padding-top: 0;
}

.org-chart li {
    position: relative;

    padding:
        28px
        10px
        0;

    list-style: none;

    text-align: center;
}

.org-chart li::before,
.org-chart li::after {
    content: "";

    position: absolute;

    top: 0;

    width: 50%;
    height: 28px;

    border-top:
        2px solid
        #91AAA0;
}

.org-chart li::before {
    right: 50%;
}

.org-chart li::after {
    left: 50%;

    border-left:
        2px solid
        #91AAA0;
}

.org-chart li:only-child::before,
.org-chart li:only-child::after {
    display: none;
}

.org-chart li:only-child {
    padding-top: 0;
}

.org-chart li:first-child::before,
.org-chart li:last-child::after {
    border: 0;
}

.org-chart li:last-child::before {
    border-right:
        2px solid
        #91AAA0;

    border-radius:
        0 8px
        0 0;
}

.org-chart li:first-child::after {
    border-radius:
        8px 0
        0 0;
}

.org-chart ul ul::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    height: 28px;

    border-left:
        2px solid
        #91AAA0;
}

.org-person {
    position: relative;
    z-index: 2;

    width: 190px;
    min-height: 215px;

    margin: auto;

    overflow: hidden;

    border:
        1px solid
        #D5E1DB;

    border-radius: 18px;

    background: #FFFFFF;

    box-shadow:
        0 13px 32px
        rgba(6, 73, 69, 0.10);
}

.org-photo-wrap {
    padding:
        16px
        16px
        0;
}

.org-photo {
    width: 106px;
    height: 106px;

    margin: auto;

    border:
        4px solid
        #FFFFFF;

    border-radius: 50%;

    object-fit: cover;

    background: #EEF5F1;

    box-shadow:
        0 0 0
        3px
        var(--org-accent);
}

.org-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color:
        var(--org-accent);
}

.org-photo-placeholder strong {
    font-size: 27px;
}

.org-photo-placeholder small {
    margin-top: 5px;

    color: #829087;

    font-size: 10px;
    font-weight: 800;
}

.org-person-copy {
    min-height: 82px;

    margin-top: 13px;
    padding:
        15px
        12px
        17px;

    background:
        var(--org-accent);

    color: #FFFFFF;
}

.org-person-copy h3 {
    margin:
        0 0
        5px;

    color: #FFFFFF;

    font-size: 15px;
}

.org-person-copy p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.92);

    font-size: 12px;
    font-weight: 700;
}

.org-person-copy span {
    display: block;

    margin-top: 5px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| Organizational Structure Leadership Hierarchy
|--------------------------------------------------------------------------
*/

.leadership-hierarchy-section {
    padding: 82px 0;

    background:
        var(
            --encot-background,
            #F4F9F9
        );
}

.hierarchy-header {
    max-width: 930px;

    margin:
        0 auto
        42px;
}

.hierarchy-header.text-center {
    text-align: center;
}

.hierarchy-kicker {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    color:
        var(
            --encot-teal,
            #027975
        );

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hierarchy-kicker::before {
    content: "";

    width: 36px;
    height: 4px;

    border-radius: 999px;

    background:
        var(
            --encot-orange,
            #F58021
        );
}

.hierarchy-header h2 {
    max-width: 900px;

    margin:
        0 auto
        18px;

    color:
        var(
            --encot-ink,
            #111111
        );

    font-size:
        clamp(
            38px,
            5vw,
            62px
        );

    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hierarchy-header p {
    max-width: 850px;

    margin: 0 auto;

    color:
        var(
            --encot-muted,
            #667778
        );

    font-size: 17px;
    line-height: 1.75;
}

.hierarchy-wrapper {
    position: relative;

    overflow: hidden;

    padding:
        36px
        24px
        34px;

    border:
        1px solid
        var(
            --encot-border,
            #D5E8E7
        );

    border-radius: 28px;

    background: #FFFFFF;

    box-shadow:
        0 24px 64px
        rgba(6, 73, 69, 0.12);
}

.hierarchy-wrapper::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            45deg,
            rgba(2, 121, 117, 0.028) 25%,
            transparent 25%,
            transparent 50%,
            rgba(2, 121, 117, 0.028) 50%,
            rgba(2, 121, 117, 0.028) 75%,
            transparent 75%,
            transparent
        ),
        linear-gradient(
            45deg,
            rgba(2, 121, 117, 0.028) 25%,
            transparent 25%,
            transparent 50%,
            rgba(2, 121, 117, 0.028) 50%,
            rgba(2, 121, 117, 0.028) 75%,
            transparent 75%,
            transparent
        );

    background-position:
        0 0,
        12px 12px;

    background-size:
        24px 24px;

    pointer-events: none;
}

.hierarchy-wrapper > * {
    position: relative;
    z-index: 2;
}

.hierarchy-level {
    display: flex;
    justify-content: center;
}

.hierarchy-vertical-line {
    width: 4px;
    height: 42px;

    margin: 0 auto;

    border-radius: 999px;

    background: #94B5AB;
}

.hierarchy-line-chairman {
    height: 46px;
}

.hierarchy-line-to-team {
    height: 48px;
}

.hierarchy-horizontal-line {
    width:
        calc(
            100% - 180px
        );

    max-width: 1110px;
    height: 4px;

    margin: 0 auto;

    border-radius: 999px;

    background: #94B5AB;
}

.hierarchy-team-grid {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    align-items: start;

    gap: 22px;
}

.hierarchy-team-item {
    position: relative;

    min-width: 0;
}

.hierarchy-team-branch {
    width: 4px;
    height: 34px;

    margin: 0 auto;

    border-radius: 999px;

    background: #94B5AB;
}

.hierarchy-card {
    position: relative;

    width: 100%;
    max-width: 278px;

    margin: 0 auto;

    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            #D5E8E7
        );

    border-radius: 24px;

    background: #FFFFFF;

    box-shadow:
        0 17px 40px
        rgba(6, 73, 69, 0.13);

    text-align: center;
}

.hierarchy-card-chairman,
.hierarchy-card-executive {
    width:
        min(
            100%,
            285px
        );
}

.hierarchy-image-wrap {
    min-height: 190px;

    padding:
        18px
        18px
        13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFFFFF;
}

.hierarchy-image-wrap img,
.hierarchy-image-placeholder {
    width: 150px;
    height: 150px;

    flex:
        0 0
        150px;

    border:
        5px solid
        var(
            --encot-teal,
            #027975
        );

    border-radius: 50%;

    background:
        var(
            --encot-teal-soft,
            #E8F5F4
        );

    box-shadow:
        0 0 0
        3px
        #FFFFFF,
        0 8px 24px
        rgba(6, 73, 69, 0.16);
}

.hierarchy-image-wrap img {
    display: block;

    object-fit: cover;
    object-position: center top;
}

.hierarchy-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color:
        var(
            --encot-teal,
            #027975
        );

    font-size: 38px;
    font-weight: 900;
}

.hierarchy-card-body {
    min-height: 108px;

    padding:
        20px
        15px
        22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hierarchy-card-body h3 {
    margin:
        0 0
        7px;

    color: #FFFFFF;

    font-size: 18px;
    line-height: 1.3;
}

.hierarchy-card-body p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.90);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.hierarchy-card-chairman
.hierarchy-image-wrap img,
.hierarchy-card-chairman
.hierarchy-image-placeholder {
    border-color:
        var(
            --encot-orange,
            #F58021
        );

    color:
        var(
            --encot-orange-dark,
            #D96712
        );

    background:
        var(
            --encot-orange-soft,
            #FFF1E6
        );
}

.hierarchy-card-chairman
.hierarchy-card-body {
    background:
        linear-gradient(
            135deg,
            var(--encot-orange, #F58021),
            var(--encot-orange-dark, #D96712)
        );
}

.hierarchy-card-executive
.hierarchy-image-wrap img,
.hierarchy-card-executive
.hierarchy-image-placeholder {
    border-color: #AA3036;

    color: #AA3036;

    background: #FBEAEC;
}

.hierarchy-card-executive
.hierarchy-card-body {
    background:
        linear-gradient(
            135deg,
            #B53239,
            #95262D
        );
}

.hierarchy-card-department
.hierarchy-card-body {
    background:
        linear-gradient(
            135deg,
            var(--encot-teal, #027975),
            var(--encot-teal-dark, #075D59)
        );
}

.hierarchy-card-department
.hierarchy-image-wrap {
    min-height: 170px;
}

.hierarchy-card-department
.hierarchy-image-wrap img,
.hierarchy-card-department
.hierarchy-image-placeholder {
    width: 132px;
    height: 132px;

    flex-basis: 132px;
}

.hierarchy-card-department
.hierarchy-card-body {
    min-height: 105px;

    padding-inline: 12px;
}

.hierarchy-card-department
.hierarchy-card-body h3 {
    font-size: 16px;
}

.hierarchy-card-department
.hierarchy-card-body p {
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| ENCOT About Page Hero
|--------------------------------------------------------------------------
*/

.encot-about-hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(245, 128, 33, 0.30),
            transparent 29%
        ),
        linear-gradient(
            125deg,
            var(
                --encot-teal-deep,
                #064945
            ),
            var(
                --encot-teal-dark,
                #075D59
            ),
            var(
                --encot-teal,
                #027975
            )
        );
}

/*
|--------------------------------------------------------------------------
| About Institution Section
|--------------------------------------------------------------------------
*/

.encot-about-institution-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(340px, 0.92fr);

    align-items: center;

    gap: 55px;
}

.encot-about-institution-copy h2 {
    max-width: 720px;

    margin: 0 0 20px;

    color:
        var(
            --encot-teal-dark,
            #075D59
        );

    font-size:
        clamp(
            38px,
            5vw,
            61px
        );

    line-height: 1.02;
    letter-spacing: -0.04em;
}

.encot-about-institution-copy p {
    max-width: 770px;

    color:
        var(
            --encot-muted,
            #667778
        );

    font-size: 16px;
}

.encot-about-institution-copy
.button-row {
    margin-top: 26px;
}

.encot-about-brand-panel {
    position: relative;

    min-height: 345px;

    padding: 38px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(245, 128, 33, 0.34),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            var(
                --encot-teal-deep,
                #064945
            ),
            var(
                --encot-teal,
                #027975
            )
        );

    box-shadow:
        0 28px 70px
        rgba(6, 73, 69, 0.22);
}

.encot-about-brand-panel::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -100px;
    bottom: -120px;

    border:
        44px solid
        rgba(255, 255, 255, 0.05);

    border-radius: 50%;
}

.encot-about-brand-heading {
    position: relative;
    z-index: 2;

    margin-bottom: 24px;

    color: #FFFFFF;

    font-size:
        clamp(
            44px,
            7vw,
            76px
        );

    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
}

.encot-about-brand-list {
    position: relative;
    z-index: 2;

    display: grid;

    gap: 9px;
}

.encot-about-brand-list span {
    padding: 11px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.08);

    color:
        rgba(255, 255, 255, 0.92);

    font-size: 13px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Board and Leadership Engagement
|--------------------------------------------------------------------------
*/

.encot-about-governance-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(320px, 0.7fr);

    align-items: stretch;

    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            #D5E8E7
        );

    border-radius: 26px;

    background: #FFFFFF;

    box-shadow:
        0 20px 55px
        rgba(6, 73, 69, 0.12);
}

.encot-about-board-image {
    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #FFFFFF;
}

.encot-about-board-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;

    display: block;

    object-fit: cover;
    object-position: center center;
}

.encot-about-board-placeholder {
    width: 100%;
    min-height: 470px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(245, 128, 33, 0.25),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            var(
                --encot-teal-soft,
                #E8F5F4
            ),
            #C7E6E3
        );

    color:
        var(
            --encot-teal-dark,
            #075D59
        );

    text-align: center;
}

.encot-about-board-placeholder strong {
    font-size: 48px;
}

.encot-about-board-placeholder span {
    font-size: 14px;
    font-weight: 700;
}

.encot-about-governance-copy {
    position: relative;

    padding: 42px 38px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    background: #FFFFFF;
}

.encot-about-governance-copy::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        var(
            --encot-orange,
            #F58021
        );
}

.encot-about-governance-copy h2 {
    margin: 0 0 18px;

    color:
        var(
            --encot-teal-dark,
            #075D59
        );

    font-size:
        clamp(
            31px,
            4vw,
            46px
        );

    line-height: 1.06;
}

.encot-about-governance-copy p {
    color:
        var(
            --encot-muted,
            #667778
        );
}

/*
|--------------------------------------------------------------------------
| About Page Fixed Leadership Order
|--------------------------------------------------------------------------
| Required structure:
| 1. Paschal Mandhawun
| 2. Morris Ngabitho
| 3. Solomon, Anthony, Silivia, George and Mutyaba in one row
|--------------------------------------------------------------------------
*/

.about-org-section {
    position: relative;

    overflow: hidden;

    background: #FFFFFF;
}

.about-org-heading {
    max-width: 940px;

    margin:
        0 auto
        46px;

    text-align: center;
}

.about-org-kicker {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    color:
        var(
            --encot-teal,
            #027975
        );

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-org-kicker::before {
    content: "";

    width: 37px;
    height: 4px;

    border-radius: 999px;

    background:
        var(
            --encot-orange,
            #F58021
        );
}

.about-org-heading h2 {
    margin:
        0 auto
        18px;

    color:
        var(
            --encot-ink,
            #111111
        );

    font-size:
        clamp(
            39px,
            5vw,
            62px
        );

    line-height: 1.05;
    letter-spacing: -0.035em;
}

.about-org-heading p {
    max-width: 850px;

    margin: 0 auto;

    color:
        var(
            --encot-muted,
            #667778
        );

    font-size: 17px;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| About Chart Scroll Container
|--------------------------------------------------------------------------
*/

.about-org-scroll {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 12px;

    scrollbar-width: thin;

    scrollbar-color:
        var(
            --encot-teal,
            #027975
        )
        var(
            --encot-teal-soft,
            #E8F5F4
        );
}

.about-org-scroll::-webkit-scrollbar {
    height: 9px;
}

.about-org-scroll::-webkit-scrollbar-track {
    border-radius: 999px;

    background:
        var(
            --encot-teal-soft,
            #E8F5F4
        );
}

.about-org-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        var(
            --encot-teal,
            #027975
        );
}

/*
|--------------------------------------------------------------------------
| About Chart Container
|--------------------------------------------------------------------------
*/

.about-org-chart {
    position: relative;

    width: 100%;
    min-width: 1160px;

    padding:
        36px
        30px
        32px;

    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            #D5E8E7
        );

    border-radius: 28px;

    background: #FFFFFF;

    box-shadow:
        0 24px 64px
        rgba(6, 73, 69, 0.12);
}

.about-org-chart::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            45deg,
            rgba(2, 121, 117, 0.026) 25%,
            transparent 25%,
            transparent 50%,
            rgba(2, 121, 117, 0.026) 50%,
            rgba(2, 121, 117, 0.026) 75%,
            transparent 75%,
            transparent
        ),
        linear-gradient(
            45deg,
            rgba(2, 121, 117, 0.026) 25%,
            transparent 25%,
            transparent 50%,
            rgba(2, 121, 117, 0.026) 50%,
            rgba(2, 121, 117, 0.026) 75%,
            transparent 75%,
            transparent
        );

    background-position:
        0 0,
        12px 12px;

    background-size:
        24px 24px;

    pointer-events: none;
}

.about-org-chart > * {
    position: relative;
    z-index: 2;
}

/*
|--------------------------------------------------------------------------
| About Chart Leadership Levels
|--------------------------------------------------------------------------
*/

.about-org-top-level,
.about-org-director-level {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-org-vertical-line {
    width: 4px;

    margin: 0 auto;

    border-radius: 999px;

    background: #8BAEA4;
}

.about-org-line-chairman {
    height: 43px;
}

.about-org-line-director {
    height: 47px;
}

.about-org-horizontal-line {
    width:
        calc(
            100% - 208px
        );

    height: 4px;

    margin: 0 auto;

    border-radius: 999px;

    background: #8BAEA4;
}

/*
|--------------------------------------------------------------------------
| About Departmental Row
|--------------------------------------------------------------------------
| The five cards are always kept in one row and in the array order.
|--------------------------------------------------------------------------
*/

.about-org-department-row {
    display: grid !important;

    grid-template-columns:
        repeat(
            5,
            minmax(190px, 1fr)
        ) !important;

    align-items: start;

    gap: 22px;

    width: 100%;
}

.about-org-department-node {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-org-department-line {
    width: 4px;
    height: 34px;

    flex:
        0 0
        34px;

    border-radius: 999px;

    background: #8BAEA4;
}

/*
|--------------------------------------------------------------------------
| About Leadership Cards
|--------------------------------------------------------------------------
*/

.about-org-card {
    width: 100%;
    max-width: 278px;

    margin: 0 auto;

    overflow: hidden;

    border:
        1px solid
        var(
            --encot-border,
            #D5E8E7
        );

    border-radius: 24px;

    background: #FFFFFF;

    box-shadow:
        0 17px 40px
        rgba(6, 73, 69, 0.14);

    text-align: center;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.about-org-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 24px 52px
        rgba(6, 73, 69, 0.19);
}

.about-org-card-chairman,
.about-org-card-director {
    width: 278px;
}

.about-org-photo-area {
    min-height: 188px;

    padding:
        18px
        18px
        13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFFFFF;
}

.about-org-photo-area img,
.about-org-photo-placeholder {
    width: 150px;
    height: 150px;

    flex:
        0 0
        150px;

    border:
        5px solid
        var(
            --encot-teal,
            #027975
        );

    border-radius: 50%;

    background:
        var(
            --encot-teal-soft,
            #E8F5F4
        );

    box-shadow:
        0 0 0
        3px
        #FFFFFF,
        0 8px 24px
        rgba(6, 73, 69, 0.16);
}

.about-org-photo-area img {
    display: block;

    object-fit: cover;
    object-position: center top;
}

.about-org-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color:
        var(
            --encot-teal,
            #027975
        );

    font-size: 38px;
    font-weight: 900;
}

.about-org-card-details {
    min-height: 106px;

    padding:
        19px
        14px
        21px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-org-card-details h3 {
    margin:
        0 0
        7px;

    color: #FFFFFF;

    font-size: 17px;
    line-height: 1.3;
}

.about-org-card-details p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.92);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| About Executive Chairman Card
|--------------------------------------------------------------------------
*/

.about-org-card-chairman
.about-org-photo-area img,
.about-org-card-chairman
.about-org-photo-placeholder {
    border-color:
        var(
            --encot-orange,
            #F58021
        );

    background:
        var(
            --encot-orange-soft,
            #FFF1E6
        );

    color:
        var(
            --encot-orange-dark,
            #D96712
        );
}

.about-org-card-chairman
.about-org-card-details {
    background:
        linear-gradient(
            135deg,
            var(
                --encot-orange,
                #F58021
            ),
            var(
                --encot-orange-dark,
                #D96712
            )
        );
}

/*
|--------------------------------------------------------------------------
| About Executive Director Card
|--------------------------------------------------------------------------
*/

.about-org-card-director
.about-org-photo-area img,
.about-org-card-director
.about-org-photo-placeholder {
    border-color: #AE3037;

    background: #FBEAEC;

    color: #AE3037;
}

.about-org-card-director
.about-org-card-details {
    background:
        linear-gradient(
            135deg,
            #B53239,
            #95262D
        );
}

/*
|--------------------------------------------------------------------------
| About Departmental Cards
|--------------------------------------------------------------------------
*/

.about-org-card-department {
    max-width: 208px;
}

.about-org-card-department
.about-org-photo-area {
    min-height: 166px;

    padding:
        15px
        12px
        11px;
}

.about-org-card-department
.about-org-photo-area img,
.about-org-card-department
.about-org-photo-placeholder {
    width: 128px;
    height: 128px;

    flex-basis: 128px;
}

.about-org-card-department
.about-org-card-details {
    min-height: 106px;

    padding:
        17px
        10px
        19px;

    background:
        linear-gradient(
            135deg,
            var(
                --encot-teal,
                #027975
            ),
            var(
                --encot-teal-dark,
                #075D59
            )
        );
}

.about-org-card-department
.about-org-card-details h3 {
    font-size: 15px;
}

.about-org-card-department
.about-org-card-details p {
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| About Chart Action Buttons
|--------------------------------------------------------------------------
*/

.about-org-actions {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

.about-org-actions
.button {
    min-width: 215px;
}

/*
|--------------------------------------------------------------------------
| Working Together
|--------------------------------------------------------------------------
*/

.encot-about-working-together {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(245, 128, 33, 0.25),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(
                --encot-teal-deep,
                #064945
            ),
            var(
                --encot-teal-dark,
                #075D59
            )
        );

    color: #FFFFFF;
}

.encot-about-working-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 45px;
}

.encot-about-working-together
.eyebrow {
    color:
        var(
            --encot-orange,
            #F58021
        );
}

.encot-about-working-together h2 {
    max-width: 900px;

    margin: 0 0 15px;

    color: #FFFFFF;

    font-size:
        clamp(
            36px,
            5vw,
            58px
        );

    line-height: 1.04;
}

.encot-about-working-together p {
    max-width: 950px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 16px;
}

/*
|--------------------------------------------------------------------------
| General Tablet Responsiveness
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .hierarchy-horizontal-line,
    .hierarchy-team-branch,
    .hierarchy-line-to-team {
        display: none;
    }

    .hierarchy-team-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 24px;

        margin-top: 30px;
    }

    .hierarchy-card-department {
        max-width: 310px;
    }
}

@media (max-width: 1000px) {
    .governance-home-grid,
    .governance-feature,
    .governance-cta-grid,
    .encot-about-institution-grid,
    .encot-about-governance-card,
    .encot-about-working-grid {
        grid-template-columns: 1fr;
    }

    .governance-home-image {
        max-width: 850px;
    }

    .governance-feature-image img {
        min-height: 390px;
    }

    .board-members-grid,
    .management-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .governance-cta-grid
    .button,
    .encot-about-working-grid
    .button {
        justify-self: start;
    }

    .encot-about-brand-panel {
        min-height: 300px;
    }

    .encot-about-board-image,
    .encot-about-board-image img,
    .encot-about-board-placeholder {
        min-height: 390px;
    }

    /*
    | The About hierarchy stays in its exact order.
    | It scrolls horizontally instead of wrapping.
    */

    .about-org-chart {
        min-width: 1160px;
    }

    .about-org-heading h2 {
        font-size: 43px;
    }
}

/*
|--------------------------------------------------------------------------
| Dynamic Chart Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .org-shell {
        overflow: visible;

        padding: 8px 0;

        border: 0;

        background: transparent;

        box-shadow: none;
    }

    .org-chart {
        min-width: 0;

        display: block;
    }

    .org-chart ul,
    .org-chart li {
        display: block;

        width: 100%;

        padding: 0;
    }

    .org-chart ul ul {
        margin-top: 18px;

        padding-left: 24px;
    }

    .org-chart li {
        margin-bottom: 18px;
    }

    .org-chart li::before,
    .org-chart li::after,
    .org-chart ul ul::before {
        display: none;
    }

    .org-person {
        width:
            min(
                100%,
                330px
            );

        min-height: 0;

        display: grid;

        grid-template-columns:
            96px
            1fr;

        text-align: left;
    }

    .org-photo-wrap {
        padding: 12px;
    }

    .org-photo {
        width: 74px;
        height: 74px;
    }

    .org-person-copy {
        min-height: 100%;

        margin: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .leadership-hierarchy-section {
        padding: 64px 0;
    }

    .hierarchy-wrapper {
        padding:
            28px
            16px;

        border-radius: 22px;
    }

    .hierarchy-header {
        margin-bottom: 32px;
    }

    .hierarchy-header h2 {
        font-size: 38px;
    }

    .hierarchy-header p {
        font-size: 15px;
    }

    .hierarchy-team-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

/*
|--------------------------------------------------------------------------
| Mobile Responsiveness
|--------------------------------------------------------------------------
*/

@media (max-width: 680px) {
    .governance-home-image,
    .governance-home-image > img {
        min-height: 340px;
    }

    .governance-image-label {
        left: 14px;
        right: 14px;
        bottom: 14px;

        padding: 14px 15px;
    }

    .governance-home-copy h2 {
        font-size: 36px;
    }

    .governance-points,
    .governance-principles,
    .board-members-grid,
    .management-grid,
    .management-grid-executive {
        grid-template-columns: 1fr;
    }

    .governance-feature-copy {
        padding:
            28px
            21px;
    }

    .person-profile-card {
        width: 100%;
        max-width: 390px;

        margin: 0 auto;
    }

    .encot-about-institution-copy h2 {
        font-size: 38px;
    }

    .encot-about-brand-panel {
        min-height: 270px;

        padding:
            28px
            22px;

        border-radius: 21px;
    }

    .encot-about-governance-card {
        border-radius: 21px;
    }

    .encot-about-board-image,
    .encot-about-board-image img,
    .encot-about-board-placeholder {
        min-height: 300px;
    }

    .encot-about-governance-copy {
        padding:
            30px
            21px;
    }

    .encot-about-working-grid
    .button {
        width: 100%;
    }

    /*
    |--------------------------------------------------------------------------
    | About Chart Mobile
    |--------------------------------------------------------------------------
    | The cards are not reordered or stacked.
    | The visitor swipes horizontally to view the full structure.
    |--------------------------------------------------------------------------
    */

    .about-org-heading {
        margin-bottom: 32px;
    }

    .about-org-heading h2 {
        font-size: 33px;
    }

    .about-org-heading p {
        font-size: 15px;
    }

    .about-org-scroll {
        width:
            calc(
                100% + 26px
            );

        margin-inline: -13px;

        padding-inline: 13px;
    }

    .about-org-chart {
        min-width: 1120px;

        padding:
            28px
            24px;

        border-radius: 22px;
    }
}

/*
|--------------------------------------------------------------------------
| Very Small Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {
    .hierarchy-header h2 {
        font-size: 31px;
    }

    .hierarchy-kicker {
        font-size: 11px;

        letter-spacing: 0.10em;
    }

    .hierarchy-team-grid {
        grid-template-columns: 1fr;
    }

    .hierarchy-card,
    .hierarchy-card-chairman,
    .hierarchy-card-executive,
    .hierarchy-card-department {
        max-width: 330px;
    }

    .hierarchy-line-chairman {
        height: 34px;
    }

    .about-org-actions {
        align-items: stretch;
        flex-direction: column;

        max-width: 340px;

        margin-inline: auto;
        margin-top: 34px;
    }

    .about-org-actions
    .button {
        width: 100%;
        min-width: 0;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .person-profile-card,
    .hierarchy-card,
    .about-org-card {
        transition: none;
    }

    .person-profile-card:hover,
    .hierarchy-card:hover,
    .about-org-card:hover {
        transform: none;
    }
}