/* Team Widget Styles - Cleaned Version */

/* Base Profile Card Styles */
.lcake-profile-card {
    background-color: #fff;
    box-shadow: 0 28px 40px 0 rgba(0,0,0,.1);
    padding: 40px 20px;
    transition: all .4s ease;
    position: relative;
}

.lcake-profile-card.text-center .lcake-profile-header {
    margin-left: auto;
    margin-right: auto;
}

.lcake-profile-card:hover {
    box-shadow: 0 42px 60px 0 rgba(0,0,0,.3);
}

.lcake-profile-card:hover .lcake-profile-body .lcake-profile-title {
    color: #2575fc;
}

/* Profile Icon Styles */
.lcake-profile-icon {
    display: inline-flex;
    position: relative;
    z-index: 0;
}

.lcake-profile-icon[class*=icon-align-] {
    display: flex;
}

.lcake-profile-icon.icon-align-start {
    justify-content: flex-start;
}

.lcake-profile-icon.icon-align-center {
    justify-content: center;
}

.lcake-profile-icon.icon-align-end {
    justify-content: flex-end;
}

.lcake-profile-icon svg {
    max-width: 60px;
    height: auto;
    vertical-align: middle;
}

.lcake-profile-icon > i {
    display: block;
    width: 60px;
    height: 60px;
    color: #fff;
    background-color: #fc0467;
    border-radius: 50%;
    font-size: 22px;
    line-height: 50px;
    text-align: center;
    transition: all .4s ease;
}

/* Profile Body Styles */
.lcake-profile-body {
    padding-bottom: 20px;
}

.lcake-profile-body .lcake-profile-title {
    font-size: 22px;
    color: #000;
    margin: 0;
}

.lcake-profile-body .lcake-profile-title > a {
    color: inherit;
}

.lcake-profile-body .lcake-profile-designation {
    color: rgba(0,0,0,.5);
    font-size: 13px;
    transition: all .4s ease;
    margin-bottom: 15px;
}

/* Profile Header Styles */
.lcake-profile-header {
    margin-bottom: 38px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
}

.lcake-profile-header > img {
    width: 160px;
    height: 160px;
    transition: all .4s ease;
}

/* Image Card Styles */
.lcake-profile-image-card {
    position: relative;
    overflow: hidden;
}

.lcake-profile-image-card .lcake-team-popup-image {
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

.lcake-profile-image-card::before {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,.7);
    transition: all .4s ease .2s;
    z-index: 1;
    backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
}

.lcake-profile-image-card .hover-area,
.lcake-profile-image-card .lcake-hover-area {
    position: absolute;
    top: 50%;
    transform: translateY(-20%);
    z-index: 2;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.lcake-profile-image-card .lcake-hover-area .lcake-profile-title,
.lcake-profile-image-card .lcake-hover-area .lcake-profile-designation,
.lcake-profile-image-card .lcake-hover-area .lcake-profile-content {
    color: #fff;
}

.lcake-profile-image-card:hover .lcake-hover-area {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    transition: all .3s ease .1s;
}

.lcake-profile-image-card:hover::before {
    top: 0;
    opacity: 1;
    visibility: visible;
    transition: all .4s ease 0s;
}

/* Image Card Variations */
.lcake-image-card-v2 .lcake-profile-image-card::before {
    background-color: #123075;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
    transform: scale(2);
    opacity: 0;
}

.lcake-image-card-v2 .lcake-profile-image-card:hover::before {
    opacity: .93;
    transform: scale(1);
}

.lcake-image-card-v2 .lcake-profile-image-card .lcake-hover-area {
    padding-left: 50px;
    padding-right: 50px;
}

.lcake-image-card-v2 .lcake-profile-image-card .lcake-profile-body .lcake-border-hr {
    background-color: rgba(255,255,255,.6);
    margin-bottom: 25px;
}

.lcake-image-card-v2 .lcake-profile-image-card .lcake-profile-body .lcake-profile-content {
    color: #fff;
}

.lcake-image-card-v2.lcake-style-circle .lcake-profile-image-card::before {
    border-radius: inherit;
}

.lcake-image-card-v2.lcake-style-circle .lcake-profile-image-card::after {
    content: " ";
    display: block;
    padding-bottom: 100%;
}

.lcake-image-card-v2.lcake-style-circle .lcake-profile-image-card > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lcake-image-card-v3 .lcake-profile-image-card::before {
    display: none;
}

.lcake-image-card-v3 .lcake-profile-image-card::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: #111;
    opacity: 0;
    transition: all .4s ease;
    pointer-events: none;
}

