:root {
    --primary: #2c3e50;
    --accent: #e67e22; /* Professional Orange/Gold */
    --bg: #f0f2f5;
    --white: #ffffff;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 50px 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

/* The Grid */
.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Individual Card */
.speaker-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Portrait Image */
.speaker-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes it a circle */
    object-fit: cover;
    border: 4px solid var(--white);
    outline: 2px solid var(--accent);
    margin-bottom: 20px;
    background: #eee;
}

.speaker-name {
    font-size: 1.4rem;
    margin: 10px 0 5px 0;
    color: var(--primary);
}

/* Fix for the out-of-bounds text */
.speaker-card p {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.speaker-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.talk-abstract {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensures buttons align even if text length differs */
}

/* Download Button */
.download-link {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.download-link:hover {
    background-color: var(--accent);
}

/* Responsive Fix */
@media (max-width: 600px) {
    .speaker-grid { grid-template-columns: 1fr; }
}