/* =========================================
   MHB Team Popup — Card Hover & Modal
   ========================================= */

/* --- Card hover effect --- */
.e-loop-item.team .elementor-element-85e89a0,
.e-loop-item.type-team .elementor-element-85e89a0 {
    transition: background 0.4s ease, color 0.4s ease;
}

.e-loop-item.team:hover .elementor-element-85e89a0,
.e-loop-item.type-team:hover .elementor-element-85e89a0 {
    background: linear-gradient(135deg, #003750 0%, #001f2e 100%) !important;
}

.e-loop-item.team:hover .elementor-element-85e89a0 h4,
.e-loop-item.team:hover .elementor-element-85e89a0 p,
.e-loop-item.team:hover .elementor-element-85e89a0 .elementor-button-text,
.e-loop-item.team:hover .elementor-element-85e89a0 .elementor-button-icon,
.e-loop-item.type-team:hover .elementor-element-85e89a0 h4,
.e-loop-item.type-team:hover .elementor-element-85e89a0 p,
.e-loop-item.type-team:hover .elementor-element-85e89a0 .elementor-button-text,
.e-loop-item.type-team:hover .elementor-element-85e89a0 .elementor-button-icon {
    color: #ffffff !important;
}

/* Make loop items clickable */
.e-loop-item.team,
.e-loop-item.type-team {
    cursor: pointer;
}

/* =========================================
   Popup Overlay
   ========================================= */
.mhb-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 31, 46, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mhb-popup-overlay.active {
    opacity: 1;
}

/* =========================================
   Popup Container
   ========================================= */
.mhb-popup-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    background: #E5ECF4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mhb-popup-overlay.active .mhb-popup-container {
    transform: translateY(0) scale(1);
}

/* =========================================
   Close Button — light blue circle
   ========================================= */
.mhb-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #d0dbe6;
    color: #003750;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.mhb-popup-close:hover {
    background: #003750;
    color: #ffffff;
}

/* =========================================
   Inner Layout — Landscape 40/60
   ========================================= */
.mhb-popup-inner {
    display: flex;
    flex-direction: row;
    max-height: 85vh;
}

/* =========================================
   Image Column — 40%
   ========================================= */
.mhb-popup-image {
    flex: 0 0 40%;
    max-width: 40%;
    background: #E5ECF4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
}

.mhb-popup-image img {
    width: 519px;
    height: 519px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 8px;
}

/* =========================================
   Content Column — 60%, scrollable
   ========================================= */
.mhb-popup-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 85vh;
}

/* Scrollbar */
.mhb-popup-content::-webkit-scrollbar {
    width: 4px;
}

.mhb-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.mhb-popup-content::-webkit-scrollbar-thumb {
    background: #003750;
    border-radius: 2px;
}

/* =========================================
   Typography
   ========================================= */

/* Position — 16px normal, teal */
.mhb-popup-position {
    color: #0090b2;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 6px;
    line-height: 1.4;
}

/* Name — H3 */
.mhb-popup-name {
    color: #002f49;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.25;
}

/* =========================================
   Section Headings — H4, colored, NO underline
   ========================================= */
.mhb-popup-sections h4 {
    color: #002f49;
    font-size: 18px;
    font-weight: 700;
    margin: 22px 0 10px;
    padding: 0;
    border: none;
    line-height: 1.3;
}

.mhb-popup-sections h4:first-child {
    margin-top: 0;
}

/* Sub-headings (Listed Issuers, Other Public Company) */
.mhb-popup-sections strong,
.mhb-popup-sections b {
    display: block;
    color: #002f49;
    font-size: 16px;
    font-weight: 700;
    margin: 14px 0 6px;
    line-height: 1.4;
}

/* =========================================
   Lists — clean small bullets
   ========================================= */
.mhb-popup-sections ul {
    margin: 0 0 10px;
    padding-left: 18px;
    list-style: none;
}

.mhb-popup-sections ul li {
    position: relative;
    color: #344054;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1px;
    padding-left: 2px;
}

.mhb-popup-sections ul li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #344054;
}

/* Paragraph text inside sections */
.mhb-popup-sections p {
    color: #344054;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 8px;
}

/* =========================================
   Loading Spinner
   ========================================= */
.mhb-popup-overlay .mhb-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
}

.mhb-popup-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d0dbe6;
    border-top-color: #003750;
    border-radius: 50%;
    animation: mhb-spin 0.7s linear infinite;
}

@keyframes mhb-spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   Responsive — Mobile
   ========================================= */
@media (max-width: 768px) {
    .mhb-popup-container {
        width: 95%;
        max-height: 90vh;
    }

    .mhb-popup-inner {
        flex-direction: column;
        max-height: 90vh;
    }

    .mhb-popup-image {
        flex: 0 0 auto;
        max-width: 100%;
        height: auto;
        padding: 20px;
        justify-content: center;
    }

    .mhb-popup-image img {
        width: 200px;
        height: auto;
        object-fit: contain;
    }

    .mhb-popup-content {
        padding: 24px 20px;
        max-height: calc(90vh - 240px);
    }

    .mhb-popup-name {
        font-size: 20px;
    }

    .mhb-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}
