.language_flag {
    float: right;
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 0.5em;
}
.language_flag img {
    width: 40px;
    margin-left: 0.4em;
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: transform 0.2s, border-color 0.2s, outline-color 0.2s;
}
.language_flag img.active {
    outline: 2px solid var(--text);
}
.language_flag img:hover {
    border: 1px solid var(--accent);
    outline: 2px solid var(--accent);
    transform: scale(1.05);
}

.pres-intro {
    margin-bottom: 1.6em;
}

.pres-entry {
    display: flex;
    gap: 1.1em;
    align-items: flex-start;
    background-color: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.9em 1.2em;
    margin: 0.8em 0;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.pres-entry:hover {
    background-color: var(--highlight);
    box-shadow: 0 4px 16px rgba(58,82,196,0.1);
}

/* Title slide illustration on the left */
.pres-thumb {
    flex: 0 0 200px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 7px;
    background-color: var(--surface);
}

.pres-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pres-text {
    flex: 1;
    min-width: 0;
}

.pres-name {
    font-size: 105%;
    margin-bottom: 0.2em;
}

.pres-name a {
    color: var(--accent);
    text-decoration: none;
}

.pres-name a:hover {
    color: var(--accent-dk);
    text-decoration: underline;
}

.pres-meta {
    font-size: 90%;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 0.4em;
}

.pres-desc {
    margin-bottom: 0.4em;
}

.pres-links {
    font-size: 95%;
}

.pres-links a {
    color: var(--accent);
}

.pres-links a:hover {
    color: var(--accent-dk);
}

@media (max-width: 600px) {
    .pres-entry {
        padding: 0.7em 0.9em;
        flex-direction: column;
    }
    .pres-thumb {
        flex-basis: auto;
        width: 100%;
    }
}
