/* Board of Directors Custom Styles */

.board_of_directors {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.board_of_directors .bodCol {
    width: calc(24% - 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    /*background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);*/
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 385px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.board_of_directors .bodCol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /*background: linear-gradient(90deg, #fb8f1f 0%, #ff6b35 100%);*/
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.board_of_directors .bodCol:hover::before {
    transform: scaleX(1);
}

.board_of_directors .bodCol:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(251, 143, 31, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(251, 143, 31, 0.2);
}

.board_of_directors .bodCol .director-image-wrapper {
    width: 100%;
    position: relative;
    height: 250px;
    overflow: hidden;
    /* background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);*/
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.board_of_directors .bodCol .director-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    /*background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);*/
    opacity: 0;
    transition: opacity 0.4s ease;
}

.board_of_directors .bodCol:hover .director-image-wrapper::after {
    opacity: 1;
}

.board_of_directors .bodCol .director-image-wrapper .director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: grayscale(0%) brightness(1);
}

.board_of_directors .bodCol:hover .director-image-wrapper .director-img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.05);
}

.board_of_directors .bodCol .director-more-btn {
    position: relative;
    margin: auto 0px 18px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #fb8f1f 0%, #ff6b35 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(251, 143, 31, 0.3);
}

.board_of_directors .bodCol .director-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #fb8f1f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.board_of_directors .bodCol .director-more-btn:hover::before {
    opacity: 1;
}

.board_of_directors .bodCol .director-more-btn i {
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.board_of_directors .bodCol .director-more-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 24px rgba(251, 143, 31, 0.45);
}

.board_of_directors .bodCol .director-more-btn:hover i {
    transform: rotate(-90deg);
}

.board_of_directors .bdinfo {
    margin-top: 0.8rem;
    padding: 0 1.2rem 0;
    text-align: center;
    width: 100%;
    flex-grow: 1;
}

.board_of_directors .bdinfo h4 {
    color: #1a1a1a;
    font-size: 17px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.board_of_directors .bodCol:hover .bdinfo h4 {
    color: #fb8f1f;
}

.board_of_directors .bdinfo p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    height: 50px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.board_of_directors .bodCol:hover .bdinfo p {
    color: #495057;
}

/* Director Modal Styles */
.director-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
}

.director-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.director-modal .director-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 70%;
    max-width: 750px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.director-modal .director-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.director-modal .director-modal-close:hover {
    background-color: #f0f0f0;
    color: #000;
}

.director-modal .director-modal-body {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.director-modal .director-modal-body .director-modal-image {
    width: 180px;
    height: 180px;
    /* margin: -80px auto 0; */
    background-color: #fff;
    border-radius: 100%;
    /*box-shadow: 0px 3px 15px #1d1d1d2e;*/
    /* top: -50%;
    left: 35%;
    position: absolute;
    flex-shrink: 0; */
}

.director-modal .director-modal-body .director-modal-image img {
    /* width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; */
    width: 100%;
    height: 100%;
    border-radius: 100%;
    object-fit: cover;
    object-position: top;
    border: 4px solid #fb8f1f;
}

.director-modal .director-modal-body .director-modal-info {
    flex: 1;
    text-align: left;
    padding-right: 30px;
}

.director-modal .director-modal-body .director-modal-info h2 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.director-modal .director-modal-body .director-modal-info h4 {
   color: #888;
    font-size: 16px;
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.director-modal .director-modal-body .director-modal-info p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media only screen and (max-width: 1200px) {
    .board_of_directors .bodCol {
        width: calc(33.33% - 1.5rem);
        min-height: 400px;
    }
    
    .board_of_directors .bodCol .director-image-wrapper {
        height: 260px;
    }
    .director-img{
        object-fit: contain !important;
    }
}

@media only screen and (max-width: 999px) {
    
    .board_of_directors .bodCol {
        width: calc(33.33% - 1rem);
        min-height: 380px;
    }
    
    .board_of_directors .bodCol .director-image-wrapper {
        height: 260px;
    }
    .director-img{
        object-fit: contain !important;
    }
    .board_of_directors .bdinfo h4 {
        font-size: 15px;
    }
    
    .board_of_directors .bdinfo p {
        font-size: 12px;
    }
}

@media only screen and (max-width: 759px) {
        .board_of_directors .bodCol {
        width: calc(50% - 0.75rem);
        min-height: 360px;
    }
    
    .board_of_directors .bodCol .director-image-wrapper {
        height: 260px;
    }
    .director-img{
        object-fit: contain !important;
    }
    .board_of_directors .bodCol .director-more-btn {
        width: 28px;
        height: 28px;
        margin: auto 0px 12px;
    }

    .board_of_directors .bodCol .director-more-btn i {
        font-size: 13px;
    }
    
    .board_of_directors .bdinfo {
        padding: 0 0.5rem 0;
    }
    
    .board_of_directors .bdinfo h4 {
        font-size: 14px;
    }
    
    .board_of_directors .bdinfo p {
        font-size: 11px;
    }

    .director-modal .director-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .director-modal .director-modal-body {
        flex-direction: column;
        padding: 40px 25px;
        gap: 25px;
    }

    .director-modal .director-modal-body .director-modal-image {
        text-align: center;
        width: 100%;
    }

    .director-modal .director-modal-body .director-modal-image img {
        width: 180px;
        height: 180px;
    }

    .director-modal .director-modal-body .director-modal-info {
        padding-right: 0;
    }

    .director-modal .director-modal-body .director-modal-info h2 {
        font-size: 1.8rem;
    }

    .director-modal .director-modal-body .director-modal-info h4 {
        font-size: 1.05rem;
    }

    .director-modal .director-modal-body .director-modal-info p {
        font-size: 0.95rem;
    }

    .director-modal .director-modal-close {
        right: 15px;
        top: 15px;
        font-size: 36px;
        width: 45px;
        height: 45px;
    }
    #modalDirectorDescription {
        height: calc(40vh - 150px) !important;
    }
}

@media only screen and (max-width: 620px) {
    .board_of_directors .bodCol {
        width: 100%;
        max-width: 400px;
        min-height: 380px;
    }
    
    .board_of_directors .bodCol .director-image-wrapper {
        
        height: 260px;
    }
    .director-img{
        object-fit: contain !important;
    }
}

#modalDirectorDescription{
    height: calc(80vh - 300px);
    overflow-y: auto;
    font-size: 14px;
    font-weight: 300;
    color: #212121;
}
