@media (max-width: 600px) {
    
    /* Define responsive padding unit */
    :root {
        --mobile-spacing: 1.25rem; 
    }
    
    /* 1. CRITICAL: Force the Speaker Container to Stack Vertically */
    .speakers-list {
        /* This is the key to single-column layout */
        flex-direction: column !important; 
        
        /* Ensure there's no wrapping into a new row */
        flex-wrap: nowrap !important;
        
        /* Ensure each stacked item starts at the beginning */
        align-items: flex-start !important; 
        
        gap: 1.25rem;
    }
    
    /* 2. Individual Speaker Block (Guarantees Full Width) */
    .speaker-block {
        /* Must be 100% to occupy the full column space */
        width: 100% !important; 
        
        display: flex; 
        align-items: flex-start;
    }
    
    /* 3. Speaker Details (Guarantees Text Expansion) */
    .speaker-details {
        flex-grow: 1; /* Consume remaining space */
        min-width: auto; 
        flex-basis: auto; 
        margin-left: 0.9375rem; 
    }
    
    /* 4. Fluid Image Size (Retained to give text max space) */
    .speaker-photo-wrapper {
        width: 18vw !important;
        height: 25vw !important; 
        flex-shrink: 0; 
        overflow: hidden; 
        border-radius: 6px; 
    }
    
    /* ... rest of the .event-card and typography responsive styles ... */
}

/* UPDATED CSS for uniform, bordered, rectangular speaker photos */
.speaker-photo-wrapper {
    /* Define the exact frame size */
    width: 90px;
    height: 110px; 
    
    /* Styling */
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 
        0 0 0 1px rgba(200, 200, 200, 0.6),
        0 0 0 3px rgba(180, 180, 180, 0.4);
    background-color: #ffffff;
    display: block; 
    flex-shrink: 0; /* Prevents the flex container from shrinking the photo wrapper */
}

/* The Image CSS remains the same for sizing/cropping */
.speaker-photo-wrapper img {
    /* --- CRITICAL FIX: Explicitly set fixed size on the image element --- */
    width: 90px !important;
    height: 110px !important; 
    
    /* Force the image to cover the container area */
    object-fit: cover !important; 
    
    /* Ensure no margins or padding are collapsing the element */
    margin: 0 !important;
    padding: 0 !important;
    
    /* Improves facial centering */
    object-position: center top !important; 
    
    display: block; 
}
.event-card {
    /* Set the maximum width for the card */
    max-width: 90%;
    
    /* Use white background */
    background-color: #ffffff;
    
    /* Add subtle padding around the entire content */
    padding: 30px; 
    
    /* Softly rounded corners */
    border-radius: 12px;
    
    /* Add a subtle shadow for depth (optional, but modern) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    
    /* Separate cards when listed */
    margin-bottom: 30px; 
    
    /* Center the card horizontally on the page */
    margin-left: auto;
    margin-right: auto;
    margin-top: 1%;
    margin-bottom: 5%;
}

.event-date-header {
    /* Use a complementary color (e.g., a lighter blue) */
    background-color: #6c9cd0; 
    
    /* Padding within the header */
    padding: 10px 20px; 
    
    /* Match card corner radius at the top */
    border-radius: 8px 8px 0 0; 
    
    /* White text for good contrast */
    color: #ffffff; 
    
    /* Clear, readable font */
    font-size: 1.1em;
    font-weight: 600;
    margin: -30px -30px 25px -30px; /* Adjusts for card padding to span full width */
}

.event-title {
    /* Make the title highly visible */
    font-size: 1.8em; 
    font-weight: 700;
    color: #004488;
    margin-bottom: 10px;
    margin-top: 1% !important;
}

.event-description {
    /* Standard, clean text */
    font-size: 1em;
    color: #444444;
    line-height: 1.6; /* Improves readability */
    margin-bottom: 30px;
}

.speakers-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
    padding-top: 15px; /* Add vertical space */
    border-top: 1px solid #eeeeee; /* Light separator line */
}

.speakers-list {
    /* Use Flexbox for easy horizontal layout of speakers */
    display: flex;
    flex-wrap: wrap; 
    gap: 30px; /* Space between speaker blocks */
}

.speaker-block {
    display: flex;
    align-items: flex-start; /* Ensures alignment from the top */
    width: 45%; 
    /* The use of 'width: 45%' means the size of the block can still vary 
       slightly depending on the screen size and gap, but we enforce the photo size. */
}

/* Styles for the Name and Title next to the photo */
.speaker-details {
    margin-left: 15px;
}

.speakers-list .speaker-block:only-child {
    /* If there is ONLY ONE speaker block, make it take the full width. */
    width: 100% !important; 
}

.speaker-details strong {
    display: block;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 2px;
}

.speaker-details span {
    display: block;
    font-size: 0.9em;
    color: #666666;
}

.register-button {
    /* Use NCI primary color for high visibility */
    background-color: #004488; 
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    cursor: pointer;
    
    /* Space from the content above */
    margin-top: 30px;
    
    /* Add a subtle hover effect */
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background-color: #0056b3;
    color: #ffffff !important;
}