@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1.65;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* CSS Variables for theming */
:root {
    --primary-color: #1f2937;
    --primary-hover: #000000;
    --link-color: #111827;
    --link-hover: #000000;
    --link-underline: rgba(17, 24, 39, 0.35);
    --link-underline-hover: #000000;
    --bullet-color: #4b5563;
    --marker-number-color: #4b5563;
    --background-color: #fff2e6;
    --card-background-color: #fff2e6;
    --text-color: #111827;
    --subtext-color: #4B5563;
    --border-color: rgba(17, 24, 39, 0.15);
    --border-subtle: rgba(17, 24, 39, 0.08);
    --code-bg: rgba(17, 24, 39, 0.05);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --border-radius: 0.5rem;
    --header-height: 4.25rem;
    --header-bg: rgba(255, 242, 230, 0.92);
    --header-border: rgba(17, 24, 39, 0.09);
    --header-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
}

[data-theme="dark"] {
    --primary-color: #f3f4f6;
    --primary-hover: #ffffff;
    --link-color: #f3f4f6;
    --link-hover: #ffffff;
    --link-underline: rgba(243, 244, 246, 0.45);
    --link-underline-hover: #ffffff;
    --bullet-color: #9ca3af;
    --marker-number-color: #9ca3af;
    --background-color: #111827;
    --card-background-color: #1F2937;
    --text-color: #F3F4F6;
    --subtext-color: #9CA3AF;
    --border-color: #374151;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --code-bg: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(17, 24, 39, 0.92);
    --header-border: rgba(255, 255, 255, 0.09);
    --header-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3);
}

/* Base typography & styles */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.875rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

strong, b {
    color: var(--text-color);
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* Site Header & Top Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header-inner {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .site-header-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header-inner {
        padding: 0 2rem;
        width: 90%;
    }
}

.mobile-nav-label {
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

@media (max-width: 991px) {
    .mobile-nav-label {
        display: block;
    }
}

/* Desktop Header Navigation */
.header-nav {
    display: none;
}

@media (min-width: 992px) {
    .header-nav {
        display: block;
    }
}

.header-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.header-nav-link {
    display: inline-block;
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-nav-link:hover {
    background-color: rgba(17, 24, 39, 0.06);
    color: var(--text-color);
}

[data-theme="dark"] .header-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.header-nav-link.active {
    background-color: rgba(17, 24, 39, 0.09);
    font-weight: 600;
    color: var(--text-color);
}

[data-theme="dark"] .header-nav-link.active {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Header Actions: Socials & Mobile Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 639px) {
    .header-socials {
        display: none;
    }
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--border-radius);
    color: var(--subtext-color);
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s;
}

.header-social-link svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.header-social-link:hover {
    color: var(--text-color);
    background-color: rgba(17, 24, 39, 0.06);
}

[data-theme="dark"] .header-social-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s, border-color 0.15s;
}

.mobile-toggle-btn:hover {
    background-color: rgba(17, 24, 39, 0.06);
}

[data-theme="dark"] .mobile-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
    .mobile-toggle-btn {
        display: none;
    }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    border-top: 1px solid var(--header-border);
    background-color: var(--card-background-color);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
    .mobile-drawer {
        display: none !important;
    }
}

.mobile-drawer-inner {
    padding: 1rem 1.25rem 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: rgba(17, 24, 39, 0.07);
    font-weight: 600;
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.mobile-social-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    background: var(--code-bg);
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    transition: background-color 0.15s;
}

.mobile-social-item svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.mobile-social-item:hover {
    background-color: rgba(17, 24, 39, 0.1);
}

[data-theme="dark"] .mobile-social-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Main container */
.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 3rem 2rem;
        width: 90%;
    }
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
    }
}

/* Aside / Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
}

@media (min-width: 1024px) {
    .sidebar {
        grid-column: span 1 / span 1;
        position: sticky;
        top: calc(var(--header-height) + 2rem);
    }
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    width: 14rem;
    height: 14rem;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
}

.profile-name {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0;
}

.profile-title {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--subtext-color);
    margin-top: 0.35rem;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--subtext-color);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-color);
}

.social-links svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.social-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-top: 2rem;
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
    background-color: rgba(17, 24, 39, 0.06);
    color: var(--text-color);
}

[data-theme="dark"] .sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

@media (max-width: 1023px) {
    .sidebar-nav {
        display: none;
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .main-content {
        grid-column: span 3 / span 3;
    }

    /* Single post / standalone article layout when no sidebar */
    .main-content:only-child {
        grid-column: 1 / -1;
        max-width: 56rem;
        margin: 0 auto;
        width: 100%;
    }
}

