/*@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Kalam:wght@300;400;700&display=swap');*/

:root{
    --font-main: "Trebuchet MS", Trebuchet, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-main);
    color: #0f172a;
    background-color: #f8fafc;
    line-height: 1.6;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
}

.font-serif {
    font-family: var(--font-main);
}

.font-sans {
    font-family: var(--font-main);
}


/* Glassmorphism Navigation */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-item {
    position: relative;
    font-weight: 500;
    color: #475569; /* slate-600 */
    transition: color 0.2s;
}

.nav-item:hover {
    color: #1e293b; /* slate-800 */
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d4a562; /* accent */
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Hero Section */
.profile-image-container {
    position: relative;
    z-index: 10;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

.profile-card h1 {
    line-height: 1.2;
}

.profile-card .profile-panel-section,
.profile-card .profile-contact-card {
    background: #f8fafc;
}

.profile-column .profile-card,
.page-profile-card {
    position: sticky;
    top: 6rem;
}

.profile-mini-timeline {
    display: grid;
    gap: 1rem;
}

.profile-mini-item {
    align-items: flex-start;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 42px 1fr;
}

.profile-mini-logo {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    padding: 0.28rem;
    width: 42px;
}

.profile-mini-logo img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.profile-mini-logo-large {
    padding: 0.15rem;
}

.profile-mini-item h4 {
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.1rem;
}

.profile-mini-org,
.profile-mini-date,
.profile-mini-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0;
}

.profile-mini-org {
    color: #b88a4d;
    font-weight: 700;
}

.profile-mini-date {
    color: #64748b;
    margin-top: 0.08rem;
}

.profile-mini-desc {
    color: #475569;
    margin-top: 0.18rem;
}

.social-btn {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #1e293b;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 2.25rem;
}

.social-btn:hover {
    background: #ffffff;
    border-color: #d4a562;
    color: #d4a562;
    transform: translateY(-1px);
}

/* Section Styling */
section {
    position: relative;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 40%;
    height: 3px;
    background-color: rgba(212, 165, 98, 0.3); /* accent with opacity */
    z-index: -1;
}


/* Section Title Spacing */
.section-header{
    margin-top: 1.75rem;    
    margin-bottom: 1.75rem; 
}

.content-column > section:first-child .section-header,
.content-column > section:nth-child(2) .section-header{
    margin-top: 0;
}

.section-header h2{
    margin: 0;
}

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

@media (min-width: 861px) {
    .grid-layout {
        grid-template-columns: 380px minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: start;
    }
}

.tabbed-homepage .content-column {
    min-height: 620px;
}

.content-panel {
    display: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

.content-panel.active-panel {
    display: block;
    animation: panelFade 180ms ease-out;
}

.content-panel.home-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.home-section-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

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

.research-interest-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #334155;
    display: flex;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
}

.research-interest-item span {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.tabbed-homepage .section-header {
    margin-top: 0;
}

.nav-item.active,
.mobile-nav-item.active {
    color: #1e293b;
    font-weight: 700;
}

.nav-item.active::after {
    width: 100%;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.news-card, .research-card, .contact-card {
    transition: all 0.3s ease;
}

.news-card:hover, .research-card:hover, .contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1; /* slate-300 */
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility */
.text-accent {
    color: #d4a562;
}

.bg-accent {
    background-color: #d4a562;
}

.border-accent {
    border-color: #d4a562;
}

.hover\:text-accent:hover {
    color: #d4a562;
}

.link-highlight {
    border-bottom: 1px solid rgba(212, 165, 98, 0.45);
    color: #b88a4d;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.link-highlight:hover {
    background-color: rgba(212, 165, 98, 0.1);
    border-bottom-color: #d4a562;
    color: #1e293b;
}

.company-inline-link {
    align-items: center;
    display: inline-flex;
    gap: 0.28rem;
    line-height: 1.2;
    vertical-align: -0.08em;
}

.company-inline-emphasis {
    color: #b88a4d;
    font-weight: 700;
}

.company-inline-icon {
    border-radius: 4px;
    display: inline-block;
    height: 1.05em;
    object-fit: contain;
    width: 1.05em;
}

.company-inline-icon-wide {
    width: 1.25em;
}

/* Research Highlights (Accordion/Details Style if needed, but using clean list for now) */
details summary {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: justify;
}

/* New Publication List Styles */
.pub-year-group {
    margin-bottom: 2rem;
}

.pub-year-header {
    font-family: var(--font-main);
    font-size: 1.35rem; /* Slightly larger */
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.05em; /* Add spacing for wider look */
    color: #1e293b;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.25rem;
    display: inline-block;
}

.pub-list-ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.pub-list-item {
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.pub-line-1 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.pub-venue-tag {
    font-weight: 700;
    margin-right: 0.5rem;
}

.pub-title-text {
    font-weight: 600;
    color: #1e293b;
}

.pub-link-btn {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #475569;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    vertical-align: middle;
    background-color: white;
}

.pub-link-btn:hover {
    border-color: #d4a562;
    color: #d4a562;
    background-color: #fffbeb;
}

.tag-arxiv {
    color: #2563eb; /* Blue for Arxiv */
}

.tag-conference {
    color: #dc2626; /* Red for Conference/Journal */
}

.pub-title-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.pub-title-link:hover {
    color: #d4a562; /* accent */
    border-bottom-color: #d4a562;
}

.pub-line-2 {
    font-size: 0.95rem;
    color: #4b5563; /* neutral-600 */
    margin-bottom: 0.1rem;
}

.pub-line-2 strong, .pub-line-2 b {
    color: #1e293b; /* primary */
    font-weight: 600;
}

.pub-line-3 {
    font-size: 0.9rem;
    color: #64748b; /* slate-500 */
    font-style: italic;
}

/* Publication Card Typography (Legacy/Unused for now) */
.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b; /* primary */
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.95rem;
    color: #64748b; /* muted */
    margin-bottom: 0.5rem;
}

.pub-venue {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b; /* muted */
    margin-bottom: 1rem;
    font-style: italic;
}

.pub-highlight {
    font-size: 0.85rem;
    color: #d97706; /* amber-600 */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Publication CCF Ranks and Badges */
.pub-badge-highlight {
    display: inline-block;
    background-color: #ef4444; /* Red */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
    line-height: 1.2;
}

.ccf-rank {
    font-weight: 700;
    margin-left: 0.3rem;
}

.ccf-a {
    color: #dc2626; /* Red-600 */
}

.ccf-b {
    color: #2563eb; /* Blue-600 */
}

.ccf-c {
    color: #16a34a; /* Green-600 */
}

.publication:hover {
    border-color: #d4a562; /* accent */
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.page-shell {
    display: grid;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1380px;
    min-height: 100vh;
    padding: 5rem 1rem 3rem;
}

@media (min-width: 640px) {
    .page-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-shell {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 7rem;
    }
}

.publication-page-layout {
    align-items: start;
}

@media (min-width: 861px) {
    .publication-page-layout {
        gap: clamp(2rem, 4vw, 4rem);
        grid-template-columns: 380px minmax(0, 1fr);
    }
}

.mini-profile-card,
.page-profile-card,
.publication-workspace {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.mini-profile-card {
    padding: 1.25rem;
    position: sticky;
    top: 76px;
    text-align: center;
}

.page-profile-card {
    position: sticky;
    top: 6rem;
}

.mini-profile-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1rem;
    object-fit: cover;
    width: 150px;
}

.mini-profile-card h1 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.mini-profile-title,
.mini-profile-affiliation {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0.15rem 0;
}

.mini-profile-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.mini-profile-links a {
    color: #1e293b;
    text-decoration: none;
}

.publication-workspace {
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

.publication-header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.publication-header h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.publication-header p {
    color: #64748b;
    margin: 0.35rem 0 0;
}

.back-home-link {
    color: #d4a562;
    flex-shrink: 0;
    font-weight: 700;
    text-decoration: none;
}

.publication-tabs {
    display: flex;
    gap: 0.65rem;
    margin: 1.25rem 0 0.75rem;
}

.publication-tab {
    background: #f1f5f9;
    border: 0;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0.55rem 0.95rem;
}

.publication-tab.active {
    background: #d66f76;
    color: #ffffff;
}

.publication-note {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.publication-filters {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0;
    padding: 1rem;
}

.publication-filter-row {
    display: grid;
    gap: 0.55rem;
}

.publication-filter-label {
    color: #475569;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.publication-topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.publication-filter-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
}

.publication-filter-chip.active,
.publication-filter-chip:hover {
    background: #d66f76;
    border-color: #d66f76;
    color: #ffffff;
}

.publication-filter-selects {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.publication-filter-selects label {
    display: grid;
    gap: 0.3rem;
}

.publication-filter-selects select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 150px;
    padding: 0.42rem 0.6rem;
}

.publication-filter-summary {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    padding-bottom: 0.45rem;
}

.publication-core-group {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.publication-core-group:last-child {
    margin-bottom: 0;
}

.publication-core-heading {
    align-items: baseline;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding-bottom: 0.45rem;
}

.publication-core-heading h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.publication-core-heading span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.publication-card-list {
    display: grid;
    gap: 1rem;
}

.publication-card {
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 260px) 1fr;
    padding: 0.85rem;
}

.publication-card-media {
    align-items: center;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    min-height: 132px;
    overflow: hidden;
}

.publication-card-media img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.publication-placeholder {
    align-items: center;
    color: #d4a562;
    display: flex;
    font-size: 1.4rem;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    min-height: 132px;
    width: 100%;
}

.publication-card-body h3,
.publication-full-content h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.publication-authors {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 0.45rem;
}

.publication-meta {
    align-items: center;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.publication-venue,
.publication-full-venue,
.publication-rank,
.publication-highlight,
.publication-link-chip {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.28rem 0.45rem;
}

.publication-venue,
.publication-full-venue {
    background: rgba(212, 165, 98, 0.14);
    color: #b88a4d;
}

.publication-rank {
    background: #f1f5f9;
}

.transaction-rank {
    color: #7c3aed;
}

.publication-highlight {
    background: #fee2e2;
    color: #dc2626;
}

.publication-links {
    margin-top: 0.65rem;
}

.publication-link-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    margin-right: 0.35rem;
    text-decoration: none;
}

.publication-link-chip:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.publication-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.publication-topic-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.25rem 0.45rem;
}

.publication-empty-state {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-weight: 700;
    margin: 1rem 0 0;
    padding: 1rem;
}

.publication-full-list {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.publication-full-item {
    border-bottom: 1px dashed #e2e8f0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 86px 1fr;
    padding: 0 0 0.85rem;
}

.publication-full-item:last-child {
    border-bottom: 0;
}

@media (max-width: 860px) {
    .publication-header,
    .publication-tabs {
        align-items: flex-start;
        flex-direction: column;
    }

    .publication-page-layout {
        grid-template-columns: 1fr;
    }

    .mini-profile-card {
        position: static;
    }

    .publication-card,
    .publication-full-item {
        grid-template-columns: 1fr;
    }

    .publication-filter-selects {
        align-items: stretch;
        flex-direction: column;
    }

    .publication-filter-selects select {
        width: 100%;
    }
}

/* Venue Logo - Hidden for Text-Only Style */
.venue-logo {
    display: none;
}

/* News Item Dashed Line */
.news-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.news-date {
    font-family: var(--font-main);
    font-weight: 400; 
    font-size: 0.9rem; 
    color: #64748b;
    white-space: nowrap;
}

.news-content {
    font-family: var(--font-main);
    font-size: 0.95rem; 
    color: #334155;
    line-height: 1.5;
}

.news-item:last-child {
    border-bottom: none;
}

/* Formal Text */
.formal-font {
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Service Section */
.service-category {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.service-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-category h3 {
    font-size: 1rem; /* Match education header size */
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
    font-family: var(--font-main);
}

.service-items {
    font-family: var(--font-main);
    font-size: 0.9rem; /* Match education text size (approx) */
    color: #475569;
    line-height: 1.5;
}

/* Honors Section Styling */
.honor-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.honor-year {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    color: #d4a562; /* accent */
    text-align: right;
    white-space: nowrap;
}

.honor-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b; /* primary */
}

/* Publication Thumbnail & Layout */
.pub-content-wrapper {
    width: 100%;
}

.pub-list-item.with-thumbnail-expanded {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pub-thumbnail-box {
    width: 200px; /* Fixed width for thumbnail */
    flex-shrink: 0;
    order: -1; /* Move to the left */
    border: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pub-thumbnail-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pub-list-item.with-thumbnail-expanded .pub-content-wrapper {
    flex-grow: 1;
}

/* Adjust text spacing in expanded mode */
.pub-list-item.with-thumbnail-expanded .pub-line-1 {
    margin-bottom: 0.5rem;
}

.pub-list-item.with-thumbnail-expanded .pub-title-text {
    font-size: 1.1rem; /* Larger title in expanded mode */
}

.pub-btn-preview {
    cursor: pointer;
}

.pub-btn-preview.active {
    background-color: #1e293b;
    color: white;
    border-color: #1e293b;
}

/* Make sure mobile layout stacks */
@media (max-width: 640px) {
    .pub-list-item.with-thumbnail-expanded {
        flex-direction: column;
    }
    .pub-thumbnail-box {
        width: 100%;
        max-width: 300px;
        margin-top: 0.5rem;
    }
}
