.popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    display: none;
    background-color: rgba(38, 43, 56, 0.72);
    /*backdrop-filter: blur(7px);*/
}

.popup-main-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: relative;
}

.popup-close {
    color: var(--secondary-color);
    font-size: 15px;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: all 0.2s linear;
    border: none;
    z-index: 5;
}

.popup-close i {
    display: block;
}

.popup-close:hover {
    cursor: pointer;
    color: #a90000;
}

.popup-container {
    position: relative;
    width: 1000px;
    max-width: 95%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    /*border: 1px solid var(--border-color);*/
    display: flex;
    max-height: 85%;
}

.popup-image {
    flex: none;
    width: 40%;
    border-right: 1px solid var(--border-color);
}

.popup-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/*.popup-head {*/
/*    position: relative;*/
/*}*/

.popup-title {
    font-size: 25px;
    color: var(--secondary-color);
    font-weight: bold;
}

.popup-subtitle {
    font-size: 20px;
    color: var(--text-color);
    margin-top: 10px;
}

.popup-body {
    padding: 40px;
    background-color: white;
}

.popup-content {
    max-height: 80%;
    overflow-y: auto;
    margin-top: 30px;
    padding-right: 30px;
}

.popup-content::-webkit-scrollbar {
    width: 7px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius);
}

.popup-content::-webkit-scrollbar-track {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

@media screen and (max-width: 767.98px) {
    .popup-title {
        font-size: 22px;
    }

    .popup-subtitle {
        font-size: 18px;
    }
}

@media screen and (max-width: 575.98px) {
    .popup-container {
        flex-direction: column;
        max-height: 95%;
        height: 95%;
    }

    .popup-image {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .popup-body {
        padding: 30px;
        max-height: calc(95% - 300px);
    }

    .popup-content {
        padding-right: 20px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-close {
        top: 0;
        right: 0;
        width: 35px;
        height: 35px;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--border-radius);
    }
}

/* CEO Message Popup Styles */
.team-ceo-clickable {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.team-ceo-clickable:hover {
    transform: scale(1.05);
}

.ceo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.ceo-popup-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

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

.ceo-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.ceo-popup-close:hover {
    color: #ff4444;
}

.ceo-popup-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ceo-popup-header h3 {
    color: var(--secondary-color, #333);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ceo-popup-header h4 {
    color: var(--primary-color, #ff6b35);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.ceo-popup-message {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.ceo-popup-message p {
    margin-bottom: 20px;
    text-align: justify;
}

.ceo-popup-message p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .ceo-popup-content {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .ceo-popup-header h3 {
        font-size: 24px;
    }
    
    .ceo-popup-header h4 {
        font-size: 20px;
    }
    
    .ceo-popup-message {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .ceo-popup-content {
        padding: 25px 20px;
    }
    
    .ceo-popup-header h3 {
        font-size: 22px;
    }
    
    .ceo-popup-header h4 {
        font-size: 18px;
    }
    
    .ceo-popup-message {
        font-size: 14px;
    }
}