.main-content section,
#research-page,
#article {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* Card styles */
.card {
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

@media (max-width: 639px) {
    .card {
        padding: 1.5rem 1.25rem;
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--card-background-color);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title .material-icons {
    color: var(--bullet-color);
    font-size: 1.6rem;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 0.05em;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.card h3:first-of-type {
    margin-top: 0;
}

/* Metadata right under an h3 heading (e.g. workshops) */
.card h3 + p {
    color: var(--subtext-color);
    font-size: 0.95rem;
    margin-top: -0.25rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.card hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.card strong {
    color: var(--text-color);
    font-weight: 600;
}

.card p { 
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card p:last-child {
    margin-bottom: 0;
}

/* List typography */
.card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.card ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.card li {
    margin-bottom: 0.85rem;
    line-height: 1.65;
}

.card li:last-child {
    margin-bottom: 0;
}

.card ol > li::marker {
    font-weight: 600;
    color: var(--marker-number-color);
}

.card ul > li::marker {
    color: var(--bullet-color);
}

/* Links typography */
.card a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-color: var(--link-underline);
    font-weight: 500;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.card a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-underline-hover);
}

.card a:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Back navigation button */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--subtext-color) !important;
    text-decoration: none !important;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--border-radius);
    background: var(--code-bg);
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.back-link:hover {
    color: var(--text-color) !important;
    background: rgba(17, 24, 39, 0.08);
    transform: translateX(-3px);
}

[data-theme="dark"] .back-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

/* Typography for readable prose */
.prose {
    color: var(--text-color);
    max-width: 72ch;
    font-size: 1rem;
    line-height: 1.7;
}

.prose p {
    margin-bottom: 1.15rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Code typography */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    background-color: var(--code-bg);
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    color: var(--text-color);
}

pre {
    background-color: var(--code-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.25rem 0;
}

pre code {
    background-color: transparent;
    padding: 0;
    font-size: inherit;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--bullet-color);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--subtext-color);
    font-style: italic;
}

blockquote p {
    margin-bottom: 0.5rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Images & Figures */
img {
    max-width: 100%;
    height: auto;
}

.card img {
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    display: block;
}

figure {
    margin: 1.75rem 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--subtext-color);
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* Updates timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item {
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background-color: var(--bullet-color);
    border-radius: 9999px;
    margin-top: 0.375rem;
    left: -0.5rem;
    border: 2px solid var(--card-background-color);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--subtext-color);
}

.timeline-content {
    color: var(--text-color);
}

/* Master Thesis section */
.thesis-intro {
    margin-bottom: 1.5rem;
    color: var(--subtext-color);
}

.thesis-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thesis-list li {
    display: flex;
    gap: 0.75rem;
    color: var(--subtext-color);
}

.thesis-list li::before {
    content: "→";
    color: var(--bullet-color);
}

.thesis-list li span {
    font-weight: 600;
    color: var(--text-color);
}

/* Research Section Styling */
.research-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.research-toc a {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background-color: var(--code-bg);
    color: var(--text-color) !important;
    text-decoration: none !important;
    border: 1px solid var(--border-color);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.research-toc a:hover {
    background-color: rgba(17, 24, 39, 0.08);
    border-color: var(--bullet-color);
    transform: translateY(-1px);
}

[data-theme="dark"] .research-toc a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.research-subsection {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.research-subsection:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.research-subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.65rem;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.research-subsection-desc {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--subtext-color);
    margin-bottom: 1.75rem;
}

/* Individual Paper Item */
.paper-item {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed var(--border-subtle);
}

.paper-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.paper-header {
    margin-bottom: 0.5rem;
}

.paper-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.paper-title a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1.5px solid var(--link-underline);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.paper-title a:hover {
    color: var(--link-hover);
    border-color: var(--link-underline-hover);
}

.paper-meta {
    font-size: 0.92rem;
    color: var(--subtext-color);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.paper-meta strong {
    color: var(--text-color);
}

.paper-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
    margin-bottom: 0.85rem;
}

.paper-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background-color: var(--code-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.paper-badge.award {
    background-color: rgba(234, 179, 8, 0.15);
    color: #b45309;
    border-color: rgba(234, 179, 8, 0.4);
}

[data-theme="dark"] .paper-badge.award {
    color: #fde047;
}

.paper-badge.video-badge {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .paper-badge.video-badge {
    color: #fca5a5;
}

/* Media Box (Image / Video Thumbnail) */
.paper-media-card {
    margin: 1.15rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background-color: var(--code-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paper-media-card:hover {
    box-shadow: var(--card-shadow);
}

.paper-media-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
}

.paper-media-caption {
    font-size: 0.82rem;
    color: var(--subtext-color);
    padding: 0.5rem 0.85rem;
    background: var(--code-bg);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    font-style: italic;
}

/* Video Thumbnail with Play Button Overlay */
.video-thumbnail-wrapper {
    position: relative;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #000000;
}

.video-thumbnail-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.92;
}

.video-thumbnail-wrapper:hover img {
    transform: scale(1.02);
    opacity: 1;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease;
}

.video-thumbnail-wrapper:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.video-play-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: rgba(220, 38, 38, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-play-button svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #ffffff;
    margin-left: 3px;
}

.video-thumbnail-wrapper:hover .video-play-button {
    transform: scale(1.1);
    background: #ef4444;
}

.video-play-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* Abstract Box */
.paper-abstract {
    margin-top: 0.85rem;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--code-bg);
    border-left: 3px solid var(--bullet-color);
    padding: 0.85rem 1.15rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.paper-abstract-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--subtext-color);
    margin-bottom: 0.35rem;
}

.paper-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Explore Section Grid on Home / About page */
.section-explore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 640px) {
    .section-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.explore-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    background-color: var(--code-bg);
    border: 1px solid var(--border-subtle);
    text-decoration: none !important;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.explore-card:hover {
    transform: translateY(-2px);
    background-color: rgba(17, 24, 39, 0.08);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .explore-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.explore-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.explore-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--subtext-color);
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

.explore-arrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
