/* Chairperson Page Styles */
.chairperson-banner {
    width: 100%;
    background-image: url('/images/chairman_bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    display: flex;
    height: 87px;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    margin-top: 100px;
    position: relative;
    gap: 40px;
    background-color: #E4F1F4;


    img {
        width: 206px;
        height: auto;
        display: block;
        position: absolute;
        bottom: 0;
        left: 42px;
    }

    .banner-info {
        flex: 1;
        z-index: 2;
        padding-left: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: -6px;

        .sub-text {
            color: #005770;
            font-size: 17px;
            font-style: normal;
            font-weight: 600;
            line-height: 2.2;
        }

        .name {
            color: #252525;
            font-size: 23px;
            font-style: normal;
            font-weight: 700;
            line-height: 70%;

        }
    }
}

.chairperson-info {
    padding: 0 10px;
    max-width: 900px;
    /* Limit content width slightly for readability */

    .info-section:first-of-type {
        margin-bottom: 47px;
    }

    .section-title {
        font-size: 22px;
        font-weight: 700;
        color: #252525;
        margin-bottom: 13px;
        line-height: 1.9;
        ;
        /* Optional: border-bottom? Screenshot doesn't clearly show one, but good for separation if needed. 
           Screenshot shows just spacing. */
    }

    .history-list {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            font-size: 18px;
            color: #454545;
            margin-bottom: 0;
            padding-bottom: 17px;
            padding-left: 35px;
            position: relative;
            line-height: 1.7;
            font-weight: 400;

            &::before {
                content: '';
                position: absolute;
                left: 8px;
                top: 13px;
                width: 6px;
                height: 6px;
                background-color: #005770;
                border-radius: 50%;
                z-index: 2;
            }

            /* Vertical Line */
            &::after {
                content: '';
                position: absolute;
                left: 10px;
                top: 13px;
                width: 1px;
                height: 100%;
                background-color: #BEC5C9;
                z-index: 1;
            }

            /* First item special styling (Halo effect) */
            &:first-child {
                &::before {
                    width: 10px;
                    height: 10px;
                    left: 6px;
                    top: 11px;
                    box-shadow: 0 0 0 4px rgba(0, 87, 112, 0.3);
                }

                &::after {
                    top: 13px;
                }
            }

            /* Remove line from last item */
            &:last-child::after {
                display: none;
            }
        }
    }
}

/* Chairperson Responsive */
@media (max-width: 1300px) {
    .chairperson-banner {
        height: auto;
        min-height: 120px;
        padding-left: 260px;

        img {
        }

        .banner-info {
            padding-left: 0;

            .sub-text {
                font-size: 15px;
            }

            .name {
                font-size: 20px;
            }
        }
    }
}

@media (max-width: 768px) {
    .chairperson-banner {
        flex-direction: column;
        text-align: center;
        padding: 130px 0px 30px 0px;
        /* Top padding for image space */
        height: auto;
        margin-top: 20px;
        /* Add margin top to prevent overlap if needed */
        margin-bottom: 30px;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
        background-color: transparent;
        background: none;

        img {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: auto;
            top: -10px;
            /* Pull image up */
            height: 150px;
            /* Adjust size */
            width: auto;
        }

        .banner-info {
            padding-left: 0;
            text-align: center;
            align-items: center;
            width: 100%;
            margin-top: 10px;
            background-color: #E4F1F4;
            padding: 10px 0;
            border-radius: 12px;

            .sub-text {
                font-size: 14px;
                line-height: 1.5;
            }

            .name {
                font-size: 18px;
                line-height: 1.2;
                word-break: keep-all;
            }
        }
    }

    .chairperson-info {
        padding: 0;

        .section-title {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .history-list li {
            font-size: 17px;
            padding-left: 25px;
            padding-bottom: 15px;
            font-weight: 500;
            word-break: keep-all;

            &::before {
                left: 0;
                top: 10px;
            }

            &::after {
                left: 2px;
                top: 10px;
            }

            &:first-child::before {
                left: -2px;
                top: 8px;
            }
        }
    }
}