/* ==========================================================================
   Speaker Lightbox Layout & Styles (Custom Premium Design)
   ========================================================================== */

/* 1. Modal Wrapper */
.speaker-lightbox-wrapper {
    background-image: url('/wp-content/uploads/2026/07/bg.png');
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    border-radius: 20px;
    padding: 90px 40px 40px 40px;
    /* Tăng padding top theo yêu cầu */
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Fancybox custom overrides to blend the modal background */


/* Close button custom style */
.fancybox__button--close {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 10px;
}

/* 2. Modal Header (Teal Box) - Shorter height, left-padded for absolute avatar */
.speaker-modal-header {
    background-color: #3ec1b5;
    border-radius: 24px;
    /* Bo góc vừa phải */
    padding: 15px 30px 15px 250px;
    /* Tăng padding-left lên 250px để chừa chỗ cho avatar 200px */
    display: flex;
    align-items: center;
    min-height: 90px;
    /* Chiều cao dẹt lại */
    width: 85%;
    /* Thu hẹp chiều rộng ngắn lại */
    margin: 40px auto;
    /* Căn ở giữa theo chiều ngang */
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Floating Vertical Rectangular Avatar (Transparent PNG styled) */
.speaker-modal-avatar {
    position: absolute;
    left: 25px;
    bottom: 0;
    /* Align to the bottom of the header */
    width: 200px;
    /* Tăng chiều rộng lên 200px theo yêu cầu */
    height: 200px;
    /* Tăng chiều cao lên 200px theo yêu cầu */
    overflow: visible;
    /* Prevent clipping of hair/body */
    border: none;
    /* No border for transparent PNG */
    box-shadow: none;
    /* No shadow */
    background: transparent;
    /* Transparent background */
    z-index: 3;
}

.speaker-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speaker-modal-info {
    flex: 1;
    color: #ffffff;
}

.speaker-modal-name {
    font-size: 28px;
    font-weight: 800;
    /* SVN-Gilroy Bold */
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-transform: none;
    color: #ffffff !important;
}

.speaker-modal-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.95;
}

/* 3. Modal Body (Two columns CV & Abstract) */
.speaker-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    position: relative;
    z-index: 2;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding: 20px 5px 5px;
    /* Top padding to allow space for floating titles */
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling */
.speaker-modal-body::-webkit-scrollbar {
    width: 6px;
}

.speaker-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.speaker-modal-body::-webkit-scrollbar-thumb {
    background: rgba(64, 196, 183, 0.4);
    border-radius: 10px;
}

/* 4. Section Boxes (Teal bordered boxes) */
.speaker-modal-section {
    position: relative;
    border: 2px solid rgba(64, 196, 183, 0.6);
    /* Teal borders */
    border-radius: 20px;
    padding: 35px 25px 25px;
    background: rgba(37, 20, 58, 0.4);
    /* Dark semi-transparent background to merge with page */
    box-sizing: border-box;
    align-self: start;
}

/* Floating title tag - Aligned to the left */
.speaker-modal-section-title {
    position: absolute;
    top: -18px;
    /* Lift up to overlap border */
    left: 30px;
    /* Căn lệch sang bên trái */
    transform: none;
    /* Bỏ translate căn giữa */
    padding: 8px 35px;
    font-size: 16px;
    font-weight: 800;
    /* SVN-Gilroy Bold */
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border-radius: 0;
    /* Square edges matching design image */
}

.speaker-modal-section-title.cv-title {
    background-color: #ffffff;
    color: #25143a;
}

.speaker-modal-section-title.abstract-title {
    background-color: #40c4b7;
    /* Teal */
    color: #ffffff;
}

/* Section Content Styling */
.speaker-modal-section-content {
    font-size: 14.5px;
    line-height: 1.7;
    color: #ffffff;
}

.speaker-modal-section-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.speaker-modal-section-content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.speaker-modal-section-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    text-align: justify;
}

.speaker-modal-section-content li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #40c4b7;
    /* Teal bullets */
    font-weight: bold;
}

/* 5. Responsive Styling */
@media (max-width: 768px) {
    .speaker-lightbox-wrapper {
        padding: 50px 20px 20px;
        /* Nới rộng padding top trên mobile */
        border-radius: 12px;
    }

    .speaker-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px 20px;
        /* Reset lề trái */
        border-radius: 20px;
        gap: 15px;
        width: 90%;
        /* Co ngắn nhẹ trên mobile */
        margin: 60px auto 30px;
        /* Tăng margin top cho avatar 150px nhô lên */
        min-height: auto;
    }

    .speaker-modal-avatar {
        position: relative;
        left: auto;
        bottom: auto;
        width: 150px;
        /* Cân chỉnh 150px trên mobile */
        height: 150px;
        margin-top: -90px;
        /* Đẩy nhô lên trên tránh đè văn bản */
    }

    .speaker-modal-name {
        font-size: 22px;
    }

    .speaker-modal-title {
        font-size: 13.5px;
    }

    .speaker-modal-body {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
        gap: 35px;
        max-height: calc(100vh - 300px);
    }

    .speaker-modal-section {
        padding: 30px 15px 20px;
    }
}