/* === Science Sidebar === */
.science-sidebar {
    background: var(--science-bg, #f9f9f9);
    border-radius: 14px;
    padding: 16px;
    font-family: inherit;
    width: 100%;
    line-height: 1.5;
}

.science-sidebar .sidebar-title {
    background: var(--science-accent, #bd0010);
    color: #ffffff;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    text-transform: uppercase;
    border-radius: 8px;
}

.science-post-list,
.science-post-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.science-post-list li + li {
    margin-top: 6px;
}

.science-post-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
    font-size: 14px;
}

.science-post-list li a:hover,
.science-post-list li a:focus-visible {
    transform: translateX(4px);
    color: var(--science-accent, #bd0010);
    border-color: rgba(189, 0, 16, 0.15);
    outline: none;
}

/* Explicit focus ring for keyboard navigation */
.science-post-list li a:focus-visible {
    box-shadow: 0 0 0 3px rgba(189, 0, 16, 0.25);
}

.science-post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8e8e8; /* visible while loading */
}

.science-post-title {
    flex: 1;
}

.science-sidebar .show-more-btn {
    margin-top: 12px;
}

.science-sidebar .show-more-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    background: #006400;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid #006400;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.science-sidebar .show-more-btn a:hover {
    background: #004d00;
    border-color: #004d00;
    transform: translateY(-2px);
}

/* Visible focus ring — keyboard accessible */
.science-sidebar .show-more-btn a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.4);
}

@media (max-width: 480px) {
    .science-post-list li a {
        font-size: 13px;
        padding: 8px;
    }
    .science-post-thumb {
        width: 40px;
        height: 40px;
    }
    .science-sidebar .show-more-btn a {
        font-size: 14px;
    }
}