.ceo-section {
    padding: 40px;
    background-color: transparent;
}
    .section-label {
        font-family: sans-serif;
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: #333;
        text-align: left;
    }

/*Card CSS*/
    .employee-card {
        width: 300px;
        margin: 0;
        border-radius: 40px;
        background-color: transparent;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .portrait-container {
        width: 100%;
        height: 350px;
        background-color: transparent;
    }

    .portrait-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;    
        display: block;
    }

    /* Text Area */
    .text-container {
        padding: 20px;
        text-align: center; 
    }

    .name {
        margin: 0;
        font-size: 1.1rem;
        color: #000;
    }

    .title {
        margin: 5px 0 0;
        font-size: 0.9rem;
        color: #666;
    }


    .staff-section {
        padding: 40px 0;
        max-width: 1200px; 
        margin: 0;
    }

    .group-label {
        font-family: sans-serif;
        font-size: 1.5rem;
        margin-bottom: 30px;
        color: #333;
    }

    /* Grid Setup: 4 across */
    .staff-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 40px 20px; 
    }

    /* --- THE CARD --- */
    .staff-card {
        background-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
    }

    .position-above {
        margin: 0 0 10px 0;
        font-size: 0.95rem;
        font-weight: bold;
        color: #333;
        font-family: sans-serif;
        height: 5em;
    }

    .portrait-box {
        width: 100%;
        height: 300px;
        border-radius: 40px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        background-color: transparent;
    }

    .portrait-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;    
        display: block;
    }

    .name-box {
        padding: 15px 5px;
        width: 100%;
    }

    .employee-name {
        margin: 0;
        font-size: 1.1rem;
        color: #000;
        font-family: sans-serif;
        font-weight: normal;
    }

@media screen and (max-width: 1500px) {
.staff-grid {
    grid-template-columns: repeat(2, 1fr);
}

.CSR-Layout {
    grid-template-columns: repeat(2, 1fr);
}

.empty-slot{
    display:none;
}
}


    @media (max-width: 1000px) {
        .staff-grid {
            grid-template-columns: 1fr;
        }
    }


/*Branding. Change this if bank doesnt like colors*/
:root {
--brand-red: #800000;
--text-main: #1a1a1a;
--text-muted: #666;
--bg-white: #ffffff;
--transition-speed: 0.35s;
}

.staff-section-container {
    padding: 60px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.staff-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-main);
    text-align: center;
}

.staff-layout-wrapper {
    display: grid;
    gap: 20px;
    width: 100%;
    align-items: start;
}

.staff-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 20px;
}

.staff-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 4px;
    width: 100%;
}

.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    display: block;
}

.staff-card:hover .staff-image {
    transform: scale(1.08);
}

.name-plate {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 12px 15px;
    box-sizing: border-box;
    height: 90px;
    transition: height var(--transition-speed) ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 3px solid var(--brand-red);
    z-index: 2;
}

.large-card .name-plate {
    height: 80px;
    padding: 18px;
}

.staff-card:hover .name-plate {
    height: 150px;
}
.large-card:hover .name-plate {
    height: 135px;
}

.staff-name {
    display: block;
    font-weight: bold;
    font-size: .65em;
    color: var(--text-main);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 5em;
}

.large-card .staff-name {
    font-size: 1.3rem;
}

.staff-title {
    display: block;
    font-size: 0.75rem;
    color: var(--brand-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.large-card .staff-title {
    font-size: 0.9rem;
}

.staff-extra {
    display: block;
    font-weight: normal;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.3;
}

.large-card .staff-extra {
    font-size: 0.85rem;
}

.staff-card:hover .staff-extra {
    opacity: 1;
}

        
@media screen and (max-width: 1500px) {
.staff-layout-wrapper {
    grid-template-columns: 1fr; 
    max-width: 800px;
}
.staff-small-grid {
    grid-template-columns: repeat(2, 1fr);
}

.triplet-slots {
    grid-template-columns: repeat(1, 1fr);
}
}

@media screen and (max-width: 1000px) {
.staff-section-container {
    padding: 40px 15px;
    }
.staff-small-grid {
    grid-template-columns: 1fr;
}
    .staff-main-title {
font-size: 1.8rem;
    }
.staff-layout-wrapper {
    gap: 15px;
}
}

.htmlModuleWrap img {
    max-width: 100%;
    width: 100%;
}

.mod-safe-area {
    position: relative;
    display: block;
    max-width: 80%;
    width: 100%;
    margin: 0 auto;
    padding: 0em
}

/*CSR Layout*/
.CSR-Layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 20px;
}



.staff-6-col-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
    align-items: start;
}
        
@media screen and (max-width: 1500px) {
.staff-6-col-grid {
    grid-template-columns: repeat(3, 1fr);
}

.CSR-Layout {
    grid-template-columns: repeat(2, 1fr);
}

}


@media screen and (max-width: 1200px) {
.CSR-Layout {
    grid-template-columns: repeat(2, 1fr);
}
}

@media screen and (max-width: 1000px) {
.CSR-Layout {
    grid-template-columns: repeat(1, 1fr);
}
}

@media screen and (max-width: 768px) {
.staff-6-col-grid {
    grid-template-columns: repeat(2, 1fr);
}

.CSR-Layout {
    grid-template-columns: repeat(1, 1fr);
}
}



@media screen and (max-width: 480px) {
.staff-6-col-grid {
    grid-template-columns: 1fr;
}
}
.staff-column .staff-card{
    margin-bottom: 30px;
}

/*General Employees*/

.staff-section-triplets {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 40px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Container for the horizontal row of sections */
.staff-row-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.empty-slot {
    background-color: transparent;
    aspect-ratio: 1/1;
    border-radius: 4px;
}


.staff-type-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.triplet-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.type-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 5px;
    width: 100%;
}

@media screen and (max-width: 1550px) {
    .triplet-slots {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: 100%;

}
.staff-name{
    overflow: auto;
}
}

@media screen and (max-width: 600px) {
    .triplet-slots {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        width: 100%;
    }

    .name-plate {
        height: 80px;
    }
}

@media screen and (max-width: 1050px) {
.staff-row-container{
    flex-direction: column;
}
}