/* --- Core Utilities --- */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.pos-rel { position: relative; }
.mt-auto { margin-top: auto; }

/* --- HTA Card Person Base --- */
.hta-card-person {
    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%;
    height: 100%;
	max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hta-card-person:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Image Section */
.card-person-image-container {
    height: 360px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.card-person-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    image-rendering: -webkit-optimize-contrast;
}

/* Bio Overlay */
.card-person-bio-overlay {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    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;
}

/* Toggle state triggered by JS */
.hta-card-person.is-active .card-person-bio-overlay,
.hta-card-person .card-person-image-container:hover .card-person-bio-overlay {
    opacity: 1;
    visibility: visible;
}

.hta-card-person .bio-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

/* Footer Section */
.card-person-footer {
    padding: 20px;
    text-align: left;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.footer-top-row {
    margin-bottom: 10px;
}

.card-person-footer .name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #E6EDF1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-person-footer .pos {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(230, 237, 241, 0.6);
    line-height: 1.4;
}

/* LinkedIn Button */
.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;
}

/* Trigger Button (+) */
.hta-card-person .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);
    transition: all 0.4s ease;
}

.hta-card-person .info-trigger span {
    display: block;
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: 300;
    pointer-events: none;
    margin-top: -2px;
}

.hta-card-person.is-active .info-trigger,
.hta-card-person .card-person-image-container:hover .info-trigger {
    transform: rotate(45deg);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Company Logo */
.comp-logo img { 
    max-height: 25px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
	.hta-card-person .info-trigger {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .hta-card-person {
        max-width: 100%;
    }
    
    .card-person-image-container {
        height: 320px;
    }
}