/* --- Core Utilities --- */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.pos-rel { position: relative !important; }
.mt-auto { margin-top: auto !important; }

/* --- Slider & Equal Height Logic --- */
.hta-speaker-widget-wrapper {
    --brand-green: #7AA89E;
    --border-white: rgba(255, 255, 255, 0.15);
    width: 100%;
}

.hta-speaker-widget-wrapper .flickity-slider {
    display: flex !important;
    align-items: stretch !important; 
}

.hta-speaker-widget-wrapper .flickity-viewport {
    overflow: visible !important;
}

.speaker-cell {
    width: 340px;
	max-width: 340px;
    padding-right: 40px;
    display: flex !important;
    height: auto;
	min-height: 100%;
}

/* --- The Card --- */
.speaker-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
	flex: 1 0 auto; 
    flex-direction: column;
    overflow: hidden;
}

.speaker-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.speaker-image-container {
    height: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

.speaker-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: top;
    image-rendering: -webkit-optimize-contrast;
}

/* --- Bio Overlay --- */
.speaker-bio-overlay {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    /* background: rgba(3, 79, 117, 0.85); */
    background: rgba(42, 114, 132, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    z-index: 5;
    text-align: center;
}

.speaker-image-container.active .speaker-bio-overlay,
.speaker-image-container:hover .speaker-bio-overlay {
    opacity: 1;
    visibility: visible;
}

.bio-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

/* --- Footer (Left Aligned & Modern) --- */
.speaker-footer {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes content to fill card height */
}

.speaker-footer .text-left-wrap {
	padding-right: 10px;
}

.speaker-footer .name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #E6EDF1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speaker-footer .pos {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(230, 237, 241, 0.6);
    line-height: 1.4;
}

/* --- LinkedIn Button (Right Aligned Circle) --- */
.spk-linkedin-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6EDF1;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.spk-linkedin-circle-btn:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

/* --- Navigation & Trigger --- */
.info-trigger {
    position: absolute;
    bottom: 20px; 
    right: 20px;
    width: 36px; 
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    line-height: 0;
    text-indent: 0;
    transition: all 0.4s ease;
}

.info-trigger span {
    display: block;
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: 300;
    pointer-events: none;
}

.speaker-image-container.active .info-trigger,
.speaker-image-container:hover .info-trigger {
    transform: rotate(45deg);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Ensure images don't shift during hover on iOS */
.speaker-image-container {
    -webkit-tap-highlight-color: transparent;
}

.speaker-nav-controls {
    display: flex; justify-content: center; gap: 15px; margin-top: 60px;
}

.speaker-ctrl-btn {
    width: 48.8px; height: 48.8px;
    border-radius: 50%;
    border: 1px solid var(--border-white);
    background: transparent;
    color: #E6EDF1;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}

.speaker-ctrl-btn:hover { background: var(--brand-green); color: #034f75; }

.comp-logo img { 
	max-height: 25px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    margin-top: 10px;
}

.hide-arrows .speaker-nav-controls {
	display: none;
}

@media (max-width: 767px) {
    .speaker-cell { width: 100%; padding-right: 20px; }
	
	.info-trigger {
        width: 40px;
        height: 40px;
    }
}