.speakers {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    justify-content: center;
    max-width: 1140px;
    width: 100%;
}

.speakers > .speaker:only-child,
.speakers > .speaker:last-child:nth-child(3n+1) {
    grid-column: 2 / 3;
}

.speaker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 200px;
    align-self: stretch; 
}

.speaker:hover {
    transform: translateY(-5px);
}

.speaker-portrait {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid #FBB102;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.speaker-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-info {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 40px;
    border-top-right-radius: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    height: 100%; 
}

.speaker-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    word-wrap: break-word;
}

.speaker-title {
    font-weight: 400;
    font-size: 0.9rem;
    color: #999999;
    margin-bottom: 0.3rem;
}

.speaker-fullname {
    font-weight: 700;
    font-size: 1.25rem;
    color: #222;
    margin-top: 0.2rem;
}

.speaker-expertise {
    font-size: 0.95rem;
    color: #444;
    margin-top: 8px;
}

.speaker-topics {
    font-size: 0.9rem;
    color: #444;
    margin-top: 8px;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .speakers {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .speakers {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .speaker-info {
        max-width: none;
    }
}