.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    background-color: var(--bs-primary);
    color: #fff;
    border-color: transparent
}

.leadership_sec {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 10%, rgba(255, 243, 227, 1) 75%);
}

.leadership_sec .profile-card {
    border: 1px solid var(--bs-primary);
    border-radius: 20px;
    height: 100%;
}

.leadership_sec .profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 0;
}

.leadership_sec .profile-img img {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    width: calc(100% - 10px);
    height: 100%;
    object-position: center;
}

.leadership_sec .profile-card .card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.leadership_sec .profile-card .profile-name {
    font-size: 22px;
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.leadership_sec .profile-card .card-text {
    color: #1A1A18;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/*Head Profile*/
.head-sec {
    background: linear-gradient(180deg, rgba(255, 243, 227, 1) 50%, rgba(255, 255, 255, 1) 90%);
}

/* .head-profile {
    height: 450px;
    padding: 0 0 20px 0;
    border-radius: 20px;
    border: 1px solid var(--bs-primary);
    text-align: center;
    position: relative;
    transition: background-color 0.4s ease-in-out;
    background-color: #fff;
}

.head-img {
    width: 100%;
    object-fit: cover;
    
}

.head-img img {
    width: 100%;
    height: 280px;
    transition: opacity 0.4s ease-in-out;
    border-radius: 20px 20px 0 0;
}

.initial-view h5 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bs-primary);
}

.initial-view h6 {
    font-size: 19px;
    color: #1A1A18;
    font-weight: 500;
}

.initial-view {
    max-height: 330px;
    overflow-y: auto;
}

.head-text {
    color: #1A1A18;
    font-size: 16px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0s ease-in-out, max-height 0.4s ease-in-out;
    margin: 0;
}

.btn-head {
    margin-top: 15px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.head-profile.active {
    background-color: #fff;
    padding: 20px 10px;
}

.head-profile.active .head-text {
    opacity: 1;
    max-height: 100%;
}


.head-profile.active .head-img {
    opacity: 0;
    height: 0;
} */
.head-sec .head-profile {
    height: 400px;
    padding: 0 0 20px 0;
    border-radius: 20px;
    border: 1px solid var(--bs-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease-in-out;
    background-color: #fff;
    z-index: 0;
}

.head-sec .head-img {
    width: 100%;
    object-fit: cover;
    transition: opacity 0s ease-in-out, max-height 0.4s ease-in-out;
}

.head-sec .head-img img {
    width: 100%;
    height: 250px;
    transition: opacity 0.4s ease-in-out;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    object-position: top;
    padding-bottom: 10px;
}

.head-sec .btn-head {
    margin-top: 15px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1;
}

.head-sec .initial-view h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-primary);
}

.head-sec .initial-view h6 {
    font-size: 18px;
    color: #1A1A18;
    font-weight: 500;
}

.head-sec .initial-view {
    position: absolute;
    left: 0;
    bottom: 0px;
    right: 0;
    background-color: #fff;
    max-height: 150px;
    height: 100%;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.head-sec .head-text {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

.head-sec .head-profile.active .initial-view {
    max-height: 100%;
    height: 100%;
    z-index: 0;
    padding: 20px 10px;

}

.head-sec .head-profile.active .initial-content {
    overflow-y: auto;
    max-height: 320px;
    padding: 0;
}

.head-sec .initial-content {
    padding: 0 18px;
}

.head-sec .head-profile.active .head-text {
    opacity: 1;
    max-height: 100%;
}

@media (max-width: 991px) {
    .leadership_sec .profile-img {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: auto;
        padding: 0;
        text-align: center;
    }

    .leadership_sec .profile-img img {
        position: static;
        bottom: 0;
        left: 20px;
        right: 20px;
        width: auto;
        height: 250px;
        object-position: center;
    }

}

@media (max-width: 767px) {
    .leadership_sec .profile-card .card-title {
        font-size: 18px;
    }

    .leadership_sec .profile-card .profile-name {
        font-size: 20px;
    }

    .head-sec .initial-view h5 {
        font-size: 18px;
    }


    .head-sec .head-img img {
        width: 200px;
        height: 200px;
        border-radius: 0;
    }

    .head-sec .head-profile {
        height: 330px;

    }

    .head-sec .head-profile.active .initial-content {
        max-height: 270px;
    }

    .head-sec .initial-view {
        max-height: 130px;

    }
               
}

@media (max-width: 576px) {
    .head-sec .initial-view h6 {
        font-size: 17px;
    }

    .head-sec .initial-view {
        max-height: 120px;

    }
    .head-sec .head-profile {
        height: 320px;

    }
         .head-sec .head-profile.active .initial-content {
             max-height: 240px;
         }
}
.profile-top {
    margin-top: 120px;
    flex-direction: column;
    align-items: flex-start !important;
    padding: 0 160px 12px 12px;
    background: linear-gradient(90deg, #F28F01 0%, #EB6502 100%);
    border-radius: 10px;
}
.profile-top .profile-top-icon {
    min-width: 70px;
    max-width: 120px !important;
    margin: -35px 0 10px;
}
.profile-top .profile-top-info .badge {
    background-color: #fff !important;
    color: var(--bs-primary) !important;
}
.profile-top .profile-top-info h3{
    color: #ffffff !important;
    font-size: 1.75rem !important;
}
.profile-top-img {
    width: 176px;
    position: absolute;
    bottom: 0;
    right: 20px;
}
.profile-top .profile-top-info p {
    font-size: 1rem !important;
}