@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 {
      display: flex;
    align-items: flex-start; /* Ensures alignment from the top */
    width: 100%; /* NEW: Forces each speaker to take the full width of the list container */
    /* The use of 'width: 100%' means there will only be one speaker per row. */
    }
    
    /* 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 */
}

.speaker-block {
    /* CRITICAL FIX: This tells the browser to place the children (photo and text) side-by-side */
    display: flex; 
    
    align-items: flex-start; /* Ensures alignment from the top */
    width: 100%; /* Now correctly forces single column AND side-by-side alignment */
}

/* 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: #5B2A86; 
    
    /* 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.5em; 
    font-weight: 500;
    color: #004488;
    margin-bottom: 2%;
   
}

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

.speakers-header {
    font-size: 1.4em;
    font-weight: 700;
    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; 
    margin-bottom: 2.5%;
    gap: 30px; /* Space between speaker blocks */
}



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

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

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

.register-button {
    /* Use NCI primary color for high visibility */
    background-color: #004488; 
    border-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,
.register-button:focus {
    background-color: #003366;
    border-color: #003366;
    color: #FFFFFF;
}

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

.abstract {

	 display: block;

}

.abstract-title {
	font-size: 1.4em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    padding-top: 15px;
    	 display: block;

}

/* Bio Content */
.speaker-bio-content { padding-top: 0.9375rem; }
.speaker-bio-content p { font-size: .95rem; line-height: 1.6; color: #858686; }


/* ========================================================= */
/* DETAILS TAG STYLING (BUTTON WIDTH FIXES) */
/* ========================================================= */

.bio-toggle-details {
   padding: 0;
    margin: 0.5rem 0 0 0; 
    border: none;
    
    /* Restore these for proper flow within the column */
    align-self: flex-start !important;
}

.bio-toggle-summary {
   all: unset; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    
    /* BUTTON WIDTH FIX: Force the summary button to wrap its content */
    max-width: fit-content !important; 
    flex-shrink: 0 !important;
    
    /* Button Styling */
    height: 1.5rem; 
    padding: 0 0.5rem; 
    border: 1px solid #004488;
    border-radius: 0.25rem; 
    color: #004488;
    font-size: 0.75rem; 
    font-weight: 600;
    transition: background-color 0.2s;
}

.bio-toggle-summary:hover {
    background-color: rgba(0, 68, 136, 0.05);
}

/* Remove default browser-provided triangle icon */
.bio-toggle-summary::-webkit-details-marker, 
.bio-toggle-summary::marker {
    display: none !important;
    content: "";
}

.bio-toggle-summary .button-text {
    margin-right: 0.3rem;
    line-height: 1;
}

.toggle-icon {
    font-size: 0.6rem;
    transform: rotate(0deg);
    transition: transform 0.3s;
    line-height: 1;
}

/* OPEN STATE: Rotate icon */
.bio-toggle-details[open] .toggle-icon {
    transform: rotate(180deg);
}

.custom-hr {
	margin-top: 5%;
    margin-bottom: 3%;
    border: 0;
    border-top: 1px solid #cdc8c8;
}

svg.ext {
    display:none;
}

.moderator {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1%;
}