.lcake-image-card-v3 .lcake-profile-image-card .lcake-hover-area {
    top: inherit;
    bottom: 0;
    transform: none;
}

.lcake-image-card-v3 .lcake-profile-image-card:hover .lcake-hover-area {
    transform: translateY(-40px);
}

.lcake-image-card-v3 .lcake-profile-image-card:hover::after {
    opacity: .8;
}

.lcake-image-card-v3.small-gutters {
    margin-left: -13px;
    margin-right: -13px;
}

.lcake-image-card-v3.small-gutters > [class^=col-] {
    padding-left: 3px;
    padding-right: 3px;
    margin-bottom: 6px;
}

/* Profile Square Variations */
.lcake-profile-square-v .lcake-profile-card {
    padding: 20px 20px 40px;
    z-index: 1;
}

.lcake-profile-square-v .lcake-profile-card::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #123075;
    opacity: 0;
    transition: all .4s ease;
    z-index: -1;
    background-size: 101% 102%;
    backface-visibility: hidden;
}

.lcake-profile-square-v .lcake-profile-card .lcake-profile-header {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.lcake-profile-square-v .lcake-profile-card .lcake-profile-content {
    transition: all .4s ease;
}

.lcake-profile-square-v .lcake-profile-card:hover::before {
    opacity: 1;
}

.lcake-profile-square-v .lcake-profile-card:hover .lcake-profile-body .lcake-profile-designation,
.lcake-profile-square-v .lcake-profile-card:hover .lcake-profile-body .lcake-profile-title {
    color: #fff;
}

.lcake-profile-square-v .lcake-profile-card:hover .lcake-profile-content {
    color: #fff;
}

/* Square Variations */
.lcake-profile-square-v.square-v2 .lcake-profile-card::before {
    display: none;
}

.lcake-profile-square-v.square-v2 .lcake-profile-card:hover {
    background-color: #fff;
}

.lcake-profile-square-v.square-v2 .lcake-profile-card:hover .lcake-profile-body .lcake-profile-title {
    color: #2575fc;
}

.lcake-profile-square-v.square-v2 .lcake-profile-card:hover .lcake-profile-body .lcake-profile-designation {
    color: #656565;
}

.lcake-profile-square-v.square-v3 .lcake-profile-card:hover {
    box-shadow: 0 28px 40px 0 rgba(0,0,0,.1);
}

.lcake-profile-square-v.square-v4 .lcake-profile-card {
    max-height: 380px;
    overflow: hidden;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card::before {
    display: none;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card .lcake-profile-header {
    margin-bottom: 0;
    max-width: 255px;
    max-height: 255px;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card.text-left .lcake-profile-header img {
    left: 0;
    transform: translate(0,-50%);
}

.lcake-profile-square-v.square-v4 .lcake-profile-card.text-right .lcake-profile-header img {
    left: auto;
    right: 0;
    transform: translate(0,-50%);
}

.lcake-profile-square-v.square-v4 .lcake-profile-card .lcake-profile-body {
    margin-bottom: 0;
    padding: 35px 20px;
    transition: all .4s ease;
    position: relative;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card .lcake-profile-body::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #123075;
    opacity: 0;
    transition: all .4s ease;
    z-index: -1;
    background-size: 101% 102%;
    backface-visibility: hidden;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card .lcake-profile-body .lcake-team-social-list {
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card:hover {
    box-shadow: none;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card:hover .lcake-profile-body {
    transform: translateY(-50px);
}

.lcake-profile-square-v.square-v4 .lcake-profile-card:hover .lcake-profile-body::before {
    opacity: 1;
}

.lcake-profile-square-v.square-v4 .lcake-profile-card:hover .lcake-profile-body .lcake-team-social-list {
    opacity: 1;
    visibility: visible;
}

.lcake-profile-square-v.square-v5 .lcake-profile-card {
    padding-bottom: 50px;
}

.lcake-profile-square-v.square-v5 .lcake-profile-card .lcake-profile-body,
.lcake-profile-square-v.square-v5 .lcake-profile-card .lcake-profile-header {
    padding-bottom: 0;
}

.lcake-profile-square-v.square-v5 .lcake-profile-card .lcake-profile-body {
    padding: 32px 60px;
}

.lcake-profile-square-v.square-v6 .lcake-profile-card {
    padding-bottom: 35px;
}

.lcake-profile-square-v.square-v6 .lcake-profile-card::after {
    position: absolute;
    content: "";
    height: 5px;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: #2965f1;
    opacity: .2;
    transition: all .4s ease;
}

.lcake-profile-square-v.square-v6 .lcake-profile-card .lcake-profile-body,
.lcake-profile-square-v.square-v6 .lcake-profile-card .lcake-profile-header {
    margin-bottom: 0;
}

.lcake-profile-square-v.square-v6 .lcake-profile-card .lcake-profile-body {
    padding: 40px;
}

.lcake-profile-square-v.square-v6 .lcake-profile-card:hover {
    box-shadow: 0 28px 40px 0 rgba(0,0,0,.1);
}

.lcake-profile-square-v.square-v6 .lcake-profile-card:hover::after {
    opacity: 1;
}

.lcake-profile-square-v.square-v6.square-v6-v2 .lcake-profile-card::after {
    display: none;
}

.lcake-profile-square-v.square-v6.square-v6-v2 .lcake-profile-card::before {
    opacity: 0;
    background-size: 101% 101%;
}

.lcake-profile-square-v.square-v6.square-v6-v2 .lcake-profile-card:hover::before {
    opacity: 1;
}

.lcake-profile-square-v.square-v6.square-v6-v2 .lcake-profile-card:hover .lcake-profile-body .lcake-profile-title {
    color: #fff;
}

.lcake-profile-square-v.square-v6.square-v6-v2 .lcake-profile-card:hover .lcake-profile-body .lcake-profile-content,
.lcake-profile-square-v.square-v6.square-v6-v2 .lcake-profile-card:hover .lcake-profile-body .lcake-profile-designation {
    color: #fff;
}

/* Utility Classes */
.small-gutters .lcake-profile-card {
    padding: 10px 10px 40px;
}

.no_gutters .lcake-profile-card {
    padding: 0;
}

.lcake-style-circle .lcake-profile-image-card {
    width: 255px;
    height: 255px;
    border-radius: 50%;
}

.lcake-style-circle .lcake-profile-image-card.text-center {
    margin-left: auto;
    margin-right: auto;
}

.lcake-text-center .lcake-profile-header {
    margin-left: auto;
    margin-right: auto;
}

/* Team Style Specific */
.lcake-team-style-default::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent !important;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s;
    z-index: -1;
}

.lcake-team-style-default:hover::before {
    opacity: 1;
}

.lcake-team-style-long_height_hover > img,
.lcake-team-style-overlay > img,
.lcake-team-style-overlay_details > img {
    display: block;
}

.lcake-team-style-long_height_details {
    overflow: hidden;
}

.lcake-team-style-hover_info .lcake-team-img {
    padding-top: 0 !important;
}

.lcake-team-style-centered_style_details .lcake-profile-designation,
.lcake-team-style-long_height_details .lcake-profile-designation,
.lcake-team-style-long_height_details_hover .lcake-profile-designation {
    margin-bottom: 30px;
}

.lcake-team-style-hover_info .lcake-profile-designation {
    margin-bottom: 25px;
}

.lcake-team-style-overlay_circle_hover .lcake-profile-designation,
.lcake-team-style-overlay_details .lcake-profile-designation {
    margin-bottom: 12px;
}

.lcake-team-img > img {
    margin-left: auto;
    margin-right: auto;
    border-radius: inherit;
}

.lcake-team-img.lcake-profile-header > img {
    object-fit: cover;
}

.lcake-team-img.lcake-profile-image-card > img {
    width: 100%;
}

.lcake-team-img-block > img {
    display: block;
}

.lcake-team-img-fit > .lcake-profile-image-card > img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Social List Styles */
.lcake-team-social-list {
    list-style: none;
}

.lcake-team-social-list > li {
    display: inline-block;
}

.lcake-team-social-list > li:not(:last-child) {
    margin-right: 10px;
}

.lcake-team-social-list > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 32px;
    height: 32px;
    font-size: 14px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
}

.lcake-team-social-list > li > a:hover {
    border-radius: 50%;
}

.lcake-team-social-list > li > a:hover > i::before,
.lcake-team-social-list > li > a:hover > svg {
    animation: iconTranslateY .4s forwards;
}

.lcake-team-social-list > li > a svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.lcake-team-social-list > li > a > i {
    overflow: hidden;
}

.lcake-team-social-list > li > a > i::before {
    display: inline-block;
    backface-visibility: hidden;
}

.lcake-team-social-label {
    display: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.lcake-team-social-list > li > a:hover .lcake-team-social-label {
    display: block;
}

/* Image Overlay */
.lcake-img-overlay {
    position: relative;
    overflow: hidden;
}

.lcake-img-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.lcake-img-overlay:hover::before {
    opacity: 1;
}

/* Modal Styles */
.lcake-team-modal {
    /* Defer visibility/positioning to Bootstrap's .modal */
}

/* Bootstrap handles .modal.show display/visibility */
.lcake-team-modal.lcake-team-modal-open {}

/* Use Bootstrap's .modal-backdrop instead of custom backdrop */
.lcake-team-backdrop {}

/* Use Bootstrap's body.modal-open */
.lcake-modal-open {}

.lcake-team-modal .modal-dialog {
    justify-content: center;
    position: relative;
    width: auto;
    max-width: 90%;
    margin: 1.75rem auto;
    z-index: 9999;
}

.lcake-team-modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: row; /* desktop: image + info side-by-side */
    width: 50%;
    max-width: 900px; /* limits full-size on large screens */
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    outline: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.lcake-team-modal .modal-body {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    flex: 1 1 auto;
    padding: 1rem;
    box-sizing: border-box;
}

@keyframes lcake-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lcake-team-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10000;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

.lcake-team-modal-close.lcake-team-close-btn-align-left {
    left: 10px;
    right: auto;
}
.lcake-team-modal-close.lcake-team-close-btn-align-right {
    left: auto;
    right: 10px;
}
.lcake-team-modal-close:hover {
    color: #000;
}

/* Modal Content Styles */
.lcake-team-modal-title {
    margin-top: 0;
    margin-bottom: 8px;
    color: #000;
    font-size: 22px;
}

.lcake-team-modal-position {
    margin-bottom: 35px;
    color: rgba(0,0,0,.5);
    font-size: 13px;
}

.lcake-team-modal-img {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.lcake-team-modal-img > img {
    display: block;
    width: 100%;
    box-shadow: 0 28px 40px 0 rgba(0,0,0,.1);
}

.lcake-team-modal-info {
    flex: 1 1 66.6667%;
}

.lcake-team-modal-info .lcake-team-social-list > li > a {
    line-height: 32px;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
}

.lcake-team-modal-info .lcake-team-social-list > li > a svg {
    max-width: 12px;
    height: auto;
    vertical-align: middle;
}

.lcake-team-modal-content {
    margin-bottom: 22px;
}

.lcake-team-modal-content p:not(:last-child) {
    margin-bottom: 10px;
}

.lcake-team-modal-list {
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
    color: #656565;
    font-size: 15px;
}

.lcake-team-modal-list > li {
    padding: 19px 0;
    border-top: 1px solid rgba(0,0,0,.05);
}

.lcake-team-modal-list > li:last-child {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.lcake-team-modal-list strong {
    font-weight: 600;
    padding-right: 18px;
}

.lcake-team-modal-list a {
    color: inherit;
}

.lcake-team-modal-list a:hover {
    color: #2575fc;
}

.lcake-team-popup {
    transition: color .3s;
}

/* Responsive Styles */
@media screen and (min-width: 481px) {
    .lcake-team-modal-img {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .lcake-team-modal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }

    .lcake-team-modal .modal-content {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        border-radius: 6px;
    }

    .lcake-team-modal .modal-body {
        flex-direction: column;
        padding: 0.75rem;
    }

    .lcake-team-modal-img,
    .lcake-team-modal-info {
        max-width: 100%;
        flex: 0 0 auto;
        width: 100%;
    }

    .lcake-team-modal-img > img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .lcake-team-modal-close {
        top: 8px;
        right: 10px;
        font-size: 22px;
        padding: 6px;
    }
}

/* Animation Keyframes */
@keyframes iconTranslateY {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-2px);
    }
}