/* Conferencistas Page Custom Styles */

/* Hero Adjustment */
.slider-area2 {
    background: linear-gradient(to right, #003366, #00509E);
    /* Fallback gradient */
    padding-bottom: 0 !important;
}

.slider-height2 {
    min-height: 180px !important;
    /* Reduced height further */
    height: 180px !important;
    display: flex;
    align-items: center;
}

.hero-cap h2 {
    font-size: 2.2rem !important;
    margin-bottom: 0 !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1rem;
    color: #e0e0e0;
    margin-top: 5px;
    font-weight: 300;
}

.speakers-area {
    padding-top: 40px !important;
    /* Reduce gap */
}

/* Card Styles */
.single-speaker {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.single-speaker:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.speaker-img {
    position: relative;
    overflow: hidden;
    height: 280px;
    /* Fixed height for uniformity */
}

.speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.single-speaker:hover .speaker-img img {
    transform: scale(1.05);
}

.speaker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    /* Primary color variable match */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.single-speaker:hover .speaker-overlay {
    opacity: 1;
}

.speaker-overlay span {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 30px;
}

.speaker-caption {
    padding: 25px;
    text-align: center;
}

.speaker-caption h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.speaker-caption .affiliation {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    color: #D4AF37;
    /* Accent color */
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.speaker-caption .short-bio {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark backdrop */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.speaker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.speaker-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    /* White close button for contrast on header or overlay */
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    color: #ecf0f1;
}

.modal-content-scroll {
    overflow-y: auto;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

/* Modal Internal Layout */
.modal-header-section {
    background: #003366;
    /* Primary Color */
    padding: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 30px;
}

.modal-header-section img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #D4AF37;
    /* Accent border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-title-block h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-title-block .affiliation {
    color: #D4AF37;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.2rem;
}

.modal-body-section {
    padding: 40px;
    background: #fff;
}

.modal-body-section h4 {
    color: #003366;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    display: inline-block;
}

.modal-body-section h4:first-child {
    margin-top: 0;
}

.modal-body-section p {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: justify;
}

.modal-body-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-body-section ul li {
    position: relative;
    padding-left: 25px;
    font-family: 'Open Sans', sans-serif;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-body-section ul li:before {
    content: "•";
    color: #D4AF37;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-header-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .close-modal {
        color: #fff;
        top: 10px;
        right: 15px;
    }

    .modal-body-section {
        padding: 25px 20px;
    }

    .speaker-modal {
        width: 95%;
        max-height: 95vh;
    }
}