.speaker-card {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 120px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.speaker-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.speaker-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.speaker-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.speaker-role {
    font-size: 0.75rem;
    color: rgb(156, 163, 175);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: rgb(156, 163, 175);
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    color: rgb(251, 191, 36);
}

/* Grid layout adjustment */
#speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .speaker-card {
        height: 90px;
    }

    .speaker-image {
        width: 50px;
        height: 50px;
    }

    .speaker-name {
        font-size: 0.9rem;
    }

    .speaker-role {
        font-size: 0.7rem;
    }

    .social-link {
        font-size: 0.8rem;
    }
}

/* Optional: Add a subtle glow effect to match the chromatic aberration */
.speaker-card:hover .speaker-image {
    box-shadow: 
        0 0 2px #ff0000,
        0 0 4px #0000ff;
}

/* Modal Container */
.modal-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Speaker Profile Section */
.speaker-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-speaker-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.5);
    object-fit: cover;
}

.modal-speaker-info {
    flex: 1;
    min-width: 0;
}

.modal-speaker-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.modal-speaker-role {
    font-size: 1rem;
    color: rgb(156, 163, 175);
}

/* Bio Section */
.modal-bio-container {
    padding-top: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.modal-bio {
    padding: 0 0.5rem 1rem 0.5rem;
    overflow: visible;
}

.modal-bio-text {
    color: rgb(209, 213, 219);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
    white-space: normal;
    margin: 0;
    word-wrap: break-word;
    overflow: visible;
}

/* Sessions Section */
.modal-sessions {
    margin-top: 1rem;
    max-height: calc(90vh - 300px);
    overflow-y: auto;
}

.sessions-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(251, 191, 36);
    margin-bottom: 1rem;
}

.session-card {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.session-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-right: 1rem;
}

.session-duration {
    color: rgb(251, 191, 36);
    font-size: 0.875rem;
}

.session-time {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.session-description {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Modal Content Scrollbar */
#modal-content {
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(17, 25, 40, 0.95);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    padding: 1.5rem;
}

/* Ensure the modal itself handles scrolling if needed */
#speaker-modal {
    overflow-y: auto;
    padding: 1rem 0;
}

/* Add custom scrollbar styling */
#modal-content::-webkit-scrollbar {
    width: 6px;
}

#modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#modal-content::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.5);
    border-radius: 3px;
}