pre code {
    font-size: small;
    padding: 0;
}



.list-of-tags {
    column-count: 3;
    font-size: x-large;
}


@media screen and (max-width: 1200px) {

    .custom-footer {
        display: inline; 
        text-align:center;
    }

    .list-of-tags {
        column-count: 1;
    }

}
/* Enhanced Code Block Styling */
.highlight {
    position: relative;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

/* Copy button styling */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.copy-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.copy-button.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Simple table layout */
.highlight .lntable {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.highlight .lntd {
    vertical-align: top;
    padding: 0;
    margin: 0;
    border: 0;
}

/* Line numbers column */
.highlight .lntd:first-child {
    width: 60px;
    padding: 1rem 0.75rem 1rem 1rem;
    user-select: none;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Code column */
.highlight .lntd:last-child {
    padding: 1rem;
    width: calc(100% - 60px);
}

.highlight .lnt {
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    line-height: 1.5;
}

/* Code content */
.highlight .lntd:last-child pre {
    padding: 0;
    margin: 0;
    white-space: pre;
}

/* Ensure pre elements don't add extra styling */
.highlight pre {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .highlight {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .highlight .lntd:first-child {
        min-width: 40px;
        padding-right: 0.5rem;
    }
    
    .copy-button {
        top: 0.25rem;
        right: 0.25rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}/* Unifor
m Card Heights */
.card-container {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-summary {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-height: 400px;
}

/* Fade out effect for long content */
.card-summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Responsive card heights */
@media screen and (max-width: 768px) {
    .card-container {
        height: auto;
        min-height: 300px;
    }
    
    .card-summary {
        max-height: 150px;
    }
}/* Car
d date styling */
.card-date {
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Ensure consistent spacing between section, date, and title */
.card-content .f6.db.gray.mb2 {
    color: #666;
    font-weight: 500;
    opacity: 0.8;
}/* Card
 date styling - top right corner */
.card-date-corner {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Header row with section and date */
.card-content .flex.justify-between {
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

/* Ensure section title doesn't interfere with date */
.card-content .flex.justify-between .f6 {
    margin-right: 1rem;
}/
* Card image styling */
.card-image {
    margin-bottom: 1rem;
}

.card-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.card-image a:hover img {
    opacity: 0.9;
}

/* Adjust card layout when image is present */
.card-container:has(.card-image) .card-summary {
    max-height: 120px; /* Reduce text when image is present */
}

/* Fallback for browsers without :has() support */
.card-image + .nested-links.card-summary {
    max-height: 120px;
}/
* Publications page styling */
.publication-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.publication-image {
    max-width: 200px;
    margin: 0 auto;
}

.publication-cover {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.publication-table {
    border-collapse: collapse;
    font-size: 0.9rem;
}

.publication-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

.publication-table td {
    vertical-align: top;
}

.publication-table tr:hover {
    background-color: #f0f8ff;
}

/* Responsive table */
@media screen and (max-width: 768px) {
    .publication-table {
        font-size: 0.8rem;
    }
    
    .publication-table th,
    .publication-table td {
        padding: 0.5rem;
    }
    
    .publication-card {
        width: 100% !important;
        margin-bottom: 1rem;
    }
}

/* Single post layout improvements */
/* Ensure content flows well on mobile when sidebar is hidden */
@media screen and (max-width: 768px) {
    .w-80-l {
        width: 100% !important;
    }
    
    .w-20-l {
        width: 100% !important;
        margin-top: 2rem;
    }
}