/* Container Grid */
.sm-speakers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px;
}

/* Speaker Card */
.sm-speaker-card {
    text-align: center;
    color: #fff;
    /* Default text color as seen in blue bg Example, might need adjustment based on theme */
}

/* Ensure images are responsive and centered */
/* Ensure images are responsive and centered */
.sm-speaker-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    border: 2px solid #00d4ff;

    background-color: #333;
    /* Fallback color */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    box-sizing: border-box;
    /* No overflow: hidden here so flag can stick out */
}

/* Removed img tag styles as it's no longer used */

/* Flag Icon */
.sm-speaker-flag {
    position: absolute;
    bottom: -5px;
    /* Stick out of the bottom right */
    right: -5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    background-color: transparent;
    transform: none;
}

.sm-speaker-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Styles */
.sm-speaker-name {
    color: #00d4ff;
    /* Cyan color */
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.sm-speaker-job {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Button */
.sm-read-more-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sm-read-more-btn:hover {
    text-decoration: underline;
}

/* Modal Styles */
.sm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sm-modal-container {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.sm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: #333;
}

.sm-modal-body h2 {
    margin-top: 0;
    color: #000;
}

.sm-modal-job {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.sm-bio-text {
    line-height: 1.6;
}